marble
EclipsesModel.cpp
Go to the documentation of this file.
bool hasIndex(int row, int column, const QModelIndex &parent) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: EclipsesModel.cpp:105
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: EclipsesModel.cpp:136
void setLocalPos(double lat, double lng, double hgt)
Definition: eclsolar.cpp:202
EclipsesItem * eclipseWithIndex(int index)
Get eclipse item of a given year.
Definition: EclipsesModel.cpp:89
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
void setObservationPoint(const GeoDataCoordinates &coords)
Set the current observation point.
Definition: EclipsesModel.cpp:52
QString tr(const char *sourceText, const char *disambiguation, int n)
void beginResetModel()
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
Definition: eclsolar.h:22
bool isValid() const
QList< EclipsesItem * > items() const
Return the items in this model.
Definition: EclipsesModel.cpp:100
void endInsertRows()
void setWithLunarEclipses(const bool enable)
Set if lunar eclipses are enbled.
Definition: EclipsesModel.cpp:75
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: EclipsesModel.cpp:124
void home(qreal &lon, qreal &lat, int &zoom) const
get the home point
Definition: MarbleModel.cpp:446
void * internalPointer() const
QModelIndex createIndex(int row, int column, void *ptr) const
bool withLunarEclipses() const
Return whether or not lunar eclipses are enabled.
Definition: EclipsesModel.cpp:84
void beginInsertRows(const QModelIndex &parent, int first, int last)
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: EclipsesModel.cpp:130
EclipsesModel(const MarbleModel *model, QObject *parent=0)
Definition: EclipsesModel.cpp:24
int column() const
const GeoDataCoordinates & observationPoint() const
Return the current observation point.
Definition: EclipsesModel.cpp:47
void endResetModel()
QObject * parent() const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: EclipsesModel.cpp:161
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.