#include <ArticulatedHierarchyContainer.h>


Data Structures | |
| class | ArticulationCenter |
| This class defines an articulation center. More... | |
Public Member Functions | |
| ArticulatedHierarchyContainer () | |
| ~ArticulatedHierarchyContainer () | |
| void | init () |
| Initialization method called at graph modification, during bottom-up traversal. | |
| void | setFilename (std::string f) |
| vector< ArticulationCenter * > | getArticulationCenters () |
| ArticulationCenter * | getArticulationCenterAsChild (int index) |
| vector< ArticulationCenter * > | getAcendantList (int index) |
Data Fields | |
| vector< ArticulationCenter * > | articulationCenters |
| vector< ArticulationCenter * > | acendantList |
| bool | chargedFromFile |
| int | numOfFrames |
| double | dtbvh |
Protected Attributes | |
| Data< std::string > | filename |
Private Member Functions | |
| void | buildCenterArticulationsTree (sofa::helper::io::bvh::BVHJoint *, int id_buf, const char *name, simulation::tree::GNode *node) |
Private Attributes | |
| unsigned int | id |
| sofa::helper::io::bvh::BVHJoint * | joint |
Articulation
Definition at line 52 of file ArticulatedHierarchyContainer.h.
| sofa::component::container::ArticulatedHierarchyContainer::ArticulatedHierarchyContainer | ( | ) |
Definition at line 94 of file ArticulatedHierarchyContainer.inl.
References chargedFromFile, dtbvh, joint, and numOfFrames.
| sofa::component::container::ArticulatedHierarchyContainer::~ArticulatedHierarchyContainer | ( | ) | [inline] |
Definition at line 207 of file ArticulatedHierarchyContainer.h.
| void sofa::component::container::ArticulatedHierarchyContainer::buildCenterArticulationsTree | ( | sofa::helper::io::bvh::BVHJoint * | bvhjoint, | |
| int | id_buf, | |||
| const char * | name, | |||
| simulation::tree::GNode * | node | |||
| ) | [private] |
Definition at line 105 of file ArticulatedHierarchyContainer.inl.
References sofa::simulation::tree::GNode::addChild(), sofa::simulation::tree::GNode::addObject(), articulationCenters, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::Articulation::articulationIndex, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::articulations, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::Articulation::axis, sofa::helper::io::bvh::BVHChannels::channels, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::childIndex, sofa::helper::io::bvh::BVHMotion::frameCount, sofa::helper::io::bvh::BVHMotion::frames, sofa::helper::io::bvh::BVHJoint::getChannels(), sofa::helper::io::bvh::BVHJoint::getChildren(), sofa::helper::io::bvh::BVHJoint::getId(), sofa::helper::io::bvh::BVHJoint::getMotion(), sofa::helper::io::bvh::BVHJoint::getName(), sofa::helper::io::bvh::BVHJoint::getOffset(), sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::Articulation::motion, sofa::helper::io::bvh::BVHChannels::NOP, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::parentIndex, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::posOnChild, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::posOnParent, sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::Articulation::rotation, sofa::core::objectmodel::Data< T >::setValue(), sofa::component::container::ArticulatedHierarchyContainer::ArticulationCenter::Articulation::translation, sofa::helper::io::bvh::BVHChannels::Xposition, sofa::helper::io::bvh::BVHChannels::Xrotation, sofa::helper::io::bvh::BVHChannels::Yposition, sofa::helper::io::bvh::BVHChannels::Yrotation, sofa::helper::io::bvh::BVHChannels::Zposition, and sofa::helper::io::bvh::BVHChannels::Zrotation.
Referenced by init().
| vector< ArticulatedHierarchyContainer::ArticulationCenter * > sofa::component::container::ArticulatedHierarchyContainer::getAcendantList | ( | int | index | ) |
Definition at line 71 of file ArticulatedHierarchyContainer.inl.
References acendantList, and getArticulationCenterAsChild().
Referenced by sofa::component::mapping::ArticulatedSystemMapping< BasicMapping >::applyJT().
| ArticulatedHierarchyContainer::ArticulationCenter * sofa::component::container::ArticulatedHierarchyContainer::getArticulationCenterAsChild | ( | int | index | ) |
Definition at line 59 of file ArticulatedHierarchyContainer.inl.
References articulationCenters.
Referenced by getAcendantList().
| vector< ArticulatedHierarchyContainer::ArticulationCenter * > sofa::component::container::ArticulatedHierarchyContainer::getArticulationCenters | ( | ) |
Definition at line 84 of file ArticulatedHierarchyContainer.inl.
References articulationCenters.
Referenced by sofa::component::mapping::ArticulatedSystemMapping< BasicMapping >::init().
| void sofa::component::container::ArticulatedHierarchyContainer::init | ( | void | ) | [virtual] |
Initialization method called at graph modification, during bottom-up traversal.
Reimplemented from sofa::core::objectmodel::BaseObject.
Definition at line 216 of file ArticulatedHierarchyContainer.inl.
References sofa::simulation::tree::GNode::addChild(), articulationCenters, buildCenterArticulationsTree(), chargedFromFile, sofa::simulation::tree::GNode::child, sofa::helper::system::DataRepository, dtbvh, filename, sofa::core::objectmodel::BaseObject::getContext(), sofa::simulation::tree::GNode::getMechanicalState(), sofa::helper::io::bvh::BVHJoint::getMotion(), sofa::helper::io::bvh::BVHJoint::getNumJoints(), sofa::simulation::Node::getTreeObjects(), sofa::core::objectmodel::Data< T >::getValue(), joint, sofa::helper::io::bvh::BVHLoader::load(), numOfFrames, and sofa::component::MechanicalObject< DataTypes >::resize().
| void sofa::component::container::ArticulatedHierarchyContainer::setFilename | ( | std::string | f | ) | [inline] |
Definition at line 213 of file ArticulatedHierarchyContainer.h.
References filename, and sofa::core::objectmodel::Data< T >::setValue().
| vector<ArticulationCenter*> sofa::component::container::ArticulatedHierarchyContainer::articulationCenters |
Definition at line 219 of file ArticulatedHierarchyContainer.h.
Referenced by buildCenterArticulationsTree(), getArticulationCenterAsChild(), getArticulationCenters(), and init().
Definition at line 222 of file ArticulatedHierarchyContainer.h.
Referenced by ArticulatedHierarchyContainer(), and init().
Definition at line 224 of file ArticulatedHierarchyContainer.h.
Referenced by sofa::component::controller::ArticulatedHierarchyBVHController::applyController(), ArticulatedHierarchyContainer(), and init().
Data<std::string> sofa::component::container::ArticulatedHierarchyContainer::filename [protected] |
Definition at line 227 of file ArticulatedHierarchyContainer.h.
Referenced by init(), and setFilename().
unsigned int sofa::component::container::ArticulatedHierarchyContainer::id [private] |
Definition at line 231 of file ArticulatedHierarchyContainer.h.
sofa::helper::io::bvh::BVHJoint* sofa::component::container::ArticulatedHierarchyContainer::joint [private] |
Definition at line 232 of file ArticulatedHierarchyContainer.h.
Referenced by ArticulatedHierarchyContainer(), and init().
Definition at line 223 of file ArticulatedHierarchyContainer.h.
Referenced by sofa::component::controller::ArticulatedHierarchyBVHController::applyController(), ArticulatedHierarchyContainer(), and init().
1.5.7.1