VTK
vtkPlaneSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlaneSource.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 =========================================================================*/
53 #ifndef vtkPlaneSource_h
54 #define vtkPlaneSource_h
55 
56 #include "vtkFiltersSourcesModule.h" // For export macro
57 #include "vtkPolyDataAlgorithm.h"
58 
60 {
61 public:
62  void PrintSelf(ostream& os, vtkIndent indent);
64 
67  static vtkPlaneSource *New();
68 
70 
71  vtkSetMacro(XResolution,int);
72  vtkGetMacro(XResolution,int);
74 
76 
77  vtkSetMacro(YResolution,int);
78  vtkGetMacro(YResolution,int);
80 
82 
83  void SetResolution(const int xR, const int yR);
84  void GetResolution(int& xR,int& yR) {
85  xR=this->XResolution; yR=this->YResolution;};
87 
89 
90  vtkSetVector3Macro(Origin,double);
91  vtkGetVectorMacro(Origin,double,3);
93 
95 
96  void SetPoint1(double x, double y, double z);
97  void SetPoint1(double pnt[3]);
98  vtkGetVectorMacro(Point1,double,3);
100 
102 
103  void SetPoint2(double x, double y, double z);
104  void SetPoint2(double pnt[3]);
105  vtkGetVectorMacro(Point2,double,3);
107 
109 
112  void SetCenter(double x, double y, double z);
113  void SetCenter(double center[3]);
114  vtkGetVectorMacro(Center,double,3);
116 
118 
121  void SetNormal(double nx, double ny, double nz);
122  void SetNormal(double n[3]);
125 
128  void Push(double distance);
129 
131 
135  vtkSetMacro(OutputPointsPrecision,int);
136  vtkGetMacro(OutputPointsPrecision,int);
138 
139 protected:
142 
144 
147  double Origin[3];
148  double Point1[3];
149  double Point2[3];
150  double Normal[3];
151  double Center[3];
153 
154  int UpdatePlane(double v1[3], double v2[3]);
155 private:
156  vtkPlaneSource(const vtkPlaneSource&); // Not implemented.
157  void operator=(const vtkPlaneSource&); // Not implemented.
158 };
159 
160 #endif
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkPlaneSource::SetPoint1
void SetPoint1(double x, double y, double z)
vtkgl::v2
GLfloat GLfloat GLfloat v2
Definition: vtkgl.h:12015
vtkPlaneSource::YResolution
int YResolution
Definition: vtkPlaneSource.h:146
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkgl::nz
GLfloat GLfloat nz
Definition: vtkgl.h:15711
vtkPlaneSource::SetNormal
void SetNormal(double n[3])
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPlaneSource::SetResolution
void SetResolution(const int xR, const int yR)
vtkPlaneSource
create an array of quadrilaterals located in a plane
Definition: vtkPlaneSource.h:60
vtkX3D::Normal
@ Normal
Definition: vtkX3D.h:45
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::n
GLclampd n
Definition: vtkgl.h:14370
vtkPlaneSource::SetNormal
void SetNormal(double nx, double ny, double nz)
vtkPlaneSource::Push
void Push(double distance)
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkFiltersSourcesModule.h
vtkX3D::center
@ center
Definition: vtkX3D.h:230
vtkPlaneSource::GetResolution
void GetResolution(int &xR, int &yR)
Definition: vtkPlaneSource.h:84
vtkPlaneSource::SetPoint1
void SetPoint1(double pnt[3])
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkgl::ny
GLfloat ny
Definition: vtkgl.h:15711
vtkgl::v1
GLfloat GLfloat v1
Definition: vtkgl.h:12014
vtkPolyDataAlgorithm.h
vtkPlaneSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkPlaneSource::SetPoint2
void SetPoint2(double x, double y, double z)
vtkgl::nx
GLfloat GLfloat GLfloat GLfloat nx
Definition: vtkgl.h:15713
vtkPlaneSource::vtkPlaneSource
vtkPlaneSource()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPlaneSource::SetCenter
void SetCenter(double x, double y, double z)
vtkPlaneSource::~vtkPlaneSource
~vtkPlaneSource()
Definition: vtkPlaneSource.h:141
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkPlaneSource::SetCenter
void SetCenter(double center[3])
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkPlaneSource::UpdatePlane
int UpdatePlane(double v1[3], double v2[3])
vtkPlaneSource::New
static vtkPlaneSource * New()
vtkPlaneSource::XResolution
int XResolution
Definition: vtkPlaneSource.h:145
vtkPlaneSource::SetPoint2
void SetPoint2(double pnt[3])
vtkPlaneSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPlaneSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkPlaneSource.h:152
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44