Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkConeSource Class Reference

generate polygonal cone. More...

#include <vtkConeSource.h>

Inheritance diagram for vtkConeSource:

Inheritance graph
[legend]
Collaboration diagram for vtkConeSource:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetHeight (float)
virtual float GetHeight ()
virtual void SetRadius (float)
virtual float GetRadius ()
virtual void SetResolution (int)
virtual int GetResolution ()
void SetAngle (float angle)
float GetAngle ()
virtual void SetCapping (int)
virtual int GetCapping ()
virtual void CappingOn ()
virtual void CappingOff ()

Static Public Methods

int IsTypeOf (const char *type)
vtkConeSource * SafeDownCast (vtkObject *o)
vtkConeSource * New ()

Protected Methods

 vtkConeSource (int res=6)
 ~vtkConeSource ()
 vtkConeSource (const vtkConeSource &)
void operator= (const vtkConeSource &)
void Execute ()
void ExecuteInformation ()

Protected Attributes

float Height
float Radius
int Resolution
int Capping

Detailed Description

generate polygonal cone.

Date:
2000/12/10 20:08:32
Revision:
1.44

vtkConeSource creates a cone centered at origin and pointing down the x-axis. Depending upon the resolution of this object, different representations are created. If resolution=0 a line is created; if resolution=1, a single triangle is created; if resolution=2, two crossed triangles are created. For resolution > 2, a 3D cone (with resolution number of sides) is created. It also is possible to control whether the bottom of the cone is capped with a (resolution-sided) polygon, and to specify the height and radius of the cone.

Examples:
vtkConeSource (examples)


Member Function Documentation

virtual const char* vtkConeSource::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataSource.

virtual int vtkConeSource::IsA const char *    type [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 vtkPolyDataSource.

int vtkConeSource::IsTypeOf const char *    type [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 vtkPolyDataSource.

vtkConeSource* vtkConeSource::New   [static]
 

Construct with default resolution 6, height 1.0, radius 0.5, and capping on.

Reimplemented from vtkPolyDataSource.

void vtkConeSource::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 vtkSource.

vtkConeSource* vtkConeSource::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataSource.

void vtkConeSource::SetAngle float    angle
 

Set the angle of the cone. As a side effect, this method sets radius.

virtual void vtkConeSource::SetCapping int    [virtual]
 

Turn on/off whether to cap the cone with a polygon.

virtual void vtkConeSource::SetHeight float    [virtual]
 

Set the height of the cone.

virtual void vtkConeSource::SetRadius float    [virtual]
 

Set the radius of the cone.

virtual void vtkConeSource::SetResolution int    [virtual]
 

Set the number of facets used to represent the cone.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:24:18 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002