CIvfCone Class Reference

#include <ivf/IvfCone.h>

Inheritance diagram for CIvfCone:

CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase CIvfCylinder List of all members.

Public Member Functions

 CIvfCone ()
virtual ~CIvfCone ()
 IvfClassInfo ("CIvfCone", CIvfShape)
void setTopRadius (const double radius)
double getTopRadius ()
void setBottomRadius (const double radius)
double getBottomRadius ()
void setHeight (const double height)
double getHeight ()
void setStacks (int stacks)
int getStacks ()
void setSlices (int slices)
int getSlices ()
void updateBoundingSphere ()

Protected Member Functions

virtual void createSelect ()
virtual void createGeometry ()

Detailed Description

Cone shape class

CIvfCone implements a class for representing cone shaped objects. CIvfCone has a top radius and a bottom radius. It is also possible to specify how many slices and stacks the cone should consist of.

Author:
Jonas Lindemann
Examples:

handlers.cpp, manip.cpp, placement.cpp, and selection.cpp.

Definition at line 42 of file IvfCone.h.


Constructor & Destructor Documentation

CIvfCone::CIvfCone  ) 
 

CIvfCone constructor.

virtual CIvfCone::~CIvfCone  )  [virtual]
 

CIvfCone destructor.


Member Function Documentation

virtual void CIvfCone::createGeometry  )  [protected, virtual]
 

Forces an object recalculation.

Reimplemented from CIvfShape.

virtual void CIvfCone::createSelect  )  [protected, virtual]
 

Creates the select object.

When the object is selected. This method is called to create the object respresenting the select state.

Reimplemented from CIvfShape.

double CIvfCone::getBottomRadius  ) 
 

Return bottom radius

double CIvfCone::getHeight  ) 
 

Return height

int CIvfCone::getSlices  ) 
 

Return slices

int CIvfCone::getStacks  ) 
 

Return stacks

double CIvfCone::getTopRadius  ) 
 

Return top radius

void CIvfCone::setBottomRadius const double  radius  ) 
 

Set bottom radius

void CIvfCone::setHeight const double  height  ) 
 

Set height

void CIvfCone::setSlices int  slices  ) 
 

Set slices

The slices property determines how many slices the cone should have around its axis.

Parameters:
slices Number of slices (default = 8).

void CIvfCone::setStacks int  stacks  ) 
 

Set stacks

The stacks property determines how many slices the cone should have along its axis.

Parameters:
stacks Number of stacks (default = 8).

void CIvfCone::setTopRadius const double  radius  ) 
 

Set top radius

void CIvfCone::updateBoundingSphere  )  [virtual]
 

Updates bounding sphere

Upates the radius of the assigned bounding sphere, if any.

Reimplemented from CIvfObject.


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:49 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO