VTK Actor Bundles - radiasoft/sirepo GitHub Wiki
A convenient object bundling a source, actor, and mapper, which almost always appear together anyway
| 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:
the actor
- vtk.Rendering.Core.vtkActor
Source:
properties of the actor
- vtk.Rendering.Core.Property
Source:
a mapper
- vtk.Rendering.Core.vtkMapper
Source:
the transform
- SIREPO.GEOMETRY.Transform
Source:
actorBoundingBox(padPct) â {BoxBundle}
Builds a wireframe box around this actor, with optional padding
| Name | Type | Default | Description |
|---|---|---|---|
padPct |
number | 0 | additional padding as a percentage of the size |
Source:
Type
BoxBundle
Gets the value of the actor property with the given name
| Name | Type | Description |
|---|---|---|
name |
string | the name of the property |
Source:
Type
*
Sets the actor property with the given name to the given value
| Name | Type | Description |
|---|---|---|
name |
string | the name of the property |
value |
* | the value to set |
Source:
Convenience method for setting the color. Uses colorToFloat to convert
| Name | Type | Description |
|---|---|---|
color |
string | Array.<number> |
Source:
Sets the mapper for this bundle as well as the actor
| Name | Type | Description |
|---|---|---|
mapper |
vtk.Rendering.Core.vtkMapper |
Source:
Sets the source for this bundle. Also sets the mapper's input connection to the source's output
| Name | Type | Description |
|---|---|---|
source |
* | vtk source |
Source:
A bundle for a cube source
| 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 |
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:
Sets the center of the box
| Name | Type | Description |
|---|---|---|
labCenter |
Array.<number> | array of the x, y, z coords of the box's center in the lab |
Source:
Sets the size of the box
| Name | Type | Description |
|---|---|---|
labSize |
Array.<number> | array of the x, y, z lengths of the box |
Source:
A bundle for a line source defined by two points
| Name | Type | Description |
|---|---|---|
labP1 |
Array.<number> | 1st point |
labP2 |
Array.<number> | 2nd point |
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:
A bundle for a plane source defined by three points
| Name | Type | Description |
|---|---|---|
labOrigin |
Array.<number> | origin |
labP1 |
Array.<number> | 1st point |
labP2 |
Array.<number> | 2nd point |
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:
Set the defining points of the plane
| Name | Type | Description |
|---|---|---|
labOrigin |
Array.<number> | origin |
labP1 |
Array.<number> | 1st point |
labP2 |
Array.<number> | 2nd point |
Source:
Set the resolution in each direction
| Name | Type | Default | Description |
|---|---|---|---|
xRes |
number | 1 | resolution (number of divisions) in the direction of the origin to p1 |
yRes |
number | 1 | resolution (number of divisions) in the direction of the origin to p2 |
Source:
A bundle for a sphere source
| Name | Type | Default | Description |
|---|---|---|---|
labCenter |
Array.<number> | center in the lab | |
radius |
number | 1 | |
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:
Sets the center of the sphere
| Name | Type | Description |
|---|---|---|
labCenter |
Array.<number> | center in the lab |
Source:
Sets the radius of the sphere
| Name | Type | Description |
|---|---|---|
radius |
number |
Source:
Sets the resolution in each angular direction
| Name | Type | Default | Description |
|---|---|---|---|
thetaRes |
number | 16 | number of latitude divisions |
phiRes |
number | 16 | number of longitude divisions |
Source:
