#include <sglTranslate.hpp>
Inheritance diagram for sglTranslate::
Public Methods | |
sglTranslate () | |
virtual | ~sglTranslate () |
void | setTranslation (T x, T y, T z) |
void | getTranslation (T &x, T &y, T &z) const |
virtual sglBound::IntersectResultEnum | intersect (sglIntersectf &isector) const |
virtual sglBound::IntersectResultEnum | intersect (sglIntersectd &isector) const |
virtual void | pick (sglPickf &pick_state, unsigned int cull_flags) const |
virtual void | pick (sglPickd &pick_state, unsigned int cull_flags) const |
virtual void | computeTxToParent (sglMat4f &curr_mat) const |
virtual void | computeTxToParent (sglMat4d &curr_mat) const |
virtual sglNode* | clone (unsigned int mode) const |
virtual void | printInfo (ostream &ostrm, const char *indent_string) const |
Protected Methods | |
virtual void | computeBound () |
virtual void | cull (sglCull< float > &trav_state, unsigned int cull_flags) const |
virtual void | cull (sglCull< double > &trav_state, unsigned int cull_flags) const |
void | copyTo (sglTranslate *dst, unsigned int mode) const |
Protected Attributes | |
bool | m_no_translation_flag |
sglVec3<T> | m_translation |
Example:
sglTranslated *dp_translate_node = new sglTranslated; dp_translate_node->setTranslation(0.0, 0.0, 25.0000001); dp_translate_node->addChild(...);
Definition at line 53 of file sglTranslate.hpp.
|
default constructor initializes to no translation.
Definition at line 57 of file sglTranslate.hpp. |
|
virtual destructor.
Definition at line 61 of file sglTranslate.hpp. |
|
Set the translation part of the transform (affects the 4th row of the matrix only).
|
|
Get the current translation
|
|
The single precision intersection traversal function which returns the closest object (bounding volume and/or triangle) that intersects with the given intersect segment.
Reimplemented from sglGroup. |
|
The double precision intersection traversal function which returns the closest object (bounding volume and/or triangle) that intersects with the given intersect segment.
Reimplemented from sglGroup. |
|
The single precision pick traversal function which returns all objects that fall within the pick frustum.
Reimplemented from sglGroup. |
|
The double precision pick traversal function which returns all objects that fall within the pick frustum.
Reimplemented from sglGroup. |
|
Compute a single precision transform to parent and append (via multiplication) the matrix passed in. This is part of an upward traversal, which most commonly begins with an sglViewPlatform and used for computing the position and orientation of said platform. This is the default implementation for all nodes that do not affect this matrix and therefore this function does nothing.
Reimplemented from sglNode. |
|
Compute a double precision transform to parent and append (via multiplication) the matrix passed in. This is part of an upward traversal, which most commonly begins with an sglViewPlatform and used for computing the position and orientation of said platform. This is the default implementation for all nodes that do not affect this matrix and therefore this function does nothing.
Reimplemented from sglNode. |
|
Make a copy of the scenegraph rooted at this node.
Reimplemented from sglGroup. |
|
Output the state of this node to the specified ostream.
Reimplemented from sglGroup. |
|
The single precision cull traversal function that culls out subgraphs that do not lie in the view frustum (stored in the sglCull parameter). Subclasses must implement this function. The entry point for user-friendly culling is in the sglScene class.
Reimplemented from sglGroup. |
|
The double precision cull traversal function that culls out subgraphs that do not lie in the view frustum (stored in the sglCull parameter). Subclasses must implement this function. The entry point for user-friendly culling is in the sglScene class.
Reimplemented from sglGroup. |