V-ART
picknamelocator.cpp
Go to the documentation of this file.
1 
5 #include "vart/picknamelocator.h"
6 #include "vart/graphicobj.h"
7 
8 VART::PickNameLocator::PickNameLocator(unsigned int name) : pickName(name), result(NULL)
9 {
10 }
11 
13 {
14  const VART::GraphicObj* castPtr = dynamic_cast<const VART::GraphicObj*>(nodePtr);
15  if (castPtr && (castPtr->PickName() == pickName))
16  {
17  notFinished = false;
18  result = castPtr;
19  }
20 }
21 
virtual void OperateOn(const SceneNode *nodePtr)
Process given node.
Base class for objects that compose a scene graph.
Definition: scenenode.h:25
Header file for V-ART class "GraphicObj".
PickNameLocator(unsigned int name)
Creates an uninitialized PickNameFinder.
An scene node that is associated with a shape.
Definition: graphicobj.h:18
Header file for V-ART class "PickNameLocator".
unsigned int PickName() const
Returns the pick name.
Definition: graphicobj.h:70