VTK  9.0.1
vtkCursor2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCursor2D.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkCursor2D_h
32 #define vtkCursor2D_h
33 
34 #include "vtkFiltersGeneralModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  static vtkCursor2D* New();
48 
50 
54  void SetModelBounds(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax);
55  void SetModelBounds(const double bounds[6]);
56  vtkGetVectorMacro(ModelBounds, double, 6);
58 
60 
68  void SetFocalPoint(double x[3]);
69  void SetFocalPoint(double x, double y, double z)
70  {
71  double xyz[3];
72  xyz[0] = x;
73  xyz[1] = y;
74  xyz[2] = z;
75  this->SetFocalPoint(xyz);
76  }
77  vtkGetVectorMacro(FocalPoint, double, 3);
79 
81 
84  vtkSetMacro(Outline, vtkTypeBool);
85  vtkGetMacro(Outline, vtkTypeBool);
86  vtkBooleanMacro(Outline, vtkTypeBool);
88 
90 
93  vtkSetMacro(Axes, vtkTypeBool);
94  vtkGetMacro(Axes, vtkTypeBool);
95  vtkBooleanMacro(Axes, vtkTypeBool);
97 
99 
103  vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
104  vtkGetMacro(Radius, double);
106 
108 
111  vtkSetMacro(Point, vtkTypeBool);
112  vtkGetMacro(Point, vtkTypeBool);
113  vtkBooleanMacro(Point, vtkTypeBool);
115 
117 
122  vtkSetMacro(TranslationMode, vtkTypeBool);
123  vtkGetMacro(TranslationMode, vtkTypeBool);
124  vtkBooleanMacro(TranslationMode, vtkTypeBool);
126 
128 
133  vtkSetMacro(Wrap, vtkTypeBool);
134  vtkGetMacro(Wrap, vtkTypeBool);
135  vtkBooleanMacro(Wrap, vtkTypeBool);
137 
139 
142  void AllOn();
143  void AllOff();
145 
146 protected:
147  vtkCursor2D();
148  ~vtkCursor2D() override {}
149 
151 
152  double ModelBounds[6];
153  double FocalPoint[3];
157  double Radius;
160 
161 private:
162  vtkCursor2D(const vtkCursor2D&) = delete;
163  void operator=(const vtkCursor2D&) = delete;
164 };
165 
166 #endif
vtkCursor2D::Axes
vtkTypeBool Axes
Definition: vtkCursor2D.h:155
vtkCursor2D::SetFocalPoint
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor2D.h:69
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkCursor2D::TranslationMode
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:158
vtkCursor2D::Point
vtkTypeBool Point
Definition: vtkCursor2D.h:156
vtkCursor2D::Radius
double Radius
Definition: vtkCursor2D.h:157
vtkCursor2D::~vtkCursor2D
~vtkCursor2D() override
Definition: vtkCursor2D.h:148
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkCursor2D::Outline
vtkTypeBool Outline
Definition: vtkCursor2D.h:154
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCursor2D
generate a 2D cursor representation
Definition: vtkCursor2D.h:37
VTK_FLOAT_MAX
#define VTK_FLOAT_MAX
Definition: vtkType.h:163
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkCursor2D::Wrap
vtkTypeBool Wrap
Definition: vtkCursor2D.h:159
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41