#include <GDynamicGeneratorAgent.cpp>
Collaboration diagram for GBE::GDynamicGeneratorOctreeNode:

|
||||||||||||||||
|
Constructor. |
|
|
Destructor, deletes all child nodes. |
|
|
Creates all 8 child nodes for this octree node.
|
|
|
the child node of this octree node that covers given position. NULL if position is completely outside of this node!
|
|
|
a pointer list with all child nodes. |
|
||||||||||||
|
all child nodes that cover part of given area;
|
|
|
the position of this node. |
|
|
|
|
|
the seed for the RNG for this node. |
|
|
the segment size of the enclosing node cube. |
|
||||||||||||
|
true when given area is enclosed by the cube of this octree node. |
|
|
true when an element was already created at this node position.
|
|
|
|
|
|
true when given position is inside the cube of this octree node. |
|
|
Reduces all child nodes that have been used for element creation (isGenerated()==true) |
|
|
Deletes all child nodes. |
|
|
Sets Generated to true.
|
|
||||||||||||
|
true when given area touches the cube of this octree node. |
|
|
Array of child nodes. Seen FROM positive y: the first four are the first four (mathematical) quadrants and the second four children are the last four quadrants. |
|
|
Set to true when this node is an end node and the element for this node has been created. If this node is not an end node but all child nodes have been used for creating elements then this is also set to true. This means that if Generated is set to true then the whole cubic area this node covers had been generated. Thus it is possible to reduce nodes and save memory. In the end, when the whole element was created, there will be only one node left: the top node, and its Generated attribute will be set to true. |
|
|
The position relative to the element centre.
|
|
|
The RNG seed number for this node. THIS is the actual data we need for child generation at the node's position. |
|
|
Segment size of the enclosing cube. This value is both required to generate positions and sizes of child nodes as well as to be able to "randomly" place the created child element somewhere in this cube. If this second functionality were not given, a randomly created element content (=children of one specific element) could look like a grid.
|
1.3.6