te::qt::widgets::DataSetTypeFilter Class Reference

Custom widget used filter a dataset type, creating a DataSetTypeConverter. More...

#include <DataSetTypeFilter.h>

Inheritance diagram for te::qt::widgets::DataSetTypeFilter:

Public Member Functions

void applyFilterToConverter (te::da::DataSetTypeConverter *converter) const
 Applies the selected attributes filter to the given Converter. More...
 
void applyFilterToDataAccess (te::da::DataAccess *dataAccess) const
 Applies the selected attributes filter to the given DataAccess. More...
 
 DataSetTypeFilter (QWidget *parent=0, Qt::WindowFlags f=0)
 Default constructor. More...
 
te::da::DataSetTypeConvertergetConverter (const te::da::DataSetType *dataSetType, const te::da::DataSourceCapabilities &capabilities, const std::string &resultDataSetName) const
 Creates a new converter and applies the selected attributes filter. More...
 
void init (const te::da::DataSetType *dataSetType, bool selectAllAttrs=true)
 Inits the component based on the given dataSetType. More...
 
 ~DataSetTypeFilter ()
 Virtual destructor. More...
 

Private Attributes

std::unique_ptr< te::qt::widgets::DoubleListWidgetm_doubleListWidget
 

Detailed Description

Custom widget used filter a dataset type, creating a DataSetTypeConverter.

Note
If input DataSetType has primary key, the output will keep the same pk.
If input DataSetType has geom prop, the output will keep the geom prop.

Definition at line 66 of file DataSetTypeFilter.h.

Constructor & Destructor Documentation

◆ DataSetTypeFilter()

te::qt::widgets::DataSetTypeFilter::DataSetTypeFilter ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Default constructor.

◆ ~DataSetTypeFilter()

te::qt::widgets::DataSetTypeFilter::~DataSetTypeFilter ( )

Virtual destructor.

Member Function Documentation

◆ applyFilterToConverter()

void te::qt::widgets::DataSetTypeFilter::applyFilterToConverter ( te::da::DataSetTypeConverter converter) const

Applies the selected attributes filter to the given Converter.

Returns
The converter to be adapter

◆ applyFilterToDataAccess()

void te::qt::widgets::DataSetTypeFilter::applyFilterToDataAccess ( te::da::DataAccess dataAccess) const

Applies the selected attributes filter to the given DataAccess.

Returns
The dataAccess to be adapter

◆ getConverter()

te::da::DataSetTypeConverter* te::qt::widgets::DataSetTypeFilter::getConverter ( const te::da::DataSetType dataSetType,
const te::da::DataSourceCapabilities capabilities,
const std::string &  resultDataSetName 
) const

Creates a new converter and applies the selected attributes filter.

Returns
The new converter

◆ init()

void te::qt::widgets::DataSetTypeFilter::init ( const te::da::DataSetType dataSetType,
bool  selectAllAttrs = true 
)

Inits the component based on the given dataSetType.

Parameters
dataSetTypeA valid dataSetType. This class will not take the ownership of the pointer
selectAllAttrsA flag used to select all attributes from input dataset type to output converter

Member Data Documentation

◆ m_doubleListWidget

std::unique_ptr<te::qt::widgets::DoubleListWidget> te::qt::widgets::DataSetTypeFilter::m_doubleListWidget
private

Definition at line 111 of file DataSetTypeFilter.h.


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