Skip to content

Commit 4382567

Browse files
committed
Updated generated files
1 parent 95f1324 commit 4382567

25 files changed

+322
-47
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export(vtkCellData)
66
export(vtkDataArray)
77
export(vtkFieldData)
88
export(vtkGeometryRepresentation)
9+
export(vtkGlyphRepresentation)
910
export(vtkImageData)
1011
export(vtkMesh)
1112
export(vtkPointCloudRepresentation)

R/vtkGlyphRepresentation.R

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# AUTO GENERATED FILE - DO NOT EDIT
2+
3+
vtkGlyphRepresentation <- function(children=NULL, id=NULL, actor=NULL, mapper=NULL, property=NULL, colorMapPreset=NULL, colorDataRange=NULL) {
4+
5+
props <- list(children=children, id=id, actor=actor, mapper=mapper, property=property, colorMapPreset=colorMapPreset, colorDataRange=colorDataRange)
6+
if (length(props) > 0) {
7+
props <- props[!vapply(props, is.null, logical(1))]
8+
}
9+
component <- list(
10+
props = props,
11+
type = 'GlyphRepresentation',
12+
namespace = 'dash_vtk',
13+
propNames = c('children', 'id', 'actor', 'mapper', 'property', 'colorMapPreset', 'colorDataRange'),
14+
package = 'dashVtk'
15+
)
16+
17+
structure(component, class = c('dash_component', 'list'))
18+
}

R/vtkImageData.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# AUTO GENERATED FILE - DO NOT EDIT
22

