Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

MarkerCameraTracker.h

Go to the documentation of this file.
00001 
00045 #ifndef _AMIRE_COMMON_MARKER_CAMERA_TRACKER_H
00046 #define _AMIRE_COMMON_MARKER_CAMERA_TRACKER_H
00047 
00048 #include <amire/common/Defines.h>
00049 #include <amire/common/Tracker.h>
00050 #include <amire/common/TransformationMarker.h>
00051 #include <amire/common/MarkerDetector.h>
00052 
00053 namespace amire {
00054   namespace common {
00058     class AMIRE_EXPORT_API MarkerCameraTracker : public virtual Tracker {
00059     protected:
00063       osg::ref_ptr<MarkerDetector> detector;
00064 
00068       std::vector<osg::ref_ptr<Marker> > markers;
00069 
00073       amire::common::Matrix markerTransformation;
00074 
00075     public:
00079       MarkerCameraTracker(const osg::ref_ptr<MarkerDetector> &detector);
00080 
00081       virtual ~MarkerCameraTracker();
00082 
00086       virtual void doUpdate();
00087 
00091       void addPositionMarker(const osg::ref_ptr<TransformationMarker> &marker);
00092 
00096       void removePositionMarker(const osg::ref_ptr<TransformationMarker> &marker);
00097 
00101       const amire::common::Matrix &getMarkerTransformation() const;
00102     };
00103   }
00104 }
00105 
00106 #endif

Generated on Tue May 20 17:23:53 2003 for AMIRE-Framework by doxygen1.3