Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgClippedFacetSet Class Reference

Class to represent a facetset whose facets are on or off depending on whether they are visible from the given camera. More...

#include <ddgfacet.h>

Class diagram for ddgClippedFacetSet:

ddgFacetSet ddgDLNode ddgNode ddgStarClass

List of all members.


Public Members

 ddgClippedFacetSet (unsigned int l = 0)
Class constructor.

 ~ddgClippedFacetSet ()
Class destructor.

bool init (ddgContext *ctx)
Initialize the data and allocate memory. More...

bool draw (ddgContext *ctx)
Draw the object.

bool active (int i)
Return true if a sector is active.

unsigned char classify ( ddgVector3 v)
Given a vector v, return the class of the nearest icosahedron normal. Preprocessing step.

bool clipVisibleSet (ddgContext *ctx )
Calculate the visible set of iso polygons and turn those on w.r.t given vector v. More...

void setFacet ( unsigned int i, bool a )
Set status of specific facet.


Detailed Description

Class to represent a facetset whose facets are on or off depending on whether they are visible from the given camera.


Member Function Documentation

bool ddgClippedFacetSet::init (ddgContext * ctx) [virtual]

Initialize the data and allocate memory.

returns true on error.

Reimplemented from ddgNode.

Reimplemented in ddgStarClass.

bool ddgClippedFacetSet::clipVisibleSet (ddgContext * ctx)

Calculate the visible set of iso polygons and turn those on w.r.t given vector v.

Usually vector v is forward facing vector of the camera. if vector is null vector and reset is true, all facets are set to active. If reset if false, only facets which are currently active are retested. Returns false if no changes were needed to current state.


The documentation for this class was generated from the following file:
Generated at Sun Sep 17 19:27:52 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999