arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

PickInfo Class Reference

#include <Pick.h>

List of all members.


Detailed Description

PickInfo, contains the information related to a particular object that was under the mouse during a pick.

a vector of these are created by the "Pick" object specified below.
TODO: maybe make this counted and have the PickInfoVec hold smartptrs so we aren't copying the data so much.

Definition at line 30 of file Pick.h.

Z values from/on the picked object

these will be in [0-1] range, where 0=near clip, 1=far clip

double z1
double z2

data pushed on the gl name stack

-when object was rendered

int dataSize
unsigned int * data

Public Member Functions

 ~PickInfo ()
 PickInfo ()
 a user should "rarely" have to create one of these! normal usage of "Pick" will handle creation of the PickInfo for you.

 PickInfo (double Z1, double Z2, unsigned int *pbuf, unsigned int num)
 PickInfo (const PickInfo &p)
PickInfooperator= (const PickInfo &p)


Constructor & Destructor Documentation

PickInfo::~PickInfo  )  [inline]
 

Definition at line 32 of file Pick.h.

References data.

PickInfo::PickInfo  )  [inline]
 

a user should "rarely" have to create one of these! normal usage of "Pick" will handle creation of the PickInfo for you.

You might, however, need to copy this for later use.

Definition at line 56 of file Pick.h.

References data, dataSize, z1, and z2.

PickInfo::PickInfo double  Z1,
double  Z2,
unsigned int *  pbuf,
unsigned int  num
[inline]
 

Definition at line 57 of file Pick.h.

References data, dataSize, num, z1, and z2.

PickInfo::PickInfo const PickInfo p  )  [inline]
 

Definition at line 66 of file Pick.h.

References data, dataSize, z1, and z2.


Member Function Documentation

PickInfo& PickInfo::operator= const PickInfo p  )  [inline]
 

Definition at line 75 of file Pick.h.

References data, and dataSize.


Member Data Documentation

unsigned int* PickInfo::data
 

Definition at line 48 of file Pick.h.

Referenced by operator=(), PickInfo(), and ~PickInfo().

int PickInfo::dataSize
 

Definition at line 47 of file Pick.h.

Referenced by operator=(), and PickInfo().

double PickInfo::z1
 

Definition at line 40 of file Pick.h.

Referenced by PBSortZ1::operator()(), and PickInfo().

double PickInfo::z2
 

Definition at line 41 of file Pick.h.

Referenced by PickInfo().


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk