• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • GeoDataHotSpot
Public Types | Public Member Functions | List of all members
Marble::GeoDataHotSpot Class Reference

#include <GeoDataHotSpot.h>

Inheritance diagram for Marble::GeoDataHotSpot:
Inheritance graph
[legend]

Public Types

enum  Units { Fraction, Pixels, InsetPixels }
 

Public Member Functions

 GeoDataHotSpot (const QPointF &hotSpot=QPointF(0.5, 0.5), Units xunits=Fraction, Units yunits=Fraction)
 
 GeoDataHotSpot (const GeoDataHotSpot &other)
 
 ~GeoDataHotSpot ()
 
const QPointF & hotSpot (Units &xunits, Units &yunits) const
 
virtual const char * nodeType () const
 
bool operator!= (const GeoDataHotSpot &other)
 
GeoDataHotSpot & operator= (const GeoDataHotSpot &other)
 
bool operator== (const GeoDataHotSpot &other)
 
virtual void pack (QDataStream &stream) const
 
void setHotSpot (const QPointF &hotSpot=QPointF(0.5, 0.5), Units xunits=Fraction, Units yunits=Fraction)
 
virtual void unpack (QDataStream &stream)
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject ()
 
 GeoDataObject (const GeoDataObject &)
 
virtual ~GeoDataObject ()
 
QString id () const
 
GeoDataObject & operator= (const GeoDataObject &)
 
virtual GeoDataObject * parent () const
 
QString resolvePath (const QString &relativePath) const
 
void setId (const QString &value)
 
virtual void setParent (GeoDataObject *parent)
 
void setTargetId (const QString &value)
 
QString targetId () const
 
- Public Member Functions inherited from Marble::GeoNode
 GeoNode ()
 
virtual ~GeoNode ()
 
- Public Member Functions inherited from Marble::Serializable
virtual ~Serializable ()
 

Additional Inherited Members

- Protected Member Functions inherited from Marble::GeoDataObject
virtual bool equals (const GeoDataObject &other) const
 

Detailed Description

Definition at line 27 of file GeoDataHotSpot.h.

Member Enumeration Documentation

enum Marble::GeoDataHotSpot::Units
Enumerator
Fraction 
Pixels 
InsetPixels 

Definition at line 30 of file GeoDataHotSpot.h.

Constructor & Destructor Documentation

Marble::GeoDataHotSpot::GeoDataHotSpot ( const QPointF &  hotSpot = QPointF( 0.5, 0.5 ),
Units  xunits = Fraction,
Units  yunits = Fraction 
)

Definition at line 46 of file GeoDataHotSpot.cpp.

Marble::GeoDataHotSpot::GeoDataHotSpot ( const GeoDataHotSpot &  other)

Definition at line 51 of file GeoDataHotSpot.cpp.

Marble::GeoDataHotSpot::~GeoDataHotSpot ( )

Definition at line 56 of file GeoDataHotSpot.cpp.

Member Function Documentation

const QPointF & Marble::GeoDataHotSpot::hotSpot ( Units &  xunits,
Units &  yunits 
) const

this function returns the hotspot and the units the hotspot is measured in

Parameters
xunitsafter running hotspot, you'll receive the unit in which x is measured
yunitsthe same for y
Returns
the point of the hotspot

Definition at line 82 of file GeoDataHotSpot.cpp.

const char * Marble::GeoDataHotSpot::nodeType ( ) const
virtual

Provides type information for downcasting a GeoData.

Implements Marble::GeoDataObject.

Definition at line 98 of file GeoDataHotSpot.cpp.

bool Marble::GeoDataHotSpot::operator!= ( const GeoDataHotSpot &  other)

Definition at line 77 of file GeoDataHotSpot.cpp.

GeoDataHotSpot & Marble::GeoDataHotSpot::operator= ( const GeoDataHotSpot &  other)

Definition at line 61 of file GeoDataHotSpot.cpp.

bool Marble::GeoDataHotSpot::operator== ( const GeoDataHotSpot &  other)

Definition at line 69 of file GeoDataHotSpot.cpp.

void Marble::GeoDataHotSpot::pack ( QDataStream &  stream) const
virtual

Serialize the contents of the feature to stream.

Reimplemented from Marble::GeoDataObject.

Definition at line 103 of file GeoDataHotSpot.cpp.

void Marble::GeoDataHotSpot::setHotSpot ( const QPointF &  hotSpot = QPointF( 0.5, 0.5 ),
Units  xunits = Fraction,
Units  yunits = Fraction 
)

Definition at line 91 of file GeoDataHotSpot.cpp.

void Marble::GeoDataHotSpot::unpack ( QDataStream &  stream)
virtual

Unserialize the contents of the feature from stream.

Reimplemented from Marble::GeoDataObject.

Definition at line 111 of file GeoDataHotSpot.cpp.


The documentation for this class was generated from the following files:
  • GeoDataHotSpot.h
  • GeoDataHotSpot.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal