OGS
|
A BaseItem contains additional Information about a subtree in the StationTreeModel.
It is used for list names in the StationTreeModel and it contains the vtkObject for visualisation of the whole list in 3D.
Definition at line 31 of file BaseItem.h.
#include <BaseItem.h>
Public Member Functions | |
BaseItem (const QString &listName, const std::vector< GeoLib::Point * > *stations=nullptr) | |
~BaseItem () | |
QModelIndex | modelIndex () const |
Returns the associated QModelIndex which belongs to a Qt model. | |
void | setModelIndex (QModelIndex index) |
Sets the model index. | |
const std::vector< GeoLib::Point * > * | getStations () |
vtkPolyDataAlgorithm * | vtkSource () const |
Returns the Vtk polydata source object. | |
Private Attributes | |
QModelIndex | _modelIndex |
const std::vector< GeoLib::Point * > * | _stations |
vtkPolyDataAlgorithm * | _vtkSource |
|
inlineexplicit |
Definition at line 34 of file BaseItem.h.
References _vtkSource.
|
inline |
|
inline |
|
inline |
Returns the associated QModelIndex which belongs to a Qt model.
Definition at line 49 of file BaseItem.h.
References _modelIndex.
|
inline |
Sets the model index.
Definition at line 52 of file BaseItem.h.
References _modelIndex.
Referenced by StationTreeModel::index().
|
inline |
Returns the Vtk polydata source object.
Definition at line 57 of file BaseItem.h.
References _vtkSource.
|
private |
Definition at line 60 of file BaseItem.h.
Referenced by modelIndex(), and setModelIndex().
|
private |
Definition at line 61 of file BaseItem.h.
Referenced by getStations().
|
private |
The Vtk data source object. This is the starting point for a Vtk data visualization pipeline.
Definition at line 65 of file BaseItem.h.
Referenced by BaseItem(), ~BaseItem(), and vtkSource().