Picking information structure. More...
#include <fbrenderer.h>
Public Member Functions | |
FBPickInfos (FBModel *pModel, FBVector3d pPoint, FBVector3d pNormal, int pSubItemIndex) | |
FBPickInfos. More... | |
Public Attributes | |
FBModel * | mModel |
Model picked. More... | |
FBVector3d | mPoint |
Location of the pick on the model's surface in world space. More... | |
FBVector3d | mNormal |
Normal of the pick on the model's surface in world space. More... | |
int | mSubItemIndex |
Picked sub item index, -1 for whole object. More... | |
Picking information structure.
This class holds information related to the picking action on a renderer. The intersection info (Position and Normal) won't be accurate for the following type of models:
Sample C++ code:
Definition at line 270 of file fbrenderer.h.
|
inline |
pModel | a handel to the model(FBModel*). |
pPoint | position (FBVector3d). |
pNormal | normal direction (FBVector3d). |
pSubItemIndex | sub item index, -1 for whole object. |
Definition at line 278 of file fbrenderer.h.
FBModel* mModel |
Model picked.
Definition at line 281 of file fbrenderer.h.
FBVector3d mNormal |
Normal of the pick on the model's surface in world space.
Definition at line 283 of file fbrenderer.h.
FBVector3d mPoint |
Location of the pick on the model's surface in world space.
Definition at line 282 of file fbrenderer.h.
int mSubItemIndex |
Picked sub item index, -1 for whole object.
Definition at line 284 of file fbrenderer.h.