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
61 ### unnecessary methods that can be accidentally called from any module
62 def AddStep(self, *args): return
63 def RemoveStep(self, *args): return
64 def CountSteps(self, *args): return 0
65 def GetStep(self, *args): return 0
66 def GetArraySize(self, *args): return 0
72 class SHAPERSTUDY_FieldStep(SHAPERSTUDY_ORB__POA.FieldStep):
74 Construct an instance of SHAPERSTUDY FieldStep.
76 def __init__ ( self, *args):
81 Returns the time of the field step
87 Returns the number of the field step
94 class SHAPERSTUDY_DoubleFieldStep(SHAPERSTUDY_ORB__POA.DoubleFieldStep):
96 Construct an instance of SHAPERSTUDY FieldStep.
98 def __init__ ( self, *args):
99 SHAPERSTUDY_FieldStep.__init__(self, *args)
102 def GetValues( self ):
104 Returns values of the field step
111 class SHAPERSTUDY_IntFieldStep(SHAPERSTUDY_ORB__POA.IntFieldStep):
113 Construct an instance of SHAPERSTUDY FieldStep.
115 def __init__ ( self, *args):
116 SHAPERSTUDY_FieldStep.__init__(self, *args)
119 def GetValues( self ):
121 Returns values of the field step
128 class SHAPERSTUDY_BoolFieldStep(SHAPERSTUDY_ORB__POA.BoolFieldStep):
130 Construct an instance of SHAPERSTUDY FieldStep.
132 def __init__ ( self, *args):
133 SHAPERSTUDY_FieldStep.__init__(self, *args)
136 def GetValues( self ):
138 Returns values of the field step