Esempio n. 1
0
void Skeleton::setBlendedPose( float time, const std::unordered_map<int, float>& weights )
{
	traverseNodes( mRootNode,
				  [=] ( NodeRef n ) {
					  n->blendAnimate( time, weights );
				  } );
}
Esempio n. 2
0
void Skeleton::traverseNodes( const NodeRef& node, std::function<void(NodeRef)> visit ) const
{
	visit( node );
	for( NodeRef child : node->getChildren() ) {
		traverseNodes(child, visit);
	}
}
Esempio n. 3
0
void Skeleton::setPose( float time, int animId )
{
	traverseNodes( mRootNode,
				  [&time, &animId] ( NodeRef n ) {
					  n->animate( time, animId );
				  } );
}
Esempio n. 4
0
void Skeleton::setPoseDefault()
{
	traverseNodes( mRootNode,
				  [] ( NodeRef n ) {
					  n->resetToInitial();
				  } );
	
}
Esempio n. 5
0
bool TraversingVersionConverter::traverseNodes(TxElement* node) {
    bool res = true;
    res = res && fun_(node);
    ticpp::Iterator<ticpp::Element> child;
    for (child = child.begin(node); child != child.end(); child++) {
        res = res && traverseNodes(child.Get());
    }
    return res;
}
Esempio n. 6
0
void ScaleProcess::Execute( aiScene* pScene ) {
    if ( nullptr == pScene ) {
        return;
    }

    if ( nullptr == pScene->mRootNode ) {
        return;
    }

    traverseNodes( pScene->mRootNode );
}
Esempio n. 7
0
File: tdoc.c Progetto: nuxlli/wax
static void traverseDeeper(TidyDoc doc, lua_State *L, TidyNode node)
{
    TidyNode child;
    
    child = tidyGetChild ( node );
    while ( child ) 
    {
        traverseNodes(doc, L, child);
        child = tidyGetNext ( child );
    }
}
Esempio n. 8
0
int main()
{
	first = NULL;
	last = NULL;
	addNewNode("Complete Project", "5/23/2012", "CIS4100", 5);
	addNewNode("Finish book", "7/30/2012", "Halfway in book two", 2);
	std::cout<<"----Traversing List----"<<std::endl;
	traverseNodes();
	std::cout<<"----You just traversed the List----"<<std::endl;
	std::cin.ignore();
	return 0;
}
Esempio n. 9
0
File: tdoc.c Progetto: nuxlli/wax
int lua_tidy_toTable(lua_State*L)
{
    pTidy t = toTidy(L,1);

    TidyNode node = tidyGetRoot(t->tdoc);
    if (!node)
        return 0;
    
    lua_newtable(L);
    traverseNodes(t->tdoc, L, node);
    
    return 1;    
}
Esempio n. 10
0
bool TraversingVersionConverter::convert(TxElement* root) { return traverseNodes(root); }