Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild of automated python/R bindings #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Example:
```python
import dash
import dash_vtk
import dash_html_components as html
from dash import html

app = dash.Dash(__name__)

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Dash = "1b08a953-4be3-4667-9a23-3db579824955"

[compat]
julia = "1.2"
Dash = "0.1.3"
Dash = "0.1.3, 1.0"
1 change: 1 addition & 0 deletions R/vtkAlgorithm.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkAlgorithm <- function(children=NULL, id=NULL, port=NULL, state=NULL, vtkClass=NULL) {

props <- list(children=children, id=id, port=port, state=state, vtkClass=vtkClass)
Expand Down
1 change: 1 addition & 0 deletions R/vtkCalculator.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkCalculator <- function(children=NULL, id=NULL, arrays=NULL, formula=NULL, location=NULL, name=NULL, port=NULL) {

props <- list(children=children, id=id, arrays=arrays, formula=formula, location=location, name=name, port=port)
Expand Down
1 change: 1 addition & 0 deletions R/vtkCellData.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkCellData <- function(children=NULL) {

props <- list(children=children)
Expand Down
1 change: 1 addition & 0 deletions R/vtkDataArray.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkDataArray <- function(id=NULL, name=NULL, numberOfComponents=NULL, registration=NULL, type=NULL, values=NULL) {

props <- list(id=id, name=name, numberOfComponents=numberOfComponents, registration=registration, type=type, values=values)
Expand Down
1 change: 1 addition & 0 deletions R/vtkFieldData.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkFieldData <- function(children=NULL) {

props <- list(children=children)
Expand Down
7 changes: 4 additions & 3 deletions R/vtkGeometryRepresentation.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# AUTO GENERATED FILE - DO NOT EDIT

vtkGeometryRepresentation <- function(children=NULL, id=NULL, actor=NULL, colorDataRange=NULL, colorMapPreset=NULL, cubeAxesStyle=NULL, mapper=NULL, property=NULL, showCubeAxes=NULL) {
#' @export
vtkGeometryRepresentation <- function(children=NULL, id=NULL, actor=NULL, colorDataRange=NULL, colorMapPreset=NULL, cubeAxesStyle=NULL, mapper=NULL, property=NULL, scalarBarStyle=NULL, scalarBarTitle=NULL, showCubeAxes=NULL, showScalarBar=NULL) {

props <- list(children=children, id=id, actor=actor, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, cubeAxesStyle=cubeAxesStyle, mapper=mapper, property=property, showCubeAxes=showCubeAxes)
props <- list(children=children, id=id, actor=actor, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, cubeAxesStyle=cubeAxesStyle, mapper=mapper, property=property, scalarBarStyle=scalarBarStyle, scalarBarTitle=scalarBarTitle, showCubeAxes=showCubeAxes, showScalarBar=showScalarBar)
if (length(props) > 0) {
props <- props[!vapply(props, is.null, logical(1))]
}
component <- list(
props = props,
type = 'GeometryRepresentation',
namespace = 'dash_vtk',
propNames = c('children', 'id', 'actor', 'colorDataRange', 'colorMapPreset', 'cubeAxesStyle', 'mapper', 'property', 'showCubeAxes'),
propNames = c('children', 'id', 'actor', 'colorDataRange', 'colorMapPreset', 'cubeAxesStyle', 'mapper', 'property', 'scalarBarStyle', 'scalarBarTitle', 'showCubeAxes', 'showScalarBar'),
package = 'dashVtk'
)

Expand Down
1 change: 1 addition & 0 deletions R/vtkGlyphRepresentation.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkGlyphRepresentation <- function(children=NULL, id=NULL, actor=NULL, colorDataRange=NULL, colorMapPreset=NULL, mapper=NULL, property=NULL) {

props <- list(children=children, id=id, actor=actor, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, mapper=mapper, property=property)
Expand Down
1 change: 1 addition & 0 deletions R/vtkImageData.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkImageData <- function(children=NULL, id=NULL, dimensions=NULL, direction=NULL, origin=NULL, port=NULL, spacing=NULL) {

props <- list(children=children, id=id, dimensions=dimensions, direction=direction, origin=origin, port=port, spacing=spacing)
Expand Down
1 change: 1 addition & 0 deletions R/vtkMesh.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkMesh <- function(id=NULL, port=NULL, state=NULL) {

props <- list(id=id, port=port, state=state)
Expand Down
7 changes: 4 additions & 3 deletions R/vtkPointCloudRepresentation.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# AUTO GENERATED FILE - DO NOT EDIT

vtkPointCloudRepresentation <- function(colorDataRange=NULL, colorMapPreset=NULL, property=NULL, rgb=NULL, rgba=NULL, scalars=NULL, xyz=NULL) {
#' @export
vtkPointCloudRepresentation <- function(id=NULL, colorDataRange=NULL, colorMapPreset=NULL, cubeAxesStyle=NULL, property=NULL, rgb=NULL, rgba=NULL, scalarBarStyle=NULL, scalarBarTitle=NULL, scalars=NULL, showCubeAxes=NULL, showScalarBar=NULL, xyz=NULL) {

props <- list(colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, property=property, rgb=rgb, rgba=rgba, scalars=scalars, xyz=xyz)
props <- list(id=id, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, cubeAxesStyle=cubeAxesStyle, property=property, rgb=rgb, rgba=rgba, scalarBarStyle=scalarBarStyle, scalarBarTitle=scalarBarTitle, scalars=scalars, showCubeAxes=showCubeAxes, showScalarBar=showScalarBar, xyz=xyz)
if (length(props) > 0) {
props <- props[!vapply(props, is.null, logical(1))]
}
component <- list(
props = props,
type = 'PointCloudRepresentation',
namespace = 'dash_vtk',
propNames = c('colorDataRange', 'colorMapPreset', 'property', 'rgb', 'rgba', 'scalars', 'xyz'),
propNames = c('id', 'colorDataRange', 'colorMapPreset', 'cubeAxesStyle', 'property', 'rgb', 'rgba', 'scalarBarStyle', 'scalarBarTitle', 'scalars', 'showCubeAxes', 'showScalarBar', 'xyz'),
package = 'dashVtk'
)

Expand Down
1 change: 1 addition & 0 deletions R/vtkPointData.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkPointData <- function(children=NULL) {

props <- list(children=children)
Expand Down
1 change: 1 addition & 0 deletions R/vtkPolyData.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkPolyData <- function(children=NULL, id=NULL, connectivity=NULL, lines=NULL, points=NULL, polys=NULL, port=NULL, strips=NULL, verts=NULL) {

props <- list(children=children, id=id, connectivity=connectivity, lines=lines, points=points, polys=polys, port=port, strips=strips, verts=verts)
Expand Down
1 change: 1 addition & 0 deletions R/vtkReader.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkReader <- function(children=NULL, id=NULL, parseAsArrayBuffer=NULL, parseAsText=NULL, port=NULL, renderOnUpdate=NULL, resetCameraOnUpdate=NULL, url=NULL, vtkClass=NULL) {

props <- list(children=children, id=id, parseAsArrayBuffer=parseAsArrayBuffer, parseAsText=parseAsText, port=port, renderOnUpdate=renderOnUpdate, resetCameraOnUpdate=resetCameraOnUpdate, url=url, vtkClass=vtkClass)
Expand Down
1 change: 1 addition & 0 deletions R/vtkShareDataSet.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkShareDataSet <- function(children=NULL, id=NULL, name=NULL, port=NULL) {

props <- list(children=children, id=id, name=name, port=port)
Expand Down
1 change: 1 addition & 0 deletions R/vtkSliceRepresentation.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkSliceRepresentation <- function(children=NULL, id=NULL, actor=NULL, colorDataRange=NULL, colorMapPreset=NULL, iSlice=NULL, jSlice=NULL, kSlice=NULL, mapper=NULL, property=NULL, xSlice=NULL, ySlice=NULL, zSlice=NULL) {

props <- list(children=children, id=id, actor=actor, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, iSlice=iSlice, jSlice=jSlice, kSlice=kSlice, mapper=mapper, property=property, xSlice=xSlice, ySlice=ySlice, zSlice=zSlice)
Expand Down
7 changes: 4 additions & 3 deletions R/vtkView.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# AUTO GENERATED FILE - DO NOT EDIT

vtkView <- function(children=NULL, id=NULL, background=NULL, cameraParallelProjection=NULL, cameraPosition=NULL, cameraViewUp=NULL, className=NULL, clickInfo=NULL, hoverInfo=NULL, interactorSettings=NULL, pickingModes=NULL, style=NULL, triggerRender=NULL, triggerResetCamera=NULL) {
#' @export
vtkView <- function(children=NULL, id=NULL, background=NULL, cameraParallelProjection=NULL, cameraPosition=NULL, cameraViewUp=NULL, className=NULL, clickInfo=NULL, hoverInfo=NULL, interactorSettings=NULL, pickingModes=NULL, showOrientationAxes=NULL, style=NULL, triggerRender=NULL, triggerResetCamera=NULL) {

props <- list(children=children, id=id, background=background, cameraParallelProjection=cameraParallelProjection, cameraPosition=cameraPosition, cameraViewUp=cameraViewUp, className=className, clickInfo=clickInfo, hoverInfo=hoverInfo, interactorSettings=interactorSettings, pickingModes=pickingModes, style=style, triggerRender=triggerRender, triggerResetCamera=triggerResetCamera)
props <- list(children=children, id=id, background=background, cameraParallelProjection=cameraParallelProjection, cameraPosition=cameraPosition, cameraViewUp=cameraViewUp, className=className, clickInfo=clickInfo, hoverInfo=hoverInfo, interactorSettings=interactorSettings, pickingModes=pickingModes, showOrientationAxes=showOrientationAxes, style=style, triggerRender=triggerRender, triggerResetCamera=triggerResetCamera)
if (length(props) > 0) {
props <- props[!vapply(props, is.null, logical(1))]
}
component <- list(
props = props,
type = 'View',
namespace = 'dash_vtk',
propNames = c('children', 'id', 'background', 'cameraParallelProjection', 'cameraPosition', 'cameraViewUp', 'className', 'clickInfo', 'hoverInfo', 'interactorSettings', 'pickingModes', 'style', 'triggerRender', 'triggerResetCamera'),
propNames = c('children', 'id', 'background', 'cameraParallelProjection', 'cameraPosition', 'cameraViewUp', 'className', 'clickInfo', 'hoverInfo', 'interactorSettings', 'pickingModes', 'showOrientationAxes', 'style', 'triggerRender', 'triggerResetCamera'),
package = 'dashVtk'
)

Expand Down
1 change: 1 addition & 0 deletions R/vtkVolume.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkVolume <- function(id=NULL, port=NULL, state=NULL) {

props <- list(id=id, port=port, state=state)
Expand Down
1 change: 1 addition & 0 deletions R/vtkVolumeController.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkVolumeController <- function(id=NULL, rescaleColorMap=NULL, size=NULL) {

props <- list(id=id, rescaleColorMap=rescaleColorMap, size=size)
Expand Down
1 change: 1 addition & 0 deletions R/vtkVolumeDataRepresentation.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkVolumeDataRepresentation <- function(id=NULL, colorDataRange=NULL, colorMapPreset=NULL, controllerSize=NULL, dimensions=NULL, mapper=NULL, origin=NULL, property=NULL, rescaleColorMap=NULL, rgb=NULL, rgba=NULL, scalars=NULL, scalarsType=NULL, spacing=NULL, volume=NULL, volumeController=NULL) {

props <- list(id=id, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, controllerSize=controllerSize, dimensions=dimensions, mapper=mapper, origin=origin, property=property, rescaleColorMap=rescaleColorMap, rgb=rgb, rgba=rgba, scalars=scalars, scalarsType=scalarsType, spacing=spacing, volume=volume, volumeController=volumeController)
Expand Down
1 change: 1 addition & 0 deletions R/vtkVolumeRepresentation.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# AUTO GENERATED FILE - DO NOT EDIT

#' @export
vtkVolumeRepresentation <- function(children=NULL, id=NULL, colorDataRange=NULL, colorMapPreset=NULL, mapper=NULL, property=NULL, volume=NULL) {

props <- list(children=children, id=id, colorDataRange=colorDataRange, colorMapPreset=colorMapPreset, mapper=mapper, property=property, volume=volume)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Then, create a file called `app.py` and add the following example:
```python
import dash
import dash_vtk
import dash_html_components as html
from dash import html

