vtkCylinderSource Class Reference

#include <vtkCylinderSource.h>

Inheritance diagram for vtkCylinderSource:

Inheritance graph
[legend]
Collaboration diagram for vtkCylinderSource:

Collaboration graph
[legend]

List of all members.


Detailed Description

generate a cylinder centered at origin

vtkCylinderSource creates a polygonal cylinder centered at Center; The axis of the cylinder is aligned along the global y-axis. The height and radius of the cylinder can be specified, as well as the number of sides. It is also possible to control whether the cylinder is open-ended or capped.

Examples:
vtkCylinderSource (Examples)
Tests:
vtkCylinderSource (Tests)

Definition at line 38 of file vtkCylinderSource.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 SetHeight (double)
virtual double GetHeight ()
virtual void SetRadius (double)
virtual double GetRadius ()
virtual void SetCenter (double, double, double)
virtual void SetCenter (double[3])
virtual double * GetCenter ()
virtual void GetCenter (double data[3])
virtual void SetResolution (int)
virtual int GetResolution ()
virtual void SetCapping (int)
virtual int GetCapping ()
virtual void CappingOn ()
virtual void CappingOff ()

Static Public Member Functions

static vtkCylinderSourceNew ()
static int IsTypeOf (const char *type)
static vtkCylinderSourceSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkCylinderSource (int res=6)
 ~vtkCylinderSource ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

double Height
double Radius
double Center [3]
int Resolution
int Capping

Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 42 of file vtkCylinderSource.h.


Constructor & Destructor Documentation

vtkCylinderSource::vtkCylinderSource ( int  res = 6  )  [protected]

vtkCylinderSource::~vtkCylinderSource (  )  [inline, protected]

Definition at line 78 of file vtkCylinderSource.h.


Member Function Documentation

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

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

Reimplemented from vtkPolyDataAlgorithm.

virtual const char* vtkCylinderSource::GetClassName (  )  [virtual]

Reimplemented from vtkPolyDataAlgorithm.

static int vtkCylinderSource::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkCylinderSource::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

static vtkCylinderSource* vtkCylinderSource::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkPolyDataAlgorithm.

void vtkCylinderSource::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 vtkCylinderSource::SetHeight ( double   )  [virtual]

Set the height of the cylinder.

virtual double vtkCylinderSource::GetHeight (  )  [virtual]

Set the height of the cylinder.

virtual void vtkCylinderSource::SetRadius ( double   )  [virtual]

Set the radius of the cylinder.

virtual double vtkCylinderSource::GetRadius (  )  [virtual]

Set the radius of the cylinder.

virtual void vtkCylinderSource::SetCenter ( double  ,
double  ,
double   
) [virtual]

Set/Get cylinder center

virtual void vtkCylinderSource::SetCenter ( double  [3]  )  [virtual]

Set/Get cylinder center

virtual double* vtkCylinderSource::GetCenter (  )  [virtual]

Set/Get cylinder center

virtual void vtkCylinderSource::GetCenter ( double  data[3]  )  [virtual]

Set/Get cylinder center

virtual void vtkCylinderSource::SetResolution ( int   )  [virtual]

Set the number of facets used to define cylinder.

virtual int vtkCylinderSource::GetResolution (  )  [virtual]

Set the number of facets used to define cylinder.

virtual void vtkCylinderSource::SetCapping ( int   )  [virtual]

Turn on/off whether to cap cylinder with polygons.

virtual int vtkCylinderSource::GetCapping (  )  [virtual]

Turn on/off whether to cap cylinder with polygons.

virtual void vtkCylinderSource::CappingOn (  )  [virtual]

Turn on/off whether to cap cylinder with polygons.

virtual void vtkCylinderSource::CappingOff (  )  [virtual]

Turn on/off whether to cap cylinder with polygons.

int vtkCylinderSource::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

double vtkCylinderSource::Height [protected]

Definition at line 81 of file vtkCylinderSource.h.

double vtkCylinderSource::Radius [protected]

Definition at line 82 of file vtkCylinderSource.h.

double vtkCylinderSource::Center[3] [protected]

Definition at line 83 of file vtkCylinderSource.h.

Definition at line 84 of file vtkCylinderSource.h.

int vtkCylinderSource::Capping [protected]

Definition at line 85 of file vtkCylinderSource.h.


The documentation for this class was generated from the following file:

Generated on Sat Dec 27 13:21:38 2008 for VTK by  doxygen 1.5.6