view src/SearchMatrixTransformVisitor.cpp @ 10:5727d511a13a

add src in Martial Project Xcode.
author tokumoritaichirou@nw0743.st.ie.u-ryukyu.ac.jp
date Wed, 03 Feb 2010 03:39:04 +0900
parents
children
line wrap: on
line source

/*
 *  FinderNodeVisitor.cpp
 *  Martial
 *
 *  Created by ryoma on 10/01/26.
 *  Copyright 2010 琉球大学. All rights reserved.
 *
 */

#include "SearchMatrixTransformVisitor.h"

void SearchMatrixTransformVisitor::apply(osg::MatrixTransform& matrixTransform) {
	//Hashで保持
	matrixMap[matrixTransform.getName()] = &matrixTransform;
	traverse(matrixTransform);
}

osg::MatrixTransform* SearchMatrixTransformVisitor::getMatrixTransform(const std::string &name) {
	return matrixMap[name];
}