Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File 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)

Definition at line 64 of file vtkConeSource.h.


Constructor & Destructor Documentation

vtkConeSource::vtkConeSource int    res = 6 [protected]
 

vtkConeSource::~vtkConeSource   [inline, protected]
 

Definition at line 97 of file vtkConeSource.h.

vtkConeSource::vtkConeSource const vtkConeSource &    [inline, protected]
 

Definition at line 98 of file vtkConeSource.h.


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.

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.

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.

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::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::New   [static]
 

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

Reimplemented from vtkPolyDataSource.

virtual void vtkConeSource::SetHeight float    [virtual]
 

Set the height of the cone.

virtual float vtkConeSource::GetHeight   [virtual]
 

virtual void vtkConeSource::SetRadius float    [virtual]
 

Set the radius of the cone.

virtual float vtkConeSource::GetRadius   [virtual]
 

virtual void vtkConeSource::SetResolution int    [virtual]
 

Set the number of facets used to represent the cone.

virtual int vtkConeSource::GetResolution   [virtual]
 

void vtkConeSource::SetAngle float    angle
 

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

float vtkConeSource::GetAngle  
 

virtual void vtkConeSource::SetCapping int    [virtual]
 

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

virtual int vtkConeSource::GetCapping   [virtual]
 

virtual void vtkConeSource::CappingOn   [virtual]
 

virtual void vtkConeSource::CappingOff   [virtual]
 

void vtkConeSource::operator= const vtkConeSource &    [inline, protected]
 

Definition at line 99 of file vtkConeSource.h.

void vtkConeSource::Execute   [protected, virtual]
 

Reimplemented from vtkSource.

void vtkConeSource::ExecuteInformation   [protected, virtual]
 

Reimplemented from vtkSource.


Member Data Documentation

float vtkConeSource::Height [protected]
 

Definition at line 103 of file vtkConeSource.h.

float vtkConeSource::Radius [protected]
 

Definition at line 104 of file vtkConeSource.h.

int vtkConeSource::Resolution [protected]
 

Definition at line 105 of file vtkConeSource.h.

int vtkConeSource::Capping [protected]
 

Definition at line 106 of file vtkConeSource.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:47:01 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001