Parent Directory
|
Revision Log
drivers added
1 | from scene import Scene |
2 | from text import Text |
3 | from constants import * |
4 | from style import Style |
5 | |
6 | s = Scene(renderer = "vtk_online", x_size = 800, y_size = 600) |
7 | |
8 | # Set the style of the text. |
9 | st = Style() |
10 | st.setColor(BLUE) |
11 | st.setFontFamily("Arial") |
12 | st.boldOn() |
13 | st.shadowOn() |
14 | st.italicOn() |
15 | |
16 | # Create a 2D text. |
17 | t = Text(scene = s) |
18 | t.setText("VTK Rendering...") |
19 | t.setPosition(120, 300) |
20 | t.setStyle(st) |
21 | s.render() |
22 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |