/[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 994 by jongui, Fri Feb 23 07:00:54 2007 UTC revision 996 by jongui, Mon Feb 26 03:43:13 2007 UTC
# Line 25  class Ellipsoid(DataSetMapper, Actor3D, Line 25  class Ellipsoid(DataSetMapper, Actor3D,
25            
26      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
27      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
28      # If no tensor field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
29      # be loaded automatically. If no lut is specified, the color scheme will      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
30      # be used.              lut = Lut.COLOR, outline = True):
     def __init__(self, scene, data_collector, tensor = None,  
             viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):  
   
31          """          """
32          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
33          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
34          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
35                  object                  object
36          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type tensor: String  
         @param tensor: Tensor field to load from the source file  
37          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
38          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
39          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 72  class Ellipsoid(DataSetMapper, Actor3D, Line 67  class Ellipsoid(DataSetMapper, Actor3D,
67    
68          # ----- Ellipsoid -----          # ----- Ellipsoid -----
69    
         #if(tensor != None):  
         #   data_collector._setActiveTensor(tensor)  
   
70          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
71          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
72          # will take place.          # will take place.
# Line 120  class EllipsoidOnPlaneCut(DataSetMapper, Line 112  class EllipsoidOnPlaneCut(DataSetMapper,
112    
113      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
114      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
115      # If no vector field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
116      # be loaded automatically. If no lut is specified, the color scheme will      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
117      # be used.              lut = Lut.COLOR, outline = True):
     def __init__(self, scene, data_collector, tensor = None,  
             viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):  
   
118          """          """
119          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
120          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
121          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
122                  object                  object
123          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type tensor: String  
         @param tensor: Tensor field to load from the source file  
124          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
125          @param viewport: Viewport in which objects are to be rendered on          @param viewport: Viewport in which objects are to be rendered on
126          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 167  class EllipsoidOnPlaneCut(DataSetMapper, Line 154  class EllipsoidOnPlaneCut(DataSetMapper,
154    
155          # ----- Ellipsoid on a cut plane -----          # ----- Ellipsoid on a cut plane -----
156    
         #if(tensor != None):  
         #   data_collector._setActiveTensor(tensor)  
   
157          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
158          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
159          # will take place.          # will take place.
# Line 219  class EllipsoidOnPlaneClip(DataSetMapper Line 203  class EllipsoidOnPlaneClip(DataSetMapper
203    
204      # The SOUTH_WEST default viewport is used when there is only one viewport.      # The SOUTH_WEST default viewport is used when there is only one viewport.
205      # This saves the user from specifying the viewport when there is only one.      # This saves the user from specifying the viewport when there is only one.
206      # If no vector field is specified, the first encountered in the file will      # If no lut is specified, the color scheme will be used.
207      # be loaded automatically. If no lut is specified, the color scheme will      def __init__(self, scene, data_collector, viewport = Viewport.SOUTH_WEST,
208      # be used.              lut = Lut.COLOR, outline = True):
     def __init__(self, scene, data_collector, tensor = None,  
             viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True):  
   
209          """          """
210          @type scene: L{Scene <scene.Scene>} object          @type scene: L{Scene <scene.Scene>} object
211          @param scene: Scene in which objects are to be rendered on          @param scene: Scene in which objects are to be rendered on
212          @type data_collector: L{DataCollector <datacollector.DataCollector>}          @type data_collector: L{DataCollector <datacollector.DataCollector>}
213                  object                  object
214          @param data_collector: Deal with source of data for visualisation          @param data_collector: Deal with source of data for visualisation
         @type tensor: String  
         @param tensor: Tensor field to load from the source file  
215          @type viewport: L{Viewport <constant.Viewport>} constant          @type viewport: L{Viewport <constant.Viewport>} constant
216          @param viewport: Viewport in which object are to be rendered on          @param viewport: Viewport in which object are to be rendered on
217          @type lut : L{Lut <constant.Lut>} constant          @type lut : L{Lut <constant.Lut>} constant
# Line 266  class EllipsoidOnPlaneClip(DataSetMapper Line 245  class EllipsoidOnPlaneClip(DataSetMapper
245    
246          # ----- Ellipsoid on a clipped plane -----          # ----- Ellipsoid on a clipped plane -----
247    
         #if(tensor != None):  
         #   data_collector._setActiveTensor(tensor)  
   
248          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
249          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
250          # will take place.          # will take place.

Legend:
Removed from v.994  
changed lines
  Added in v.996

  ViewVC Help
Powered by ViewVC 1.1.26