/[escript]/trunk/pyvisi/py_src/common.pyc
ViewVC logotype

Contents of /trunk/pyvisi/py_src/common.pyc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (show annotations)
Tue Nov 7 23:42:31 2006 UTC (12 years, 6 months ago) by jongui
File MIME type: application/octet-stream
File size: 3380 byte(s)
drivers added
1
2 šČ6Ec@s9dZdkZdfd„ƒYZdfd„ƒYZdS(s(
3 @author: John Ngui
4 @author: Lutz Gross
5 NtCommoncBs\tZdZed„Zed„Zd„Zd„Zd„Zd„Z d„Z
6 d„Z RS( sH
7 Class that defines the common operations invoked by the components.
8 cCs4||_||_tiƒ|_tiƒ|_dS(sų
9 @type scene: L{Scene <scene.Scene>} object
10 @param scene: Scene in which components are to be added to
11 @type data_collector: L{DataCollector <datacollector.DataCollector>}
12 object
13 @param data_collector: Source of data for visualization
14 N(tscenetselftdata_collectortvtktvtkDataSetMappert
15 vtk_mappertvtkActort vtk_actor(RRR((t*/home/jongui/trunk/pyvisi/py_src/common.pyt__init__ s
16   cCsTtiƒ}|i|ƒ|ii|ƒ|djo|ii |i
17 ƒƒndS(sð
18 Set up the mapper.
19 @type component: String
20 @param component: Component to be mapped
21 @type lut: L{BlueToRed <colormap.BlueToRed>} or
22 L{RedToBlue <colormap.RedToBlue>} object
23 @param lut: Lookup table to be used by the mapper
24 N( RtvtkGeometryFiltert vtk_geometrytSetInputt componentRRtluttNonetSetLookupTabletgetLut(RRRR ((R tsetMapperInputs    cCs|ii|ƒdS(sj
25 Set the texture of the actor.
26 @type texture: vtkTexture
27 @param texture: Texture map of the image
28 N(RRt
29 SetTexturettexture(RR((R tsetActorTexture8scCs|ii|iƒdS(s
30 Set up the actor.
31 N(RRt SetMapperR(R((R t setActorInputAscCs|iiƒi|iƒdS(s$
32 Add the actor to the renderer.
33 N(RRt getRenderertAddActorR(R((R taddActorIscCs|iiƒi|ƒdS(s€
34 Set the opacity (transparency) of the actor.
35 @type opacity: Number
36 @param opacity: Opacity (transparency) of the actor
37 N(RRt GetPropertyt
38 SetOpacitytopacity(RR((R tsetActorOpacityPscCs,|iiƒi|d|d|dƒdS(s\
39 Set the color of the actor.
40 @type color: RGB list
41 @param color: Color of the actor
42 iiiN(RRRtSetColortcolor(RR!((R t setActorColorYscCstd|ƒdS(s
43 Set the representation of the actor.
44 @type representation: String
45 @param representation: Actor representation type (I{i.e. Wireframe})
46 s4self.vtk_actor.GetProperty().SetRepresentationTo%s()N(tevaltrepresentation(RR$((R tsetActorRepresentationcs( t__name__t
47 __module__t__doc__RR
48 RRRRRR"R%(((R Rs     
49 t ComponentcBstZRS(N(R&R'(((R R)ns(R(RRR)(RR)R((R t?s f

Properties

Name Value
svn:mime-type application/octet-stream

  ViewVC Help
Powered by ViewVC 1.1.26