33 #include "../common/math/linearAlgebra/WVectorFixed.h"
34 #include "../common/math/linearAlgebra/WPosition.h"
35 #include "../common/WDefines.h"
82 std::string viewerName,
84 std::pair< float, float > pixelCoords,
88 int32_t wheelValue = 0 );
127 inline std::string
getName()
const;
194 std::string viewerName,
196 std::pair< float, float > pixelCoords,
200 int32_t wheelValue ) :
202 m_viewerName( viewerName ),
203 m_pickPosition( pickPosition ),
204 m_pixelCoords( pixelCoords ),
206 m_mouseButton( mButton ),
207 m_pickNormal( pickNormal ),
208 m_scrollValue( wheelValue )
216 m_pixelCoords( std::make_pair( 0.0, 0.0 ) ),
267 && this->m_modKey == rhs.
m_modKey );
272 return !( *
this == rhs );
Encapsulates info for pick action.
WPosition getPickPosition() const
Get position where object was hit.
void setModifierKey(const modifierKey &modKey)
Set the modifier key associated with the pick.
WMouseButton
Different types of mouse buttons.
WMouseButton m_mouseButton
which mouse button was used for the pick
std::pair< float, float > m_pixelCoords
Pixel coordinates of the mouse.
bool operator!=(WPickInfo rhs) const
Tests two pick infos for inequality.
WMouseButton getMouseButton() const
Get the mouse button associated with the pick.
WPosition m_pickPosition
position where object was hit.
modifierKey m_modKey
modifier key associated with the pick
WVector3d m_pickNormal
normal at position where object was hit.
int32_t m_scrollValue
the scroll wheel value.
WVector2d getPickPixel() const
Returns the picked pixel coordinates in screen-space.
std::string getViewerName() const
Get name of the viewer.
bool operator==(WPickInfo rhs) const
Tests two pick infos for equality.
std::string m_viewerName
name of the viewer
WVector3d getPickNormal() const
Get normal at position where object was hit.
int32_t getScrollWheel() const
Returns an integer denoting the wheel movement.
std::string getName() const
Get name of picked object.
WPickInfo()
Creates an object with the empty name, zero position and no modkey.
void setMouseButton(const WMouseButton &mButton)
Set the modifier key associated with the pick.
std::string m_name
name of picked object.
modifierKey getModifierKey() const
Get the modifier key associated with the pick.
modifierKey
Different types of modifier keys.
This only is a 3d double vector.