OptiTrackPoint.hpp 674 B

123456789101112131415161718192021
  1. #pragma once
  2. // Include modules
  3. #include "defaults.hpp"
  4. #include "TrackPoint.hpp"
  5. #include "TrackSystemSettingsStructs.hpp"
  6. class OptiTrackPoint: public TrackPoint {
  7. public:
  8. OptiTrackPoint(const osg::Vec3 point, const osg::Vec3 normal, const osg::Vec3 normalModifier, const float normalRotation, const bool compensation, const double length = OPTITRACK_DEFAULT_LENGTH, const double radius = OPTITRACK_DEFAULT_RADIUS);
  9. double getLength();
  10. double getRadius();
  11. OptiTrackSettings getOptiTrackSettings();
  12. void updateOptiTrackSettings(OptiTrackSettings settings);
  13. float getNormalCompensation();
  14. private:
  15. void updateShift();
  16. double _length;
  17. double _radius;
  18. };