NAME
vtkCylinderSource - generate a cylinder centered at origin
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkCylinderSource.h"
class VTK_EXPORT vtkCylinderSource : public vtkPolyDataSource
vtkCylinderSource(int res=6);
static vtkCylinderSource *New() {return new vtkCylinderSource;};
const char *GetClassName() {return "vtkCylinderSource";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetHeight(float);
float GetHeight();
void SetRadius(float);
float GetRadius();
void SetCenter(float, float, float);
void SetCenter(float *);
float *GetCenter();
void GetCenter(float data[3]);
void SetResolution(int);
int GetResolution();
void SetCapping(int);
int GetCapping();
void CappingOn();
void CappingOff();
DESCRIPTION
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.
SUMMARY
void SetHeight(float)
Set the height of the cylinder.
void SetRadius(float)
Set the radius of the cylinder.
void SetCenter(float, float, float)
void SetCenter(float *)
Set/Get cylinder center
void SetResolution(int)
Set the number of facets used to define cylinder.
void SetCapping(int)
Turn on/off whether to cap cylinder with polygons.