Section: Visualization Toolkit Graphics Classes
To create an instance of class vtkConeSource, simply invoke its constructor as follows
obj = vtkConeSource
obj
is an instance of the vtkConeSource class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkConeSource = obj.NewInstance ()
vtkConeSource = obj.SafeDownCast (vtkObject o)
obj.SetHeight (double )
- Set the height of the cone. This is the height along the cone in
its specified direction.
double = obj.GetHeightMinValue ()
- Set the height of the cone. This is the height along the cone in
its specified direction.
double = obj.GetHeightMaxValue ()
- Set the height of the cone. This is the height along the cone in
its specified direction.
double = obj.GetHeight ()
- Set the height of the cone. This is the height along the cone in
its specified direction.
obj.SetRadius (double )
- Set the base radius of the cone.
double = obj.GetRadiusMinValue ()
- Set the base radius of the cone.
double = obj.GetRadiusMaxValue ()
- Set the base radius of the cone.
double = obj.GetRadius ()
- Set the base radius of the cone.
obj.SetResolution (int )
- Set the number of facets used to represent the cone.
int = obj.GetResolutionMinValue ()
- Set the number of facets used to represent the cone.
int = obj.GetResolutionMaxValue ()
- Set the number of facets used to represent the cone.
int = obj.GetResolution ()
- Set the number of facets used to represent the cone.
obj.SetCenter (double , double , double )
- Set the center of the cone. It is located at the middle of the axis of
the cone. Warning: this is not the center of the base of the cone!
The default is 0,0,0.
obj.SetCenter (double a[3])
- Set the center of the cone. It is located at the middle of the axis of
the cone. Warning: this is not the center of the base of the cone!
The default is 0,0,0.
double = obj. GetCenter ()
- Set the center of the cone. It is located at the middle of the axis of
the cone. Warning: this is not the center of the base of the cone!
The default is 0,0,0.
obj.SetDirection (double , double , double )
- Set the orientation vector of the cone. The vector does not have
to be normalized. The direction goes from the center of the base toward
the apex. The default is (1,0,0).
obj.SetDirection (double a[3])
- Set the orientation vector of the cone. The vector does not have
to be normalized. The direction goes from the center of the base toward
the apex. The default is (1,0,0).
double = obj. GetDirection ()
- Set the orientation vector of the cone. The vector does not have
to be normalized. The direction goes from the center of the base toward
the apex. The default is (1,0,0).
obj.SetAngle (double angle)
- Set the angle of the cone. This is the angle between the axis of the cone
and a generatrix. Warning: this is not the aperture! The aperture is
twice this angle.
As a side effect, the angle plus height sets the base radius of the cone.
Angle is expressed in degrees.
double = obj.GetAngle ()
- Set the angle of the cone. This is the angle between the axis of the cone
and a generatrix. Warning: this is not the aperture! The aperture is
twice this angle.
As a side effect, the angle plus height sets the base radius of the cone.
Angle is expressed in degrees.
obj.SetCapping (int )
- Turn on/off whether to cap the base of the cone with a polygon.
int = obj.GetCapping ()
- Turn on/off whether to cap the base of the cone with a polygon.
obj.CappingOn ()
- Turn on/off whether to cap the base of the cone with a polygon.
obj.CappingOff ()
- Turn on/off whether to cap the base of the cone with a polygon.