refactor: rename Puppet class to Prop3D across the codebase
This commit is contained in:
@@ -49,12 +49,12 @@ int main() {
|
||||
// 3. Setup the Viewer
|
||||
Vtk::Viewer viewer;
|
||||
|
||||
// 2. Wrap it in a Vtk::ContainerBox (Vtk Puppet)
|
||||
// 2. Wrap it in a Vtk::ContainerBox (Vtk Prop3D)
|
||||
Vtk::ContainerBox v_box(&box);
|
||||
v_box.SetRepresentation(Vtk::Puppet::Surface);
|
||||
v_box.SetRepresentation(Vtk::Prop3D::Surface);
|
||||
v_box.SetOpacity(0.5);
|
||||
|
||||
viewer.AddPuppet(v_box);
|
||||
viewer.AddProp3D(v_box);
|
||||
|
||||
// 4. Create and setup the HandlerWidget
|
||||
vtkSmartPointer<Vtk::HandlerWidget> handler =
|
||||
@@ -62,7 +62,7 @@ int main() {
|
||||
|
||||
handler->SetInteractor(viewer.GetInteractor());
|
||||
|
||||
// Get the prop from the puppet and cast it to vtkProp3D
|
||||
// Get the prop from the prop3d and cast it to vtkProp3D
|
||||
vtkProp *v_prop = v_box.GetProp();
|
||||
vtkProp3D *prop = vtkProp3D::SafeDownCast(v_prop);
|
||||
if (!prop) {
|
||||
|
||||
Reference in New Issue
Block a user