Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

SoFaceDetail Class Reference

The SoFaceDetail class is for storing detailed polygon information. More...

#include <Inventor/details/SoFaceDetail.h>

Inheritance diagram for SoFaceDetail::

SoDetail List of all members.

Public Methods

 SoFaceDetail (void)
virtual ~SoFaceDetail ()
virtual SoDetailcopy (void) const
int getNumPoints (void) const
const SoPointDetailgetPoint (const int idx) const
SoPointDetailgetPoints (void)
int getFaceIndex (void) const
int getPartIndex (void) const
void setNumPoints (const int num)
void setPoint (const int idx, const SoPointDetail *const detail)
void setFaceIndex (const int idx)
void setPartIndex (const int idx)
void incFaceIndex (void)
void incPartIndex (void)

Static Public Methods

void initClass (void)

Detailed Description

The SoFaceDetail class is for storing detailed polygon information.

Instances of this class are used among other things for storing information about polygons after pick operations, and for storing information returned to tesselation callbacks.

Note that a SoFaceDetail instance consists of a set of SoPointDetail instances, one for each vertex of the polygon it represents.

See also:
SoRayPickAction, SoPickedPoint, SoCallbackAction


Constructor & Destructor Documentation

SoFaceDetail::SoFaceDetail void
 

Default constructor sets up an empty, non-valid detail specification.

SoFaceDetail::~SoFaceDetail [virtual]
 

Destructor, free internal resources used for storing the polygon vertices.


Member Function Documentation

void SoFaceDetail::initClass void [static]
 

Initialize relevant common data for all instances, like the type system.

Reimplemented from SoDetail.

SoDetail * SoFaceDetail::copy void const [virtual]
 

Return a deep copy of ourself.

Reimplemented from SoDetail.

int SoFaceDetail::getNumPoints void const
 

Number of vertices making up the polygon.

const SoPointDetail * SoFaceDetail::getPoint const int idx const
 

Returns a pointer into the array of vertices, starting at the idx'th vertice of the polygon.

The array will contain (SoFaceDetail::getNumPoints() - idx) elements.

SoPointDetail * SoFaceDetail::getPoints void
 

Returns the full array of vertice details for the polygon. The array will contain SoFaceDetail::getNumPoints() elements.

int SoFaceDetail::getFaceIndex void const
 

Returns the index of this polygon within the faceset node it is part of.

int SoFaceDetail::getPartIndex void const
 

If this SoFaceDetail represents a triangle tesselated from a complex shape, this method returns the index of the part of the complex shape it was tesselated from.

void SoFaceDetail::setNumPoints const int num
 

Used internally from library client code setting up a SoFaceDetail instance.

See also:
getNumPoints()

void SoFaceDetail::setPoint const int idx,
const SoPointDetail *const detail
 

Used internally from library client code setting up a SoFaceDetail instance.

See also:
getPoint(), getPoints()

void SoFaceDetail::setFaceIndex const int idx
 

Used internally from library client code setting up a SoFaceDetail instance.

See also:
getFaceIndex()

void SoFaceDetail::setPartIndex const int idx
 

Used internally from library client code setting up a SoFaceDetail instance.

See also:
getPartIndex()

void SoFaceDetail::incFaceIndex void
 

Used internally from library client code setting up a SoFaceDetail instance.

void SoFaceDetail::incPartIndex void
 

Used internally from library client code setting up a SoFaceDetail instance.


The documentation for this class was generated from the following files:
Generated at Tue Mar 5 03:31:24 2002 for Coin by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001