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

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

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

revision 1158 by jongui, Tue May 22 04:24:01 2007 UTC revision 1199 by jongui, Wed Jun 20 05:01:30 2007 UTC
# Line 1  Line 1 
1  """  """
2  @author: John NGUI  @var __author__: name of author
3    @var __copyright__: copyrights
4    @var __license__: licence agreement
5    @var __url__: url entry point on documentation
6    @var __version__: version
7    @var __date__: date of the version
8  """  """
9    
10    __author__="John Ngui, john.ngui@uq.edu.au"
11    __copyright__="""  Copyright (c) 2006 by ACcESS MNRF
12                        http://www.access.edu.au
13                    Primary Business: Queensland, Australia"""
14    __license__="""Licensed under the Open Software License version 3.0
15                 http://www.opensource.org/licenses/osl-3.0.php"""
16    __url__="http://www.iservo.edu.au/esys"
17    __version__="$Revision$"
18    __date__="$Date$"
19    
20    
21  import vtk  import vtk
22  from actor import Actor2D  from actor import Actor2D
23  from constant import Viewport, Color  from constant import Viewport, Color
# Line 41  class Text2D(Actor2D): Line 57  class Text2D(Actor2D):
57          """          """
58    
59          self.__setInput()          self.__setInput()
60            # Set the color of the 2D text to black by default.
61            self.setColor(Color.BLACK)
62          # Add the 2D text to the appropriate renderer.          # Add the 2D text to the appropriate renderer.
63          scene._addActor2D(self.__viewport, self._vtk_actor2D)          scene._addActor2D(self.__viewport, self._vtk_actor2D)
64    

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

  ViewVC Help
Powered by ViewVC 1.1.26