22#pragma once
33
44#include " ofParameter.h"
5- // FIXME: deprecated and ctor
6- #include " ofConstants.h "
5+
6+ #define GLM_FORCE_CTOR_INIT
77#include " glm/mat4x4.hpp"
88#include < glm/gtc/quaternion.hpp>
99#include < array>
@@ -100,9 +100,15 @@ class ofNode {
100100 // / \returns A normalized 3D vector of the node's local y axis direction.
101101 glm::vec3 getUpDir () const ;
102102
103- OF_DEPRECATED_MSG (" Use Deg/Rad versions." , float getPitch () const );
104- OF_DEPRECATED_MSG (" Use Deg/Rad versions." , float getHeading () const );
105- OF_DEPRECATED_MSG (" Use Deg/Rad versions." , float getRoll () const );
103+
104+ [[deprecated (" Use Deg/Rad versions." )]]
105+ float getPitch () const ;
106+
107+ [[deprecated (" Use Deg/Rad versions." )]]
108+ float getHeading () const ;
109+
110+ [[deprecated (" Use Deg/Rad versions." )]]
111+ float getRoll () const ;
106112
107113 // / \brief Get pitch of node, aka the rotation along local x axis.
108114 // / \returns The rotation around the local x axis in degrees, as a float.
@@ -131,8 +137,9 @@ class ofNode {
131137 // / \brief Get the local orientation of the node as a quaternion.
132138 // / \returns A quaternion of local orientation (useful for complex rotations)
133139 glm::quat getOrientationQuat () const ;
134-
135- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , glm::vec3 getOrientationEuler () const );
140+
141+ [[deprecated (" Use Deg/Rad versions." )]]
142+ glm::vec3 getOrientationEuler () const ;
136143
137144 // / \brief Get local orientation of node in degrees around x, y, and z axes.
138145 // / \returns The local x, y and z axes orientation in degrees, as a 3D vector.
@@ -298,7 +305,8 @@ class ofNode {
298305 // / \param amount Desired relative position change along local z axis as float.
299306 void dolly (float amount);
300307
301- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void tilt (float degrees));
308+ [[deprecated (" Use Deg/Rad versions." )]]
309+ void tilt (float degrees);
302310
303311 // / \brief Tilt up+down relative to current orientation (around local x axis).
304312 // /
@@ -310,7 +318,8 @@ class ofNode {
310318 // / \param radians Desired relative rotation change along local x axis in radians as float.
311319 void tiltRad (float radians);
312320
313- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void pan (float degrees));
321+ [[deprecated (" Use Deg/Rad versions." )]]
322+ void pan (float degrees);
314323
315324 // / \brief Rotate left+right relative to current orientation (around local y axis).
316325 // /
@@ -322,7 +331,8 @@ class ofNode {
322331 // / \param radians Desired relative rotation change along local y axis in radians as float.
323332 void panRad (float radians);
324333
325- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void roll (float degrees));
334+ [[deprecated (" Use Deg/Rad versions." )]]
335+ void roll (float degrees);
326336
327337 // / \brief Roll left+right relative to current orientation (around local z axis).
328338 // /
@@ -339,7 +349,8 @@ class ofNode {
339349 // / \param q Desired relative rotation change as a ref to quaternion.
340350 void rotate (const glm::quat& q);
341351
342- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void rotate (float degrees, const glm::vec3& v));
352+ [[deprecated (" Use Deg/Rad versions." )]]
353+ void rotate (float degrees, const glm::vec3& v);
343354
344355 // / \brief Rotate relative to current orientation around arbitrary axis.
345356 // /
@@ -353,7 +364,8 @@ class ofNode {
353364 // / \param v Desired axis to rotate around as a ref to cartesian 3D Vector.
354365 void rotateRad (float radians, const glm::vec3& v);
355366
356- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void rotate (float degrees, float vx, float vy, float vz));
367+ [[deprecated (" Use Deg/Rad versions." )]]
368+ void rotate (float degrees, float vx, float vy, float vz);
357369
358370 // / \brief Rotate relative to current orientation around arbitrary axis.
359371 // /
@@ -377,7 +389,8 @@ class ofNode {
377389 // / \param point Point to rotate around in local xyz coordinates as ref to 3D vector.
378390 void rotateAround (const glm::quat& q, const glm::vec3& point);
379391
380- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void rotateAround (float degrees, const glm::vec3& axis, const glm::vec3& point));
392+ [[deprecated (" Use Deg/Rad versions." )]]
393+ void rotateAround (float degrees, const glm::vec3& axis, const glm::vec3& point);
381394
382395 // / \brief Rotate relative to current orientation around arbitrary axis around point.
383396 // /
@@ -417,8 +430,11 @@ class ofNode {
417430 // / \param upVector The desired up axis as a ref to cartesian 3D vector.
418431 void lookAt (const ofNode& lookAtNode, const glm::vec3& upVector);
419432
420- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void orbit (float longitude, float latitude, float radius, const glm::vec3& centerPoint = glm::vec3(0 , 0 , 0 )));
421- OF_DEPRECATED_MSG (" Use the Deg/Rad version." , void orbit (float longitude, float latitude, float radius, ofNode& centerNode));
433+ [[deprecated (" Use Deg/Rad versions." )]]
434+ void orbit (float longitude, float latitude, float radius, const glm::vec3& centerPoint = glm::vec3(0 , 0 , 0 ));
435+
436+ [[deprecated (" Use Deg/Rad versions." )]]
437+ void orbit (float longitude, float latitude, float radius, ofNode& centerNode);
422438
423439 // / \brief Orbit node around a global position at a specific radius.
424440 // /
0 commit comments