diff options
Diffstat (limited to 'src/datavis3d/data/qmapdataitem.cpp')
-rw-r--r-- | src/datavis3d/data/qmapdataitem.cpp | 121 |
1 files changed, 0 insertions, 121 deletions
diff --git a/src/datavis3d/data/qmapdataitem.cpp b/src/datavis3d/data/qmapdataitem.cpp deleted file mode 100644 index 47e1a659..00000000 --- a/src/datavis3d/data/qmapdataitem.cpp +++ /dev/null @@ -1,121 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Digia Plc -** All rights reserved. -** For any questions to Digia, please use contact form at http://qt.digia.com -** -** This file is part of the QtDataVis3D module. -** -** Licensees holding valid Qt Enterprise licenses may use this file in -** accordance with the Qt Enterprise License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. -** -** If you have questions regarding the use of this file, please use -** contact form at http://qt.digia.com -** -****************************************************************************/ - -#include "qmapdataitem_p.h" - -QT_DATAVIS3D_BEGIN_NAMESPACE - -/*! - * \class QMapDataItem - * \inmodule QtDataVis3D - * \brief The QMapDataItem class provides a container for resolved data to be added to maps graphs. - * \since 1.0.0 - * - * A QMapDataItem holds data for a single rendered bar in a maps graph. - * Maps data proxies parse data into QMapDataItem instances for visualizing. - * - * \sa QMapDataProxy, {Qt Data Visualization 3D C++ Classes} - */ - -/*! - * Constructs QMapDataItem. - */ -QMapDataItem::QMapDataItem() - : QBarDataItem() -{ -} - -/*! - * Constructs a copy of \a other. - */ -QMapDataItem::QMapDataItem(const QMapDataItem &other) - : QBarDataItem(other) -{ - operator=(other); -} - -/*! - * Destroys QMapDataItem. - */ -QMapDataItem::~QMapDataItem() -{ -} - -/*! - * Assigns a copy of \a other to this object. - */ -QMapDataItem &QMapDataItem::operator=(const QMapDataItem &other) -{ - QBarDataItem::operator =(other); - m_mapPosition = other.m_mapPosition; - m_label = other.m_label; - - return *this; -} - -/*! - * Sets \a position on the map to this data item. - */ -void QMapDataItem::setMapPosition(const QPointF &position) -{ - m_mapPosition = position; -} - -/*! - * \return position of this data item. - */ -QPointF QMapDataItem::mapPosition() const -{ - return m_mapPosition; -} - -/*! - * Sets \a label to this data item. - */ -void QMapDataItem::setLabel(const QString &label) -{ - m_label = label; -} - -/*! - * \return label of this data item. - */ -QString QMapDataItem::label() const -{ - return m_label; -} - -/*! - * \internal - */ -void QMapDataItem::createExtraData() -{ - if (!d_ptr) - d_ptr = new QMapDataItemPrivate; -} - -QMapDataItemPrivate::QMapDataItemPrivate() - : QBarDataItemPrivate() -{ -} - -QMapDataItemPrivate::~QMapDataItemPrivate() -{ -} - -QT_DATAVIS3D_END_NAMESPACE |