iscalable.h
Go to the documentation of this file.
1 #ifndef DNAI_INTERFACES_ISCALABLE_H
2 #define DNAI_INTERFACES_ISCALABLE_H
3 
4 #include <QPointF>
5 
6 namespace dnai
7 {
8  namespace interfaces {
12  class IScalable
13  {
14  public:
19  virtual qreal scaleFactor() const = 0;
24  virtual QPointF scalePos() const = 0;
25 
30  virtual QPointF realPos() const = 0;
31  };
32  }
33 }
34 
35 #endif // DNAI_INTERFACES_ISCALABLE_H
virtual QPointF scalePos() const =0
Return the position with scale aplyed.
virtual qreal scaleFactor() const =0
Return the current scale factor.
This interface allow to create custom scale for inherited object.
Definition: iscalable.h:12
Definition: api.h:13
virtual QPointF realPos() const =0
Return the position without the scale applyed.