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 =========================================================================*/
33 #ifndef vtkCursor2D_h
34 #define vtkCursor2D_h
35 
36 #include "vtkFiltersGeneralModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
47  static vtkCursor2D *New();
48 
50 
52  void SetModelBounds(double xmin, double xmax, double ymin, double ymax,
53  double zmin, double zmax);
54  void SetModelBounds(const double bounds[6]);
55  vtkGetVectorMacro(ModelBounds,double,6);
57 
59 
65  void SetFocalPoint(double x[3]);
66  void SetFocalPoint(double x, double y, double z)
67  {
68  double xyz[3];
69  xyz[0] = x; xyz[1] = y; xyz[2] = z;
70  this->SetFocalPoint(xyz);
71  }
72  vtkGetVectorMacro(FocalPoint,double,3);
74 
76 
77  vtkSetMacro(Outline,int);
78  vtkGetMacro(Outline,int);
79  vtkBooleanMacro(Outline,int);
81 
83 
84  vtkSetMacro(Axes,int);
85  vtkGetMacro(Axes,int);
86  vtkBooleanMacro(Axes,int);
88 
90 
92  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
93  vtkGetMacro(Radius,double);
95 
97 
98  vtkSetMacro(Point,int);
99  vtkGetMacro(Point,int);
100  vtkBooleanMacro(Point,int);
102 
104 
107  vtkSetMacro(TranslationMode,int);
108  vtkGetMacro(TranslationMode,int);
109  vtkBooleanMacro(TranslationMode,int);
111 
113 
116  vtkSetMacro(Wrap,int);
117  vtkGetMacro(Wrap,int);
118  vtkBooleanMacro(Wrap,int);
120 
122 
123  void AllOn();
124  void AllOff();
126 
127 protected:
128  vtkCursor2D();
130 
132 
133  double ModelBounds[6];
134  double FocalPoint[3];
135  int Outline;
136  int Axes;
137  int Point;
138  double Radius;
140  int Wrap;
141 
142 private:
143  vtkCursor2D(const vtkCursor2D&); // Not implemented.
144  void operator=(const vtkCursor2D&); // Not implemented.
145 };
146 
147 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetFocalPoint(double x, double y, double z)
Definition: vtkCursor2D.h:66
generate a 2D cursor representation
Definition: vtkCursor2D.h:39
int TranslationMode
Definition: vtkCursor2D.h:139
double Radius
Definition: vtkCursor2D.h:138
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_FLOAT_MAX
Definition: vtkType.h:140
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSGENERAL_EXPORT
Store zero or more vtkInformation instances.