Last change
on this file since 4354 was
4354,
checked in by jack, 18 years ago
|
Started work on the trait-oriented restructure of the visualiser.
|
File size:
662 bytes
|
Line | |
---|
1 | from enthought.traits.api import Callable, Float, HasTraits, Instance, Range, Trait, true, Tuple |
---|
2 | from vtk import vtkActor |
---|
3 | |
---|
4 | class Feature(HasTraits): |
---|
5 | colour = Trait((0.5, 0.5, 0.5), |
---|
6 | Tuple(Callable, |
---|
7 | Float, |
---|
8 | Float), |
---|
9 | Tuple(Range(0.0, 1.0), |
---|
10 | Range(0.0, 1.0), |
---|
11 | Range(0.0, 1.0))) |
---|
12 | opacity = Range(0.0, 1.0, 1.0) |
---|
13 | actor = Instance(vtkActor, ()) |
---|
14 | |
---|
15 | class HeightFeature(Feature): |
---|
16 | z_scale = Range(0.0, None) |
---|
17 | offset = Float |
---|
18 | dynamic = true |
---|
19 | |
---|
20 | class PolygonFeature(Feature): |
---|
21 | vertices = List(Tuple(Float, Float, Float)) |
---|
Note: See
TracBrowser
for help on using the repository browser.