3-
vtkImageData <- function(children=NULL, id=NULL, port=NULL, dimensions=NULL, spacing=NULL, origin=NULL) {
3+
vtkImageData <- function(children=NULL, id=NULL, port=NULL, dimensions=NULL, spacing=NULL, origin=NULL, direction=NULL) {
44

5-
props <- list(children=children, id=id, port=port, dimensions=dimensions, spacing=spacing, origin=origin)
5+
props <- list(children=children, id=id, port=port, dimensions=dimensions, spacing=spacing, origin=origin, direction=direction)
66
if (length(props) > 0) {
77
props <- props[!vapply(props, is.null, logical(1))]
88
}
99
component <- list(
1010
props = props,
1111
type = 'ImageData',
1212
namespace = 'dash_vtk',
13-
propNames = c('children', 'id', 'port', 'dimensions', 'spacing', 'origin'),
13+
propNames = c('children', 'id', 'port', 'dimensions', 'spacing', 'origin', 'direction'),
1414
package = 'dashVtk'
1515
)
1616

dash_vtk/GeometryRepresentation.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ class GeometryRepresentation(Component):
77
"""A GeometryRepresentation component.
88
GeometryRepresentation is responsible to convert a vtkPolyData into rendering
99
It takes the following set of properties:
10-
- colorBy: ['POINTS', ''],
11-
- pointSize: 1,
12-
- color: [1,1,1],
10+
- actor: Properties to assign to the vtkActor
11+
- mapper: Properties to assign to the vtkMapper
12+
- property: Properties to assign to the vtkProperty (actor.getProperty())
13+
- colorMapPreset: Name of the preset to use for controlling the color mapping
14+
- colorDataRange: Range to use for the color scale
1315
1416
Keyword arguments:
1517
- children (list of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)

dash_vtk/GlyphRepresentation.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# AUTO GENERATED FILE - DO NOT EDIT
2+
3+
from dash.development.base_component import Component, _explicitize_args
4+
5+
6+
class GlyphRepresentation(Component):
7+
"""A GlyphRepresentation component.
8+
GlyphRepresentation using a source on port=1 as Glyph and the points of the source on port=0 to position the given glyphs
9+
It takes the following set of properties:
10+
- actor: Properties to assign to the vtkActor
11+
- mapper: Properties to assign to the vtkGlyph3DMapper
12+
- property: Properties to assign to the vtkProperty (actor.getProperty())
13+
- colorMapPreset: Name of the preset to use for controlling the color mapping
14+
- colorDataRange: Range to use for the color scale
15+
16+
Keyword arguments:
17+
- children (list of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)
18+
- id (string; optional): The ID used to identify this component.
19+
- actor (dict; optional): Properties to set to the actor
20+
- mapper (dict; optional): Properties to set to the vtkGlyph3DMapper
21+
- property (dict; optional): Properties to set to the actor.property
22+
- colorMapPreset (string; default 'erdc_rainbow_bright'): Preset name for the lookup table color map
23+
- colorDataRange (list of numbers; default [0, 1]): Data range use for the colorMap"""
24+
@_explicitize_args
25+
def __init__(self, children=None, id=Component.UNDEFINED, actor=Component.UNDEFINED, mapper=Component.UNDEFINED, property=Component.UNDEFINED, colorMapPreset=Component.UNDEFINED, colorDataRange=Component.UNDEFINED, **kwargs):
26+
self._prop_names = ['children', 'id', 'actor', 'mapper', 'property', 'colorMapPreset', 'colorDataRange']
27+
self._type = 'GlyphRepresentation'
28+
self._namespace = 'dash_vtk'
29+
self._valid_wildcard_attributes = []
30+
self.available_properties = ['children', 'id', 'actor', 'mapper', 'property', 'colorMapPreset', 'colorDataRange']
31+
self.available_wildcard_properties = []
32+
33+
_explicit_args = kwargs.pop('_explicit_args')
34+
_locals = locals()
35+
_locals.update(kwargs) # For wildcard attrs
36+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
37+
38+
for k in []:
39+
if k not in args:
40+
raise TypeError(
41+
'Required argument `' + k + '` was not specified.')
42+
super(GlyphRepresentation, self).__init__(children=children, **args)

dash_vtk/ImageData.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,31 @@ class ImageData(Component):
1010
- dimensions: [nx, ny, nz],
1111
- origin: [0, 0, 0]
1212
- spacing: [1, 1, 1]
13+
- direction: [
14+
1, 0, 0,
15+
0, 1, 0,
16+
0, 0, 1
17+
]
1318
1419
Keyword arguments:
1520
- children (list of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)
1621
- id (string; optional): The ID used to identify this component.
1722
- port (number; default 0): downstream connection port
1823
- dimensions (list of numbers; default [1, 1, 1]): Number of points along x, y, z
1924
- spacing (list of numbers; default [1, 1, 1]): Spacing along x, y, z between points in world coordinates
20-
- origin (list of numbers; default [0, 0, 0]): World coordinate of the lower left corner of your vtkImageData (i=0, j=0, k=0)."""
25+
- origin (list of numbers; default [0, 0, 0]): World coordinate of the lower left corner of your vtkImageData (i=0, j=0, k=0).
26+
- direction (list of numbers; default [
27+
1, 0, 0,
28+
0, 1, 0,
29+
0, 0, 1,
30+
]): 3x3 matrix use to orient the image data"""
2131
@_explicitize_args
22-
def __init__(self, children=None, id=Component.UNDEFINED, port=Component.UNDEFINED, dimensions=Component.UNDEFINED, spacing=Component.UNDEFINED, origin=Component.UNDEFINED, **kwargs):
23-
self._prop_names = ['children', 'id', 'port', 'dimensions', 'spacing', 'origin']
32+
def __init__(self, children=None, id=Component.UNDEFINED, port=Component.UNDEFINED, dimensions=Component.UNDEFINED, spacing=Component.UNDEFINED, origin=Component.UNDEFINED, direction=Component.UNDEFINED, **kwargs):
33+
self._prop_names = ['children', 'id', 'port', 'dimensions', 'spacing', 'origin', 'direction']
2434
self._type = 'ImageData'
2535
self._namespace = 'dash_vtk'
2636
self._valid_wildcard_attributes = []
27-
self.available_properties = ['children', 'id', 'port', 'dimensions', 'spacing', 'origin']
37+
self.available_properties = ['children', 'id', 'port', 'dimensions', 'spacing', 'origin', 'direction']
2838
self.available_wildcard_properties = []
2939

3040
_explicit_args = kwargs.pop('_explicit_args')

dash_vtk/VolumeDataRepresentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class VolumeDataRepresentation(Component):
77
"""A VolumeDataRepresentation component.
8-
VolumneDataRepresentation expect the following set of properties
8+
VolumeDataRepresentation expect the following set of properties
99
- dimensions: [10, 20, 5]
1010
- spacing: [1, 1, 1]
1111
- origin: [0, 0, 0]

dash_vtk/_imports_.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from .DataArray import DataArray
55
from .FieldData import FieldData
66
from .GeometryRepresentation import GeometryRepresentation
7+
from .GlyphRepresentation import GlyphRepresentation
78
from .ImageData import ImageData
89
from .Mesh import Mesh
910
from .PointCloudRepresentation import PointCloudRepresentation
@@ -25,6 +26,7 @@
2526
"DataArray",
2627
"FieldData",
2728
"GeometryRepresentation",
29+
"GlyphRepresentation",
2830
"ImageData",
2931
"Mesh",
3032
"PointCloudRepresentation",

dash_vtk/dash_vtk.min.js

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_vtk/dash_vtk.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)