VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkCubeSource Class Reference

create a polygonal representation of a cube More...

#include <vtkCubeSource.h>

Inheritance diagram for vtkCubeSource:
Inheritance graph
[legend]
Collaboration diagram for vtkCubeSource:
Collaboration graph
[legend]

List of all members.

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 doubleGetCenter ()
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 vtkObjectBaseNewInstanceInternal () 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

Reimplemented from vtkPolyDataAlgorithm.

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 ( ) [inline, protected]

Definition at line 77 of file vtkCubeSource.h.


Member Function Documentation

static vtkCubeSource* vtkCubeSource::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

static int vtkCubeSource::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkCubeSource::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkCubeSource::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkCubeSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPolyDataAlgorithm.

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 request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

Definition at line 80 of file vtkCubeSource.h.

Definition at line 81 of file vtkCubeSource.h.

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: