NAME
vtkCylinder - implicit function for a cylinder
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkCylinder.h"
class VTK_EXPORT vtkCylinder : public vtkImplicitFunction
vtkCylinder();
static vtkCylinder *New() {return new vtkCylinder;};
const char *GetClassName() {return "vtkCylinder";};
void PrintSelf(ostream& os, vtkIndent indent);
float EvaluateFunction(float x[3]);
void EvaluateGradient(float x[3], float g[3]);
void SetRadius(float);
float GetRadius();
void SetCenter(float, float, float);
void SetCenter(float *);
float *GetCenter();
void GetCenter(float data[3]);
DESCRIPTION
vtkCylinder computes the implicit function and function gradient for a cylinder. vtkCylinder is a concrete implementation of vtkImplicitFunction. Cylinder is centered at Center and axes of rotation is along the y-axis. (Use the superclass' vtkImplicitFunction transformation matrix if necessary to reposition.)
CAVEATS
The cylinder is infinite in extent. To truncate the cylinder use the vtkImplicitBoolean in combination with clipping planes.
SUMMARY
void SetRadius(float)
Set/Get cylinder radius.
void SetCenter(float, float, float)
void SetCenter(float *)
Set/Get cylinder center