Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

listnode.cpp File Reference

#include "listnode.h"
#include "bsp.h"
#include "tll.h"
#include "mmgr.h"

Go to the source code of this file.

Functions

void MakeNodeLists (BSP_node *node)

Variables

int numlistleaves
int numlistpartitions
ListNodelistnode
LinkedList< ListNodeLeafList
LinkedList< ListNodePartitionList


Function Documentation

void MakeNodeLists BSP_node   node
 

Definition at line 22 of file listnode.cpp.

References BSP_node::backnode, BSP_node::frontnode, LinkedList< T >::Insert(), BSP_node::leaf, ListNode::linkPosition, ListNode::node, BSP_node::nodeid, numlistleaves, and numlistpartitions.

Referenced by InitGL().

00023 {
00024     if (node->leaf == true)
00025     {
00026         numlistleaves++;
00027         listnode = new ListNode;
00028         listnode->node = node;
00029         listnode->linkPosition = node->nodeid;
00030         LeafList.Insert(listnode);
00031         return;
00032     }
00033     else
00034     {
00035         if (node->nodeid != 0)
00036         {
00037             numlistpartitions++;
00038             listnode = new ListNode;
00039             listnode->node = node;
00040             listnode->linkPosition = node->nodeid;
00041             PartitionList.Insert(listnode);
00042         }
00043     }
00044     MakeNodeLists(node->frontnode);
00045     MakeNodeLists(node->backnode);
00046 }


Variable Documentation

LinkedList<ListNode> LeafList
 

Definition at line 9 of file listnode.cpp.

ListNode* listnode
 

Definition at line 8 of file listnode.cpp.

int numlistleaves
 

Definition at line 6 of file listnode.cpp.

Referenced by MakeNodeLists().

int numlistpartitions
 

Definition at line 7 of file listnode.cpp.

Referenced by MakeNodeLists().

LinkedList<ListNode> PartitionList
 

Definition at line 10 of file listnode.cpp.


Generated on Fri Dec 23 05:19:57 2005 for Particles by doxygen1.2.15