VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkCubeSource Class Reference

create a polygonal representation of a cube More...

#include <vtkCubeSource.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkCubeSourceNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetXLength (double)
 
virtual double GetXLength ()
 
virtual void SetYLength (double)
 
virtual double GetYLength ()
 
virtual void SetZLength (double)
 
virtual double GetZLength ()
 
virtual void SetCenter (double, double, double)
 
virtual void SetCenter (double[3])
 
virtual double * GetCenter ()
 
virtual void GetCenter (double data[3])
 
void SetBounds (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
 
void SetBounds (double bounds[6])
 

Static Public Member Functions

static vtkCubeSourceNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCubeSourceSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkCubeSource (double xL=1.0, double yL=1.0, double zL=1.0)
 
 ~vtkCubeSource ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

double XLength
 
double YLength
 
double ZLength
 
double Center [3]
 

Detailed Description

create a polygonal representation of a cube

vtkCubeSource creates a cube centered at origin. The cube is represented with four-sided polygons. It is possible to specify the length, width, and height of the cube independently.

Examples:
vtkCubeSource (Examples)
Tests:
vtkCubeSource (Tests)

Definition at line 35 of file vtkCubeSource.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkCubeSource::Superclass

Definition at line 39 of file vtkCubeSource.h.

Constructor & Destructor Documentation

vtkCubeSource::vtkCubeSource ( double  xL = 1.0,
double  yL = 1.0,
double  zL = 1.0 
)
protected
vtkCubeSource::~vtkCubeSource ( )
inlineprotected

Definition at line 77 of file vtkCubeSource.h.

Member Function Documentation

static vtkCubeSource* vtkCubeSource::New ( )
static
static int vtkCubeSource::IsTypeOf ( const char *  type)
static
virtual int vtkCubeSource::IsA ( const char *  type)
virtual
static vtkCubeSource* vtkCubeSource::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkCubeSource::NewInstanceInternal ( ) const
protectedvirtual
vtkCubeSource* vtkCubeSource::NewInstance ( ) const
void vtkCubeSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkCubeSource::SetXLength ( double  )
virtual

Set the length of the cube in the x-direction.

virtual double vtkCubeSource::GetXLength ( )
virtual

Set the length of the cube in the x-direction.

virtual void vtkCubeSource::SetYLength ( double  )
virtual

Set the length of the cube in the y-direction.

virtual double vtkCubeSource::GetYLength ( )
virtual

Set the length of the cube in the y-direction.

virtual void vtkCubeSource::SetZLength ( double  )
virtual

Set the length of the cube in the z-direction.

virtual double vtkCubeSource::GetZLength ( )
virtual

Set the length of the cube in the z-direction.

virtual void vtkCubeSource::SetCenter ( double  ,
double  ,
double   
)
virtual

Set the center of the cube.

virtual void vtkCubeSource::SetCenter ( double  [3])
virtual

Set the center of the cube.

virtual double* vtkCubeSource::GetCenter ( )
virtual

Set the center of the cube.

virtual void vtkCubeSource::GetCenter ( double  data[3])
virtual

Set the center of the cube.

void vtkCubeSource::SetBounds ( double  xMin,
double  xMax,
double  yMin,
double  yMax,
double  zMin,
double  zMax 
)

Convenience method allows creation of cube by specifying bounding box.

void vtkCubeSource::SetBounds ( double  bounds[6])

Convenience method allows creation of cube by specifying bounding box.

int vtkCubeSource::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

double vtkCubeSource::XLength
protected

Definition at line 80 of file vtkCubeSource.h.

double vtkCubeSource::YLength
protected

Definition at line 81 of file vtkCubeSource.h.

double vtkCubeSource::ZLength
protected

Definition at line 82 of file vtkCubeSource.h.

double vtkCubeSource::Center[3]
protected

Definition at line 83 of file vtkCubeSource.h.


The documentation for this class was generated from the following file: