Developer Documentation

Public Types | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
VSI::ZoomButton Class Reference

Scene zoom in/out widget. More...

`#include <Plugin-VSI/scene/zoomButton.hh>`

Inheritance diagram for VSI::ZoomButton:

## Public Types
enum | Type { In, Out }
| Zoom type.

## Public Member Functions
| ZoomButton (GraphicsScene *_scene, QGraphicsItem *_parent, Type _type)
| Constructor.
| ~ZoomButton ()
| Destructor.
void | activate (QPointF _pos)
| Activates the timer for zoom with center at _pos (will be called if an element is moved above)
void | deactivate ()
| Stop the timer.
virtual void | setGeometry (const QRectF &_rect)
| Sets the geometry.

## Protected Member Functions
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *_event)
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *_event)
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *_event)
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *_event)
virtual void | wheelEvent (QGraphicsSceneWheelEvent *_event)
virtual QSizeF | sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const

## Private Slots
void | timeout ()

## Private Attributes
GraphicsScene * | scene_
Type | type_
QTimer | timer_
QPointF | pos_

## Detailed Description

Scene zoom in/out widget.

Definition at line 60 of file zoomButton.hh.

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

- Plugin-VSI/scene/zoomButton.hh
- Plugin-VSI/scene/zoomButton.cc