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

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

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

revision 947 by jongui, Wed Jan 31 07:17:43 2007 UTC revision 994 by jongui, Fri Feb 23 07:00:54 2007 UTC
# Line 10  from outline import Outline Line 10  from outline import Outline
10  from constant import Viewport, Color, Lut  from constant import Viewport, Color, Lut
11  from contourmodule import ContourModule  from contourmodule import ContourModule
12    
   
13  # NOTE: DataSetMapper, Actor3D and ContourModule were inherited to allow  # NOTE: DataSetMapper, Actor3D and ContourModule were inherited to allow
14  # access to their public methods from the driver.  # access to their public methods from the driver.
15  class Contour(DataSetMapper, Actor3D, ContourModule):  class Contour(DataSetMapper, Actor3D, ContourModule):
# Line 66  class Contour(DataSetMapper, Actor3D, Co Line 65  class Contour(DataSetMapper, Actor3D, Co
65    
66          # ----- Contour -----          # ----- Contour -----
67    
68          if(scalar != None): # True only if a scalar field was specified.          #if(scalar != None): # True only if a scalar field was specified.
69              data_collector._setActiveScalar(scalar)          #   pass
70                #data_collector._setActiveScalar(scalar)
71    
72          lookup_table = LookupTable()          lookup_table = LookupTable()
73    
# Line 161  class ContourOnPlaneCut(DataSetMapper, A Line 161  class ContourOnPlaneCut(DataSetMapper, A
161    
162          # ----- Contour on a cut plane -----          # ----- Contour on a cut plane -----
163    
164          if(scalar != None):          #if(scalar != None):
165              data_collector._setActiveScalar(scalar)          #   data_collector._setActiveScalar(scalar)
166    
167          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
168          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect
# Line 257  class ContourOnPlaneClip(DataSetMapper, Line 257  class ContourOnPlaneClip(DataSetMapper,
257    
258          # ----- Contour on a clipped plane -----          # ----- Contour on a clipped plane -----
259    
260          if(scalar != None):          #if(scalar != None):
261              data_collector._setActiveScalar(scalar)          #   data_collector._setActiveScalar(scalar)
262    
263          # NOTE: Lookup table color mapping (color or grey scale) MUST be set          # NOTE: Lookup table color mapping (color or grey scale) MUST be set
264          # before DataSetMapper. If it is done after DataSetMapper, no effect          # before DataSetMapper. If it is done after DataSetMapper, no effect

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

  ViewVC Help
Powered by ViewVC 1.1.26