Package Volume :: Package VisionInterface :: Module VolumeTypes
[hide private]
[frames] | no frames]

Source Code for Module Volume.VisionInterface.VolumeTypes

  1  ######################################################################## 
  2  # 
  3  # Date: April 2006 Authors: Guillaume Vareille, Michel Sanner 
  4  # 
  5  #    sanner@scripps.edu 
  6  #    vareille@scripps.edu 
  7  # 
  8  #       The Scripps Research Institute (TSRI) 
  9  #       Molecular Graphics Lab 
 10  #       La Jolla, CA 92037, USA 
 11  # 
 12  # Copyright: Guillaume Vareille, Michel Sanner and TSRI 
 13  # 
 14  # revision: 
 15  # 
 16  ######################################################################### 
 17  # 
 18  # $Header$ 
 19  # 
 20  # $Id$ 
 21  # 
 22   
 23  from NetworkEditor.datatypes import AnyType 
 24   
 25   
26 -class Grid3DType(AnyType):
27 - def __init__(self):
28 AnyType.__init__(self) 29 self.data['name'] = 'Grid3D' 30 self.data['color'] = '#995699' 31 self.data['shape'] = 'diamond' 32 from Volume.Grid3D import Grid3D 33 self.data['class'] = Grid3D
34
35 - def validate(self, data):
36 from Volume.Grid3D import Grid3D 37 return isinstance(data, Grid3D)
38
39 - def cast(self, data):
40 return False, data
41 42
43 -class Grid3DDType(AnyType):
44 - def __init__(self):
45 AnyType.__init__(self) 46 self.data['name'] = 'Grid3DD' 47 self.data['color'] = 'magenta' 48 self.data['shape'] = 'diamond' 49 from Volume.Grid3D import Grid3DD 50 self.data['class'] = Grid3DD
51
52 - def validate(self, data):
53 from Volume.Grid3D import Grid3DD 54 return isinstance(data, Grid3DD)
55
56 - def cast(self, data):
57 return False, data
58 59
60 -class Grid3DFType(AnyType):
61 - def __init__(self):
62 AnyType.__init__(self) 63 self.data['name'] = 'Grid3DF' 64 self.data['color'] = 'green' 65 self.data['shape'] = 'diamond' 66 from Volume.Grid3D import Grid3DF 67 self.data['class'] = Grid3DF
68
69 - def validate(self, data):
70 from Volume.Grid3D import Grid3DF 71 return isinstance(data, Grid3DF)
72
73 - def cast(self, data):
74 return False, data
75 76
77 -class Grid3DIType(AnyType):
78 - def __init__(self):
79 AnyType.__init__(self) 80 self.data['name'] = 'Grid3DI' 81 self.data['color'] = 'yellow' 82 self.data['shape'] = 'diamond' 83 from Volume.Grid3D import Grid3DI 84 self.data['class'] = Grid3DI
85
86 - def validate(self, data):
87 from Volume.Grid3D import Grid3DI 88 return isinstance(data, Grid3DI)
89
90 - def cast(self, data):
91 return False, data
92 93
94 -class Grid3DSIType(AnyType):
95 - def __init__(self):
96 AnyType.__init__(self) 97 self.data['name'] = 'Grid3DSI' 98 self.data['color'] = 'yellow' 99 self.data['shape'] = 'diamond' 100 from Volume.Grid3D import Grid3DSI 101 self.data['class'] = Grid3DSI
102
103 - def validate(self, data):
104 from Volume.Grid3D import Grid3DSI 105 return isinstance(data, Grid3DSI)
106
107 - def cast(self, data):
108 return False, data
109 110
111 -class Grid3DUIType(AnyType):
112 - def __init__(self):
113 AnyType.__init__(self) 114 self.data['name'] = 'Grid3DUI' 115 self.data['color'] = 'yellow' 116 self.data['shape'] = 'diamond' 117 from Volume.Grid3D import Grid3DUI 118 self.data['class'] = Grid3DUI
119
120 - def validate(self, data):
121 from Volume.Grid3D import Grid3DUI 122 return isinstance(data, Grid3DUI)
123
124 - def cast(self, data):
125 return False, data
126 127
128 -class Grid3DUSIType(AnyType):
129 - def __init__(self):
130 AnyType.__init__(self) 131 self.data['name'] = 'Grid3DUSI' 132 self.data['color'] = 'yellow' 133 self.data['shape'] = 'diamond' 134 from Volume.Grid3D import Grid3DUSI 135 self.data['class'] = Grid3DUSI
136
137 - def validate(self, data):
138 from Volume.Grid3D import Grid3DUSI 139 return isinstance(data, Grid3DUSI)
140
141 - def cast(self, data):
142 return False, data
143 144
145 -class Grid3DUCType(AnyType):
146 - def __init__(self):
147 AnyType.__init__(self) 148 self.data['name'] = 'Grid3DUC' 149 self.data['color'] = 'cyan' 150 self.data['shape'] = 'diamond' 151 from Volume.Grid3D import Grid3DUC 152 self.data['class'] = Grid3DUC
153
154 - def validate(self, data):
155 from Volume.Grid3D import Grid3DUC 156 return isinstance(data, Grid3DUC)
157
158 - def cast(self, data):
159 return False, data
160