#include <vtkCubeSource.h>
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.
Definition at line 34 of file vtkCubeSource.h.
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 vtkCubeSource * | New () |
static int | IsTypeOf (const char *type) |
static vtkCubeSource * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
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] |
vtkCubeSource::vtkCubeSource | ( | double | xL = 1.0 , |
|
double | yL = 1.0 , |
|||
double | zL = 1.0 | |||
) | [protected] |
vtkCubeSource::~vtkCubeSource | ( | ) | [inline, protected] |
Definition at line 76 of file vtkCubeSource.h.
static vtkCubeSource* vtkCubeSource::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataAlgorithm.
virtual const char* vtkCubeSource::GetClassName | ( | ) | [virtual] |
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.
static vtkCubeSource* vtkCubeSource::SafeDownCast | ( | vtkObject * | o | ) | [static] |
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.
double vtkCubeSource::XLength [protected] |
Definition at line 79 of file vtkCubeSource.h.
double vtkCubeSource::YLength [protected] |
Definition at line 80 of file vtkCubeSource.h.
double vtkCubeSource::ZLength [protected] |
Definition at line 81 of file vtkCubeSource.h.
double vtkCubeSource::Center[3] [protected] |
Definition at line 82 of file vtkCubeSource.h.