VTK
|
generate a cylinder centered at origin More...
#include <vtkCylinderSource.h>
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. If you have the end points of the cylinder, you should use a vtkLineSource followed by a vtkTubeFilter instead of the vtkCylinderSource.
Definition at line 41 of file vtkCylinderSource.h.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 45 of file vtkCylinderSource.h.
vtkCylinderSource::vtkCylinderSource | ( | int | res = 6 | ) | [protected] |
vtkCylinderSource::~vtkCylinderSource | ( | ) | [inline, protected] |
Definition at line 91 of file vtkCylinderSource.h.
static vtkCylinderSource* vtkCylinderSource::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
static vtkCylinderSource* vtkCylinderSource::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
virtual vtkObjectBase* vtkCylinderSource::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataAlgorithm.
vtkCylinderSource* vtkCylinderSource::NewInstance | ( | ) | const |
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. Initial value is 1.
virtual double vtkCylinderSource::GetHeight | ( | ) | [virtual] |
Set the height of the cylinder. Initial value is 1.
virtual void vtkCylinderSource::SetRadius | ( | double | ) | [virtual] |
Set the radius of the cylinder. Initial value is 0.5
virtual double vtkCylinderSource::GetRadius | ( | ) | [virtual] |
Set the radius of the cylinder. Initial value is 0.5
virtual void vtkCylinderSource::SetCenter | ( | double | , |
double | , | ||
double | |||
) | [virtual] |
Set/Get cylinder center. Initial value is (0.0,0.0,0.0)
virtual void vtkCylinderSource::SetCenter | ( | double | [3] | ) | [virtual] |
Set/Get cylinder center. Initial value is (0.0,0.0,0.0)
virtual double* vtkCylinderSource::GetCenter | ( | ) | [virtual] |
Set/Get cylinder center. Initial value is (0.0,0.0,0.0)
virtual void vtkCylinderSource::GetCenter | ( | double | data[3] | ) | [virtual] |
Set/Get cylinder center. Initial value is (0.0,0.0,0.0)
virtual void vtkCylinderSource::SetResolution | ( | int | ) | [virtual] |
Set the number of facets used to define cylinder. Initial value is 6.
virtual int vtkCylinderSource::GetResolution | ( | ) | [virtual] |
Set the number of facets used to define cylinder. Initial value is 6.
virtual void vtkCylinderSource::SetCapping | ( | int | ) | [virtual] |
Turn on/off whether to cap cylinder with polygons. Initial value is true.
virtual int vtkCylinderSource::GetCapping | ( | ) | [virtual] |
Turn on/off whether to cap cylinder with polygons. Initial value is true.
virtual void vtkCylinderSource::CappingOn | ( | ) | [virtual] |
Turn on/off whether to cap cylinder with polygons. Initial value is true.
virtual void vtkCylinderSource::CappingOff | ( | ) | [virtual] |
Turn on/off whether to cap cylinder with polygons. Initial value is true.
virtual void vtkCylinderSource::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 vtkCylinderSource::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 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.
double vtkCylinderSource::Height [protected] |
Definition at line 94 of file vtkCylinderSource.h.
double vtkCylinderSource::Radius [protected] |
Definition at line 95 of file vtkCylinderSource.h.
double vtkCylinderSource::Center[3] [protected] |
Definition at line 96 of file vtkCylinderSource.h.
int vtkCylinderSource::Resolution [protected] |
Definition at line 97 of file vtkCylinderSource.h.
int vtkCylinderSource::Capping [protected] |
Definition at line 98 of file vtkCylinderSource.h.
int vtkCylinderSource::OutputPointsPrecision [protected] |
Definition at line 99 of file vtkCylinderSource.h.