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 ()
void Execute ()
void ExecuteInformation ()

Protected Attributes

float Height
float Radius
int Resolution
int Capping

Detailed Description

generate polygonal cone.

Date:
2001/10/11 13:36:50
Revision:
1.49

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)
Tests:
vtkConeSource (Tests)

Definition at line 67 of file vtkConeSource.h.


Constructor & Destructor Documentation

vtkConeSource::vtkConeSource int    res = 6 [protected]
 

vtkConeSource::~vtkConeSource   [inline, protected]
 

Definition at line 110 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]
 

Set the height of the cone.

virtual void vtkConeSource::SetRadius float    [virtual]
 

Set the radius of the cone.

virtual float vtkConeSource::GetRadius   [virtual]
 

Set the radius of the cone.

virtual void vtkConeSource::SetResolution int    [virtual]
 

Set the number of facets used to represent the cone.

virtual int vtkConeSource::GetResolution   [virtual]
 

Set the number of facets used to represent the cone.

void vtkConeSource::SetAngle float    angle
 

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

float vtkConeSource::GetAngle  
 

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 int vtkConeSource::GetCapping   [virtual]
 

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

virtual void vtkConeSource::CappingOn   [virtual]
 

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

virtual void vtkConeSource::CappingOff   [virtual]
 

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

void vtkConeSource::Execute   [protected, virtual]
 

This method is the old style execute method

Reimplemented from vtkSource.

void vtkConeSource::ExecuteInformation   [protected, virtual]
 

Reimplemented from vtkSource.


Member Data Documentation

float vtkConeSource::Height [protected]
 

Definition at line 114 of file vtkConeSource.h.

float vtkConeSource::Radius [protected]
 

Definition at line 115 of file vtkConeSource.h.

int vtkConeSource::Resolution [protected]
 

Definition at line 116 of file vtkConeSource.h.

int vtkConeSource::Capping [protected]
 

Definition at line 117 of file vtkConeSource.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:28:10 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001