StoreHandler.hpp 394 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "TrackPoint.hpp"
  3. #include <osg/ref_ptr>
  4. #include <osg/Group>
  5. #include <osg/Vec3>
  6. #include <vector>
  7. class StoreHandler {
  8. public:
  9. void addTrackingPoint(osg::Vec3 point, osg::Vec3 normal);
  10. StoreHandler(osg::ref_ptr<osg::Group> root);
  11. std::vector<TrackPoint*> getPoints();
  12. protected:
  13. std::vector<TrackPoint*> points;
  14. private:
  15. osg::ref_ptr<osg::Group> _root;
  16. };