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

Graphics/vtkAxes.h

Go to the documentation of this file.
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 =========================================================================*/
00030 #ifndef __vtkAxes_h
00031 #define __vtkAxes_h
00032 
00033 #include "vtkPolyDataSource.h"
00034 
00035 class VTK_GRAPHICS_EXPORT vtkAxes : public vtkPolyDataSource 
00036 {
00037 public:
00038   static vtkAxes *New();
00039 
00040   vtkTypeRevisionMacro(vtkAxes,vtkPolyDataSource);
00041   void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00045   vtkSetVector3Macro(Origin,double);
00046   vtkGetVectorMacro(Origin,double,3);
00048 
00050 
00051   vtkSetMacro(ScaleFactor,double);
00052   vtkGetMacro(ScaleFactor,double);
00054 
00056 
00057   vtkSetMacro(Symmetric,int);
00058   vtkGetMacro(Symmetric,int);
00059   vtkBooleanMacro(Symmetric,int);
00061 
00063 
00064   vtkSetMacro(ComputeNormals, int);
00065   vtkGetMacro(ComputeNormals, int);
00066   vtkBooleanMacro(ComputeNormals, int);
00068   
00069 protected:
00070   vtkAxes();
00071   ~vtkAxes() {};
00072 
00073   void Execute();
00074   // This source does not know how to generate pieces yet.
00075   int ComputeDivisionExtents(vtkDataObject *output, 
00076                              int idx, int numDivisions);
00077 
00078   double Origin[3];
00079   double ScaleFactor;
00080   
00081   int Symmetric;
00082   int ComputeNormals;
00083 private:
00084   vtkAxes(const vtkAxes&);  // Not implemented.
00085   void operator=(const vtkAxes&);  // Not implemented.
00086 };
00087 
00088 #endif
00089 
00090