VTK ViewPortObject - radiasoft/sirepo GitHub Wiki
A 2-dimensional representation of a 3-dimensional vtk object
| Name | Type | Description |
|---|---|---|
source |
* | a vtk source, reader, etc. |
renderer |
vtk.Rendering.Core.vtkRenderer | a vtk renderer |
Source:
vtk source
- *
Source:
vtk coordinate system
- vtk.Rendering.Core.vtkCoordinate
Source:
Calculates the rectangle surrounding the vtk object, projected into the viewport
Source:
Type
Rect
An external edge has all other corners on the same side of the line it defines
| Name | Type | Description |
|---|---|---|
dim |
string | dimension (x|y|z) |
Source:
Type
Array.<LineSegment>
points on the screen that have the largest and smallest values in each dimension
Source:
- mapping of dimension to the extrema, e.g. {x: [p1, p2, ...], ...}
Type
Object
Translates corners from vtk world to viewport
Source:
Type
Array.<Point>
Translates edges from vtk world to viewport
Source:
- mapping of dimension to the edges, e.g. {x: [LineSegment1, LineSegment2], ...}
Type
Object
Translates a 3-dimensional Point in the vttk world corresponding to the given 2-dimensional point in the viewport
| Name | Type | Description |
|---|---|---|
worldPoint |
Point |
Source:
Type
Point
Translates the given Points from vtk world to viewport
| Name | Type | Description |
|---|---|---|
coords |
Array.<Point> | 3d points |
Source:
- 2d points
Type
Array.<Point>
Gets the center of the vtk object
Source:
Type
Point
Gets the corners of the vtk object. Subclasses should override
Source:
Type
Array.<Point>
Gets the edges - that is, the lines connecting corners. Subclasses should override
Source:
Type
Object
