Skip to content
Merged
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
19 changes: 19 additions & 0 deletions src/lib/components/GeometryRepresentation.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export default function GeometryRepresentation(props) {
GeometryRepresentation.defaultProps = {
colorMapPreset: 'erdc_rainbow_bright',
colorDataRange: [0, 1],
showCubeAxes: false,
showScalarBar: false,
scalarBarTitle: '',
};

GeometryRepresentation.propTypes = {
Expand Down Expand Up @@ -63,6 +66,22 @@ GeometryRepresentation.propTypes = {
*/
cubeAxesStyle: PropTypes.object,

/**
* Show hide scalar bar for that representation
*/
showScalarBar: PropTypes.bool,

/**
* Use given string as title for scalar bar. By default it is empty (no title).
*/
scalarBarTitle: PropTypes.string,

/**
* Configure scalar bar style by overriding the set of properties defined
* https://github.com/Kitware/vtk-js/blob/master/Sources/Rendering/Core/ScalarBarActor/index.js#L776-L796
*/
scalarBarStyle: PropTypes.object,

children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
Expand Down
30 changes: 30 additions & 0 deletions src/lib/components/PointCloudRepresentation.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ PointCloudRepresentation.defaultProps = {
xyz: [0, 0, 0],
colorMapPreset: 'erdc_rainbow_bright',
colorDataRange: [0, 1],
showCubeAxes: false,
showScalarBar: false,
scalarBarTitle: '',
};

PointCloudRepresentation.propTypes = {
Expand Down Expand Up @@ -57,4 +60,31 @@ PointCloudRepresentation.propTypes = {
* Properties to set to the actor.property
*/
property: PropTypes.object,

/**
* Show/Hide Cube Axes for the given representation
*/
showCubeAxes: PropTypes.bool,

/**
* 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
*/
cubeAxesStyle: PropTypes.object,

/**
* Show hide scalar bar for that representation
*/
showScalarBar: PropTypes.bool,

/**
* Use given string as title for scalar bar. By default it is empty (no title).
*/
scalarBarTitle: PropTypes.string,

/**
* Configure scalar bar style by overriding the set of properties defined
* https://github.com/Kitware/vtk-js/blob/master/Sources/Rendering/Core/ScalarBarActor/index.js#L776-L796
*/
scalarBarStyle: PropTypes.object,
};
2 changes: 2 additions & 0 deletions usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"pointSize": 10,
},
colorDataRange=[0, 3],
showScalarBar=True,
scalarBarTitle="Temperature",
mapper={
"colorByArrayName": "Temperature",
"scalarMode": 3,
Expand Down