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 =========================================================================*/
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,
55  double zmin, double zmax);
56  void SetModelBounds(const double bounds[6]);
57  vtkGetVectorMacro(ModelBounds,double,6);
59 
61 
69  void SetFocalPoint(double x[3]);
70  void SetFocalPoint(double x, double y, double z)
71  {
72  double xyz[3];
73  xyz[0] = x; xyz[1] = y; xyz[2] = z;
74  this->SetFocalPoint(xyz);
75  }
76  vtkGetVectorMacro(FocalPoint,double,3);
78 
80 
83  vtkSetMacro(Outline,vtkTypeBool);
84  vtkGetMacro(Outline,vtkTypeBool);
85  vtkBooleanMacro(Outline,vtkTypeBool);
87 
89 
92  vtkSetMacro(Axes,vtkTypeBool);
93  vtkGetMacro(Axes,vtkTypeBool);
94  vtkBooleanMacro(Axes,vtkTypeBool);
96 
98 
102  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
103  vtkGetMacro(Radius,double);
105 
107 
110  vtkSetMacro(Point,vtkTypeBool);
111  vtkGetMacro(Point,vtkTypeBool);
112  vtkBooleanMacro(Point,vtkTypeBool);
114 
116 
121  vtkSetMacro(TranslationMode,vtkTypeBool);
122  vtkGetMacro(TranslationMode,vtkTypeBool);
123  vtkBooleanMacro(TranslationMode,vtkTypeBool);
125 
127 
132  vtkSetMacro(Wrap,vtkTypeBool);
133  vtkGetMacro(Wrap,vtkTypeBool);
134  vtkBooleanMacro(Wrap,vtkTypeBool);
136 
138 
141  void AllOn();
142  void AllOff();
144 
145 protected:
146  vtkCursor2D();
147  ~vtkCursor2D() override {}
148 
150 
151  double ModelBounds[6];
152  double FocalPoint[3];
156  double Radius;
159 
160 private:
161  vtkCursor2D(const vtkCursor2D&) = delete;
162  void operator=(const vtkCursor2D&) = delete;
163 };
164 
165 #endif
vtkCursor2D::Axes
vtkTypeBool Axes
Definition: vtkCursor2D.h:154
vtkCursor2D::SetFocalPoint
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor2D.h:70
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkCursor2D::TranslationMode
vtkTypeBool TranslationMode
Definition: vtkCursor2D.h:157
vtkCursor2D::Point
vtkTypeBool Point
Definition: vtkCursor2D.h:155
vtkCursor2D::Radius
double Radius
Definition: vtkCursor2D.h:156
vtkCursor2D::~vtkCursor2D
~vtkCursor2D() override
Definition: vtkCursor2D.h:147
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:153
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:167
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkCursor2D::Wrap
vtkTypeBool Wrap
Definition: vtkCursor2D.h:158
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