Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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   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 =========================================================================*/
00047 #ifndef __vtkAxes_h
00048 #define __vtkAxes_h
00049 
00050 #include "vtkPolyDataSource.h"
00051 
00052 class VTK_GRAPHICS_EXPORT vtkAxes : public vtkPolyDataSource 
00053 {
00054 public:
00055   static vtkAxes *New();
00056 
00057   vtkTypeRevisionMacro(vtkAxes,vtkPolyDataSource);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00062   vtkSetVector3Macro(Origin,float);
00063   vtkGetVectorMacro(Origin,float,3);
00065 
00067 
00068   vtkSetMacro(ScaleFactor,float);
00069   vtkGetMacro(ScaleFactor,float);
00071 
00073 
00074   vtkSetMacro(Symmetric,int);
00075   vtkGetMacro(Symmetric,int);
00076   vtkBooleanMacro(Symmetric,int);
00078 
00080 
00081   vtkSetMacro(ComputeNormals, int);
00082   vtkGetMacro(ComputeNormals, int);
00083   vtkBooleanMacro(ComputeNormals, int);
00085   
00086 protected:
00087   vtkAxes();
00088   ~vtkAxes() {};
00089 
00090   void Execute();
00091   // This source does not know how to generate pieces yet.
00092   int ComputeDivisionExtents(vtkDataObject *output, 
00093                              int idx, int numDivisions);
00094 
00095   float Origin[3];
00096   float ScaleFactor;
00097   
00098   int Symmetric;
00099   int ComputeNormals;
00100 private:
00101   vtkAxes(const vtkAxes&);  // Not implemented.
00102   void operator=(const vtkAxes&);  // Not implemented.
00103 };
00104 
00105 #endif
00106 
00107