C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
AbsCoordLocator class converts coordinate values from interaction devices, for example, mouse or keyboard. More...
#include <vsn_coordlocator.h>
Public Member Functions | |
virtual | ~AbsCoordLocator () |
Destructor. | |
Viewport * | GetViewport () const |
Returns pointer to viewport. | |
void | SetViewport (Viewport *pViewport) |
Sets viewport. | |
const Matrix3DF & | GetTransform () const |
Returns transformation matrix from local to model coordinates. | |
void | SetTransform (const Matrix3DF &transform) |
Sets transformation matrix from local to model coordinates. | |
virtual bool | Convert (const PointI &screenPoint, Point3DF &worldPoint, const Matrix3DF *transform=nullptr) const |
Conversion function returns false if conversion failed. | |
virtual bool | Convert (const PointI &screenPoint, Point3DF &worldPoint, const Viewport &, const Matrix3DF *transform=nullptr) const =0 |
Conversion function returns false if conversion failed. | |
virtual Point3DF | Correct (const Point3DF &worldPoint, const Viewport &, const Matrix3DF *transform=nullptr) const =0 |
Correction function. Parameter transform is matrix for transforming to locator coordinate system. | |
virtual bool | ProjectOnRay (const PointI &screenPoint, Point3DF &worldPoint, const Matrix3DF *transform=nullptr) const |
Calculates and projects intersection point onto ray. | |
virtual bool | ProjectOnRay (const PointI &screenPoint, Point3DF &worldPoint, const Viewport &, const Matrix3DF *transform=nullptr) const |
Calculates and projects intersection point onto ray. | |
Public Member Functions inherited from VSN::Object | |
Object (Object *pParent=nullptr) | |
Default constructor. More... | |
virtual | ~Object () |
Destructor. | |
void | SetParent (Object *pParent) |
NO TRANSLATION. | |
Mutex * | GetMutex () |
Object mutex. | |
String | GetObjectName () const |
Returns name. | |
void | SetObjectName (const String &name) |
Sets name. | |
bool | IsControlType () const |
TRANSLATION. | |
Object * | GetParent () const |
NO TRANSLATION. | |
Variant | GetProperty (const String &name) const |
NO TRANSLATION. | |
bool | IsSignalsBlocked () const |
NO TRANSLATION. | |
bool | SetBlockSignals (bool bBlock) |
NO TRANSLATION. | |
void | AddEventListener (Object *pObject) |
NO TRANSLATION. | |
void | RemoveEventListener (Object *pObject) |
NO TRANSLATION. | |
Object * | GetSender () const |
NO TRANSLATION. | |
Thread * | GetThread () const |
NO TRANSLATION. | |
void | BindWithThread (Thread *thread) |
NO TRANSLATION. | |
int | StartTimer (int interval, TimerType timerType=tt_CoarseTimer) |
NO TRANSLATION. | |
void | KillTimer (int id) |
NO TRANSLATION. | |
const ObjectList< Object * > & | GetChildren () const |
NO TRANSLATION. | |
template<typename T > | |
T | FindChild (const String &objName=String()) const |
NO TRANSLATION. | |
template<typename T > | |
ObjectList< T > | FindChildren (const String &objName=String(), VSN::ChildFindingPolicies policies=VSN::FindAllNestedChildren) const |
NO TRANSLATION. | |
Public Member Functions inherited from VSN::BasicObject | |
BasicObject () | |
Default constructor. | |
virtual | ~BasicObject () |
Destructor. | |
Protected Member Functions | |
AbsCoordLocator (Object *pParent=nullptr) | |
Constructor. | |
AbsCoordLocator (AbsCoordLocatorPrivate &d, Object *pParent=nullptr) | |
Constructor. | |
AbsCoordLocator class converts coordinate values from interaction devices, for example, mouse or keyboard.