This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofNode.h
Go to the documentation of this file.
324 OF_DEPRECATED_MSG("Use the Deg/Rad version.", void rotate(float degrees, float vx, float vy, float vz));
348 OF_DEPRECATED_MSG("Use the Deg/Rad version.", void rotateAround(float degrees, const glm::vec3& axis, const glm::vec3& point));
388 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)));
389 OF_DEPRECATED_MSG("Use the Deg/Rad version.", void orbit(float longitude, float latitude, float radius, ofNode& centerNode));
398 void orbitDeg(float longitude, float latitude, float radius, const glm::vec3& centerPoint = glm::vec3(0, 0, 0));
415 void orbitRad(float longitude, float latitude, float radius, const glm::vec3& centerPoint = glm::vec3(0, 0, 0));
A generic 3d object in space with transformation (position, rotation, scale).
Definition ofNode.h:14
glm::vec3 getUpDir() const
Get direction of node's top aka local y axis, as 3d vector.
Definition ofNode.cpp:496
void panRad(float radians)
Rotate left+right relative to current orientation (around local y axis).
Definition ofNode.cpp:348
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void rotate(float degrees, float vx, float vy, float vz))
float getHeadingDeg() const
Get heading of node, aka the rotation along local y axis.
Definition ofNode.cpp:521
glm::vec3 getZAxis() const
Get the node's local z axis as 3d vector.
Definition ofNode.cpp:481
const glm::mat4 & getLocalTransformMatrix() const
Get node's local transformations (position, orientation, scale).
Definition ofNode.cpp:546
void rollRad(float radians)
Roll left+right relative to current orientation (around local z axis).
Definition ofNode.cpp:353
glm::mat4 getGlobalTransformMatrix() const
Get node's global transformations (position, orientation, scale).
Definition ofNode.cpp:551
glm::vec3 getScale() const
Get local scale of node in xyz axes where 1 is default.
Definition ofNode.cpp:281
virtual void customDraw()
If you extend ofNode and wish to change the way it draws, extend this.
Definition ofNode.cpp:651
glm::quat getGlobalOrientation() const
Get the global orientation of the node as a quaternion.
Definition ofNode.cpp:562
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void orbit(float longitude, float latitude, float radius, ofNode ¢erNode))
glm::vec3 getYAxis() const
Get the node's local y axis as 3d vector.
Definition ofNode.cpp:476
void setScale(float s)
Set local uniform scale (x, y, and z are equally scaled).
Definition ofNode.cpp:264
OF_DEPRECATED_MSG("Use Deg/Rad versions.", float getPitch() const)
void setOrientation(const glm::quat &q)
Set local orientation with a quaternion.
Definition ofNode.cpp:219
void tiltDeg(float degrees)
Tilt up+down relative to current orientation (around local x axis).
Definition ofNode.cpp:328
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void roll(float degrees))
ofNode * getParent() const
Get the parent node of this node.
Definition ofNode.cpp:167
virtual void onOrientationChanged()
Classes extending ofNode can override this methods to get notified when the orientation changed.
Definition ofNode.h:478
void setGlobalOrientation(const glm::quat &q)
Set global orientation with a quaternion.
Definition ofNode.cpp:232
OF_DEPRECATED_MSG("Use the Deg/Rad version.", glm::vec3 getOrientationEuler() const)
float getPitchDeg() const
Get pitch of node, aka the rotation along local x axis.
Definition ofNode.cpp:516
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void rotateAround(float degrees, const glm::vec3 &axis, const glm::vec3 &point))
glm::vec3 getGlobalPosition() const
Get node's global position as a 3D vector.
Definition ofNode.cpp:557
void tiltRad(float radians)
Tilt up+down relative to current orientation (around local x axis).
Definition ofNode.cpp:343
void restoreTransformGL(ofBaseRenderer *renderer=nullptr) const
Restore opengl renderer's previous modelview transform matrix.
Definition ofNode.cpp:665
void lookAt(const glm::vec3 &lookAtPosition)
Orient node to look at point (-z axis pointing to global position).
Definition ofNode.cpp:423
void truck(float amount)
Move node left+right relative to current position (in local x axis).
Definition ofNode.cpp:298
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void tilt(float degrees))
void transformGL(ofBaseRenderer *renderer=nullptr) const
Set opengl renderer's modelview matrix to this nodes transform.
Definition ofNode.cpp:656
virtual void draw() const
Draw the node as a white cube with xyz axes.
Definition ofNode.cpp:637
void setPosition(float px, float py, float pz)
Set the local position of the node using xyz coordinates.
Definition ofNode.cpp:172
void setGlobalPosition(float px, float py, float pz)
Set the global position of the node using xyz coordinates.
Definition ofNode.cpp:184
float getRollDeg() const
Get roll of node, aka the rotation along local z axis.
Definition ofNode.cpp:526
OF_DEPRECATED_MSG("Use Deg/Rad versions.", float getRoll() const)
void orbitDeg(float longitude, float latitude, float radius, const glm::vec3 ¢erPoint=glm::vec3(0, 0, 0))
Orbit node around a global position at a specific radius.
Definition ofNode.cpp:589
void move(float x, float y, float z)
Move node by relative amount with xyz coordinates.
Definition ofNode.cpp:286
void dolly(float amount)
Move node backward+forward relative to current position (in local z axis).
Definition ofNode.cpp:308
virtual void onScaleChanged()
Classes extending ofNode can override this methods to get notified when the scale changed.
Definition ofNode.h:482
void rotateAroundRad(float radians, const glm::vec3 &axis, const glm::vec3 &point)
Rotate relative to current orientation around arbitrary axis around point.
Definition ofNode.cpp:418
float getRollRad() const
Get roll of node, aka the rotation along local z axis.
Definition ofNode.cpp:541
glm::vec3 getPosition() const
Get node's local position as a 3D vector.
Definition ofNode.cpp:199
glm::vec3 getLookAtDir() const
Get direction the node looks at aka local -z axis, as 3d vector.
Definition ofNode.cpp:491
void rotateAround(const glm::quat &q, const glm::vec3 &point)
Rotate relative to current orientation by quaternion around point.
Definition ofNode.cpp:395
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void orbit(float longitude, float latitude, float radius, const glm::vec3 ¢erPoint=glm::vec3(0, 0, 0)))
virtual void onPositionChanged()
Classes extending ofNode can override this method to get notified when the position changed.
Definition ofNode.h:474
float getPitchRad() const
Get pitch of node, aka the rotation along local x axis.
Definition ofNode.cpp:531
void clearParent(bool bMaintainGlobalTransform=false)
Remove parent node linking.
Definition ofNode.cpp:148
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void pan(float degrees))
void rotate(const glm::quat &q)
Rotate relative to current orientation by quaternion.
Definition ofNode.cpp:358
glm::quat getOrientationQuat() const
Get the local orientation of the node as a quaternion.
Definition ofNode.cpp:243
void rollDeg(float degrees)
Roll left+right relative to current orientation (around local z axis).
Definition ofNode.cpp:338
OF_DEPRECATED_MSG("Use Deg/Rad versions.", float getHeading() const)
void rotateRad(float radians, const glm::vec3 &v)
Rotate relative to current orientation around arbitrary axis.
Definition ofNode.cpp:375
void rotateAroundDeg(float degrees, const glm::vec3 &axis, const glm::vec3 &point)
Rotate relative to current orientation around arbitrary axis around point.
Definition ofNode.cpp:413
void orbitRad(float longitude, float latitude, float radius, const glm::vec3 ¢erPoint=glm::vec3(0, 0, 0))
Orbit node around a global position at a specific radius.
Definition ofNode.cpp:612
void resetTransform()
Reset this node's transformations, position, rotation and scale.
Definition ofNode.cpp:630
void boom(float amount)
Move node up+down relative to current position (in local y axis).
Definition ofNode.cpp:303
void setParent(ofNode &parent, bool bMaintainGlobalTransform=false)
Set parent for the node. The node will inherit transformations from parent.
Definition ofNode.cpp:126
void rotateDeg(float degrees, const glm::vec3 &v)
Rotate relative to current orientation around arbitrary axis.
Definition ofNode.cpp:370
glm::vec3 getSideDir() const
Get direction of node's side aka local x axis, as 3d vector.
Definition ofNode.cpp:486
void panDeg(float degrees)
Rotate left+right relative to current orientation (around local y axis).
Definition ofNode.cpp:333
OF_DEPRECATED_MSG("Use the Deg/Rad version.", void rotate(float degrees, const glm::vec3 &v))
glm::vec3 getGlobalScale() const
Get global scale of node in xyz axes where 1 is default.
Definition ofNode.cpp:568
glm::vec3 getOrientationEulerDeg() const
Get local orientation of node in degrees around x, y, and z axes.
Definition ofNode.cpp:253
glm::vec3 getXAxis() const
Get the node's local x axis as 3d vector.
Definition ofNode.cpp:471
float getHeadingRad() const
Get heading of node, aka the rotation along local y axis.
Definition ofNode.cpp:536
glm::vec3 getOrientationEulerRad() const
Get local orientation of node in degrees around x, y, and z axes.
Definition ofNode.cpp:259
ofParameter holds a value and notifies its listeners when it changes.
Definition ofParameter.h:492
#define px
#define pz
#define py