VTK
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 =========================================================================*/
34 #ifndef vtkCursor2D_h
35 #define vtkCursor2D_h
36 
37 #include "vtkFiltersGeneralModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 
40 class VTKFILTERSGENERAL_EXPORT vtkCursor2D : public vtkPolyDataAlgorithm
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
50  static vtkCursor2D *New();
51 
53 
57  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
58  double zmin, double zmax);
59  void SetModelBounds(const double bounds[6]);
60  vtkGetVectorMacro(ModelBounds,double,6);
62 
64 
72  void SetFocalPoint(double x[3]);
73  void SetFocalPoint(double x, double y, double z)
74  {
75  double xyz[3];
76  xyz[0] = x; xyz[1] = y; xyz[2] = z;
77  this->SetFocalPoint(xyz);
78  }
79  vtkGetVectorMacro(FocalPoint,double,3);
81 
83 
86  vtkSetMacro(Outline,vtkTypeBool);
87  vtkGetMacro(Outline,vtkTypeBool);
88  vtkBooleanMacro(Outline,vtkTypeBool);
90 
92 
95  vtkSetMacro(Axes,vtkTypeBool);
96  vtkGetMacro(Axes,vtkTypeBool);
97  vtkBooleanMacro(Axes,vtkTypeBool);
99 
101 
105  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
106  vtkGetMacro(Radius,double);
108 
110 
113  vtkSetMacro(Point,vtkTypeBool);
114  vtkGetMacro(Point,vtkTypeBool);
115  vtkBooleanMacro(Point,vtkTypeBool);
117 
119 
124  vtkSetMacro(TranslationMode,vtkTypeBool);
125  vtkGetMacro(TranslationMode,vtkTypeBool);
126  vtkBooleanMacro(TranslationMode,vtkTypeBool);
128 
130 
135  vtkSetMacro(Wrap,vtkTypeBool);
136  vtkGetMacro(Wrap,vtkTypeBool);
137  vtkBooleanMacro(Wrap,vtkTypeBool);
139 
141 
144  void AllOn();
145  void AllOff();
147 
148 protected:
149  vtkCursor2D();
150  ~vtkCursor2D() override {}
151 
153 
154  double ModelBounds[6];
155  double FocalPoint[3];
159  double Radius;
162 
163 private:
164  vtkCursor2D(const vtkCursor2D&) = delete;
165  void operator=(const vtkCursor2D&) = delete;
166 };
167 
168 #endif
vtkTypeBool Wrap
Definition: vtkCursor2D.h:161
Store vtkAlgorithm input/output information.
~vtkCursor2D() override
Definition: vtkCursor2D.h:150
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool Axes
Definition: vtkCursor2D.h:157
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:160
vtkTypeBool Point
Definition: vtkCursor2D.h:158
void SetFocalPoint(double x, double y, double z)
Set/Get the position of cursor focus.
Definition: vtkCursor2D.h:73
generate a 2D cursor representation
Definition: vtkCursor2D.h:40
double Radius
Definition: vtkCursor2D.h:159
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeBool Outline
Definition: vtkCursor2D.h:156
#define VTK_FLOAT_MAX
Definition: vtkType.h:167
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.