app = dash.Dash(__name__)

Expand Down
13 changes: 6 additions & 7 deletions dash_vtk/Algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,19 @@ class Algorithm(Component):

- vtkClass (string; default 'vtkConeSource'):
vtkClass name."""
_children_props = []
_base_nodes = ['children']
_namespace = 'dash_vtk'
_type = 'Algorithm'
@_explicitize_args
def __init__(self, children=None, id=Component.UNDEFINED, port=Component.UNDEFINED, vtkClass=Component.UNDEFINED, state=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'port', 'state', 'vtkClass']
self._type = 'Algorithm'
self._namespace = 'dash_vtk'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'port', 'state', 'vtkClass']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')

super(Algorithm, self).__init__(children=children, **args)
13 changes: 6 additions & 7 deletions dash_vtk/Calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,19 @@ class Calculator(Component):

- port (number; default 0):
downstream connection port."""
_children_props = []
_base_nodes = ['children']
_namespace = 'dash_vtk'
_type = 'Calculator'
@_explicitize_args
def __init__(self, children=None, id=Component.UNDEFINED, port=Component.UNDEFINED, name=Component.UNDEFINED, location=Component.UNDEFINED, arrays=Component.UNDEFINED, formula=Component.UNDEFINED, **kwargs):
self._prop_names = ['children', 'id', 'arrays', 'location', 'name', 'port']
self._type = 'Calculator'
self._namespace = 'dash_vtk'
self._valid_wildcard_attributes = []
self.available_properties = ['children', 'id', 'arrays', 'location', 'name', 'port']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')

