17#include <vtkPolyDataAlgorithm.h>
50 void addStationList(QString listName,
const std::vector<GeoLib::Point*>* stations);
52 QModelIndex
index(
int row,
int column,
53 const QModelIndex&
parent = QModelIndex())
const override;
57 void setNameForItem(
const std::string& stn_vec_name, std::size_t
id,
58 std::string
const& item_name);
60 vtkPolyDataAlgorithm*
vtkSource(
const std::string &name)
const;
Definition of the Point class.
Definition of the ModelTreeItem class.
Definition of the TreeModel class.
A Station (observation site) is basically a Point with some additional information.
A model for the StationTreeView implementing a tree as a double-linked list.
void addStationList(QString listName, const std::vector< GeoLib::Point * > *stations)
void setNameForItem(const std::string &stn_vec_name, std::size_t id, std::string const &item_name)
~StationTreeModel() override
void removeStationList(QModelIndex index)
StationTreeModel(QObject *parent=nullptr)
std::vector< ModelTreeItem * > _lists
vtkPolyDataAlgorithm * vtkSource(const std::string &name) const
GeoLib::Station * stationFromIndex(const QModelIndex &index, QString &listName) const
const std::vector< ModelTreeItem * > & getLists()
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
A hierarchical model for a tree implemented as a double-linked list.
QModelIndex parent(const QModelIndex &index) const override