TexGen
|
#include <Property.h>
Public Member Functions | |
CProperty (string SIUnits) | |
void | WriteAttribute (TiXmlElement &Element, string AttributeName) |
void | ReadAttribute (TiXmlElement &Element, string AttributeName) |
string | GetString () const |
double | GetValue (string Units) const |
double | GetSIValue () const |
void | SetValue (double dValue, string Units) |
void | SetValue (double dValue) |
void | SetUnits (string Units) |
void | Reset () |
double | GetValue () const |
string | GetUnits () const |
string | GetSIUnits () const |
bool | IsSet () const |
Protected Attributes | |
double | m_dValue |
string | m_Units |
string | m_SIUnits |
bool | m_bSet |
Definition at line 26 of file Property.h.
CProperty::CProperty | ( | string | SIUnits | ) |
Definition at line 24 of file Property.cpp.
string CProperty::GetSIUnits | ( | ) | const |
Definition at line 119 of file Property.cpp.
References m_SIUnits.
double CProperty::GetSIValue | ( | ) | const |
Definition at line 61 of file Property.cpp.
References GetValue(), and m_SIUnits.
Referenced by TexGen::CProperties::GetFibreArea(), TexGen::CTextile::GetFibreVolumePerUnitArea(), TexGen::CProperties::SetFibreDensity(), TexGen::CProperties::SetFibreDiameter(), TexGen::CProperties::SetFibresPerYarn(), and TexGen::CProperties::SetYarnLinearDensity().
string CProperty::GetString | ( | ) | const |
Definition at line 51 of file Property.cpp.
References m_dValue, m_Units, and TexGen::stringify().
string CProperty::GetUnits | ( | ) | const |
Definition at line 114 of file Property.cpp.
References m_Units.
double CProperty::GetValue | ( | ) | const |
double CProperty::GetValue | ( | string | Units | ) | const |
Definition at line 56 of file Property.cpp.
References TexGen::ConvertUnits(), m_dValue, and m_Units.
Referenced by TexGen::CProperties::GetAlphaX(), TexGen::CProperties::GetAlphaY(), TexGen::CProperties::GetAlphaZ(), TexGen::CPropertiesTextile::GetArealDensity(), TexGen::CProperties::GetFibreArea(), TexGen::CProperties::GetFibreDensity(), TexGen::CProperties::GetFibreDiameter(), TexGen::CPropertiesTextile::GetMatrixYoungsModulus(), TexGen::CProperties::GetShearModulusXY(), TexGen::CProperties::GetShearModulusXZ(), TexGen::CProperties::GetShearModulusYZ(), TexGen::CProperties::GetYarnLinearDensity(), TexGen::CProperties::GetYoungsModulusX(), TexGen::CProperties::GetYoungsModulusY(), and TexGen::CProperties::GetYoungsModulusZ().
bool CProperty::IsSet | ( | ) | const |
Definition at line 124 of file Property.cpp.
References m_bSet.
Referenced by TexGen::CProperties::GetFibreArea(), TexGen::CTextile::GetFibreVolumePerUnitArea(), TexGen::CProperties::SetFibreDensity(), TexGen::CProperties::SetFibresPerYarn(), and TexGen::CProperties::SetYarnLinearDensity().
void CProperty::ReadAttribute | ( | TiXmlElement & | Element, |
string | AttributeName | ||
) |
Definition at line 40 of file Property.cpp.
References SetValue().
Referenced by TexGen::CProperties::CProperties(), TexGen::CPropertiesTextile::CPropertiesTextile(), and TexGen::CPropertiesTextile::PopulateTiXmlElement().
void CProperty::Reset | ( | ) |
Definition at line 102 of file Property.cpp.
References m_bSet, m_dValue, and m_Units.
Referenced by SetUnits(), and SetValue().
void CProperty::SetUnits | ( | string | Units | ) |
Definition at line 88 of file Property.cpp.
References TexGen::CompatibleUnits(), m_SIUnits, m_Units, Reset(), and TGERROR.
void CProperty::SetValue | ( | double | dValue | ) |
Definition at line 82 of file Property.cpp.
void CProperty::SetValue | ( | double | dValue, |
string | Units | ||
) |
Definition at line 66 of file Property.cpp.
References TexGen::CompatibleUnits(), m_bSet, m_dValue, m_SIUnits, m_Units, Reset(), and TGERROR.
Referenced by ReadAttribute(), TexGen::CProperties::SetAlphaX(), TexGen::CProperties::SetAlphaY(), TexGen::CProperties::SetAlphaZ(), TexGen::CPropertiesTextile::SetArealDensity(), TexGen::CProperties::SetFibreArea(), TexGen::CProperties::SetFibreDensity(), TexGen::CProperties::SetFibreDiameter(), TexGen::CProperties::SetFibresPerYarn(), TexGen::CPropertiesTextile::SetMatrixYoungsModulus(), TexGen::CProperties::SetShearModulusXY(), TexGen::CProperties::SetShearModulusXZ(), TexGen::CProperties::SetShearModulusYZ(), TexGen::CProperties::SetYarnLinearDensity(), TexGen::CProperties::SetYoungsModulusX(), TexGen::CProperties::SetYoungsModulusY(), and TexGen::CProperties::SetYoungsModulusZ().
void CProperty::WriteAttribute | ( | TiXmlElement & | Element, |
string | AttributeName | ||
) |
Definition at line 31 of file Property.cpp.
References m_bSet, m_dValue, m_Units, and TexGen::stringify().
Referenced by TexGen::CPropertiesTextile::CPropertiesTextile(), TexGen::CProperties::PopulateTiXmlElement(), and TexGen::CPropertiesTextile::PopulateTiXmlElement().
|
protected |
Definition at line 51 of file Property.h.
Referenced by IsSet(), Reset(), SetValue(), and WriteAttribute().
|
protected |
Definition at line 48 of file Property.h.
Referenced by GetString(), GetValue(), Reset(), SetValue(), and WriteAttribute().
|
protected |
Definition at line 50 of file Property.h.
Referenced by GetSIUnits(), GetSIValue(), SetUnits(), and SetValue().
|
protected |
Definition at line 49 of file Property.h.
Referenced by GetString(), GetUnits(), GetValue(), Reset(), SetUnits(), SetValue(), and WriteAttribute().