3D Forest
Software for analysis of Lidar data from forest environment.
FilterTreesWidget Class Reference

#include <FilterTreesWidget.hpp>

Inherits QWidget.

Public Slots

void slotUpdate (void *sender, const QSet< Editor::Type > &target)
 
void slotAdd ()
 
void slotDelete ()
 
void slotShow ()
 
void slotHide ()
 
void slotSelectAll ()
 
void slotSelectInvert ()
 
void slotSelectNone ()
 
void slotItemSelectionChanged ()
 
void slotItemClicked (QTreeWidgetItem *item, int column)
 
void slotItemChanged (QTreeWidgetItem *item, int column)
 

Public Member Functions

 FilterTreesWidget (MainWindow *mainWindow)
 
void setFilterEnabled (bool b)
 
QSize sizeHint () const override
 

Protected Types

enum  Column { COLUMN_CHECKED , COLUMN_ID , COLUMN_LABEL , COLUMN_LAST }
 

Protected Member Functions

void setSegments (const Segments &segments, const QueryFilterSet &filter)
 
void dataChanged ()
 
void filterChanged ()
 
size_t identifier (const QTreeWidgetItem *item)
 
size_t index (const QTreeWidgetItem *item)
 
void updateTree ()
 
void block ()
 
void unblock ()
 
void addTreeItem (size_t index)
 

Protected Attributes

MainWindowmainWindow_
 
QTreeWidget * tree_
 
QToolButton * addButton_
 
QToolButton * deleteButton_
 
QToolButton * showButton_
 
QToolButton * hideButton_
 
QToolButton * selectAllButton_
 
QToolButton * selectInvertButton_
 
QToolButton * selectNoneButton_
 
QSplitter * splitter_
 
FilterTreesTreeWidgettreeWidget_
 
Segments segments_
 
QueryFilterSet filter_
 
bool updatesEnabled_
 

Member Enumeration Documentation

◆ Column

enum FilterTreesWidget::Column
protected

Filter Trees Column.

Enumerator
COLUMN_CHECKED 
COLUMN_ID 
COLUMN_LABEL 
COLUMN_LAST 

Constructor & Destructor Documentation

◆ FilterTreesWidget()

FilterTreesWidget::FilterTreesWidget ( MainWindow * mainWindow)

Member Function Documentation

◆ addTreeItem()

void FilterTreesWidget::addTreeItem ( size_t index)
protected

Referenced by setSegments().

◆ block()

void FilterTreesWidget::block ( )
protected

Referenced by setSegments(), and updateTree().

◆ dataChanged()

void FilterTreesWidget::dataChanged ( )
protected

◆ filterChanged()

void FilterTreesWidget::filterChanged ( )
protected

◆ identifier()

size_t FilterTreesWidget::identifier ( const QTreeWidgetItem * item)
protected

◆ index()

size_t FilterTreesWidget::index ( const QTreeWidgetItem * item)
protected

◆ setFilterEnabled()

void FilterTreesWidget::setFilterEnabled ( bool b)

◆ setSegments()

void FilterTreesWidget::setSegments ( const Segments & segments,
const QueryFilterSet & filter )
protected

Referenced by slotUpdate().

◆ sizeHint()

QSize FilterTreesWidget::sizeHint ( ) const
inlineoverride

◆ slotAdd

void FilterTreesWidget::slotAdd ( )
slot

Referenced by FilterTreesWidget().

◆ slotDelete

void FilterTreesWidget::slotDelete ( )
slot

Referenced by FilterTreesWidget().

◆ slotHide

void FilterTreesWidget::slotHide ( )
slot

Referenced by FilterTreesWidget().

◆ slotItemChanged

void FilterTreesWidget::slotItemChanged ( QTreeWidgetItem * item,
int column )
slot

Referenced by unblock().

◆ slotItemClicked

void FilterTreesWidget::slotItemClicked ( QTreeWidgetItem * item,
int column )
slot

Referenced by unblock().

◆ slotItemSelectionChanged

void FilterTreesWidget::slotItemSelectionChanged ( )
slot

◆ slotSelectAll

void FilterTreesWidget::slotSelectAll ( )
slot

Referenced by FilterTreesWidget().

◆ slotSelectInvert

void FilterTreesWidget::slotSelectInvert ( )
slot

Referenced by FilterTreesWidget().

◆ slotSelectNone

void FilterTreesWidget::slotSelectNone ( )
slot

Referenced by FilterTreesWidget(), and slotDelete().

◆ slotShow

void FilterTreesWidget::slotShow ( )
slot

Referenced by FilterTreesWidget().

◆ slotUpdate

void FilterTreesWidget::slotUpdate ( void * sender,
const QSet< Editor::Type > & target )
slot

Referenced by FilterTreesWidget().

◆ unblock()

void FilterTreesWidget::unblock ( )
protected

Referenced by setSegments(), and updateTree().

◆ updateTree()

void FilterTreesWidget::updateTree ( )
protected

Member Data Documentation

◆ addButton_

QToolButton* FilterTreesWidget::addButton_
protected

Referenced by FilterTreesWidget().

◆ deleteButton_

QToolButton* FilterTreesWidget::deleteButton_
protected

◆ filter_

◆ hideButton_

QToolButton* FilterTreesWidget::hideButton_
protected

◆ mainWindow_

MainWindow* FilterTreesWidget::mainWindow_
protected

◆ segments_

Segments FilterTreesWidget::segments_
protected

◆ selectAllButton_

QToolButton* FilterTreesWidget::selectAllButton_
protected

Referenced by FilterTreesWidget().

◆ selectInvertButton_

QToolButton* FilterTreesWidget::selectInvertButton_
protected

Referenced by FilterTreesWidget().

◆ selectNoneButton_

QToolButton* FilterTreesWidget::selectNoneButton_
protected

Referenced by FilterTreesWidget().

◆ showButton_

QToolButton* FilterTreesWidget::showButton_
protected

◆ splitter_

QSplitter* FilterTreesWidget::splitter_
protected

Referenced by FilterTreesWidget().

◆ tree_

◆ treeWidget_

FilterTreesTreeWidget* FilterTreesWidget::treeWidget_
protected

◆ updatesEnabled_

bool FilterTreesWidget::updatesEnabled_
protected

The documentation for this class was generated from the following files: