Base Interface for rendering particles that can be oriented in a 3D world. More...
Public Member Functions | |
Oriented3DRendererInterface () | |
Constructor of Oriented3DRendererInterface. | |
virtual | ~Oriented3DRendererInterface () |
Destructor of Oriented3DRendererInterface. | |
void | setOrientation (LookOrientation lookOrientation, UpOrientation upOrientation, LockedAxis lockedAxis) |
Sets the way quads are oriented in the universe. | |
void | setOrientation (OrientationPreset orientation) |
Sets the way quads are oriented in the universe. | |
LookOrientation | getLookOrientation () const |
Gets the look orientation of the quads. | |
UpOrientation | getUpOrientation () const |
Gets the up orientation of the quads. | |
LockedAxis | getLockedAxis () const |
Gets the locked axis (the one prevailing over the others). | |
Public Attributes | |
Vector3D | lookVector |
The look vector. | |
Vector3D | upVector |
The up vector. |
Base Interface for rendering particles that can be oriented in a 3D world.
Definition at line 98 of file SPK_Oriented3DRendererInterface.h.
Constructor of Oriented3DRendererInterface.
virtual ~Oriented3DRendererInterface | ( | ) | [virtual] |
Destructor of Oriented3DRendererInterface.
Definition at line 142 of file SPK_Oriented3DRendererInterface.h.
LockedAxis getLockedAxis | ( | ) | const |
Gets the locked axis (the one prevailing over the others).
Definition at line 246 of file SPK_Oriented3DRendererInterface.h.
LookOrientation getLookOrientation | ( | ) | const |
Gets the look orientation of the quads.
Definition at line 236 of file SPK_Oriented3DRendererInterface.h.
UpOrientation getUpOrientation | ( | ) | const |
Gets the up orientation of the quads.
Definition at line 241 of file SPK_Oriented3DRendererInterface.h.
void setOrientation | ( | OrientationPreset | orientation | ) |
Sets the way quads are oriented in the universe.
This method takes some presets to orientate the quads.
Another method that has more options to configure orientation exists
See setOrientation(LookOrientation,UpOrientation,LockedAxis)
orientation | : the orientation preset of the quad |
void setOrientation | ( | LookOrientation | lookOrientation, | |
UpOrientation | upOrientation, | |||
LockedAxis | lockedAxis | |||
) |
Sets the way quads are oriented in the universe.
This method allows to accuratly configure the orientation of quads.
Another method with only one parameters that take presets exist.
See setOrientation(OrientationPreset)
lookOrientation | : The way the look vector of the quad is set | |
upOrientation | : The way the up vector of the quad is set | |
lockedAxis | : tells which axis prevails over the other |
The look vector.
It is used in 2 LookOrientation modes :
In other modes the look vector is not used
Definition at line 116 of file SPK_Oriented3DRendererInterface.h.
The up vector.
It is used in 2 UpOrientation modes :
In other modes the up vector is not used
Definition at line 128 of file SPK_Oriented3DRendererInterface.h.