OptiTrackPoint.hpp 762 B

1234567891011121314151617181920212223
  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. static int getMinimumRequiredPoints();
  15. private:
  16. void updateShift();
  17. double _length;
  18. double _radius;
  19. static const int _minimumPointsRequired = 3;
  20. };