Image Component Library (ICL)
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
icl::physics::PhysicsPaper3MouseHandler Class Reference

#include <PhysicsPaper3MouseHandler.h>

Inheritance diagram for icl::physics::PhysicsPaper3MouseHandler:
icl::qt::MouseHandler

Public Member Functions

 PhysicsPaper3MouseHandler (PhysicsPaper3 *model, geom::Scene *scene, int camIndex=0)
 
virtual void process (const qt::MouseEvent &e)
 this function is called automatically when the handleEvent slot is invoked More...
 
utils::VisualizationDescription vis () const
 
void applyForceToModel (float streangth=1, float radius=0.1)
 
void setAddLinksTwice (bool enabled)
 if enabled, links are always added twice (with few pixels distance) More...
 
void setDragIndicatorsVisible (bool on)
 
- Public Member Functions inherited from icl::qt::MouseHandler
 MouseHandler (mouse_handler handler)
 Create a mouse handler with given callback function. More...
 

Protected Member Functions

void menuCallback (const std::string &entry)
 
- Protected Member Functions inherited from icl::qt::MouseHandler
 MouseHandler ()
 This constructor can be called from derived classes. More...
 

Private Attributes

Data * m_data
 

Additional Inherited Members

- Public Types inherited from icl::qt::MouseHandler
typedef void(* mouse_handler) (const MouseEvent &event)
 mouse_handler function type More...
 
- Public Slots inherited from icl::qt::MouseHandler
void handleEvent (const MouseEvent &event)
 connected to the ICLWidget's signal mouseEventOccured More...
 

Constructor & Destructor Documentation

◆ PhysicsPaper3MouseHandler()

icl::physics::PhysicsPaper3MouseHandler::PhysicsPaper3MouseHandler ( PhysicsPaper3 model,
geom::Scene scene,
int  camIndex = 0 
)

Member Function Documentation

◆ applyForceToModel()

void icl::physics::PhysicsPaper3MouseHandler::applyForceToModel ( float  streangth = 1,
float  radius = 0.1 
)

◆ menuCallback()

void icl::physics::PhysicsPaper3MouseHandler::menuCallback ( const std::string &  entry)
protected

◆ process()

virtual void icl::physics::PhysicsPaper3MouseHandler::process ( const qt::MouseEvent event)
virtual

this function is called automatically when the handleEvent slot is invoked

It can be reimplemented for custom mouse interaction. If a mouse handling function is enough for your purpose, you can also pass a function of type mouse_handler to the constructor of a MouseHandler instance. The default implementation of process calls the handler function if it's not null.

Reimplemented from icl::qt::MouseHandler.

◆ setAddLinksTwice()

void icl::physics::PhysicsPaper3MouseHandler::setAddLinksTwice ( bool  enabled)

if enabled, links are always added twice (with few pixels distance)

◆ setDragIndicatorsVisible()

void icl::physics::PhysicsPaper3MouseHandler::setDragIndicatorsVisible ( bool  on)

◆ vis()

utils::VisualizationDescription icl::physics::PhysicsPaper3MouseHandler::vis ( ) const

Member Data Documentation

◆ m_data

Data* icl::physics::PhysicsPaper3MouseHandler::m_data
private

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