47 lines
1.3 KiB
C++
Executable File
47 lines
1.3 KiB
C++
Executable File
/**
|
|
**
|
|
** @RDE_HEADER@
|
|
** Implementation of rubberband class to define scaling transforms
|
|
** $Id$
|
|
** $HeadURL$
|
|
** $Author$
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Hardware-Environment: Intel-PC
|
|
** Software-Environment: Windows 7, Qt 5.4. ArcGIS 10.2.5
|
|
**
|
|
** Language ........: C++ 11
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Author ...........: Jörg Turla, SPD G, Tel. 3132
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
**
|
|
** Notes .........:
|
|
**
|
|
** 07.04.2015, JT : First edition for use with Qt5
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include "rubberband_transform_scale.h"
|
|
|
|
|
|
namespace SituationMap { namespace RB
|
|
{
|
|
|
|
|
|
|
|
RubberbandTransformScale::RubberbandTransformScale( SituationMap::Map * map, QObject * parent )
|
|
: RubberbandTransform(map,parent)
|
|
{
|
|
setModificationMode( ModificationMode::ScalingOnly );
|
|
} /* RubberbandTransformScale::RubberbandTransformScale */
|
|
|
|
|
|
qreal RubberbandTransformScale::scaleX() const { return transformMatrix()(0,0); }
|
|
qreal RubberbandTransformScale::scaleY() const { return transformMatrix()(1,1); }
|
|
|
|
} } /* namespace SituationMap::RB */ |