Skip to content

Commit ac98222

Browse files
update PointCloudRepresentation
* add showCubeAxes * add showScalarBar * add scalarBarTitle
1 parent 7ec78de commit ac98222

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/lib/components/PointCloudRepresentation.react.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ PointCloudRepresentation.defaultProps = {
1818
xyz: [0, 0, 0],
1919
colorMapPreset: 'erdc_rainbow_bright',
2020
colorDataRange: [0, 1],
21+
showCubeAxes: false,
22+
showScalarBar: false,
23+
scalarBarTitle: '',
2124
};
2225

2326
PointCloudRepresentation.propTypes = {
@@ -57,4 +60,31 @@ PointCloudRepresentation.propTypes = {
5760
* Properties to set to the actor.property
5861
*/
5962
property: PropTypes.object,
63+
64+
/**
65+
* Show/Hide Cube Axes for the given representation
66+
*/
67+
showCubeAxes: PropTypes.bool,
68+
69+
/**
70+
* Configure cube Axes style by overriding the set of properties defined
71+
* https://github.com/Kitware/vtk-js/blob/HEAD/Sources/Rendering/Core/CubeAxesActor/index.js#L703-L719
72+
*/
73+
cubeAxesStyle: PropTypes.object,
74+
75+
/**
76+
* Show hide scalar bar for that representation
77+
*/
78+
showScalarBar: PropTypes.bool,
79+
80+
/**
81+
* Use given string as title for scalar bar. By default it is empty (no title).
82+
*/
83+
scalarBarTitle: PropTypes.string,
84+
85+
/**
86+
* Configure scalar bar style by overriding the set of properties defined
87+
* https://github.com/Kitware/vtk-js/blob/master/Sources/Rendering/Core/ScalarBarActor/index.js#L776-L796
88+
*/
89+
scalarBarStyle: PropTypes.object,
6090
};

0 commit comments

Comments
 (0)