CIvfSolidLine Class Reference

#include <ivf/IvfSolidLine.h>

Inheritance diagram for CIvfSolidLine:

CIvfExtrusion CIvfShape CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfSolidLine ()
virtual ~CIvfSolidLine ()
 IvfClassInfo ("CIvfSolidLine", CIvfExtrusion)
virtual void refresh ()
void setSides (long n)
void setRadius (double radius)
void setNodes (CIvfNode *n1, CIvfNode *n2)
CIvfNodegetNode (int idx)
void setRefresh (int mode)
double getRadius ()
double getLength ()
void setOffsets (double offset1, double offset2)

Protected Member Functions

virtual void initExtrusion ()
virtual void onSetNodes (CIvfNode *n1, CIvfNode *n2)

Detailed Description

Solid line class

CIvfSolidLine implements a solid line between two CIvfNode instances. The radius and number of sides can be defined.

Author:
Jonas Lindemann

Definition at line 48 of file IvfSolidLine.h.


Constructor & Destructor Documentation

CIvfSolidLine::CIvfSolidLine  ) 
 

CIvfSolidLine constructor

virtual CIvfSolidLine::~CIvfSolidLine  )  [virtual]
 

CIvfSolidLine destructor


Member Function Documentation

CIvfNode* CIvfSolidLine::getNode int  idx  ) 
 

Returns a node

Parameters:
idx Idx of node to be retrieved. (0, 1)

virtual void CIvfSolidLine::refresh  )  [virtual]
 

Refreshes object data

To avoid calculations when drawing the object, data for the extrusion is updated by calling this method.

Reimplemented from CIvfShape.

void CIvfSolidLine::setNodes CIvfNode n1,
CIvfNode n2
 

Set nodes

The solid line is constructed between two CIvfNode instances. The reference count of the node is increased when assigned to the solid line. If the node are not referenced they are deleted when the solid line is destroyed.

void CIvfSolidLine::setRadius double  radius  ) 
 

Set polygon radius

void CIvfSolidLine::setRefresh int  mode  ) 
 

Set refresh mode

IVF_REFRESH_ALL - Refresh all IVF_REFRESH_NODES - Only nodes IVF_REFRESH_SECTION - Only section

void CIvfSolidLine::setSides long  n  ) 
 

Set section sides

The section of the solid line is implemented as a circular polyline with specified radius and number of sides

Parameters:
n Number of sides in polygon.


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