1234567891011121314151617181920212223 |
- #pragma once
- // Include modules
- #include "defaults.hpp"
- #include "TrackPoint.hpp"
- #include "TrackSystemSettingsStructs.hpp"
- class OptiTrackPoint: public TrackPoint {
- public:
- 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);
- double getLength();
- double getRadius();
- OptiTrackSettings getOptiTrackSettings();
- void updateOptiTrackSettings(OptiTrackSettings settings);
- float getNormalCompensation();
- static int getMinimumRequiredPoints();
- private:
- void updateShift();
- double _length;
- double _radius;
- static const int _minimumPointsRequired = 3;
- };
|