ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkPVCenterAxesActor.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include "vtkPVCenterAxesActor.h"
9 
10 #include "vtkAxes.h"
11 #include "vtkObjectFactory.h"
12 #include "vtkPolyDataMapper.h"
13 
14 namespace VTKExtensions {
16 //----------------------------------------------------------------------------
18  this->Axes = vtkAxes::New();
19  this->Axes->SetSymmetric(1);
20  this->Mapper = vtkPolyDataMapper::New();
21  this->Mapper->SetInputConnection(this->Axes->GetOutputPort());
22  this->SetMapper(this->Mapper);
23  // We disable this, since it results in the center axes being skipped when
24  // IceT is rendering.
25  // this->SetUseBounds(0); // don't use bounds of this actor in renderer
26  // bounds computations.
27 }
28 
29 //----------------------------------------------------------------------------
31  this->Axes->Delete();
32  this->Mapper->Delete();
33 }
34 
35 //----------------------------------------------------------------------------
37  this->Axes->SetSymmetric(val);
38 }
39 
40 //----------------------------------------------------------------------------
42  this->Axes->SetComputeNormals(val);
43 }
44 
45 //----------------------------------------------------------------------------
46 void vtkPVCenterAxesActor::PrintSelf(ostream& os, vtkIndent indent) {
47  this->Superclass::PrintSelf(os, indent);
48 }
49 
50 } // namespace VTKExtensions
void PrintSelf(ostream &os, vtkIndent indent) override
vtkStandardNewMacro(vtkCustomInteractorStyle)