This group of functions is available for interacting with the Bogie list of a GearGeom through the API. Click here to return to the main page.
More...
◆ CreateAndAddBogie()
| std::string vsp::CreateAndAddBogie |
( |
const std::string & | gear_id | ) |
|
|
extern |
Create a new Bogie and add it to the end of the Bogie list of the specified GearGeom. A GearGeom's landing gear is described by its list of Bogies. Each Bogie is a ParmContainer, so once you have the returned Bogie ID you can query and set its Parms with the normal Parm API functions.
string gear_id =
AddGeom(
"GEAR",
"" );
if ( bogie_id.length() == 0 || bogie_id == "NONE" )
{
Print(
"ERROR: CreateAndAddBogie returned no id" );
__failure++;
}
void Print(const std::string &data, bool new_line=true)
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)
- See also
- GetAllBogies, GetNumBogies, DelBogie, DelAllBogies
- Parameters
-
| [in] | gear_id | string GearGeom Geom ID |
- Returns
- string ParmContainer ID for the newly added Bogie
◆ DelAllBogies()
| void vsp::DelAllBogies |
( |
const std::string & | gear_id | ) |
|
|
extern |
Delete all Bogies from the specified GearGeom.
string gear_id =
AddGeom(
"GEAR",
"" );
{
Print(
"ERROR: DelAllBogies left something behind" );
__failure++;
}
int GetNumBogies(const std::string &gear_id)
void DelAllBogies(const std::string &gear_id)
- See also
- CreateAndAddBogie, DelBogie
- Parameters
-
| [in] | gear_id | string GearGeom Geom ID |
◆ DelBogie()
| void vsp::DelBogie |
( |
const std::string & | gear_id, |
|
|
const std::string & | bogie_id ) |
|
extern |
Delete the specified Bogie from the specified GearGeom.
string gear_id =
AddGeom(
"GEAR",
"" );
{
Print(
"ERROR: DelBogie removed nothing" );
__failure++;
}
void DelBogie(const std::string &gear_id, const std::string &bogie_id)
- See also
- CreateAndAddBogie, DelAllBogies
- Parameters
-
| [in] | gear_id | string GearGeom Geom ID |
| [in] | bogie_id | string Bogie ParmContainer ID |
◆ GetAllBogies()
| std::vector< std::string > vsp::GetAllBogies |
( |
const std::string & | gear_id | ) |
|
|
extern |
Get the ParmContainer IDs of all the Bogies in the specified GearGeom, in list order.
string gear_id =
AddGeom(
"GEAR",
"" );
if ( bogie_ids.length() == 0 )
{
Print(
"ERROR: GetAllBogies returned nothing" );
__failure++;
}
std::vector< std::string > GetAllBogies(const std::string &gear_id)
- See also
- CreateAndAddBogie, GetNumBogies, DelBogie
- Parameters
-
| [in] | gear_id | string GearGeom Geom ID |
- Returns
- vector<string> Vector of Bogie ParmContainer IDs
◆ GetBogieMechParentID()
| std::string vsp::GetBogieMechParentID |
( |
const std::string & | bogie_id | ) |
|
|
extern |
Get the Geom a bogie retracts on.
string gear_id =
AddGeom(
"GEAR" );
{
Print(
"ERROR: GetBogieMechParentID did not return the Geom set" );
__failure++;
}
void SetBogieMechParentID(const std::string &bogie_id, const std::string &geom_id)
std::string GetBogieMechParentID(const std::string &bogie_id)
- See also
- SetBogieMechParentID
- Parameters
-
| [in] | bogie_id | string Bogie ID |
- Returns
- string Geom ID, or an empty string for none
◆ GetBogieStowParentID()
| std::string vsp::GetBogieStowParentID |
( |
const std::string & | bogie_id | ) |
|
|
extern |
Get the Geom a bogie stows into.
string gear_id =
AddGeom(
"GEAR" );
{
Print(
"ERROR: GetBogieStowParentID did not return the Geom set" );
__failure++;
}
void SetBogieStowParentID(const std::string &bogie_id, const std::string &geom_id)
std::string GetBogieStowParentID(const std::string &bogie_id)
- See also
- SetBogieStowParentID
- Parameters
-
| [in] | bogie_id | string Bogie ID |
- Returns
- string Geom ID, or an empty string for none
◆ GetNumBogies()
| int vsp::GetNumBogies |
( |
const std::string & | gear_id | ) |
|
|
extern |
Get the number of Bogies in the specified GearGeom.
string gear_id =
AddGeom(
"GEAR",
"" );
if ( num_bogie != 2 )
{
Print(
"ERROR: GetNumBogies, two were added" );
__failure++;
}
- See also
- CreateAndAddBogie, GetAllBogies
- Parameters
-
| [in] | gear_id | string GearGeom Geom ID |
- Returns
- int Number of Bogies in the specified GearGeom
◆ SetBogieMechParentID()
| void vsp::SetBogieMechParentID |
( |
const std::string & | bogie_id, |
|
|
const std::string & | geom_id ) |
|
extern |
Set the Geom a bogie retracts on, or an empty string for none.
string gear_id =
AddGeom(
"GEAR" );
{
Print(
"ERROR: SetBogieMechParentID did not set the Geom" );
__failure++;
}
- See also
- GetBogieMechParentID
- Parameters
-
| [in] | bogie_id | string Bogie ID |
| [in] | geom_id | string Geom ID, or an empty string |
◆ SetBogieStowParentID()
| void vsp::SetBogieStowParentID |
( |
const std::string & | bogie_id, |
|
|
const std::string & | geom_id ) |
|
extern |
Set the Geom a bogie stows into, or an empty string for none.
string gear_id =
AddGeom(
"GEAR" );
{
Print(
"ERROR: SetBogieStowParentID did not set the Geom" );
__failure++;
}
- See also
- GetBogieStowParentID
- Parameters
-
| [in] | bogie_id | string Bogie ID |
| [in] | geom_id | string Geom ID, or an empty string |