#include <sglPick.hpp>
Inheritance diagram for sglPick::
Public Methods | |
sglPick (vector< PickResult *> *result_pool=NULL) | |
virtual | ~sglPick () |
void | setPickFrustum (const sglMat4< T > &pick_matrix, const sglFrustum< T > &pick_frustum) |
virtual void | reset () |
vector<sglNode*>& | getPath () |
sglFrustum<T>& | getOrigPickFrustum () |
sglFrustum<T>& | getPickFrustum () |
void | addHit (const sglGeode *geode, const sglDrawable *geometry) |
const vector<PickResult*>& | getResults () const |
template<class S> void | pushScale (S scale, S inv_scale, sglFrustum< T > &old_pick_frustum, sglMat4< T > &old_matrix, sglFrustum< T > &old_view_frustum) |
template<class S> void | pushTranslate (S tx, S ty, S tz, sglFrustum< T > &old_pick_frustum, sglMat4< T > &old_matrix, sglFrustum< T > &old_view_frustum) |
template<class S> void | pushTransform (const sglMat4< S > &xform, const sglMat4< S > &inv_xform, sglFrustum< T > &old_pick_frustum, sglMat4< T > &old_matrix, sglFrustum< T > &old_view_frustum) |
void | pop (sglFrustum< T > &old_pick_frustum, sglMat4< T > &old_matrix, sglFrustum< T > &old_view_frustum) |
Protected Attributes | |
sglFrustum<T> | m_orig_pick_frustum |
sglFrustum<T> | m_current_pick_frustum |
vector<PickResult*> | m_results |
vector<PickResult*>* | m_result_pool |
vector<sglNode*> | m_path |
Definition at line 41 of file sglPick.hpp.
|
default constructor.
|
|
destructor.
|
|
Initialize the pick traversal by specifying the pick frustum (in local coordinates) and the transform from the 3D origin to the frustum's origin.
|
|
Reset the previous results and internal variables (including the internal path list). Reimplemented from sglProbeTemplate. |
|
Used internally by the sglBillboard::pick|intersect(..) functions to retrieve the untransformed frustum. Definition at line 87 of file sglPick.hpp. |
|
Add a picked geometry to the PickResult vector. This function will internally fill in the transform and path if those modes have been selected.
|
|
Get a reference to the vector of results Definition at line 102 of file sglPick.hpp. |
|
scale.
Definition at line 107 of file sglPick.hpp. |
|
translate.
Definition at line 140 of file sglPick.hpp. |