Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkPlaneSource.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPlaneSource.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00056 #ifndef __vtkPlaneSource_h 00057 #define __vtkPlaneSource_h 00058 00059 #include "vtkPolyDataSource.h" 00060 00061 class VTK_GRAPHICS_EXPORT vtkPlaneSource : public vtkPolyDataSource 00062 { 00063 public: 00064 void PrintSelf(ostream& os, vtkIndent indent); 00065 vtkTypeRevisionMacro(vtkPlaneSource,vtkPolyDataSource); 00066 00069 static vtkPlaneSource *New(); 00070 00072 00073 vtkSetMacro(XResolution,int); 00074 vtkGetMacro(XResolution,int); 00076 00078 00079 vtkSetMacro(YResolution,int); 00080 vtkGetMacro(YResolution,int); 00082 00084 00085 void SetResolution(const int xR, const int yR); 00086 void GetResolution(int& xR,int& yR) { 00087 xR=this->XResolution; yR=this->YResolution;}; 00089 00091 00092 vtkSetVector3Macro(Origin,float); 00093 vtkGetVectorMacro(Origin,float,3); 00095 00097 00098 void SetPoint1(float x, float y, float z); 00099 void SetPoint1(float pnt[3]); 00100 vtkGetVectorMacro(Point1,float,3); 00102 00104 00105 void SetPoint2(float x, float y, float z); 00106 void SetPoint2(float pnt[3]); 00107 vtkGetVectorMacro(Point2,float,3); 00109 00111 00114 void SetCenter(float x, float y, float z); 00115 void SetCenter(float center[3]); 00116 vtkGetVectorMacro(Center,float,3); 00118 00120 00123 void SetNormal(float nx, float ny, float nz); 00124 void SetNormal(float n[3]); 00125 vtkGetVectorMacro(Normal,float,3); 00127 00130 void Push(float distance); 00131 00132 protected: 00133 vtkPlaneSource(); 00134 ~vtkPlaneSource() {}; 00135 00136 void Execute(); 00137 00138 int XResolution; 00139 int YResolution; 00140 float Origin[3]; 00141 float Point1[3]; 00142 float Point2[3]; 00143 float Normal[3]; 00144 float Center[3]; 00145 00146 int UpdatePlane(float v1[3], float v2[3]); 00147 private: 00148 vtkPlaneSource(const vtkPlaneSource&); // Not implemented. 00149 void operator=(const vtkPlaneSource&); // Not implemented. 00150 }; 00151 00152 #endif 00153 00154