VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkAxes.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00027 #ifndef __vtkAxes_h 00028 #define __vtkAxes_h 00029 00030 #include "vtkPolyDataAlgorithm.h" 00031 00032 class VTK_GRAPHICS_EXPORT vtkAxes : public vtkPolyDataAlgorithm 00033 { 00034 public: 00035 static vtkAxes *New(); 00036 00037 vtkTypeRevisionMacro(vtkAxes,vtkPolyDataAlgorithm); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00041 00042 vtkSetVector3Macro(Origin,double); 00043 vtkGetVectorMacro(Origin,double,3); 00045 00047 00048 vtkSetMacro(ScaleFactor,double); 00049 vtkGetMacro(ScaleFactor,double); 00051 00053 00054 vtkSetMacro(Symmetric,int); 00055 vtkGetMacro(Symmetric,int); 00056 vtkBooleanMacro(Symmetric,int); 00058 00060 00061 vtkSetMacro(ComputeNormals, int); 00062 vtkGetMacro(ComputeNormals, int); 00063 vtkBooleanMacro(ComputeNormals, int); 00065 00066 protected: 00067 vtkAxes(); 00068 ~vtkAxes() {}; 00069 00070 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00071 // This source does not know how to generate pieces yet. 00072 int ComputeDivisionExtents(vtkDataObject *output, 00073 int idx, int numDivisions); 00074 00075 double Origin[3]; 00076 double ScaleFactor; 00077 00078 int Symmetric; 00079 int ComputeNormals; 00080 private: 00081 vtkAxes(const vtkAxes&); // Not implemented. 00082 void operator=(const vtkAxes&); // Not implemented. 00083 }; 00084 00085 #endif 00086 00087