/** * @RDE_HEADER@ * Interface-Implementation of Polyline * $Id$ * $HeadURL$ * $Author$ */ // Own #include "polyline_impl.h" #include #include // ESRI // Qt namespace SituationMap { //----------------------------------------------------------------------------- // class PolylineImpl //----------------------------------------------------------------------------- PolylineImpl::PolylineImpl(const QString &debugInfo) : Polyline() // Interface , BaseClass(debugInfo) // Implementation , m_logger(getLogger("PolylineImpl")) { TRACE_LOG(m_logger) << LOGFUNCTION << " START"; TRACE_LOG(m_logger) << LOGFUNCTION << " END"; } PolylineImpl::~PolylineImpl() { TRACE_LOG(m_logger) << LOGFUNCTION << " START"; TRACE_LOG(m_logger) << LOGFUNCTION << " END"; } bool PolylineImpl::arrowHeadStart() const { TRACE_LOG(m_logger) << LOGFUNCTION << " START"; TRACE_LOG(m_logger) << LOGFUNCTION << " END"; return BaseClass::arrowHeadStart(); } void PolylineImpl::setArrowHeadStart(bool enable) { TRACE_LOG(m_logger) << LOGFUNCTION << " START"; BaseClass::setArrowHeadStart(enable); TRACE_LOG(m_logger) << LOGFUNCTION << " END"; } bool PolylineImpl::arrowHeadEnd() const { TRACE_LOG(m_logger) << LOGFUNCTION << " START"; TRACE_LOG(m_logger) << LOGFUNCTION << " END"; return BaseClass::arrowHeadEnd(); } void PolylineImpl::setArrowHeadEnd(bool enable) { TRACE_LOG(m_logger) << LOGFUNCTION << " START"; BaseClass::setArrowHeadEnd(enable); TRACE_LOG(m_logger) << LOGFUNCTION << " END"; } QString PolylineImpl::textOnSegment(uint segment) const { return BaseClass::textOnSegment(segment); } void PolylineImpl::setTextOnSegment(uint segment, const QString &segmentText) { BaseClass::setTextOnSegment(segment, segmentText); } void PolylineImpl::clearTextOnSegment(uint segment) { BaseClass::clearTextOnSegment(segment); } bool PolylineImpl::updateViewImpl() { TRACE_LOG(m_logger) << LOGFUNCTION << " START" << " visibility=" << m_visibility << " visiTechn=" << m_visibilityTechnical << " visiTact=" << m_visibilityTactical; bool success = BaseClass::updateViewImpl(); if (!success) ERROR_LOG(m_logger) << LOGFUNCTION << " updateViewImpl failed"; TRACE_LOG(m_logger) << LOGFUNCTION << " END, success=" << success; return success; } bool PolylineImpl::init(MapImpl *mapImpl, const QString &logicalLayerName) { TRACE_LOG(m_logger) << LOGFUNCTION << " START"; bool success = BaseClass::init(mapImpl, logicalLayerName, GraphicalObjectPathType::Polyline); if (!success) ERROR_LOG(m_logger) << LOGFUNCTION << " init failed"; TRACE_LOG(m_logger) << LOGFUNCTION << " END, success=" << success; return success; } } // namespace SituationMap