本文整理汇总了C++中BodyNode::addMarker方法的典型用法代码示例。如果您正苦于以下问题:C++ BodyNode::addMarker方法的具体用法?C++ BodyNode::addMarker怎么用?C++ BodyNode::addMarker使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BodyNode
的用法示例。
在下文中一共展示了BodyNode::addMarker方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addMarker
void Skeleton::addMarker(Marker* _h)
{
mMarkers.push_back(_h);
_h->setSkeletonIndex(mMarkers.size()-1);
BodyNode *body = _h->getNode();
body->addMarker(_h);
}
示例2: createMarkers
void MyWorld::createMarkers() {
Vector3d offset(0.2, 0.0, 0.0);
BodyNode* bNode = mSkel->getBodyNode("h_heel_right");
Marker* m = new Marker("right_foot", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.2, 0.0, 0.0);
bNode = mSkel->getBodyNode("h_heel_left");
m = new Marker("left_foot", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.065, -0.3, 0.0);
bNode = mSkel->getBodyNode("h_thigh_right");
m = new Marker("right_thigh", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.065, -0.3, 0.0);
bNode = mSkel->getBodyNode("h_thigh_left");
m = new Marker("left_thigh", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, 0.0, 0.13);
bNode = mSkel->getBodyNode("h_pelvis");
m = new Marker("pelvis_right", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, 0.0, -0.13);
bNode = mSkel->getBodyNode("h_pelvis");
m = new Marker("pelvis_left", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.075, 0.1, 0.0);
bNode = mSkel->getBodyNode("h_abdomen");
m = new Marker("abdomen", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, 0.18, 0.075);
bNode = mSkel->getBodyNode("h_head");
m = new Marker("head_right", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, 0.18, -0.075);
bNode = mSkel->getBodyNode("h_head");
m = new Marker("head_left", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, 0.22, 0.0);
bNode = mSkel->getBodyNode("h_scapula_right");
m = new Marker("right_scapula", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, 0.22, 0.0);
bNode = mSkel->getBodyNode("h_scapula_left");
m = new Marker("left_scapula", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, -0.2, 0.05);
bNode = mSkel->getBodyNode("h_bicep_right");
m = new Marker("right_bicep", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, -0.2, -0.05);
bNode = mSkel->getBodyNode("h_bicep_left");
m = new Marker("left_bicep", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, -0.1, 0.025);
bNode = mSkel->getBodyNode("h_hand_right");
m = new Marker("right_hand", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
offset = Vector3d(0.0, -0.1, -0.025);
bNode = mSkel->getBodyNode("h_hand_left");
m = new Marker("left_hand", offset, bNode);
mMarkers.push_back(m);
bNode->addMarker(m);
}