/[escript]/trunk/pyvisi/py_src/ellipsoid.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/ellipsoid.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1057 by jongui, Thu Mar 22 23:57:37 2007 UTC revision 1079 by jongui, Tue Apr 10 04:27:31 2007 UTC
# Line 30  class Ellipsoid(DataSetMapper, Actor3D, Line 30  class Ellipsoid(DataSetMapper, Actor3D,
30      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
31              lut = Lut.COLOR, cell_to_point = False, outline = True):              lut = Lut.COLOR, cell_to_point = False, outline = True):
32          """          """
33            Initialise the Ellipsoid.
34    
35            @attention: The source can either be point or cell data. If the
36            source is cell data, a conversion to point data may or may not be
37            required, in order for the object to be rendered correctly.
38            If a conversion is needed, the 'cell_to_point' flag must be set to
39            'True', otherwise 'False' (which is the default).
40    
41          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
42          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
43          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
44                  object                  object
45          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for vizualisation
46          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
47          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
48          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 125  class EllipsoidOnPlaneCut(DataSetMapper, Line 133  class EllipsoidOnPlaneCut(DataSetMapper,
133      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
134              lut = Lut.COLOR, cell_to_point = False, outline = True):              lut = Lut.COLOR, cell_to_point = False, outline = True):
135          """          """
136            Initialise the EllipsoidOnPlaneCut.
137    
138            @attention: The source can either be point or cell data. If the
139            source is cell data, a conversion to point data may or may not be
140            required, in order for the object to be rendered correctly.
141            If a conversion is needed, the 'cell_to_point' flag must be set to
142            'True', otherwise 'False' (which is the default).
143    
144          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
145          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
146          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
147                  object                  object
148          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for vizualisation
149          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
150          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
151          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 186  class EllipsoidOnPlaneCut(DataSetMapper, Line 202  class EllipsoidOnPlaneCut(DataSetMapper,
202                      Plane._getPlane(self))                        Plane._getPlane(self))  
203    
204          MaskPoints.__init__(self, Cutter._getOutput(self))          MaskPoints.__init__(self, Cutter._getOutput(self))
   
205          Sphere.__init__(self)          Sphere.__init__(self)
206    
207          TensorGlyph.__init__(self, MaskPoints._getOutput(self),          TensorGlyph.__init__(self, MaskPoints._getOutput(self),
208                  Sphere._getOutput(self))                  Sphere._getOutput(self))
209          Normals.__init__(self, TensorGlyph._getOutput(self))          Normals.__init__(self, TensorGlyph._getOutput(self))
210    
   
   
   
211          DataSetMapper.__init__(self, Normals._getOutput(self),          DataSetMapper.__init__(self, Normals._getOutput(self),
212                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
213          DataSetMapper._setScalarRange(self, data_collector._getScalarRange())          DataSetMapper._setScalarRange(self, data_collector._getScalarRange())
# Line 228  class EllipsoidOnPlaneClip(DataSetMapper Line 240  class EllipsoidOnPlaneClip(DataSetMapper
240      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
241              lut = Lut.COLOR, cell_to_point = False, outline = True):              lut = Lut.COLOR, cell_to_point = False, outline = True):
242          """          """
243            Initialise the EllipsoidOnPlaneClip.
244    
245            @attention: The source can either be point or cell data. If the
246            source is cell data, a conversion to point data may or may not be
247            required, in order for the object to be rendered correctly.
248            If a conversion is needed, the 'cell_to_point' flag must be set to
249            'True', otherwise 'False' (which is the default).
250    
251          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
252          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
253          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
# Line 292  class EllipsoidOnPlaneClip(DataSetMapper Line 312  class EllipsoidOnPlaneClip(DataSetMapper
312              Clipper._setClipFunction(self)              Clipper._setClipFunction(self)
313    
314          MaskPoints.__init__(self, Clipper._getOutput(self))          MaskPoints.__init__(self, Clipper._getOutput(self))
   
315          Sphere.__init__(self)          Sphere.__init__(self)
316          TensorGlyph.__init__(self, MaskPoints._getOutput(self),          TensorGlyph.__init__(self, MaskPoints._getOutput(self),
317                  Sphere._getOutput(self))                  Sphere._getOutput(self))
318    
319          Normals.__init__(self, TensorGlyph._getOutput(self))          Normals.__init__(self, TensorGlyph._getOutput(self))
   
320          DataSetMapper.__init__(self, Normals._getOutput(self),          DataSetMapper.__init__(self, Normals._getOutput(self),
321              lookup_table._getLookupTable())              lookup_table._getLookupTable())
322          DataSetMapper._setScalarRange(self, data_collector._getScalarRange())          DataSetMapper._setScalarRange(self, data_collector._getScalarRange())

Legend:
Removed from v.1057  
changed lines
  Added in v.1079

  ViewVC Help
Powered by ViewVC 1.1.26