9 |
Class that defines a 3D actor. |
Class that defines a 3D actor. |
10 |
""" |
""" |
11 |
|
|
12 |
def __init__(self, mapper): |
def __init__(self): |
13 |
""" |
""" |
14 |
Initialise the 3D actor. |
Initialise the 3D actor. |
15 |
|
""" |
16 |
|
|
17 |
|
self.__vtk_actor3D = vtk.vtkActor() |
18 |
|
|
19 |
|
def _setupActor3D(self, mapper): |
20 |
|
""" |
21 |
|
Setup the 3D actor. |
22 |
|
|
23 |
@type mapper: vtkDataSetMapper |
@type mapper: vtkDataSetMapper |
24 |
@param mapper: Mapped data |
@param mapper: Mapped data |
25 |
""" |
""" |
26 |
|
|
27 |
self.__mapper = mapper |
self.__mapper = mapper |
|
self.__vtk_actor3D = vtk.vtkActor() |
|
28 |
self.__setMapper() |
self.__setMapper() |
29 |
|
|
30 |
def __setMapper(self): |
def __setMapper(self): |
31 |
""" |
""" |
32 |
Set the mapper of the 3D actor. |
Set the mapper of the 3D actor. |
106 |
Class that defines a 2D actor. |
Class that defines a 2D actor. |
107 |
""" |
""" |
108 |
|
|
109 |
def __init__(self, mapper): |
def __init__(self): |
110 |
""" |
""" |
111 |
Initialise the 2D actor. |
Initialise the 2D actor. |
112 |
|
""" |
113 |
|
|
114 |
|
self._vtk_actor2D = vtk.vtkActor2D() |
115 |
|
|
116 |
|
def _setupActor2D(self, mapper): |
117 |
|
""" |
118 |
|
Setup the 2D actor. |
119 |
|
|
120 |
@type mapper: vtkMapper2D |
@type mapper: vtkMapper2D |
121 |
@param mapper: Mapped data |
@param mapper: Mapped data |
122 |
""" |
""" |
123 |
|
|
124 |
self.__mapper = mapper |
self.__mapper = mapper |
|
self._vtk_actor2D = vtk.vtkActor2D() |
|
125 |
self.__setMapper() |
self.__setMapper() |
126 |
|
|
127 |
def __setMapper(self): |
def __setMapper(self): |