The IHingeJoint graph node interface. More...
#include "murl_graph_i_hinge_joint.h"
Public Member Functions | |
virtual INode * | GetNodeInterface ()=0 |
Get the mutable Graph::INode interface. More... | |
virtual const INode * | GetNodeInterface () const =0 |
Get the constant Graph::INode interface. More... | |
virtual ITransform * | GetTransformInterface ()=0 |
Get the mutable Graph::ITransform interface. More... | |
virtual const ITransform * | GetTransformInterface () const =0 |
Get the constant Graph::ITransform interface. More... | |
virtual IJoint * | GetJointInterface ()=0 |
Get the mutable Graph::IJoint interface. More... | |
virtual const IJoint * | GetJointInterface () const =0 |
Get the constant Graph::IJoint interface. More... | |
virtual Bool | SetAxis (const Vector &axis)=0 |
Set the hinge joint's rotation axis. More... | |
virtual const Vector & | GetAxis () const =0 |
Get the hinge joint's rotation axis. More... | |
virtual Bool | SetMinAngle (Real angle)=0 |
Set the hinge joint's minimum angle limit. More... | |
virtual Real | GetMinAngle () const =0 |
Get the hinge joint's minimum angle limit. More... | |
virtual Bool | SetMaxAngle (Real angle)=0 |
Set the hinge joint's maximum angle limit. More... | |
virtual Real | GetMaxAngle () const =0 |
Get the hinge joint's maximum angle limit. More... | |
Detailed Description
The IHingeJoint graph node interface.
A hinge joint is a joint that connects two bodies by enforcing a translation constraint along each of the three axes in 3D space, as well as rotation constraints that allow rotation around a single axis only (1 degree of freedom). The rotation axis can be set using the SetAxis() method.
Member Function Documentation
◆ GetNodeInterface() [1/2]
|
pure virtual |
Get the mutable Graph::INode interface.
This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.
- Returns
- The mutable Graph::INode interface, or null if not available
◆ GetNodeInterface() [2/2]
|
pure virtual |
Get the constant Graph::INode interface.
This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
- Returns
- The constant Graph::INode interface, or null if not available
◆ GetTransformInterface() [1/2]
|
pure virtual |
Get the mutable Graph::ITransform interface.
This method returns a mutable pointer to the node's Graph::ITransform interface, to be able to query or modify the node's transformation matrix and depth order.
- Returns
- The mutable Graph::ITransform interface, or null if not available
◆ GetTransformInterface() [2/2]
|
pure virtual |
Get the constant Graph::ITransform interface.
This method returns a constant pointer to the node's Graph::ITransform interface, to be able to query the node's transformation matrix and depth order.
- Returns
- The constant Graph::ITransform interface, or null if not available
◆ GetJointInterface() [1/2]
|
pure virtual |
Get the mutable Graph::IJoint interface.
This method returns a mutable pointer to the node's Graph::IJoint interface, to be able to query or modify common joint-related properties.
- Returns
- The mutable Graph::IJoint interface.
◆ GetJointInterface() [2/2]
|
pure virtual |
Get the constant Graph::IJoint interface.
This method returns a constant pointer to the node's Graph::IJoint interface, to be able to query common joint-related properties.
- Returns
- The constant Graph::IJoint interface.
◆ SetAxis()
Set the hinge joint's rotation axis.
This method sets the axis around which the connected bodies are allowed to rotate relative to each other, relative to the joint's local coordinate system.
- Parameters
-
axis The rotation axis.
- Returns
- true if successful.
◆ GetAxis()
|
pure virtual |
Get the hinge joint's rotation axis.
- Returns
- The rotation axis.
◆ SetMinAngle()
Set the hinge joint's minimum angle limit.
- Parameters
-
angle The minimum angle.
- Returns
- true if successful.
◆ GetMinAngle()
|
pure virtual |
Get the hinge joint's minimum angle limit.
- Returns
- The minimum angle.
◆ SetMaxAngle()
Set the hinge joint's maximum angle limit.
- Parameters
-
angle The maximum angle.
- Returns
- true if successful.
◆ GetMaxAngle()
|
pure virtual |
Get the hinge joint's maximum angle limit.
- Returns
- The maximum angle.
The documentation for this interface was generated from the following file:
- murl_graph_i_hinge_joint.h