All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 55 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, and m_ui.

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

Destructor.

Definition at line 54 of file ObservationPropertiesWidget.cpp.

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 58 of file ObservationPropertiesWidget.cpp.

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 84 of file ObservationPropertiesWidget.cpp.

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 79 of file ObservationPropertiesWidget.cpp.

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 97 of file ObservationPropertiesWidget.cpp.

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 92 of file ObservationPropertiesWidget.cpp.

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 74 of file ObservationPropertiesWidget.cpp.

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 63 of file ObservationPropertiesWidget.cpp.

References te::da::GetPropertyPos().

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 105 of file ObservationPropertiesWidget.cpp.

References te::dt::GEOMETRY_TYPE.

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 141 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 139 of file ObservationPropertiesWidget.h.

Referenced by ObservationPropertiesWidget().

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

The widget's form.

Definition at line 140 of file ObservationPropertiesWidget.h.

Referenced by ObservationPropertiesWidget().


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