OGS
|
Creates parent items for geometric object lists (i.e. points, polylines and surfaces) for the GeoTreeModel
Definition at line 33 of file GeoObjectListItem.h.
#include <GeoObjectListItem.h>
Public Member Functions | |
GeoObjectListItem (const QList< QVariant > &data, TreeItem *parent, const std::vector< GeoLib::Point * > *geo_data=nullptr, GeoLib::GEOTYPE type=GeoLib::GEOTYPE::POINT) | |
Constructor for the TreeItem specifying the "Points"-subtree of a geometry. | |
GeoObjectListItem (const QList< QVariant > &data, TreeItem *parent, const std::vector< GeoLib::Polyline * > *geo_data=nullptr, GeoLib::GEOTYPE type=GeoLib::GEOTYPE::POLYLINE) | |
Constructor for the TreeItem specifying the "Polylines"-subtree of a geometry. | |
GeoObjectListItem (const QList< QVariant > &data, TreeItem *parent, const std::vector< GeoLib::Surface * > *geo_data=nullptr, GeoLib::GEOTYPE type=GeoLib::GEOTYPE::SURFACE) | |
Constructor for the TreeItem specifying the "Surfaces"-subtree of a geometry. | |
~GeoObjectListItem () override | |
GeoLib::GEOTYPE | getType () |
Returns the type of geo-objects contained in the subtree of this item. | |
vtkPolyDataAlgorithm * | vtkSource () const |
Returns the Vtk polydata source object. | |
Public Member Functions inherited from TreeItem | |
TreeItem (QList< QVariant > data, TreeItem *parent) | |
virtual | ~TreeItem () |
void | appendChild (TreeItem *item) |
TreeItem * | child (int row) const |
virtual int | childCount () const |
virtual int | columnCount () const |
virtual QVariant | data (int column) const |
virtual bool | setData (int column, const QVariant &value) |
int | row () const |
TreeItem * | parentItem () const |
bool | removeChildren (int position, int count) |
Private Attributes | |
vtkPolyDataAlgorithm * | _vtkSource |
GeoLib::GEOTYPE | _type |
|
inline |
Constructor for the TreeItem specifying the "Points"-subtree of a geometry.
Definition at line 37 of file GeoObjectListItem.h.
References _vtkSource, and TreeItem::data().
|
inline |
Constructor for the TreeItem specifying the "Polylines"-subtree of a geometry.
Definition at line 51 of file GeoObjectListItem.h.
References _vtkSource, and TreeItem::data().
|
inline |
Constructor for the TreeItem specifying the "Surfaces"-subtree of a geometry.
Definition at line 65 of file GeoObjectListItem.h.
References _vtkSource, and TreeItem::data().
|
inlineoverride |
Definition at line 78 of file GeoObjectListItem.h.
References _vtkSource.
|
inline |
Returns the type of geo-objects contained in the subtree of this item.
Definition at line 80 of file GeoObjectListItem.h.
References _type.
|
inline |
Returns the Vtk polydata source object.
Definition at line 83 of file GeoObjectListItem.h.
References _vtkSource.
Referenced by GeoTreeView::selectionChanged(), and GeoTreeModel::vtkSource().
|
private |
Definition at line 90 of file GeoObjectListItem.h.
Referenced by getType().
|
private |
The Vtk data source object. This is the starting point for a Vtk data visualization pipeline.
Definition at line 88 of file GeoObjectListItem.h.
Referenced by GeoObjectListItem(), GeoObjectListItem(), GeoObjectListItem(), ~GeoObjectListItem(), and vtkSource().