#include <vee_scene.h>
Collaboration diagram for VEE_SceneBox:
|
|
|
|
|
|
|
Creates and uninitialized (thus unusable) VEE_SceneBox.
|
|
Creates an initialized VEE_SceneBox.
|
|
Deletes this box, also deleting any child boxes.
|
|
Initialize a scene box.
|
|
|
|
Adds an object to the box-graph. The object may end up anywhere in the graph. The scene-box field of the argument object is also set to the correct value.
|
|
Adds an object to the box-graph. The object may end up anywhere in the graph. The scene-box field of the argument object is also set to the correct value.
|
|
DO NOT CALL. This method is here only to make sure one does not accidentally add force objects with "addObject". |
|
Use this method to add new force objects to the scene.
|
|
Adds an object to either this box or below in the hierarchy. The scene-box field of the argument object is also set to the correct value. It is assumed that the object is truly within this box. It is also assumed that the object is not a child of this before this call. The argument is not checked for correctness.
|
|
Removes a direct child object. If VEE is compiled with error reporting this method will both check the argument for sanity and check that the operation was successful. in error conditions warning values will be printed as necessary. |
|
|
|
|
|
|
|
Updates the registering locations of all the objects and force objects.
|
|
|
|
Get all the child objects of this box recursively.
|
|
|
|
Total number of child objects (recursive).
|
|
|
|
The main updating method.
|
|
|
|
Updates the current box-graph. New branches are grown and shrunk as necessary. This method uses VEE_SceneBox::trySplit and VEE_SceneBox::tryCollapse to do the real work.
|
|
|
|
Tries to split the box to eight child boxes recursively.
|
|
Tries to collapse the child boxes of this box recursively.
|
|
|
|
|
|
Has the box been split to eight child boxes.
|
|
Writes out all the objects found inside the scenebox.
|
|
VEE::SceneBox::getForce searches for all the forces of the specified force type and returns a single sum of these vectors, the force field, in VEE_Vector3 *force.
|
|
VEE_SceneBox::getForces calculates the magnitude and the direction of the force field of the specified type acting on the queried locations. Writes n number of resultant vectors to the structure VEE_Vector *force. |
|
Gets a number of forces downwards (recursive).
|
|
Gets a number of forces (non-recursive).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Update the location of an object in the VEE_SceneBox graph. The object must be a direct child of this box.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|