vtkCubeSource Class Reference
#include <vtkCubeSource.h>
Inheritance diagram for vtkCubeSource:
List of all members.
Detailed Description
create a polygonal representation of a cube
- Date
- 2002/01/22 15:29:13
- Revision
- 1.42
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 38 of file vtkCubeSource.h.
|
Public Types |
typedef vtkPolyDataSource | Superclass |
Public Member Functions |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | SetXLength (float) |
virtual float | GetXLength () |
|
virtual void | SetYLength (float) |
virtual float | GetYLength () |
|
virtual void | SetZLength (float) |
virtual float | GetZLength () |
|
virtual void | SetCenter (float, float, float) |
virtual void | SetCenter (float[3]) |
virtual float * | GetCenter () |
virtual void | GetCenter (float data[3]) |
|
void | SetBounds (float xMin, float xMax, float yMin, float yMax, float zMin, float zMax) |
void | SetBounds (float bounds[6]) |
Static Public Member Functions |
static vtkCubeSource * | New () |
static int | IsTypeOf (const char *type) |
static vtkCubeSource * | SafeDownCast (vtkObject *o) |
Protected Member Functions |
| vtkCubeSource (float xL=1.0, float yL=1.0, float zL=1.0) |
| ~vtkCubeSource () |
void | Execute () |
Protected Attributes |
float | XLength |
float | YLength |
float | ZLength |
float | Center [3] |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkCubeSource::vtkCubeSource |
( |
float |
xL = 1.0 , |
|
|
float |
yL = 1.0 , |
|
|
float |
zL = 1.0 |
|
) |
[protected] |
|
Member Function Documentation
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject. |
virtual const char* vtkCubeSource::GetClassName |
( |
|
) |
[virtual] |
|
static int vtkCubeSource::IsTypeOf |
( |
const char * |
type |
) |
[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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataSource. |
virtual int vtkCubeSource::IsA |
( |
const char * |
type |
) |
[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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataSource. |
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 vtkPolyDataSource. |
virtual void vtkCubeSource::SetXLength |
( |
float |
|
) |
[virtual] |
|
|
Set the length of the cube in the x-direction. |
virtual float vtkCubeSource::GetXLength |
( |
|
) |
[virtual] |
|
|
Set the length of the cube in the x-direction. |
virtual void vtkCubeSource::SetYLength |
( |
float |
|
) |
[virtual] |
|
|
Set the length of the cube in the y-direction. |
virtual float vtkCubeSource::GetYLength |
( |
|
) |
[virtual] |
|
|
Set the length of the cube in the y-direction. |
virtual void vtkCubeSource::SetZLength |
( |
float |
|
) |
[virtual] |
|
|
Set the length of the cube in the z-direction. |
virtual float vtkCubeSource::GetZLength |
( |
|
) |
[virtual] |
|
|
Set the length of the cube in the z-direction. |
virtual void vtkCubeSource::SetCenter |
( |
float |
, |
|
|
float |
, |
|
|
float |
|
|
) |
[virtual] |
|
|
Set the center of the cube. |
virtual void vtkCubeSource::SetCenter |
( |
float |
[3] |
) |
[virtual] |
|
|
Set the center of the cube. |
virtual float* vtkCubeSource::GetCenter |
( |
|
) |
[virtual] |
|
|
Set the center of the cube. |
virtual void vtkCubeSource::GetCenter |
( |
float |
data[3] |
) |
[virtual] |
|
|
Set the center of the cube. |
void vtkCubeSource::SetBounds |
( |
float |
xMin, |
|
|
float |
xMax, |
|
|
float |
yMin, |
|
|
float |
yMax, |
|
|
float |
zMin, |
|
|
float |
zMax |
|
) |
|
|
|
Convenience method allows creation of cube by specifying bounding box. |
void vtkCubeSource::SetBounds |
( |
float |
bounds[6] |
) |
|
|
|
Convenience method allows creation of cube by specifying bounding box. |
void vtkCubeSource::Execute |
( |
|
) |
[protected, virtual] |
|
|
This method is the old style execute method
Reimplemented from vtkSource. |
Member Data Documentation
The documentation for this class was generated from the following file: