本文整理汇总了C++中Geode::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ Geode::getName方法的具体用法?C++ Geode::getName怎么用?C++ Geode::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Geode
的用法示例。
在下文中一共展示了Geode::getName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: apply
/** The 'apply' method for 'Geode' type instances
* @param searchNode : Geode : node that is searched
*/
void lgNodeOverseer::apply(Geode &searchNode)
{
cout << spaces() << "Géode :"<< searchNode.getName() << ", " << searchNode.getNumDrawables() << " drawables" << endl;
if(searchNode.getNumDrawables()>0 && showDrawable){
for (unsigned i=0;i<searchNode.getNumDrawables();i++)
{
_level++;
cout << spaces() << "Drawable " << i << " : " << searchNode.getDrawable(i)->getName() << endl;
ref_ptr<Geometry> myGeom = dynamic_cast<Geometry*>(searchNode.getDrawable(i));
if(myGeom)
{
ref_ptr<Vec3Array> arrayVertex = (Vec3Array*) myGeom->getVertexArray();
_level++;
int size = arrayVertex->size();
cout << spaces() << "Il y a " << size << " sommets" << endl;
for (int j=0; j<size;j++)
{
cout << spaces() << "Sommet " << j+1 << " : x=" << arrayVertex->at(j).x() <<
", y=" << arrayVertex->at(j).y() << ", z=" << arrayVertex->at(j).z() << endl;
}
_level--;
}
else
{
cout << "Pas de géométrie" << endl;
}
_level--;
}
cout << spaces() << endl;
}
// If no node is found, return searchNode
if (searchForName == "")
{
foundNodeList.push_back(&searchNode);
}
else
{
if (searchNode.getName() == searchForName)
{
foundNodeList.push_back(&searchNode);
}
_level++;
traverse(searchNode);
_level--;
}
}