te::qt::widgets::ObservationPropertiesWidget Class Reference

A widget used to adjust a Observation layer's properties. More...

#include <ObservationPropertiesWidget.h>

Inheritance diagram for te::qt::widgets::ObservationPropertiesWidget:
QWidget

Public Member Functions

Ui::ObservationPropertiesWidgetForm * getForm ()
 Returns a pointer to the widget's form. More...
 
int getGeometryId ()
 Returns the index of the temporal property geometry. More...
 
std::string getGeometryPropName ()
 Returns the name of the property that holds the geometry. More...
 
int getIdIndex ()
 Returns the index of the observation ID. More...
 
std::string getIdPropName ()
 Returns the name of the property that holds the observation ID. More...
 
std::vector< std::string > getOutputPropNames ()
 Returns a vector containing the names of the observed properties. More...
 
std::vector< intgetOutputValues ()
 Returns a vector containing the indexes of the observed properties. More...
 
 ObservationPropertiesWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
void setUp (const te::da::DataSetTypePtr dataType)
 Adjusts the widget's components based on the given datasettype. More...
 
 ~ObservationPropertiesWidget ()
 Destructor. More...
 

Private Attributes

te::da::DataSetTypePtr m_dataType
 The datasetType that will be used to generate the spatio-temporal layer. More...
 
std::unique_ptr< DoubleListWidgetm_obsWidget
 The widget used to select the observed properties. More...
 
std::unique_ptr< Ui::ObservationPropertiesWidgetForm > m_ui
 The widget's form. More...
 

Detailed Description

A widget used to adjust a Observation layer's properties.

Definition at line 57 of file ObservationPropertiesWidget.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
dataSetTypeThe datasetType that will be used to generate a ObservationLayer.
parentthis widget's parent
fWindow flags used to configure this widget

Definition at line 36 of file ObservationPropertiesWidget.cpp.

References m_obsWidget, m_ui, and ~ObservationPropertiesWidget().

te::qt::widgets::ObservationPropertiesWidget::~ObservationPropertiesWidget ( )
default

Destructor.

Referenced by ObservationPropertiesWidget().

Member Function Documentation

Ui::ObservationPropertiesWidgetForm * te::qt::widgets::ObservationPropertiesWidget::getForm ( )

Returns a pointer to the widget's form.

Returns
A ObservationPropertiesWidgetForm type pointer to the widget's form.
Note
The caller will not take ownership of the returned pointer.

Definition at line 57 of file ObservationPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::ObservationPropertiesWidget::getGeometryId ( )

Returns the index of the temporal property geometry.

Returns
The index of the temporal property geometry
Note
Will return an invalid index if the dataSeType hasn't been given.

Definition at line 83 of file ObservationPropertiesWidget.cpp.

References m_dataType, and m_ui.

std::string te::qt::widgets::ObservationPropertiesWidget::getGeometryPropName ( )

Returns the name of the property that holds the geometry.

Returns
The name of the property that holds the geometry

Definition at line 78 of file ObservationPropertiesWidget.cpp.

References m_ui.

int te::qt::widgets::ObservationPropertiesWidget::getIdIndex ( )

Returns the index of the observation ID.

Returns
The index of the observation ID
Note
Will return an invalid index if the dataSeType hasn't been given.

Definition at line 96 of file ObservationPropertiesWidget.cpp.

References m_dataType, and m_ui.

std::string te::qt::widgets::ObservationPropertiesWidget::getIdPropName ( )

Returns the name of the property that holds the observation ID.

Returns
The name of the property that holds the observation ID

Definition at line 91 of file ObservationPropertiesWidget.cpp.

References m_ui.

std::vector< std::string > te::qt::widgets::ObservationPropertiesWidget::getOutputPropNames ( )

Returns a vector containing the names of the observed properties.

Returns
A vector containing the names of the observed properties.

Definition at line 73 of file ObservationPropertiesWidget.cpp.

References m_obsWidget.

std::vector< int > te::qt::widgets::ObservationPropertiesWidget::getOutputValues ( )

Returns a vector containing the indexes of the observed properties.

Returns
A vector containing the indexes of the observed properties.

Definition at line 62 of file ObservationPropertiesWidget.cpp.

References te::da::GetPropertyPos(), m_dataType, and m_obsWidget.

void te::qt::widgets::ObservationPropertiesWidget::setUp ( const te::da::DataSetTypePtr  dataType)

Adjusts the widget's components based on the given datasettype.

Parameters
dataTypeThe datasetType that will be used to configure the widget.

Definition at line 104 of file ObservationPropertiesWidget.cpp.

References te::dt::GEOMETRY_TYPE, m_dataType, m_obsWidget, and m_ui.

Member Data Documentation

te::da::DataSetTypePtr te::qt::widgets::ObservationPropertiesWidget::m_dataType
private

The datasetType that will be used to generate the spatio-temporal layer.

Definition at line 143 of file ObservationPropertiesWidget.h.

Referenced by getGeometryId(), getIdIndex(), getOutputValues(), and setUp().

std::unique_ptr<DoubleListWidget> te::qt::widgets::ObservationPropertiesWidget::m_obsWidget
private

The widget used to select the observed properties.

Definition at line 141 of file ObservationPropertiesWidget.h.

Referenced by getOutputPropNames(), getOutputValues(), ObservationPropertiesWidget(), and setUp().

std::unique_ptr<Ui::ObservationPropertiesWidgetForm> te::qt::widgets::ObservationPropertiesWidget::m_ui
private

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