1 # Copyright (C) 2019-2020 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 import SHAPERSTUDY_ORB__POA
23 class SHAPERSTUDY_Field(SHAPERSTUDY_ORB__POA.Field):
25 Construct an instance of SHAPERSTUDY Field.
27 def __init__ ( self, *args ):
30 def GetDataType( self ):
32 Returns type of field data (GEOM.field_data_type)
34 return GEOM.FDT_Double
38 Returns the shape the field lies on
40 return SHAPERSTUDY_Object()
44 Returns a list of time step IDs in the field
48 def GetComponents( self ):
50 Returns names of components
54 def GetDimension( self ):
56 Returns dimension of the shape the field lies on:
57 0 - VERTEX, 1 - EDGE, 2 - FACE, 3 - SOLID, -1 - whole shape
65 class SHAPERSTUDY_FieldStep(SHAPERSTUDY_ORB__POA.FieldStep):
67 Construct an instance of SHAPERSTUDY FieldStep.
69 def __init__ ( self, *args):
74 Returns the time of the field step
80 Returns the number of the field step
87 class SHAPERSTUDY_DoubleFieldStep(SHAPERSTUDY_ORB__POA.DoubleFieldStep):
89 Construct an instance of SHAPERSTUDY FieldStep.
91 def __init__ ( self, *args):
92 SHAPERSTUDY_FieldStep.__init__(self, *args)
95 def GetValues( self ):
97 Returns values of the field step
104 class SHAPERSTUDY_IntFieldStep(SHAPERSTUDY_ORB__POA.IntFieldStep):
106 Construct an instance of SHAPERSTUDY FieldStep.
108 def __init__ ( self, *args):
109 SHAPERSTUDY_FieldStep.__init__(self, *args)
112 def GetValues( self ):
114 Returns values of the field step
121 class SHAPERSTUDY_BoolFieldStep(SHAPERSTUDY_ORB__POA.BoolFieldStep):
123 Construct an instance of SHAPERSTUDY FieldStep.
125 def __init__ ( self, *args):
126 SHAPERSTUDY_FieldStep.__init__(self, *args)
129 def GetValues( self ):
131 Returns values of the field step