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

#include <FilterClassificationWidget.hpp>

Inherits QWidget.

Public Slots

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

Public Member Functions

 FilterClassificationWidget (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 setClassifications (const Classifications &classifications, const QueryFilterSet &filter)
 
void dataChanged ()
 
void filterChanged ()
 
size_t identifier (const QTreeWidgetItem *item)
 
void updateTree ()
 
void block ()
 
void unblock ()
 
void addTreeItem (size_t index)
 

Protected Attributes

MainWindowmainWindow_
 
QTreeWidget * tree_
 
QToolButton * showButton_
 
QToolButton * hideButton_
 
QToolButton * selectAllButton_
 
QToolButton * selectInvertButton_
 
QToolButton * selectNoneButton_
 
bool updatesEnabled_
 
Classifications classifications_
 
QueryFilterSet filter_
 

Member Enumeration Documentation

◆ Column

Filter Classification Column.

Enumerator
COLUMN_CHECKED 
COLUMN_ID 
COLUMN_LABEL 
COLUMN_LAST 

Constructor & Destructor Documentation

◆ FilterClassificationWidget()

FilterClassificationWidget::FilterClassificationWidget ( MainWindow * mainWindow)

Member Function Documentation

◆ addTreeItem()

void FilterClassificationWidget::addTreeItem ( size_t index)
protected

Referenced by setClassifications().

◆ block()

void FilterClassificationWidget::block ( )
protected

Referenced by setClassifications(), and updateTree().

◆ dataChanged()

void FilterClassificationWidget::dataChanged ( )
protected

◆ filterChanged()

void FilterClassificationWidget::filterChanged ( )
protected

◆ identifier()

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

Referenced by slotItemChanged().

◆ setClassifications()

void FilterClassificationWidget::setClassifications ( const Classifications & classifications,
const QueryFilterSet & filter )
protected

Referenced by slotUpdate().

◆ setFilterEnabled()

void FilterClassificationWidget::setFilterEnabled ( bool b)

◆ sizeHint()

QSize FilterClassificationWidget::sizeHint ( ) const
inlineoverride

◆ slotHide

void FilterClassificationWidget::slotHide ( )
slot

◆ slotItemChanged

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

Referenced by unblock().

◆ slotItemSelectionChanged

void FilterClassificationWidget::slotItemSelectionChanged ( )
slot

◆ slotSelectAll

void FilterClassificationWidget::slotSelectAll ( )
slot

◆ slotSelectInvert

void FilterClassificationWidget::slotSelectInvert ( )
slot

◆ slotSelectNone

void FilterClassificationWidget::slotSelectNone ( )
slot

◆ slotShow

void FilterClassificationWidget::slotShow ( )
slot

◆ slotUpdate

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

◆ unblock()

void FilterClassificationWidget::unblock ( )
protected

Referenced by setClassifications(), and updateTree().

◆ updateTree()

void FilterClassificationWidget::updateTree ( )
protected

Member Data Documentation

◆ classifications_

Classifications FilterClassificationWidget::classifications_
protected

◆ filter_

◆ hideButton_

QToolButton* FilterClassificationWidget::hideButton_
protected

◆ mainWindow_

MainWindow* FilterClassificationWidget::mainWindow_
protected

◆ selectAllButton_

QToolButton* FilterClassificationWidget::selectAllButton_
protected

◆ selectInvertButton_

QToolButton* FilterClassificationWidget::selectInvertButton_
protected

◆ selectNoneButton_

QToolButton* FilterClassificationWidget::selectNoneButton_
protected

◆ showButton_

QToolButton* FilterClassificationWidget::showButton_
protected

◆ tree_

◆ updatesEnabled_

bool FilterClassificationWidget::updatesEnabled_
protected

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