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...
◆ AddVarPresetGroup()
void vsp::AddVarPresetGroup |
( |
const std::string & | group_name | ) |
|
|
extern |
Add a Variable Presets group
string pod1 =
AddGeom(
"POD",
"" );
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
std::vector< std::string > GetVarPresetGroupNames()
void AddVarPresetGroup(const std::string &group_name)
- Parameters
-
[in] | group_name | Variable Presets group name |
◆ AddVarPresetParm() [1/2]
void vsp::AddVarPresetParm |
( |
const std::string & | parm_id | ) |
|
|
extern |
Add a Parm to the currently active Variable Preset
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)
void AddVarPresetParm(const std::string &parm_id)
void AddVarPresetSetting(const std::string &setting_name)
- Parameters
-
[in] | parm_id | string Parm ID |
◆ AddVarPresetParm() [2/2]
void vsp::AddVarPresetParm |
( |
const std::string & | parm_id, |
|
|
const std::string & | group_name ) |
|
extern |
Add a Parm to the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
[in] | parm_id | string Parm ID |
[in] | group_name | string Variable Presets group name |
◆ AddVarPresetSetting()
void vsp::AddVarPresetSetting |
( |
const std::string & | setting_name | ) |
|
|
extern |
Add a setting to the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
std::vector< std::string > GetVarPresetSettingNamesWName(const std::string &group_name)
- Parameters
-
[in] | setting_name | Variable Presets setting name |
◆ DeleteVarPresetParm() [1/2]
void vsp::DeleteVarPresetParm |
( |
const std::string & | parm_id | ) |
|
|
extern |
Remove a Parm from the currently active Variable Preset group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void DeleteVarPresetParm(const std::string &parm_id)
- Parameters
-
[in] | parm_id | string Parm ID |
◆ DeleteVarPresetParm() [2/2]
void vsp::DeleteVarPresetParm |
( |
const std::string & | parm_id, |
|
|
const std::string & | group_name ) |
|
extern |
Remove a Parm from the currently active Variable Preset group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
[in] | parm_id | string Parm ID |
[in] | group_name | string Variable Presets group name |
◆ DeleteVarPresetSet()
bool vsp::DeleteVarPresetSet |
( |
const std::string & | group_name, |
|
|
const std::string & | setting_name ) |
|
extern |
Delete a Variable Preset
bool DeleteVarPresetSet(const std::string &group_name, const std::string &setting_name)
- Parameters
-
[in] | group_name | Variable Presets group |
[in] | setting_name | Variable Presets setting name |
- Returns
- true is successful, false otherwise
◆ EditVarPresetParm() [1/2]
void vsp::EditVarPresetParm |
( |
const std::string & | parm_id, |
|
|
double | parm_val ) |
|
extern |
Edit the value of a Parm in the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
void EditVarPresetParm(const std::string &parm_id, double parm_val)
- Parameters
-
[in] | parm_id | string Parm ID |
[in] | parm_val | double Parm value |
◆ EditVarPresetParm() [2/2]
void vsp::EditVarPresetParm |
( |
const std::string & | parm_id, |
|
|
double | parm_val, |
|
|
const std::string & | group_name, |
|
|
const std::string & | setting_name ) |
|
extern |
Edit the value of a Parm in the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
- Parameters
-
[in] | parm_id | string Parm ID |
[in] | parm_val | double Parameter value |
[in] | group_name | string Variable Presets group name |
[in] | setting_name | string Variable Presets setting name |
◆ GetCurrentGroupName()
std::string vsp::GetCurrentGroupName |
( |
| ) |
|
|
extern |
Get the currently active Variable Presets group name
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
Print( "Current Group: " );
std::string GetCurrentGroupName()
- Returns
- Variable Presets group name
◆ GetCurrentSettingName()
std::string vsp::GetCurrentSettingName |
( |
| ) |
|
|
extern |
Get the currently active Variable Presets setting name
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
Print( "Current Setting: " );
std::string GetCurrentSettingName()
- Returns
- Variable Presets setting name
◆ GetVarPresetGroupNames()
std::vector< std::string > vsp::GetVarPresetGroupNames |
( |
| ) |
|
|
extern |
Get all Variable Preset group names
string pod1 =
AddGeom(
"POD",
"" );
- Returns
- Array of Variable Presets group names
◆ GetVarPresetParmIDs()
std::vector< std::string > vsp::GetVarPresetParmIDs |
( |
| ) |
|
|
extern |
Get the Parm IDs contained in the currently active Variable Presets group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
if ( p_IDs.size() != 1 ) { Print( "---> Error: API AddVarPresetParm" ); }
std::vector< std::string > GetVarPresetParmIDs()
- Returns
- Array of Variable Presets Parm IDs
◆ GetVarPresetParmIDsWName()
std::vector< std::string > vsp::GetVarPresetParmIDsWName |
( |
const std::string & | group_name | ) |
|
|
extern |
Get the Parm IDs contained in the specitied Variable Presets group
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Y_Rel_Rotation",
"XForm" );
string p2 =
FindParm( pod1,
"Z_Rel_Rotation",
"XForm" );
if ( parm_ids.size() != 2 ) { Print( "---> Error: API GetVarPresetParmIDsWName" ); }
std::vector< std::string > GetVarPresetParmIDsWName(const std::string &group_name)
- Parameters
-
[in] | group_name | Variable Presets group name |
- Returns
- Array of Parm IDs
◆ GetVarPresetParmVals()
std::vector< double > vsp::GetVarPresetParmVals |
( |
| ) |
|
|
extern |
Get the value of each Parm in the currently active Variable Preset group and setting
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
if ( p_vals[0] != 5 ) { Print ( "---> Error: API EditVarPresetParm" ); }
std::vector< double > GetVarPresetParmVals()
- Returns
- Array of Variable Presets Parm values
◆ GetVarPresetParmValsWNames()
std::vector< double > vsp::GetVarPresetParmValsWNames |
( |
const std::string & | group_name, |
|
|
const std::string & | setting_name ) |
|
extern |
Get the value of each Parm in the specified Variable Preset group and setting param [in] group_name Variable Presets group name param [in] setting_name Variable Presets setting name
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Y_Rel_Rotation",
"XForm" );
string p2 =
FindParm( pod1,
"Z_Rel_Rotation",
"XForm" );
if ( parm_vals.size() != 2 ) { Print( "---> Error: API GetVarPresetParmValsWNames" ); }
std::vector< double > GetVarPresetParmValsWNames(const std::string &group_name, const std::string &setting_name)
- Returns
- Array of Variable Presets Parm values
◆ GetVarPresetSettingNamesWIndex()
std::vector< std::string > vsp::GetVarPresetSettingNamesWIndex |
( |
int | group_index | ) |
|
|
extern |
Get the name of each settings in the specified Variable Presets group index
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Tess_U",
"Shape" );
if ( group_1_settings.size() != 2 ) { Print( "---> Error: API GetVarPresetSettingNamesWIndex" ); }
std::vector< std::string > GetVarPresetSettingNamesWIndex(int group_index)
- Parameters
-
[in] | group_index | Variable Presets group index |
- Returns
- Array of Variable Presets setting names
◆ GetVarPresetSettingNamesWName()
std::vector< std::string > vsp::GetVarPresetSettingNamesWName |
( |
const std::string & | group_name | ) |
|
|
extern |
Get the name of each settings in the specified Variable Presets group name
string pod1 =
AddGeom(
"POD",
"" );
- Parameters
-
[in] | group_name | Variable Presets group name |
- Returns
- Array of Variable Presets setting names
◆ SwitchVarPreset()
void vsp::SwitchVarPreset |
( |
const std::string & | group_name, |
|
|
const std::string & | setting_name ) |
|
extern |
Change the currently active Variable Preset
string pod1 =
AddGeom(
"POD",
"" );
string p1 =
FindParm( pod1,
"Y_Rel_Rotation",
"XForm" );
string p2 =
FindParm( pod1,
"Z_Rel_Rotation",
"XForm" );
void SwitchVarPreset(const std::string &group_name, const std::string &setting_name)
- Parameters
-
[in] | group_name | Variable Presets group name |
[in] | setting_name | Variable Presets setting name |