This group of functions is available for interacting with an AuxiliaryGeom through the API. Click here to return to the main page.
More...
◆ GetAuxiliaryGeomContactPtID()
| std::string vsp::GetAuxiliaryGeomContactPtID |
( |
const std::string & | geom_id, |
|
|
int | index ) |
|
extern |
Get the ID of the Bogie serving as one of the contact points of an AuxiliaryGeom.
string gear_id =
AddGeom(
"GEAR",
"" );
string aux_id =
AddGeom(
"AUXILIARY", gear_id );
{
Print( "ERROR: GetAuxiliaryGeomContactPtID" );
__failure++;
}
std::string GetAuxiliaryGeomContactPtID(const std::string &geom_id, int index)
std::string CreateAndAddBogie(const std::string &gear_id)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
double SetParmVal(const std::string &parm_id, double val)
void Update(bool update_managers=true)
- See also
- SetAuxiliaryGeomContactPtID
- Parameters
-
| [in] | geom_id | string AuxiliaryGeom Geom ID |
| [in] | index | int Contact point index [0, 2] |
- Returns
- string Bogie ParmContainer ID, empty if no Bogie is assigned
◆ ReadAuxiliaryGeomCCEFile()
| void vsp::ReadAuxiliaryGeomCCEFile |
( |
const std::string & | geom_id, |
|
|
const std::string & | file_name ) |
|
extern |
Read a composite clearance envelope (*.cce) file into an AuxiliaryGeom. The file holds the envelope profile as a list of X and Z coordinate pairs, one pair per line, which the AUX_GEOM_THREE_PT_CCE mode sweeps around the aircraft.
string gear_id =
AddGeom(
"GEAR",
"" );
string aux_id =
AddGeom(
"AUXILIARY", gear_id );
if ( GetNumTotalErrors() > 0 )
{
Print( "ERROR: ReadAuxiliaryGeomCCEFile" );
__failure++;
}
void ReadAuxiliaryGeomCCEFile(const std::string &geom_id, const std::string &file_name)
- Parameters
-
| [in] | geom_id | string AuxiliaryGeom Geom ID |
| [in] | file_name | string Name of the *.cce file to read |
◆ SetAuxiliaryGeomContactPtID()
| void vsp::SetAuxiliaryGeomContactPtID |
( |
const std::string & | geom_id, |
|
|
int | index, |
|
|
const std::string & | bogie_id ) |
|
extern |
Assign the Bogie that serves as one of the contact points of an AuxiliaryGeom. The ground plane and clearance envelope AuxiliaryGeom modes rest the aircraft on one, two or three Bogies of the parent GearGeom; this picks which Bogie plays each role. Contact points beyond the ones the current mode uses are ignored, but they are remembered.
Any Bogie assigned here must belong to the AuxiliaryGeom's parent GearGeom. An unrecognized Bogie is silently replaced by the GearGeom's first Bogie on the next update.
string gear_id =
AddGeom(
"GEAR",
"" );
string aux_id =
AddGeom(
"AUXILIARY", gear_id );
{
Print( "ERROR: SetAuxiliaryGeomContactPtID did not take" );
__failure++;
}
void SetAuxiliaryGeomContactPtID(const std::string &geom_id, int index, const std::string &bogie_id)
@ AUX_GEOM_THREE_PT_GROUND
- See also
- GetAuxiliaryGeomContactPtID, CreateAndAddBogie
- Parameters
-
| [in] | geom_id | string AuxiliaryGeom Geom ID |
| [in] | index | int Contact point index [0, 2] |
| [in] | bogie_id | string Bogie ParmContainer ID |