V-ART
descriptionlocator.cpp
Go to the documentation of this file.
1 
6 #include "vart/scenenode.h"
7 
8 //#include <iostream>
9 //using namespace std;
10 
11 VART::DescriptionLocator::DescriptionLocator(const std::string& description)
12  : targetDescription(description)
13 {
14 }
15 
16 //virtual
18 {
19  if (snPtr->GetDescription() == targetDescription)
20  {
21  notFinished = false;
22  nodePtr = snPtr;
23  }
24 }
Base class for objects that compose a scene graph.
Definition: scenenode.h:25
Header file for V-ART class "SceneNode".
const std::string & GetDescription() const
Returns a copy of the object's description.
Definition: scenenode.h:50
virtual void OperateOn(const SceneNode *snPtr)
Process given node.
DescriptionLocator(const std::string &description)