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

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

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

revision 1148 by jongui, Wed May 16 22:45:33 2007 UTC revision 1158 by jongui, Tue May 22 04:24:01 2007 UTC
# Line 54  class Carpet(DataSetMapper, Actor3D, War Line 54  class Carpet(DataSetMapper, Actor3D, War
54          @param outline: Places an outline around the domain surface          @param outline: Places an outline around the domain surface
55          """          """
56    
         self.__scene = scene  
57          self.__data_collector = data_collector          self.__data_collector = data_collector
58          self.__viewport = viewport          self.__viewport = viewport
59          self.__warp_mode = warp_mode          self.__warp_mode = warp_mode
# Line 88  class Carpet(DataSetMapper, Actor3D, War Line 87  class Carpet(DataSetMapper, Actor3D, War
87    
88              # Default line width is 1.              # Default line width is 1.
89              actor3D._setLineWidth(1)              actor3D._setLineWidth(1)
90              self.__scene._addActor3D(self.__viewport, actor3D._getActor3D())              scene._addActor3D(self.__viewport, actor3D._getActor3D())
91    
92          # ----- Carpet -----          # ----- Carpet -----
93    
# Line 117  class Carpet(DataSetMapper, Actor3D, War Line 116  class Carpet(DataSetMapper, Actor3D, War
116                  lookup_table._getLookupTable())                  lookup_table._getLookupTable())
117    
118          self._setupActor3D(self._getDataSetMapper())          self._setupActor3D(self._getDataSetMapper())
119          self.__scene._addActor3D(self.__viewport, self._getActor3D())          scene._addActor3D(self.__viewport, self._getActor3D())
120    
121      def _isModified(self):        def _isModified(self):  
122          """          """
# Line 129  class Carpet(DataSetMapper, Actor3D, War Line 128  class Carpet(DataSetMapper, Actor3D, War
128    
129          return self.__modified or self.__data_collector._isModified()          return self.__modified or self.__data_collector._isModified()
130    
131      def _render(self):      def _render(self, scene):
132          """          """
133          Render the carpet.          Render the carpet.
134    
135            @type scene: L{Scene <scene.Scene>} object
136            @param scene: Scene in which objects are to be rendered on
137          """          """
138    
139          if (self._isModified() == True):          if (self._isModified() == True):

Legend:
Removed from v.1148  
changed lines
  Added in v.1158

  ViewVC Help
Powered by ViewVC 1.1.26