57 |
""" |
""" |
58 |
|
|
59 |
# NOTE: Must be used before actor.GetProperty().SetColor() |
# NOTE: Must be used before actor.GetProperty().SetColor() |
60 |
# in order for the change of color of the rendered objects to take |
# in order for the change of color to take effect. |
|
# effect. |
|
61 |
self.__mapper.ScalarVisibilityOff() |
self.__mapper.ScalarVisibilityOff() |
62 |
|
|
63 |
# NOTE: Must be used after mapper.ScalarVisibilityOff() |
# NOTE: Must be used after mapper.ScalarVisibilityOff() |
64 |
# in order for the change of color of the rendered objects to take |
# in order for the change of color to take effect. |
|
# effect. |
|
65 |
self.__vtk_actor3D.GetProperty().SetColor(color) |
self.__vtk_actor3D.GetProperty().SetColor(color) |
66 |
|
|
67 |
def setRepresentationToWireframe(self): |
def setRepresentationToWireframe(self): |
104 |
""" |
""" |
105 |
Initialise the 2D actor. |
Initialise the 2D actor. |
106 |
|
|
107 |
@type mapper: vtkMapper2D, etc |
@type mapper: vtkMapper2D |
108 |
@param mapper: Mapped data |
@param mapper: Mapped data |
109 |
""" |
""" |
110 |
|
|
122 |
def setPosition(self, position): |
def setPosition(self, position): |
123 |
""" |
""" |
124 |
Set the position of the 2D actor. Default position is the lower left |
Set the position of the 2D actor. Default position is the lower left |
125 |
hand corner of the window. |
hand corner of the window / viewport. |
126 |
|
|
127 |
@type position: L{LocalPosition <position.LocalPosition>} object |
@type position: L{LocalPosition <position.LocalPosition>} object |
128 |
@param position: Position of the 2D actor |
@param position: Position of the 2D actor |