Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
gte::Picker Class Reference

#include <GtePicker.h>

Public Member Functions

PickRecord const & GetClosestNonnegative () const
 
PickRecord const & GetClosestNonpositive () const
 
PickRecord const & GetClosestToZero () const
 
float GetMaxDistance () const
 
void operator() (std::shared_ptr< Spatial > const &scene, Vector4< float > const &origin, Vector4< float > const &direction, float tmin, float tmax)
 
 Picker ()
 
void SetMaxDistance (float maxDistance)
 
 ~Picker ()
 

Public Attributes

std::vector< PickRecordrecords
 

Private Member Functions

void ExecuteRecursive (std::shared_ptr< Spatial > const &object)
 
void PickPoints (std::shared_ptr< Visual > const &visual, char const *positions, unsigned int vstride, IndexBuffer *ibuffer, Line3< float > const &line)
 
void PickSegments (std::shared_ptr< Visual > const &visual, char const *positions, unsigned int vstride, IndexBuffer *ibuffer, Line3< float > const &line)
 
void PickTriangles (std::shared_ptr< Visual > const &visual, char const *positions, unsigned int vstride, IndexBuffer *ibuffer, Line3< float > const &line)
 

Private Attributes

Vector4< float > mDirection
 
float mMaxDistance
 
Vector4< float > mOrigin
 
float mTMax
 
float mTMin
 

Static Private Attributes

static PickRecord const msInvalid
 

Detailed Description

Definition at line 18 of file GtePicker.h.

Constructor & Destructor Documentation

Picker::~Picker ( )

Definition at line 18 of file GtePicker.cpp.

Picker::Picker ( )

Definition at line 22 of file GtePicker.cpp.

Member Function Documentation

void Picker::ExecuteRecursive ( std::shared_ptr< Spatial > const &  object)
private

Definition at line 170 of file GtePicker.cpp.

PickRecord const & Picker::GetClosestNonnegative ( ) const

Definition at line 88 of file GtePicker.cpp.

PickRecord const & Picker::GetClosestNonpositive ( ) const

Definition at line 129 of file GtePicker.cpp.

PickRecord const & Picker::GetClosestToZero ( ) const

Definition at line 65 of file GtePicker.cpp.

float Picker::GetMaxDistance ( ) const

Definition at line 37 of file GtePicker.cpp.

void Picker::operator() ( std::shared_ptr< Spatial > const &  scene,
Vector4< float > const &  origin,
Vector4< float > const &  direction,
float  tmin,
float  tmax 
)

Definition at line 42 of file GtePicker.cpp.

void Picker::PickPoints ( std::shared_ptr< Visual > const &  visual,
char const *  positions,
unsigned int  vstride,
IndexBuffer ibuffer,
Line3< float > const &  line 
)
private

Definition at line 397 of file GtePicker.cpp.

void Picker::PickSegments ( std::shared_ptr< Visual > const &  visual,
char const *  positions,
unsigned int  vstride,
IndexBuffer ibuffer,
Line3< float > const &  line 
)
private

Definition at line 326 of file GtePicker.cpp.

void Picker::PickTriangles ( std::shared_ptr< Visual > const &  visual,
char const *  positions,
unsigned int  vstride,
IndexBuffer ibuffer,
Line3< float > const &  line 
)
private

Definition at line 252 of file GtePicker.cpp.

void Picker::SetMaxDistance ( float  maxDistance)

Definition at line 32 of file GtePicker.cpp.

Member Data Documentation

Vector4<float> gte::Picker::mDirection
private

Definition at line 79 of file GtePicker.h.

float gte::Picker::mMaxDistance
private

Definition at line 75 of file GtePicker.h.

Vector4<float> gte::Picker::mOrigin
private

Definition at line 78 of file GtePicker.h.

PickRecord const Picker::msInvalid
staticprivate

Definition at line 84 of file GtePicker.h.

float gte::Picker::mTMax
private

Definition at line 80 of file GtePicker.h.

float gte::Picker::mTMin
private

Definition at line 80 of file GtePicker.h.

std::vector<PickRecord> gte::Picker::records

Definition at line 58 of file GtePicker.h.


The documentation for this class was generated from the following files:


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06