view src/SearchGeodeVisitor.h @ 13:39e0c583e0a3 default tip

add GiantroboClassfile.
author tokumoritaichirou@w-133-13-243-110.cc.u-ryukyu.ac.jp
date Wed, 03 Feb 2010 18:37:01 +0900
parents 5727d511a13a
children
line wrap: on
line source

/*
 *  SearchGeodeVisitor.h
 *  Martial
 *
 *  Created by ryoma on 10/01/31.
 *  Copyright 2010 琉球大学. All rights reserved.
 *
 */

#ifndef _SEARCH_GEODE_VISITORS_
#define _SEARCH_GEODE_VISITORS_

class SearchGeodeVisitor : public osg::NodeVisitor {
	protected:
		std::string targetGeodeName;
		osg::Geode* targetGeode;
	public:
		SearchGeodeVisitor(const std::string &targetGeodeName = "UNKNOWN") :
		osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN),
		targetGeodeName(targetGeodeName), targetGeode(NULL) {};

	void apply(osg::Geode& geode);
	void setSearchGeodeName(const std::string &_targetGeodeName);
	osg::Geode* getGeode();
};

#endif