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:

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< int > getOutputValues ()
 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::auto_ptr< DoubleListWidgetm_obsWidget
 The widget used to select the observed properties. More...
 
std::auto_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
te::qt::widgets::ObservationPropertiesWidget::~ObservationPropertiesWidget ( )

Destructor.

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.
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.
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
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.
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
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.
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.
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.

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.

std::auto_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.

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

The widget's form.

Definition at line 142 of file ObservationPropertiesWidget.h.


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