EMFTrackPoint.cpp 845 B

123456789101112131415161718192021222324252627282930
  1. // Include own headers
  2. #include "EMFTrackPoint.hpp"
  3. EMFTrackPoint::EMFTrackPoint(const osg::Vec3 point, const osg::Vec3 normal, const osg::Vec3 normalModifier, const float normalRotation, const bool compensation, const double width, const double height, const double depth): TrackPoint(point, normal, normalModifier, normalRotation, compensation) {
  4. _width = width;
  5. _height = height;
  6. _depth = depth;
  7. }
  8. double EMFTrackPoint::getWidth() {
  9. return _width;
  10. }
  11. double EMFTrackPoint::getHeight() {
  12. return _height;
  13. }
  14. double EMFTrackPoint::getDepth() {
  15. return _depth;
  16. }
  17. EMFTrackSettings EMFTrackPoint::getEMFTrackSettings() {
  18. return EMFTrackSettings {_width, _height, _depth};
  19. }
  20. void EMFTrackPoint::updateEMFTrackSettings(EMFTrackSettings settings) {
  21. _width = settings.width;
  22. _height = settings.height;
  23. _depth = settings.depth;
  24. }