Simulacrum  1.2
Public Slots | Public Member Functions | List of all members
Simulacrum::SZoomTool Class Reference

#include <vpTools.h>

Inheritance diagram for Simulacrum::SZoomTool:
Inheritance graph
Collaboration diagram for Simulacrum::SZoomTool:
Collaboration graph

Public Slots

virtual void selected (SViewPort &)
 
virtual void deSelected (SViewPort &)
 
void setZoomFactor (int)
 
virtual void leftClicked (SViewPort &, int x, int y)
 
virtual void rightClicked (SViewPort &, int x, int y)
 
virtual void middleClicked (SViewPort &, int x, int y)
 
virtual void dragged (SViewPort &, int x, int y)
 
- Public Slots inherited from Simulacrum::SViewPortTool
virtual void selected (SViewPort &)
 
virtual void deSelected (SViewPort &)
 
virtual void leftClicked (SViewPort &, int x, int y)
 
virtual void doubleClicked (SViewPort &, int x, int y)
 
virtual void middleClicked (SViewPort &, int x, int y)
 
virtual void rightClicked (SViewPort &, int x, int y)
 
virtual void buttonReleased (SViewPort &, int x, int y)
 
virtual void dragged (SViewPort &, int x, int y)
 
virtual void wheelUp (SViewPort &, int x, int y)
 
virtual void wheelDown (SViewPort &, int x, int y)
 
virtual void keyPressed (SViewPort &, int key)
 
virtual void keyReleased (SViewPort &, int key)
 
virtual void viewportResized (SViewPort &)
 
virtual void viewportUpdated (SViewPort &)
 

Public Member Functions

 SZoomTool (QObject *parent=0)
 
void doZoom (SViewPort &, float scale, int centrex, int centrey, int atpx, int atpy, bool relative=true)
 
float currentZoom (SViewPort &)
 
- Public Member Functions inherited from Simulacrum::SViewPortTool
 SViewPortTool (QObject *parent=nullptr)
 
virtual ~SViewPortTool ()
 
void connectViewPort (SViewPort &)
 
virtual bool oneShot ()
 
void setAdditionalWidgetF (std::function< void(QWidget *, QString)>)
 

Additional Inherited Members

- Protected Member Functions inherited from Simulacrum::SViewPortTool
void AdditionalWidgetHide (QWidget *)
 
- Protected Attributes inherited from Simulacrum::SViewPortTool
SCoordinate ReferencePoint
 
std::function< void(QWidget *, QString)> AdditionalWidget
 

Constructor & Destructor Documentation

◆ SZoomTool()

SZoomTool::SZoomTool ( QObject *  parent = 0)

Member Function Documentation

◆ currentZoom()

float SZoomTool::currentZoom ( SViewPort target)

◆ deSelected

void SZoomTool::deSelected ( SViewPort )
virtualslot

◆ doZoom()

void SZoomTool::doZoom ( SViewPort target,
float  scale,
int  centrex,
int  centrey,
int  atpx,
int  atpy,
bool  relative = true 
)

◆ dragged

void SZoomTool::dragged ( SViewPort target,
int  x,
int  y 
)
virtualslot

◆ leftClicked

void SZoomTool::leftClicked ( SViewPort target,
int  x,
int  y 
)
virtualslot

◆ middleClicked

void SZoomTool::middleClicked ( SViewPort target,
int  x,
int  y 
)
virtualslot

◆ rightClicked

void SZoomTool::rightClicked ( SViewPort target,
int  x,
int  y 
)
virtualslot

◆ selected

void SZoomTool::selected ( SViewPort )
virtualslot

◆ setZoomFactor

void SZoomTool::setZoomFactor ( int  newz)
slot

The documentation for this class was generated from the following files:
Simulacrum Project