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

# Graphics/vtkCubeSource.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkCubeSource.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 =========================================================================*/
    00045 #ifndef __vtkCubeSource_h
    00046 #define __vtkCubeSource_h
    00047
    00048 #include "vtkPolyDataSource.h"
    00049
    00050 class VTK_GRAPHICS_EXPORT vtkCubeSource : public vtkPolyDataSource
    00051 {
    00052 public:
    00053   static vtkCubeSource *New();
    00054   vtkTypeRevisionMacro(vtkCubeSource,vtkPolyDataSource);
    00055   void PrintSelf(ostream& os, vtkIndent indent);
    00056
    00058
    00059   vtkSetClampMacro(XLength,float,0.0,VTK_LARGE_FLOAT);
    00060   vtkGetMacro(XLength,float);
    00062
    00064
    00065   vtkSetClampMacro(YLength,float,0.0,VTK_LARGE_FLOAT);
    00066   vtkGetMacro(YLength,float);
    00068
    00070
    00071   vtkSetClampMacro(ZLength,float,0.0,VTK_LARGE_FLOAT);
    00072   vtkGetMacro(ZLength,float);
    00074
    00076
    00077   vtkSetVector3Macro(Center,float);
    00078   vtkGetVectorMacro(Center,float,3);
    00080
    00082
    00084   void SetBounds(float xMin, float xMax,
    00085                  float yMin, float yMax,
    00086                  float zMin, float zMax);
    00087   void SetBounds(float bounds[6]);
    00089
    00090
    00091 protected:
    00092   vtkCubeSource(float xL=1.0, float yL=1.0, float zL=1.0);
    00093   ~vtkCubeSource() {};
    00094
    00095   void Execute();
    00096   float XLength;
    00097   float YLength;
    00098   float ZLength;
    00099   float Center[3];
    00100 private:
    00101   vtkCubeSource(const vtkCubeSource&);  // Not implemented.
    00102   void operator=(const vtkCubeSource&);  // Not implemented.
    00103 };
    00104
    00105 #endif
    00106
    00107