super(Calculator, self).__init__(children=children, **args)
13 changes: 6 additions & 7 deletions dash_vtk/CellData.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ class CellData(Component):
Keyword arguments:

- 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)"""
_children_props = []
_base_nodes = ['children']
_namespace = 'dash_vtk'
_type = 'CellData'
@_explicitize_args
def __init__(self, children=None, **kwargs):
self._prop_names = ['children']
self._type = 'CellData'
self._namespace = 'dash_vtk'
self._valid_wildcard_attributes = []
self.available_properties = ['children']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')

super(CellData, self).__init__(children=children, **args)
15 changes: 7 additions & 8 deletions dash_vtk/DataArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,19 @@ class DataArray(Component):

- values (list of numbers; optional):
Actual values to use inside our array."""
_children_props = []
_base_nodes = ['children']
_namespace = 'dash_vtk'
_type = 'DataArray'
@_explicitize_args
def __init__(self, id=Component.UNDEFINED, type=Component.UNDEFINED, name=Component.UNDEFINED, values=Component.UNDEFINED, numberOfComponents=Component.UNDEFINED, registration=Component.UNDEFINED, **kwargs):
self._prop_names = ['id', 'name', 'numberOfComponents', 'registration', 'type', 'values']
self._type = 'DataArray'
self._namespace = 'dash_vtk'
self._valid_wildcard_attributes = []
self.available_properties = ['id', 'name', 'numberOfComponents', 'registration', 'type', 'values']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args}

super(DataArray, self).__init__(**args)
13 changes: 6 additions & 7 deletions dash_vtk/FieldData.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ class FieldData(Component):
Keyword arguments:

- 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)"""
_children_props = []
_base_nodes = ['children']
_namespace = 'dash_vtk'
_type = 'FieldData'
@_explicitize_args
def __init__(self, children=None, **kwargs):
self._prop_names = ['children']
self._type = 'FieldData'
self._namespace = 'dash_vtk'
self._valid_wildcard_attributes = []
self.available_properties = ['children']
self.available_wildcard_properties = []
_explicit_args = kwargs.pop('_explicit_args')
_locals = locals()
_locals.update(kwargs) # For wildcard attrs
_locals.update(kwargs) # For wildcard attrs and excess named props
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
for k in []:
if k not in args:
raise TypeError(
'Required argument `' + k + '` was not specified.')

super(FieldData, self).__init__(children=children, **args)
Loading