Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 Methods

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 Methods

vtkCubeSource * New ()
int IsTypeOf (const char *type)
vtkCubeSource * SafeDownCast (vtkObject *o)

Protected Methods

 vtkCubeSource (float xL=1.0, float yL=1.0, float zL=1.0)
 ~vtkCubeSource ()
 vtkCubeSource (const vtkCubeSource &)
void operator= (const vtkCubeSource &)
void Execute ()

Protected Attributes

float XLength
float YLength
float ZLength
float Center [3]

Detailed Description

create a polygonal representation of a cube.

Date:
2000/12/10 20:08:33
Revision:
1.36

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)

Definition at line 59 of file vtkCubeSource.h.


Constructor & Destructor Documentation

vtkCubeSource::vtkCubeSource float    xL = 1.0,
float    yL = 1.0,
float    zL = 1.0
[protected]
 

vtkCubeSource::~vtkCubeSource   [inline, protected]
 

Definition at line 92 of file vtkCubeSource.h.

vtkCubeSource::vtkCubeSource const vtkCubeSource &    [inline, protected]
 

Definition at line 93 of file vtkCubeSource.h.


Member Function Documentation

vtkCubeSource* vtkCubeSource::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkPolyDataSource.

virtual const char* vtkCubeSource::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataSource.

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataSource.

vtkCubeSource* vtkCubeSource::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro 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 vtkSource.

virtual void vtkCubeSource::SetXLength float    [virtual]
 

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

virtual float vtkCubeSource::GetXLength   [virtual]
 

virtual void vtkCubeSource::SetYLength float    [virtual]
 

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

virtual float vtkCubeSource::GetYLength   [virtual]
 

virtual void vtkCubeSource::SetZLength float    [virtual]
 

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

virtual float vtkCubeSource::GetZLength   [virtual]
 

virtual void vtkCubeSource::SetCenter float   ,
float   ,
float   
[virtual]
 

Set the center of the cube.

virtual void vtkCubeSource::SetCenter float   [3] [virtual]
 

virtual float* vtkCubeSource::GetCenter   [virtual]
 

virtual void vtkCubeSource::GetCenter float    data[3] [virtual]
 

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]
 

void vtkCubeSource::operator= const vtkCubeSource &    [inline, protected]
 

Definition at line 94 of file vtkCubeSource.h.

void vtkCubeSource::Execute   [protected, virtual]
 

Reimplemented from vtkSource.


Member Data Documentation

float vtkCubeSource::XLength [protected]
 

Definition at line 97 of file vtkCubeSource.h.

float vtkCubeSource::YLength [protected]
 

Definition at line 98 of file vtkCubeSource.h.

float vtkCubeSource::ZLength [protected]
 

Definition at line 99 of file vtkCubeSource.h.

float vtkCubeSource::Center[3] [protected]
 

Definition at line 100 of file vtkCubeSource.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:47:11 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001