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

vtkCone Class Reference

implicit function for a cone. More...

#include <vtkCone.h>

Inheritance diagram for vtkCone:

Inheritance graph
[legend]
Collaboration diagram for vtkCone:

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)
void EvaluateGradient (float x[3], float g[3])
float EvaluateFunction (float x[3])
float EvaluateFunction (float x, float y, float z)
virtual void SetAngle (float)
virtual float GetAngle ()

Static Public Methods

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

Protected Methods

 vtkCone ()
 ~vtkCone ()

Protected Attributes

float Angle

Detailed Description

implicit function for a cone.

Date:
2001/10/11 13:36:33
Revision:
1.35

vtkCone computes the implicit function and function gradient for a cone. vtkCone is a concrete implementation of vtkImplicitFunction. The cone vertex is located at the origin with axis of rotation coincident with x-axis. (Use the superclass' vtkImplicitFunction transformation matrix if necessary to reposition.) The angle specifies the angle between the axis of rotation and the side of the cone.

Warning:
The cone is infinite in extent. To truncate the cone use the vtkImplicitBoolean in combination with clipping planes.
Examples:
vtkCone (Examples)
Tests:
vtkCone (Tests)

Definition at line 69 of file vtkCone.h.


Constructor & Destructor Documentation

vtkCone::vtkCone   [protected]
 

vtkCone::~vtkCone   [inline, protected]
 

Definition at line 96 of file vtkCone.h.


Member Function Documentation

vtkCone* vtkCone::New   [static]
 

Construct cone with angle of 45 degrees.

Reimplemented from vtkObject.

virtual const char* vtkCone::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 vtkImplicitFunction.

int vtkCone::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 vtkImplicitFunction.

virtual int vtkCone::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 vtkImplicitFunction.

vtkCone* vtkCone::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 vtkImplicitFunction.

void vtkCone::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 vtkImplicitFunction.

float vtkCone::EvaluateFunction float    x[3] [virtual]
 

Evaluate cone equation.

Reimplemented from vtkImplicitFunction.

float vtkCone::EvaluateFunction float    x,
float    y,
float    z
[inline]
 

Evaluate cone equation.

Reimplemented from vtkImplicitFunction.

Definition at line 81 of file vtkCone.h.

void vtkCone::EvaluateGradient float    x[3],
float    g[3]
[virtual]
 

Evaluate cone normal.

Reimplemented from vtkImplicitFunction.

virtual void vtkCone::SetAngle float    [virtual]
 

Set/Get the cone angle (expressed in degrees).

virtual float vtkCone::GetAngle   [virtual]
 

Set/Get the cone angle (expressed in degrees).


Member Data Documentation

float vtkCone::Angle [protected]
 

Definition at line 98 of file vtkCone.h.


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