Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

LsgGroup Struct Reference
[Scene Representation]

Basic grouping node. More...

#include <group.h>

Collaboration diagram for LsgGroup:

Collaboration graph
[legend]

Data Fields

LsgNode super
LsgListchildren

Related Functions

(Note that these are not member functions.)

LsgGroupLsgGroup_create (void)
void LsgGroup_init (LsgGroup *self)
void LsgGroup_clean (LsgGroup *self)
void LsgGroup_update (LsgGroup *self, float time)
void LsgGroup_display (LsgGroup *self, LsgFrustum *frustum)
int LsgGroup_collide (LsgGroup *self, Vertex v, Vertex nearest)
void LsgGroup_destroy (LsgGroup *self)

Detailed Description

Basic grouping node.

The junction base class for the scene graph. Allows grouping of nodes and thereby hierarchical view frustum culling and collision detection.


Friends And Related Function Documentation

LsgGroup * LsgGroup_create void   )  [related]
 

Allocate and initialize a new LsgGroup.

Returns:
A new LsgGroup instance

void LsgGroup_init LsgGroup self  )  [related]
 

Constructor method for LsgGroup.

Parameters:
self The instance variable

void LsgGroup_clean LsgGroup self  )  [related]
 

Clean all children.

Parameters:
self The instance variable

void LsgGroup_update LsgGroup self,
float  time
[related]
 

Update all children.

Parameters:
self The instance variable
now The current time

void LsgGroup_display LsgGroup self,
LsgFrustum frustum
[related]
 

Display all subnodes if they are visible within the current view frustum.

Parameters:
self The instance variable
frustum The current view frustum

int LsgGroup_collide LsgGroup self,
Vertex  v,
Vertex  nearest
[related]
 

Check for collision with all children.

Parameters:
self The instance variable
v Some vertex
nearest A buffer to store the nearest vertex to v that would collide with any child
Returns:
1 if v collides with at least one child, 0 otherwise

void LsgGroup_destroy LsgGroup self  )  [related]
 

Destructor method for LsgGroup.

Parameters:
self The instance variable


The documentation for this struct was generated from the following file:
(c) 2003, by Enno Cramer
generated on 13 Jul 2003
lescegra - doxygen