ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccInteractor Class Reference

Interactor interface (entity that can be dragged or clicked in a 3D view) More...

#include <ecvInteractor.h>

Inheritance diagram for ccInteractor:
[legend]

Public Member Functions

virtual ~ccInteractor ()=default
 
virtual bool acceptClick (int x, int y, Qt::MouseButton button)
 Called on mouse click. More...
 
virtual bool move2D (int x, int y, int dx, int dy, int screenWidth, int screenHeight)
 Called on mouse move (for 2D interactors) More...
 
virtual bool move3D (const CCVector3d &u)
 Called on mouse move (for 3D interactors) More...
 

Detailed Description

Interactor interface (entity that can be dragged or clicked in a 3D view)

Constructor & Destructor Documentation

◆ ~ccInteractor()

virtual ccInteractor::~ccInteractor ( )
virtualdefault

Member Function Documentation

◆ acceptClick()

virtual bool ccInteractor::acceptClick ( int  x,
int  y,
Qt::MouseButton  button 
)
inlinevirtual

Called on mouse click.

Reimplemented in cc2DLabel.

Referenced by define_ccInteractor(), and QVTKWidgetCustom::mouseReleaseEvent().

◆ move2D()

virtual bool ccInteractor::move2D ( int  x,
int  y,
int  dx,
int  dy,
int  screenWidth,
int  screenHeight 
)
inlinevirtual

Called on mouse move (for 2D interactors)

Returns
true if a movement occurs

Reimplemented in cc2DLabel, and ccClipBox.

Referenced by define_ccInteractor().

◆ move3D()

virtual bool ccInteractor::move3D ( const CCVector3d &  u)
inlinevirtual

Called on mouse move (for 3D interactors)

Returns
true if a movement occurs

Reimplemented in ccClipBox.

Referenced by define_ccInteractor().


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