78 lines
1.9 KiB
C++
Executable File
78 lines
1.9 KiB
C++
Executable File
/**
|
|
**
|
|
** @RDE_HEADER@
|
|
** Definition of line drawable
|
|
** $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 .........:
|
|
**
|
|
** 27.03.2015, JT : First edition for use with Qt5
|
|
**
|
|
** -----------------------------------------------------------------------------------------------
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "drawable_painter_path.h"
|
|
|
|
|
|
namespace SituationMap {
|
|
|
|
|
|
namespace MathUtils
|
|
{
|
|
class SmoothLine;
|
|
class PathRasterer;
|
|
}
|
|
|
|
|
|
namespace RB
|
|
{
|
|
|
|
|
|
class DrawableSmoothPath : public DrawablePainterPath
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
explicit DrawableSmoothPath( Esri::ArcGISRuntime::MapGraphicsView * );
|
|
explicit DrawableSmoothPath( Esri::ArcGISRuntime::MapGraphicsView *, QGraphicsScene * );
|
|
~DrawableSmoothPath();
|
|
|
|
DrawableSmoothPath(const DrawableSmoothPath &) = delete;
|
|
DrawableSmoothPath & operator = (const DrawableSmoothPath &) = delete;
|
|
|
|
void setPath( const QVector<RubberbandDrawable::RubberbandCoordinate> & vertexVector );
|
|
|
|
protected:
|
|
|
|
|
|
SituationMap::MathUtils::SmoothLine * _smoothLine;
|
|
SituationMap::MathUtils::PathRasterer * _pathRasterer;
|
|
|
|
void updateGraphic() override;
|
|
|
|
void adjustCoordinates() override;
|
|
void adjustWindow( const QRectF& ) override;
|
|
|
|
}; /* DrawableSmoothPath */
|
|
|
|
} /* namespace RB */
|
|
} /* namespace SituationMap */
|