DashVtk.vtk_algorithm
— Methodvtk_algorithm(;kwargs...)
vtk_algorithm(children::Any;kwargs...)
vtk_algorithm(children_maker::Function;kwargs...)
An Algorithm component. Algorithm is exposing a source or filter to a downstream filter It takes the following set of properties:
- vtkClass: vtkClassName
- state: {}
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.port
(Real; optional): downstream connection portstate
(Dict; optional): set of property values for vtkClassvtkClass
(String; optional): vtkClass name
DashVtk.vtk_calculator
— Methodvtk_calculator(;kwargs...)
vtk_calculator(children::Any;kwargs...)
vtk_calculator(children_maker::Function;kwargs...)
A Calculator component. Calculator is exposing a source or filter to a downstream filter It takes the following set of properties:
- name: 'scalars' // name of the generated field
- location: 'POINT' // POINT/CELL
- arrays: [] // Name of array to have access in formula
- formula: fn
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.arrays
(Array of Strings; optional): List of fields you want available for your formulalocation
(String; optional): Field location [POINT, CELL, COORDINATE, SCALARS, ]name
(String; optional): Field nameport
(Real; optional): downstream connection port
DashVtk.vtk_celldata
— Methodvtk_celldata(;kwargs...)
vtk_celldata(children::Any;kwargs...)
vtk_celldata(children_maker::Function;kwargs...)
A CellData component. CellData is exposing a vtkCellData to a downstream element Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)
DashVtk.vtk_dataarray
— Methodvtk_dataarray(;kwargs...)
A DataArray component. DataArray is creating a vtkDataArray for the container fields It takes the following set of properties:
- type: 'Float32Array', 'Float64Array', 'Uint16Array', ...
- values: [number, number, ...]
- numberOfComponents: 1,
- registration: 'addArray', 'setScalars', ...
Keyword arguments:
id
(String; optional): The ID used to identify this component.name
(String; optional): Field namenumberOfComponents
(Real; optional): Number of components / Tuple sizeregistration
(String; optional): Name of the method to call on the fieldData (addArray, setScalars, setVectors...)type
(String; optional): Typed array namevalues
(Array of Reals; optional): Actual values to use inside our array
DashVtk.vtk_fielddata
— Methodvtk_fielddata(;kwargs...)
vtk_fielddata(children::Any;kwargs...)
vtk_fielddata(children_maker::Function;kwargs...)
A FieldData component. FieldData is exposing a FieldData to a downstream element Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)
DashVtk.vtk_geometryrepresentation
— Methodvtk_geometryrepresentation(;kwargs...)
vtk_geometryrepresentation(children::Any;kwargs...)
vtk_geometryrepresentation(children_maker::Function;kwargs...)
A GeometryRepresentation component. GeometryRepresentation is responsible to convert a vtkPolyData into rendering It takes the following set of properties:
- actor: Properties to assign to the vtkActor
- mapper: Properties to assign to the vtkMapper
- property: Properties to assign to the vtkProperty (actor.getProperty())
- colorMapPreset: Name of the preset to use for controlling the color mapping
- colorDataRange: Range to use for the color scale
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.actor
(Dict; optional): Properties to set to the actorcolorDataRange
(Array of Reals; optional): Data range use for the colorMapcolorMapPreset
(String; optional): Preset name for the lookup table color mapcubeAxesStyle
(Dict; optional): Configure cube Axes style by overriding the set of properties defined
https://github.com/Kitware/vtk-js/blob/HEAD/Sources/Rendering/Core/CubeAxesActor/index.js#L703-L719
mapper
(Dict; optional): Properties to set to the actorproperty
(Dict; optional): Properties to set to the actor.propertyshowCubeAxes
(Bool; optional): Show/Hide Cube Axes for the given representation
DashVtk.vtk_glyphrepresentation
— Methodvtk_glyphrepresentation(;kwargs...)
vtk_glyphrepresentation(children::Any;kwargs...)
vtk_glyphrepresentation(children_maker::Function;kwargs...)
A GlyphRepresentation component. GlyphRepresentation using a source on port=1 as Glyph and the points of the source on port=0 to position the given glyphs It takes the following set of properties:
- actor: Properties to assign to the vtkActor
- mapper: Properties to assign to the vtkGlyph3DMapper
- property: Properties to assign to the vtkProperty (actor.getProperty())
- colorMapPreset: Name of the preset to use for controlling the color mapping
- colorDataRange: Range to use for the color scale
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.actor
(Dict; optional): Properties to set to the actorcolorDataRange
(Array of Reals; optional): Data range use for the colorMapcolorMapPreset
(String; optional): Preset name for the lookup table color mapmapper
(Dict; optional): Properties to set to the vtkGlyph3DMapperproperty
(Dict; optional): Properties to set to the actor.property
DashVtk.vtk_imagedata
— Methodvtk_imagedata(;kwargs...)
vtk_imagedata(children::Any;kwargs...)
vtk_imagedata(children_maker::Function;kwargs...)
An ImageData component. ImageData is exposing a vtkImageData to a downstream filter It takes the following set of properties:
- dimensions: [nx, ny, nz],
- origin: [0, 0, 0]
- spacing: [1, 1, 1]
- direction: [ 1, 0, 0, 0, 1, 0, 0, 0, 1 ]
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.dimensions
(Array of Reals; optional): Number of points along x, y, zdirection
(Array of Reals; optional): 3x3 matrix use to orient the image dataorigin
(Array of Reals; optional): World coordinate of the lower left corner of your vtkImageData (i=0, j=0, k=0).port
(Real; optional): downstream connection portspacing
(Array of Reals; optional): Spacing along x, y, z between points in world coordinates
DashVtk.vtk_mesh
— Methodvtk_mesh(;kwargs...)
A Mesh component. Mesh is exposing a vtkPolyData to a downstream filter It takes the following set of properties:
- state: { mesh: { ...polydata-props }, field: { ...dataArray } }
Keyword arguments:
id
(String; optional): The ID used to identify this component.port
(Real; optional): downstream connection portstate
(Dict; optional): State of the mesh
DashVtk.vtk_pointcloudrepresentation
— Methodvtk_pointcloudrepresentation(;kwargs...)
A PointCloudRepresentation component. PointCloudRepresentation expect the following set of properties
- xyz: [x0, y0, z0, x1, ..., zn]
- rgb: [...]
- rgba: [...]
- scalars: [...]
Keyword arguments:
colorDataRange
(Array of Reals; optional): Data range use for the colorMapcolorMapPreset
(String; optional): Preset name for the lookup table color mapproperty
(Dict; optional): Properties to set to the actor.propertyrgb
(Array of Reals; optional): Use RGB values to attach to the points/vertexrgba
(Array of Reals; optional): Use RGBA values to attach to the points/vertexscalars
(Array of Reals; optional): Field values to attach to the pointsxyz
(Array of Reals; optional): Points coordinates
DashVtk.vtk_pointdata
— Methodvtk_pointdata(;kwargs...)
vtk_pointdata(children::Any;kwargs...)
vtk_pointdata(children_maker::Function;kwargs...)
A PointData component. PointData is exposing a vtkPointData to a downstream element Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)
DashVtk.vtk_polydata
— Methodvtk_polydata(;kwargs...)
vtk_polydata(children::Any;kwargs...)
vtk_polydata(children_maker::Function;kwargs...)
A PolyData component. PolyData is exposing a vtkPolyData to a downstream filter It takes the following set of properties:
- points: [x, y, z, x, y, z, ...],
- verts: [cellSize, pointId0, pointId1, ..., cellSize, pointId0, ...]
- lines: [cellSize, pointId0, pointId1, ..., cellSize, pointId0, ...]
- polys: [cellSize, pointId0, pointId1, ..., cellSize, pointId0, ...]
- strips: [cellSize, pointId0, pointId1, ..., cellSize, pointId0, ...]
Cell connectivity helper property:
- connectivity: 'manual', // [manual, points, triangles, strips]
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.connectivity
(String; optional): Type of connectivitymanual
or implicit such aspoints
,triangles
,strips
lines
(Array of Reals; optional): lines cellspoints
(Array of Reals; optional): xyz coordinatespolys
(Array of Reals; optional): polys cellsport
(Real; optional): downstream connection portstrips
(Array of Reals; optional): strips cellsverts
(Array of Reals; optional): verts cells
DashVtk.vtk_reader
— Methodvtk_reader(;kwargs...)
vtk_reader(children::Any;kwargs...)
vtk_reader(children_maker::Function;kwargs...)
A Reader component. Reader is exposing a reader to a downstream filter It takes the following set of properties:
- vtkClass: vtk.js reader class name
- url: string
- parseAsText: string
- parseAsArrayBuffer: base64String
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.parseAsArrayBuffer
(String; optional): set binary data to process from base64 stringparseAsText
(String; optional): set text data to processport
(Real; optional): downstream connection portrenderOnUpdate
(Bool; optional): Automatically render on data loadedresetCameraOnUpdate
(Bool; optional): Automatically reset camera on data loadedurl
(String; optional): set of url to fetch data fromvtkClass
(String; optional): vtkClass name
DashVtk.vtk_sharedataset
— Methodvtk_sharedataset(;kwargs...)
vtk_sharedataset(children::Any;kwargs...)
vtk_sharedataset(children_maker::Function;kwargs...)
A ShareDataSet component. ShareDataSet capture a dataset or a source and allow it to use it in another pipeline or representation. Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.name
(String; optional): Unique dataset name to cross referenceport
(Real; optional): downstream connection port
DashVtk.vtk_slicerepresentation
— Methodvtk_slicerepresentation(;kwargs...)
vtk_slicerepresentation(children::Any;kwargs...)
vtk_slicerepresentation(children_maker::Function;kwargs...)
A SliceRepresentation component. SliceRepresentation is responsible to convert a vtkPolyData into rendering It takes the following set of properties:
- colorBy: ['POINTS', ''],
- pointSize: 1,
- color: [1,1,1],
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.actor
(Dict; optional): Properties to set to the slice/actorcolorDataRange
(Array of Reals | String; optional): Data range use for the colorMapcolorMapPreset
(String; optional): Preset name for the lookup table color mapiSlice
(Real; optional): index of the slice along ijSlice
(Real; optional): index of the slice along jkSlice
(Real; optional): index of the slice along kmapper
(Dict; optional): Properties to set to the mapperproperty
(Dict; optional): Properties to set to the volume.propertyxSlice
(Real; optional): index of the slice along xySlice
(Real; optional): index of the slice along yzSlice
(Real; optional): index of the slice along z
DashVtk.vtk_view
— Methodvtk_view(;kwargs...)
vtk_view(children::Any;kwargs...)
vtk_view(children_maker::Function;kwargs...)
A View component. View is responsible to render vtk.js data. It takes the following set of properties:
background
: [0.2, 0.3, 0.4]cameraPosition
: [0, 0, 1]cameraViewUp
: [0, 1, 0]cameraParallelProjection
: false
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional): List of representation to showid
(String; optional): The ID used to identify this component.background
(Array; optional): The color of the view background using 3 floating numbers
between 0-1 of Red, Green, Blue component.
cameraParallelProjection
(Bool; optional): Use parallel projection (default: false)cameraPosition
(Array; optional): Initial camera position from an object in [0,0,0]cameraViewUp
(Array; optional): Initial camera position from an object in [0,0,0]className
(String; optional): Allow user to provide custom className associated to root elementclickInfo
(Dict; optional): Read-only prop. To use this, make sure thatpickingModes
containsclick
.
This prop is updated when an element in the map is clicked. This contains the picking info describing the object being clicked on.
hoverInfo
(Dict; optional): Read-only prop. To use this, make sure thatpickingModes
containshover
.
This prop is updated when an element in the map is hovered. This contains the picking info describing the object being hovered.
interactorSettings
(Array; optional): Configure the interactionspickingModes
(Array of Strings; optional): List of picking listeners to bind. The supported values areclick
andhover
. By default it is disabled (empty array).style
(Dict; optional): Allow user to override the default View style { width: '100%', height: '100%' }triggerRender
(Real; optional): Property use to trigger a render when changing.triggerResetCamera
(Real; optional): Property use to trigger a resetCamera when changing.
DashVtk.vtk_volume
— Methodvtk_volume(;kwargs...)
A Volume component. Volume is exposing a vtkImageData to a downstream filter It takes the following set of properties:
- state: { image: { ...imagedata-props }, field: { ...dataArray } }
Keyword arguments:
id
(String; optional): The ID used to identify this component.port
(Real; optional): downstream connection portstate
(Dict; optional): State of the volume
DashVtk.vtk_volumecontroller
— Methodvtk_volumecontroller(;kwargs...)
A VolumeController component. VolumeController is a GUI to control the piecewise function Keyword arguments:
id
(String; optional): The ID used to identify this component.rescaleColorMap
(Bool; optional): Use opacity range to rescale color mapsize
(Array of Reals; optional): Controller size in pixels
DashVtk.vtk_volumedatarepresentation
— Methodvtk_volumedatarepresentation(;kwargs...)
A VolumeDataRepresentation component. VolumeDataRepresentation expect the following set of properties
- dimensions: [10, 20, 5]
- spacing: [1, 1, 1]
- origin: [0, 0, 0]
- rgb: [...]
- rgba: [...]
- scalars: [...]
- scalarsType: Float32Array
Keyword arguments:
id
(String; optional): The ID used to identify this component.colorDataRange
(Array of Reals | String; optional): Data range use for the colorMapcolorMapPreset
(String; optional): Preset name for the lookup table color mapcontrollerSize
(Array of Reals; optional): Controller size in pixelsdimensions
(Array of Reals; optional): Number of points along x, y, zmapper
(Dict; optional): Properties to set to the mapperorigin
(Array of Reals; optional): World coordinate of the lower left corner of your vtkImageData (i=0, j=0, k=0).property
(Dict; optional): Properties to set to the volume.propertyrescaleColorMap
(Bool; optional): Use opacity range to rescale color maprgb
(Array of Reals; optional): Use RGB values to attach to the points/vertexrgba
(Array of Reals; optional): Use RGBA values to attach to the points/vertexscalars
(Array of Reals; optional): Field values to attach to the pointsscalarsType
(String; optional): Types of numbers provided in scalarsspacing
(Array of Reals; optional): Spacing along x, y, z between points in world coordinatesvolume
(Dict; optional): Properties to set to the volumevolumeController
(Bool; optional): Show volumeController
DashVtk.vtk_volumerepresentation
— Methodvtk_volumerepresentation(;kwargs...)
vtk_volumerepresentation(children::Any;kwargs...)
vtk_volumerepresentation(children_maker::Function;kwargs...)
A VolumeRepresentation component. VolumeRepresentation is responsible to convert a vtkPolyData into rendering It takes the following set of properties:
- colorBy: ['POINTS', ''],
- pointSize: 1,
- color: [1,1,1],
Keyword arguments:
children
(Array of a list of or a singular dash component, string or numbers | a list of or a singular dash component, string or number; optional)id
(String; optional): The ID used to identify this component.colorDataRange
(Array of Reals | String; optional): Data range use for the colorMapcolorMapPreset
(String; optional): Preset name for the lookup table color mapmapper
(Dict; optional): Properties to set to the mapperproperty
(Dict; optional): Properties to set to the volume.propertyvolume
(Dict; optional): Properties to set to the volume