Documentation


animal::octree::OctreeEngine Class Reference

#include <OctreeEngine.h>

Inheritance diagram for animal::octree::OctreeEngine:

animal::octree::Octree animal::Engine animal::octree::FastOctree< T, S, U > animal::octree::OctreeODEEngine animal::octree::OctreeSpringEngine List of all members.

Detailed Description

Octree with animation capabilities.

Author:
François Faure

Definition at line 29 of file OctreeEngine.h.

Public Member Functions

 OctreeEngine (Vec3d bboxMin, Vec3d bboxMax, MFVec3f *points, MFVec3f normals, unsigned int nMaxPointsPerCell)
 ~OctreeEngine ()
virtual void move (double dt)
virtual void init ()

Protected Member Functions

void readPositionsFrom (int)
 Copy the given field to the position of the vertices.

void writePositionsTo (int)
 Copy the position of the vertices to the given field.

void v_eq (int target_value_id, int a)
 target = a where target and a are abstract vectors made of the union of all node values?

void v_assign (int target_value_id, const Vec3d &a)
 target = a where target is an abstract vector and a a value to copy to all the entries.

void v_eq_a_plus_alpha_b (int target_value_id, int a, FloatingPointType alpha, int b)
 target = a + alpha * b where target, a and b are abstract vectors and alpha a scalar value.


Protected Attributes

double _time


Constructor & Destructor Documentation

animal::octree::OctreeEngine::OctreeEngine Vec3d  bboxMin,
Vec3d  bboxMax,
MFVec3f points,
MFVec3f  normals,
unsigned int  nMaxPointsPerCell
 

Definition at line 30 of file OctreeEngine.cpp.

References animal::octree::Vec3d.

animal::octree::OctreeEngine::~OctreeEngine  ) 
 

Definition at line 36 of file OctreeEngine.cpp.


Member Function Documentation

void animal::octree::OctreeEngine::init  )  [virtual]
 

Reimplemented from animal::Engine.

Definition at line 39 of file OctreeEngine.cpp.

References v_assign(), animal::octree::Vec3d, and writePositionsTo().

Referenced by X3DTK::X3D::DeformableOctreeNode::postInit().

void animal::octree::OctreeEngine::move double  dt  )  [virtual]
 

Reimplemented from animal::Engine.

Definition at line 46 of file OctreeEngine.cpp.

References _time, animal::octree::Octree::movedRecLeaves(), readPositionsFrom(), and v_eq_a_plus_alpha_b().

Referenced by X3DTK::X3D::DeformableOctreeNode::animate().

void animal::octree::OctreeEngine::readPositionsFrom int   )  [protected]
 

Copy the given field to the position of the vertices.

Definition at line 92 of file OctreeEngine.cpp.

References animal::octree::ConstrainedVertex::computePosition(), animal::octree::ConstrainedVertex::isFree(), animal::octree::ConstrainedVertex::setPosition(), and animal::octree::ConstrainedVertex::value().

Referenced by move().

void animal::octree::OctreeEngine::v_assign int  target_value_id,
const Vec3d a
[protected]
 

target = a where target is an abstract vector and a a value to copy to all the entries.

Definition at line 64 of file OctreeEngine.cpp.

References animal::octree::ConstrainedVertex::setValue(), and animal::octree::Vec3d.

Referenced by init().

void animal::octree::OctreeEngine::v_eq int  target_value_id,
int  a
[protected]
 

target = a where target and a are abstract vectors made of the union of all node values?

Definition at line 55 of file OctreeEngine.cpp.

References animal::octree::ConstrainedVertex::setValue(), and animal::octree::ConstrainedVertex::value().

void animal::octree::OctreeEngine::v_eq_a_plus_alpha_b int  target_value_id,
int  a,
FloatingPointType  alpha,
int  b
[protected]
 

target = a + alpha * b where target, a and b are abstract vectors and alpha a scalar value.

Definition at line 73 of file OctreeEngine.cpp.

References animal::octree::ConstrainedVertex::computeValueFromParents(), animal::octree::FloatingPointType, animal::octree::ConstrainedVertex::isFree(), animal::octree::ConstrainedVertex::setValue(), and animal::octree::ConstrainedVertex::value().

Referenced by animal::octree::OctreeODEEngine::integrate_VVerlet(), and move().

void animal::octree::OctreeEngine::writePositionsTo int   )  [protected]
 

Copy the position of the vertices to the given field.

Definition at line 114 of file OctreeEngine.cpp.

References animal::octree::ConstrainedVertex::computeValueFromParents(), animal::octree::ConstrainedVertex::getPosition(), animal::octree::ConstrainedVertex::isFree(), and animal::octree::ConstrainedVertex::setValue().

Referenced by init().


Member Data Documentation

double animal::octree::OctreeEngine::_time [protected]
 

Definition at line 40 of file OctreeEngine.h.

Referenced by move().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:33 2004 by doxygen 1.3.6