VTK CoordMapper - radiasoft/sirepo GitHub Wiki
Provides a mapping from "lab" coordinates to vtk's coordinates via a SIREPO.GEOMETRY.Transform. Also wraps the creation of various Bundles so the transform gets applied automatically
| Name | Type | Description |
|---|---|---|
transform |
SIREPO.GEOMETRY.Transform | a Transform to translate between "lab" and "local" coordinate systems |
Source:
Creates a Bundle from an arbitrary source
| Name | Type | Description |
|---|---|---|
source |
* | a vtk source, reader, etc. |
transform |
SIREPO.GEOMETRY.Transform | a Transform to translate between "lab" and "local" coordinate systems |
actorProperties |
Object | a map of actor properties (e.g. 'color') to values |
Source:
buildBox(labSize, labCenter, actorProperties) â {BoxBundle}
Builds a box
| Name | Type | Description |
|---|---|---|
labSize |
Array.<number> | array of the x, y, z sides of the box in the lab |
labCenter |
Array.<number> | array of the x, y, z coords of the box's center in the lab |
actorProperties |
Object | a map of actor properties (e.g. 'color') to values |
Source:
Type
BoxBundle
buildLine(labP1, labP2, actorProperties) â {LineBundle}
Builds a line
| Name | Type | Description |
|---|---|---|
labP1 |
Array.<number> | 1st point |
labP2 |
Array.<number> | 2nd point |
actorProperties |
Object | a map of actor properties (e.g. 'color') to values |
Source:
Type
LineBundle
buildPlane(labOrigin, labP1, labP2, actorProperties) â {PlaneBundle}
Builds a plane
| Name | Type | Description |
|---|---|---|
labOrigin |
Array.<number> | origin |
labP1 |
Array.<number> | 1st point |
labP2 |
Array.<number> | 2nd point |
actorProperties |
Object | a map of actor properties (e.g. 'color') to values |
Source:
Type
LineBundle
buildSphere(labCenter, radius, actorProperties) â {SphereBundle}
Builds a sphere
| Name | Type | Description |
|---|---|---|
labCenter |
Array.<number> | center in the lab |
radius |
number | |
actorProperties |
Object | a map of actor properties (e.g. 'color') to values |
Source:
Type
SphereBundle
