FEMSuite
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ConvertibleParameterEditor Class Reference

This is a template class for parameters with values that could be represented using using multiple units More...

#include <ConvertibleParameterEditor.h>

Inheritance diagram for ConvertibleParameterEditor:
Inheritance graph
[legend]
Collaboration diagram for ConvertibleParameterEditor:
Collaboration graph
[legend]

Public Member Functions

virtual void ValueChanged (wxCommandEvent &event) override
 
virtual void UnitChanged (wxCommandEvent &event) override
 
virtual void Refresh (bool eraseBackground=true, const wxRect *rect=(const wxRect *) NULL) override
 
void PopulateUnitList ()
 Populates the list of units and their respective conversion values. More...
 
double GetConversionFactor ()
 Retreives the current conversion factor More...
 
 ConvertibleParameterEditor (std::shared_ptr< IParameter > p, InteractiveObjectConfigurationPanel *parent, wxWindowID id, const wxString &label, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
 
- Public Member Functions inherited from ConvertibleParameterEditorBase
 ConvertibleParameterEditorBase (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(522, 39), long style=wxTAB_TRAVERSAL)
 

Protected Member Functions

void PopulateListControl ()
 Populates the actual wx control with the list of units More...
 

Protected Attributes

InteractiveObjectConfigurationPanelm_Parent
 
std::shared_ptr< Parameter< double > > m_Parameter
 
std::map< std::string, double > m_ConversionFactors
 Holds the units and their respective conversion factors. More...
 
- Protected Attributes inherited from ConvertibleParameterEditorBase
wxComboBox * lst_Unit
 

Additional Inherited Members

- Public Attributes inherited from ConvertibleParameterEditorBase
wxTextCtrl * txt_Value
 

Detailed Description

This is a template class for parameters with values that could be represented using using multiple units

Member Function Documentation

double ConvertibleParameterEditor::GetConversionFactor ( )

Retreives the current conversion factor

void ConvertibleParameterEditor::PopulateListControl ( )
protected

Populates the actual wx control with the list of units

void ConvertibleParameterEditor::PopulateUnitList ( )

Populates the list of units and their respective conversion values.

Member Data Documentation

std::map<std::string, double> ConvertibleParameterEditor::m_ConversionFactors
protected

Holds the units and their respective conversion factors.


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