|
WSF
|
#include <SOSM_ScalarTable2D.hpp>
Public Types | |
| using | TablePtr = std::shared_ptr<SOSM_ScalarTable2D> |
Public Member Functions | |
| SOSM_ScalarTable2D (SOSM_Manager *aManagerPtr) | |
| double | GetModificationTime () const |
| Return when the source file from which the object was recreated was last modified. | |
| const std::vector< float > & | DV () const |
| Return the dependent variable (const form). | |
| std::vector< float > & | DV () |
| Return the dependent variable (non-const form). | |
| const TblIndVarU< float > & | IV1 () const |
| Return the independent variable 1 values (const form). | |
| TblIndVarU< float > & | IV1 () |
| Return the independent variable 1 values (non-const form). | |
| const TblIndVarU< float > & | IV2 () const |
| Return the independent variable 2 values (const form). | |
| TblIndVarU< float > & | IV2 () |
| Return the independent variable 2 values (non-const form). | |
| void | SetDV_Info (const SOSM_TableVar &aDV_Info) |
| Set the name, limits and scale for the dependent variable. | |
| void | SetIV1_Info (const SOSM_TableVar &aIV1_Info) |
| Set the name, limits and scale for independent variable 1. | |
| void | SetIV2_Info (const SOSM_TableVar &aIV2_Info) |
| Set the name, limits and scale for independent variable 2. | |
| float | Interpolate (const TblLookupL< float > &aIV1_Lookup, const TblLookupL< float > &aIV2_Lookup) const |
| void | PolarLookup (TblLookupLU< float > &aAzLookup, TblLookupLU< float > &aElLookup, float aAzimuth, float aElevation) const |
| void | Load (const std::string &aFileName, const std::string &aCachePrefix) |
| void | LoadTextFile (const std::string &aFileName) |
| void | LoadBinaryFile (const std::string &aFileName) |
| void | SaveBinaryFile (const std::string &aFileName) |
Static Public Member Functions | |
| static TablePtr | LoadSharedPolarTable (SOSM_Manager *aManagerPtr, const std::string &aFileName, const std::string &aCachePrefix, const SOSM_TableVar &aDV_Info) |
| using SOSM_ScalarTable2D::TablePtr = std::shared_ptr<SOSM_ScalarTable2D> |
| SOSM_ScalarTable2D::SOSM_ScalarTable2D | ( | SOSM_Manager * | aManagerPtr | ) |
Referenced by LoadSharedPolarTable().
|
inline |
Return the dependent variable (non-const form).
|
inline |
Return the dependent variable (const form).
Referenced by SOSM_SensorTarget::CreateOrLoadSensorAtmosphereTables(), and SOSM_SensorTarget::CreateOrLoadSensorTargetTables().
|
inline |
Return when the source file from which the object was recreated was last modified.
| float SOSM_ScalarTable2D::Interpolate | ( | const TblLookupL< float > & | aIV1_Lookup, |
| const TblLookupL< float > & | aIV2_Lookup ) const |
|
inline |
Return the independent variable 1 values (non-const form).
|
inline |
Return the independent variable 1 values (const form).
Referenced by SOSM_SensorTarget::CreateOrLoadSensorAtmosphereTables(), and SOSM_SensorTarget::CreateOrLoadSensorTargetTables().
|
inline |
Return the independent variable 2 values (non-const form).
|
inline |
Return the independent variable 2 values (const form).
Referenced by SOSM_SensorTarget::CreateOrLoadSensorAtmosphereTables(), and SOSM_SensorTarget::CreateOrLoadSensorTargetTables().
| void SOSM_ScalarTable2D::Load | ( | const std::string & | aFileName, |
| const std::string & | aCachePrefix ) |
References SOSM_Utility::FileIsCurrent(), LoadBinaryFile(), LoadTextFile(), and SaveBinaryFile().
| void SOSM_ScalarTable2D::LoadBinaryFile | ( | const std::string & | aFileName | ) |
References SOSM_Utility::FileModificationTime(), SOSM_BinaryIO::ReadDV(), SOSM_BinaryIO::ReadHeader(), SOSM_BinaryIO::ReadIV(), and SOSM_BinaryIO::ReadTrailer().
Referenced by Load().
|
static |
References SOSM_ScalarTable2D().
Referenced by SOSM_TableTarget::Component::LoadAreaTable(), and SOSM_SimpleTarget::ST_State::ProcessInput().
| void SOSM_ScalarTable2D::LoadTextFile | ( | const std::string & | aFileName | ) |
References SOSM_Utility::FileModificationTime().
Referenced by Load().
|
inline |
A helper function to perform the lookup function for a polar (az/el) table.
| aAzLookup | [output] The azimuth lookup object. |
| aElLookup | [output] The elevation lookup object. |
| aAzimuth | [input] The azimuth (radians). |
| aElevation | [input] The elevation (radians). |
| void SOSM_ScalarTable2D::SaveBinaryFile | ( | const std::string & | aFileName | ) |
References SOSM_BinaryIO::WriteDV(), SOSM_BinaryIO::WriteHeader(), SOSM_BinaryIO::WriteIV(), and SOSM_BinaryIO::WriteTrailer().
Referenced by Load().
|
inline |
Set the name, limits and scale for the dependent variable.
|
inline |
Set the name, limits and scale for independent variable 1.
|
inline |
Set the name, limits and scale for independent variable 2.