6 #include "GeoDataViewVolume.h"
8 #include "GeoDataTypes.h"
13 class GeoDataViewVolumePrivate
16 GeoDataViewVolumePrivate();
25 GeoDataViewVolumePrivate::GeoDataViewVolumePrivate() :
35 GeoDataViewVolume::GeoDataViewVolume() : d( new GeoDataViewVolumePrivate )
40 GeoDataViewVolume::GeoDataViewVolume(
const Marble::GeoDataViewVolume &other ) :
41 GeoDataObject(), d( new GeoDataViewVolumePrivate( *other.d ) )
46 GeoDataViewVolume &GeoDataViewVolume::operator=(
const GeoDataViewVolume &other )
48 GeoDataObject::operator=( other );
53 bool GeoDataViewVolume::operator==(
const GeoDataViewVolume& other)
const
56 && d->m_leftFov == other.d->m_leftFov
57 && d->m_rightFov == other.d->m_rightFov
58 && d->m_topFov == other.d->m_topFov
59 && d->m_bottomFov == other.d->m_bottomFov
60 && d->m_near == other.d->m_near;
63 bool GeoDataViewVolume::operator!=(
const GeoDataViewVolume& other)
const
68 GeoDataViewVolume::~GeoDataViewVolume()
73 const char *GeoDataViewVolume::nodeType()
const
75 return GeoDataTypes::GeoDataViewVolumeType;
78 qreal GeoDataViewVolume::leftFov()
const
83 void GeoDataViewVolume::setLeftFov(qreal leftFov)
85 d->m_leftFov = leftFov;
88 qreal GeoDataViewVolume::rightFov()
const
93 void GeoDataViewVolume::setRightFov(qreal rightFov)
95 d->m_rightFov = rightFov;
98 qreal GeoDataViewVolume::bottomFov()
const
100 return d->m_bottomFov;
103 void GeoDataViewVolume::setBottomFov(qreal bottomFov)
105 d->m_bottomFov = bottomFov;
108 qreal GeoDataViewVolume::topFov()
const
113 void GeoDataViewVolume::setTopFov(qreal topFov)
115 d->m_topFov = topFov;
118 qreal GeoDataViewVolume::near()
const
123 void GeoDataViewVolume::setNear(qreal near)