VTK
|
create a polygonal representation of a cube More...
#include <vtkCubeSource.h>
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.
Definition at line 35 of file vtkCubeSource.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 39 of file vtkCubeSource.h.
vtkCubeSource::vtkCubeSource | ( | double | xL = 1.0 , |
double | yL = 1.0 , |
||
double | zL = 1.0 |
||
) | [protected] |
vtkCubeSource::~vtkCubeSource | ( | ) | [inline, protected] |
Definition at line 86 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.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
virtual vtkObjectBase* vtkCubeSource::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
vtkCubeSource* vtkCubeSource::NewInstance | ( | ) | const |
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 | ( | const double | bounds[6] | ) |
Convenience method allows creation of cube by specifying bounding box.
virtual void vtkCubeSource::SetOutputPointsPrecision | ( | int | ) | [virtual] |
Set/get the desired precision for the output points. vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
virtual int vtkCubeSource::GetOutputPointsPrecision | ( | ) | [virtual] |
Set/get the desired precision for the output points. vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
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 89 of file vtkCubeSource.h.
double vtkCubeSource::YLength [protected] |
Definition at line 90 of file vtkCubeSource.h.
double vtkCubeSource::ZLength [protected] |
Definition at line 91 of file vtkCubeSource.h.
double vtkCubeSource::Center[3] [protected] |
Definition at line 92 of file vtkCubeSource.h.
int vtkCubeSource::OutputPointsPrecision [protected] |
Definition at line 93 of file vtkCubeSource.h.