1 |
|
|
2 |
import vtk |
import vtk |
3 |
|
from constants import * |
4 |
|
|
5 |
class Style: |
class Style: |
6 |
|
|
19 |
def setShadow(self): |
def setShadow(self): |
20 |
self.vtk_text_property.ShadowOn() |
self.vtk_text_property.ShadowOn() |
21 |
|
|
22 |
def setColor(self, colorMap): |
def setColor(self, color): |
23 |
self.vtk_text_property.SetColor(colorMap.getR(), colorMap.getG(), |
self.vtk_text_property.SetColor(color[0], color[1], |
24 |
colorMap.getB()) |
color[2]) |
25 |
|
|
26 |
def getTextProperty(self): |
def getStyle(self): |
27 |
return self.vtk_text_property |
return self.vtk_text_property |
28 |
|
|