This group of functions can be used to add, remove, and modify Variable Presets through the API. Click here to return to the main page.
More...
|
string | vsp::AddVarPresetGroup (const std::string &group_name) |
|
string | vsp::AddVarPresetSetting (const std::string &group_id, const std::string &setting_name) |
|
void | vsp::AddVarPresetParm (const std::string &group_id, const std::string &parm_id) |
|
void | vsp::DeleteVarPresetGroup (const std::string &group_id) |
|
void | vsp::DeleteVarPresetSetting (const std::string &group_id, const std::string &setting_id) |
|
void | vsp::DeleteVarPresetParm (const std::string &group_id, const std::string &parm_id) |
|
void | vsp::SetVarPresetParmVal (const std::string &group_id, const std::string &setting_id, const std::string &parm_id, double parm_val) |
|
double | vsp::GetVarPresetParmVal (const std::string &group_id, const std::string &setting_id, const std::string &parm_id) |
|
std::string | vsp::GetGroupName (const std::string &group_id) |
|
std::string | vsp::GetSettingName (const std::string &setting_id) |
|
void | vsp::SetGroupName (const std::string &group_id, const std::string &group_name) |
|
void | vsp::SetSettingName (const std::string &setting_id, const std::string &setting_name) |
|
std::vector< std::string > | vsp::GetVarPresetGroups () |
|
std::vector< std::string > | vsp::GetVarPresetSettings (const std::string &group_id) |
|
std::vector< std::string > | vsp::GetVarPresetParmIDs (const std::string &group_id) |
|
std::vector< double > | vsp::GetVarPresetParmVals (const std::string &setting_id) |
|
void | vsp::SetVarPresetParmVals (const std::string &setting_id, const std::vector< double > &parm_vals) |
|
void | vsp::SaveVarPresetParmVals (const std::string &group_id, const std::string &setting_id) |
|
void | vsp::ApplyVarPresetSetting (const std::string &group_id, const std::string &setting_id) |
|
◆ AddVarPresetGroup()
string vsp::AddVarPresetGroup |
( |
const std::string & | group_name | ) |
|
|
extern |
Add a Variable Preset Group
string pod1 =
AddGeom(
"POD",
"" );
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
string AddVarPresetGroup(const std::string &group_name)
- Parameters
-
[in] | group_name | string Name for Var Preset Group |
- Returns
- string Var Preset Group ID
◆ AddVarPresetParm()
void vsp::AddVarPresetParm |
( |
const std::string & | group_id, |
|
|
const std::string & | parm_id ) |
|
extern |
Add a Parm to the Variable Preset Group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
std::string FindParm(const std::string &parm_container_id, const std::string &parm_name, const std::string &group_name)
string AddVarPresetSetting(const std::string &group_id, const std::string &setting_name)
void AddVarPresetParm(const std::string &group_id, const std::string &parm_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | parm_id | string Parm ID |
◆ AddVarPresetSetting()
string vsp::AddVarPresetSetting |
( |
const std::string & | group_id, |
|
|
const std::string & | setting_name ) |
|
extern |
Add a Setting to the Variable Preset Group
string pod1 =
AddGeom(
"POD",
"" );
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | setting_name | string Var Preset Setting Name |
- Returns
- string Var Preset Setting ID
◆ ApplyVarPresetSetting()
void vsp::ApplyVarPresetSetting |
( |
const std::string & | group_id, |
|
|
const std::string & | setting_id ) |
|
extern |
Apply Parm values for Var Preset Setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void ApplyVarPresetSetting(const std::string &group_id, const std::string &setting_id)
void Update(bool update_managers=true)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | setting_id | string Var Preset Setting ID |
◆ DeleteVarPresetGroup()
void vsp::DeleteVarPresetGroup |
( |
const std::string & | group_id | ) |
|
|
extern |
Delete Variable Preset Group (and all contained settings)
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void DeleteVarPresetGroup(const std::string &group_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
◆ DeleteVarPresetParm()
void vsp::DeleteVarPresetParm |
( |
const std::string & | group_id, |
|
|
const std::string & | parm_id ) |
|
extern |
Delete Parm from Variable Preset Group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void DeleteVarPresetParm(const std::string &group_id, const std::string &parm_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | parm_id | string Var Parm ID |
◆ DeleteVarPresetSetting()
void vsp::DeleteVarPresetSetting |
( |
const std::string & | group_id, |
|
|
const std::string & | setting_id ) |
|
extern |
Delete Variable Preset Setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void DeleteVarPresetSetting(const std::string &group_id, const std::string &setting_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | setting_id | string Var Preset Setting ID |
◆ GetGroupName()
std::string vsp::GetGroupName |
( |
const std::string & | group_id | ) |
|
|
extern |
Get Variable Preset group name
string pod1 =
AddGeom(
"POD",
"" );
std::string GetGroupName(const std::string &group_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
- Returns
- string Var Preset Group name
◆ GetSettingName()
std::string vsp::GetSettingName |
( |
const std::string & | setting_id | ) |
|
|
extern |
Get Variable Preset Setting name
string pod1 =
AddGeom(
"POD",
"" );
std::string GetSettingName(const std::string &setting_id)
- Parameters
-
[in] | setting_id | string Var Preset Setting ID |
- Returns
- string Var Preset Setting name
◆ GetVarPresetGroups()
std::vector< std::string > vsp::GetVarPresetGroups |
( |
| ) |
|
|
extern |
Get group_ids for Variable Preset Groups
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
std::vector< std::string > GetVarPresetGroups()
- Returns
- array<string> Array of Variable Preset Group IDs
◆ GetVarPresetParmIDs()
std::vector< std::string > vsp::GetVarPresetParmIDs |
( |
const std::string & | group_id | ) |
|
|
extern |
Get ParmIDs for Variable Preset Group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
std::vector< std::string > GetVarPresetParmIDs(const std::string &group_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
- Returns
- array<string> Array of Variable Preset Group ParmIDs
◆ GetVarPresetParmVal()
double vsp::GetVarPresetParmVal |
( |
const std::string & | group_id, |
|
|
const std::string & | setting_id, |
|
|
const std::string & | parm_id ) |
|
extern |
Get value for Parm in Var Preset Setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
double GetVarPresetParmVal(const std::string &group_id, const std::string &setting_id, const std::string &parm_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | setting_id | string Var Preset Setting ID |
[in] | parm_id | string Var Parm ID |
- Returns
- double Var Preset Parm value
◆ GetVarPresetParmVals()
std::vector< double > vsp::GetVarPresetParmVals |
( |
const std::string & | setting_id | ) |
|
|
extern |
Get Parm values for Variable Preset Setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
std::vector< double > GetVarPresetParmVals(const std::string &setting_id)
- Parameters
-
[in] | setting_id | string Var Preset Setting ID |
- Returns
- array<double> Var Preset Parm values for Setting
◆ GetVarPresetSettings()
std::vector< std::string > vsp::GetVarPresetSettings |
( |
const std::string & | group_id | ) |
|
|
extern |
Get Setting IDs for Variable Preset Group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
std::vector< std::string > GetVarPresetSettings(const std::string &group_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
- Returns
- array<string> Array of Variable Preset Group ParmIDs
◆ SaveVarPresetParmVals()
void vsp::SaveVarPresetParmVals |
( |
const std::string & | group_id, |
|
|
const std::string & | setting_id ) |
|
extern |
Save current Parm values to Variable Preset Setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void SaveVarPresetParmVals(const std::string &group_id, const std::string &setting_id)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | setting_id | string Var Preset Setting ID |
◆ SetGroupName()
void vsp::SetGroupName |
( |
const std::string & | group_id, |
|
|
const std::string & | group_name ) |
|
extern |
Set Variable Preset group name
string pod1 =
AddGeom(
"POD",
"" );
void SetGroupName(const std::string &group_id, const std::string &group_name)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | group_name | string New Var Preset Group name |
◆ SetSettingName()
void vsp::SetSettingName |
( |
const std::string & | setting_id, |
|
|
const std::string & | setting_name ) |
|
extern |
Set Variable Preset Setting name
string pod1 =
AddGeom(
"POD",
"" );
void SetSettingName(const std::string &setting_id, const std::string &setting_name)
- Parameters
-
[in] | setting_id | string Var Preset Setting ID |
[in] | setting_name | string New Var Preset Setting name |
◆ SetVarPresetParmVal()
void vsp::SetVarPresetParmVal |
( |
const std::string & | group_id, |
|
|
const std::string & | setting_id, |
|
|
const std::string & | parm_id, |
|
|
double | parm_val ) |
|
extern |
Set value for Parm in Var Preset Setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void SetVarPresetParmVal(const std::string &group_id, const std::string &setting_id, const std::string &parm_id, double parm_val)
- Parameters
-
[in] | group_id | string Var Preset Group ID |
[in] | setting_id | string Var Preset Setting ID |
[in] | parm_id | string Var Parm ID |
[in] | parm_val | double Parm value |
◆ SetVarPresetParmVals()
void vsp::SetVarPresetParmVals |
( |
const std::string & | setting_id, |
|
|
const std::vector< double > & | parm_vals ) |
|
extern |
Set Parm values for Variable Preset Setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
array <double> vals = { 45 };
void SetVarPresetParmVals(const std::string &setting_id, const std::vector< double > &parm_vals)
- Parameters
-
[in] | setting_id | string Var Preset Setting ID |
- Returns
- array<double> Array of Variable Preset Group Parm values