1 # Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 import SHAPERSTUDY_ORB__POA
26 class SHAPERSTUDY_Field(SHAPERSTUDY_ORB__POA.Field):
28 Construct an instance of SHAPERSTUDY Field.
30 def __init__ ( self, *args ):
33 def GetDataType( self ):
35 Returns type of field data (GEOM.field_data_type)
37 return GEOM.FDT_Double
41 Returns the shape the field lies on
43 return SHAPERSTUDY_Object()
47 Returns a list of time step IDs in the field
51 def GetComponents( self ):
53 Returns names of components
57 def GetDimension( self ):
59 Returns dimension of the shape the field lies on:
60 0 - VERTEX, 1 - EDGE, 2 - FACE, 3 - SOLID, -1 - whole shape
68 class SHAPERSTUDY_FieldStep(SHAPERSTUDY_ORB__POA.FieldStep):
70 Construct an instance of SHAPERSTUDY FieldStep.
72 def __init__ ( self, *args):
77 Returns the time of the field step
83 Returns the number of the field step
90 class SHAPERSTUDY_DoubleFieldStep(SHAPERSTUDY_ORB__POA.DoubleFieldStep):
92 Construct an instance of SHAPERSTUDY FieldStep.
94 def __init__ ( self, *args):
95 SHAPERSTUDY_FieldStep.__init__(self, *args)
98 def GetValues( self ):
100 Returns values of the field step
107 class SHAPERSTUDY_IntFieldStep(SHAPERSTUDY_ORB__POA.IntFieldStep):
109 Construct an instance of SHAPERSTUDY FieldStep.
111 def __init__ ( self, *args):
112 SHAPERSTUDY_FieldStep.__init__(self, *args)
115 def GetValues( self ):
117 Returns values of the field step
124 class SHAPERSTUDY_BoolFieldStep(SHAPERSTUDY_ORB__POA.BoolFieldStep):
126 Construct an instance of SHAPERSTUDY FieldStep.
128 def __init__ ( self, *args):
129 SHAPERSTUDY_FieldStep.__init__(self, *args)
132 def GetValues( self ):
134 Returns values of the field step