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

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

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

revision 992 by jongui, Fri Feb 23 03:35:33 2007 UTC revision 1004 by jongui, Thu Mar 1 04:57:31 2007 UTC
# Line 1  Line 1 
1  class Color:  class Color:
2      """      """
3      Constants that define colors using RGB values.      Constants that define the colors using RGB values.
4    
5      @cvar RED: Constant representing red color      @cvar RED: Constant representing red color
6      @cvar GREEN: Constant representing green color      @cvar GREEN: Constant representing green color
# Line 15  class Color: Line 15  class Color:
15      @cvar BROWN: Constant representing brown color      @cvar BROWN: Constant representing brown color
16      """      """
17    
18      RED = [1, 0, 0]      RED    = [1, 0, 0]
19      GREEN = [0, 1, 0]      GREEN  = [0, 1, 0]
20      BLUE = [0, 0, 1]      BLUE   = [0, 0, 1]
21      BLACK = [0, 0, 0]      BLACK  = [0, 0, 0]
22      WHITE = [1, 1, 1]      WHITE  = [1, 1, 1]
23      YELLOW = [1,1,0]      YELLOW = [1,1,0]
24      PINK = [1, 0.0784, 0.4588]      PINK   = [1, 0.0784, 0.4588]
25      ORANGE = [1, 0.2706, 0]      ORANGE = [1, 0.2706, 0]
26      PURPLE = [0.5412, 0.1680, 0.8828]      PURPLE = [0.5412, 0.1680, 0.8828]
27      GREY = [0.6602, 0.6602, 0.6602]      GREY   = [0.6602, 0.6602, 0.6602]
28      BROWN = [0.5430, 0.2700, 0.0742]      BROWN  = [0.5430, 0.2700, 0.0742]
29    
30    
31  class Viewport:  class Viewport:
32      """      """
33      Constants that define the four viewports in a window.      Constants that define the four viewports in a window.
34    
35      @cvar SOUTH_WEST: Constant representing the bottom left viewport of a      @cvar SOUTH_WEST: Constant representing the bottom-left viewport of a
36              window              window
37      @cvar NORTH_WEST: Constant representing the upper left viewport of a      @cvar NORTH_WEST: Constant representing the upper-left viewport of a
38              window              window
39      @cvar NORTH_EAST: Constatnt representing the upper right viewport of a      @cvar NORTH_EAST: Constatnt representing the upper-right viewport of a
40              window              window
41      @cvar SOUTH_EAST: Constant representing the bottom right viewport of a              window      @cvar SOUTH_EAST: Constant representing the bottom-right viewport of a              window
42      """      """
43    
44      SOUTH_WEST = 0      SOUTH_WEST = 0
# Line 45  class Viewport: Line 46  class Viewport:
46      NORTH_EAST = 2      NORTH_EAST = 2
47      SOUTH_EAST = 3      SOUTH_EAST = 3
48    
49    
50  class Source:  class Source:
51      """      """
52      Constant that define the source data type.      Constants that define the source type.
53    
54      @cvar XML: Constant representing the xml source data type      @cvar XML: Constant representing xml as the source type
55      @cvar ESCRIPT: Constant representing the escript data objects as source      @cvar ESCRIPT: Constant representing escript data objects as source
56      """      """
57            
58      XML = "xml"      XML = "xml"
59      ESCRIPT = "escript"      ESCRIPT = "escript"
60    
61    
62  class Renderer:  class Renderer:
63      """      """
64      Constants that define the renderer type.      Constants that define the renderer type.
# Line 69  class Renderer: Line 72  class Renderer:
72      @cvar OFFLINE_PS: Constant representing the PS offline renderer      @cvar OFFLINE_PS: Constant representing the PS offline renderer
73      """      """
74    
75      ONLINE = "online"      ONLINE      = "online"
76      OFFLINE_JPG = "offline_jpeg"      OFFLINE_JPG = "offline_jpg"
77      OFFLINE_BMP = "offline_bmp"      OFFLINE_BMP = "offline_bmp"
78      OFFLINE_PNM = "offline_pnm"      OFFLINE_PNM = "offline_pnm"
79      OFFLINE_PNG = "offline_png"      OFFLINE_PNG = "offline_png"
80      OFFLINE_TIF = "offline_tiff"      OFFLINE_TIF = "offline_tiff"
81      OFFLINE_PS = "offline_ps"      OFFLINE_PS  = "offline_ps"
82    
83    
84  class Arrow:  class Arrow:
85      """      """
86      Constants that define the arrow type.      Constants that define the arrow type.
87    
88      @cvar TWO_D: Constant representing the two dimensional arrow      @cvar TWO_D: Constant representing the two dimensional arrow type
89      @cvar THREE_D: Constant representing the three dimensional arrow      @cvar THREE_D: Constant representing the three dimensional arrow type
90      """      """
91    
92      TWO_D = "2d"      TWO_D = "2d"
93      THREE_D = "3d"      THREE_D = "3d"
94    
95    
96  class ColorMode:  class ColorMode:
97      """      """
98      Constants that define the color mode used to color the data.      Constants that define the color mode used to color the data.
# Line 99  class ColorMode: Line 104  class ColorMode:
104      VECTOR = "vector"      VECTOR = "vector"
105      SCALAR = "scalar"      SCALAR = "scalar"
106    
107    
108  class WarpMode:  class WarpMode:
109      """      """
110      Constants that define the warp mode used to deform the scalar data.      Constants that define the warp mode used to deform the scalar data.
111    
112      @cvar VECTOR: Constant representing the vector deform  mode      @cvar VECTOR: Constant representing the vector deformation mode
113      @cvar SCALAR: Constant representing the scalar deform  mode      @cvar SCALAR: Constant representing the scalar deformation mode
114      """      """
115    
116      VECTOR = "vector"      VECTOR = "vector"
117      SCALAR = "scalar"      SCALAR = "scalar"
118    
119    
120  class ImageFormat:  class ImageFormat:
121      """      """
122      Constants that define the image formats.      Constants that define the image formats.
# Line 118  class ImageFormat: Line 125  class ImageFormat:
125      @cvar BMP: Constant representing the BMP image format      @cvar BMP: Constant representing the BMP image format
126      @cvar PNM: Constant representing the PNM image format      @cvar PNM: Constant representing the PNM image format
127      @cvar PNG: Constant representing the PNG image format      @cvar PNG: Constant representing the PNG image format
128      @cvar TIF: Constant representing the TIF iamge format      @cvar TIF: Constant representing the TIF image format
129      """      """
130    
131      JPG = "jpg"      JPG = "jpg"
# Line 127  class ImageFormat: Line 134  class ImageFormat:
134      PNG = "png"      PNG = "png"
135      TIF = "tif"      TIF = "tif"
136            
137    
138  class Lut:  class Lut:
139      """      """
140      Constants that define the type of color mapping scheme for the lookup      Constants that define the type of color mapping scheme for the lookup

Legend:
Removed from v.992  
changed lines
  Added in v.1004

  ViewVC Help
Powered by ViewVC 1.1.26