This group of functions is used to work with 3D background images. Click here to return to the main page.
More...
◆ AddBackground3D()
string vsp::AddBackground3D |
( |
| ) |
|
|
extern |
Add a Background3D to model
{
Print( "ERROR: AddBackground3D" );
}
int GetNumBackground3Ds()
void DelBackground3D(const string &id)
- Returns
- string ID for added Background3D
◆ DelAllBackground3Ds()
void vsp::DelAllBackground3Ds |
( |
| ) |
|
|
extern |
Delete all Background3Ds in model
if ( nbg != 0 )
{
Print( "ERROR: DelAllBackground3Ds" );
}
void DelAllBackground3Ds()
◆ DelBackground3D()
void vsp::DelBackground3D |
( |
const string & | id | ) |
|
|
extern |
Delete specific Background3D frommodel
{
Print( "ERROR: DelBackground3D" );
}
- Parameters
-
[in] | id | string Background3D ID to delete |
◆ GetAllBackground3DAbsolutePaths()
vector< string > vsp::GetAllBackground3DAbsolutePaths |
( |
| ) |
|
|
extern |
Get absolute paths to all Background3D images in model.
for( int n = 0; n < int( bg_file_array.length() ); n++ )
{
Print( bg_file_array[n] );
}
vector< string > GetAllBackground3DAbsolutePaths()
- Returns
- vector<string> Vector of absolute paths to Background3D image files
◆ GetAllBackground3DRelativePaths()
vector< string > vsp::GetAllBackground3DRelativePaths |
( |
| ) |
|
|
extern |
Get relative paths to all Background3D images in model. Note that path is relative to the model's *.vsp3 file. Consequently, if a file has not yet been saved or assigned a file name, the relative path is meaningless.
for( int n = 0; n < int( bg_file_array.length() ); n++ )
{
Print( bg_file_array[n] );
}
vector< string > GetAllBackground3DRelativePaths()
- Returns
- vector<string> Vector of relative paths to Background3D image files
◆ GetAllBackground3Ds()
vector< string > vsp::GetAllBackground3Ds |
( |
| ) |
|
|
extern |
Get id's of all Background3Ds in model
{
Print( "ERROR: AddBackground3D" );
}
for( int n = 0; n < int( bg_array.length() ); n++ )
{
Print( bg_array[n] );
}
vector< string > GetAllBackground3Ds()
- Returns
- vector<string> Vector of Background3D IDs
◆ GetBackground3DAbsolutePath()
string vsp::GetBackground3DAbsolutePath |
( |
const string & | id | ) |
|
|
extern |
Get absolute path to specified Background3D's image.
Print( bg_file );
void SetBackground3DAbsolutePath(const string &id, const string &fname)
string GetBackground3DAbsolutePath(const string &id)
- Parameters
-
[in] | id | string Background3D ID |
- Returns
- string Absolute path to Background3D image file
◆ GetBackground3DRelativePath()
string vsp::GetBackground3DRelativePath |
( |
const string & | id | ) |
|
|
extern |
Get relative path to specified Background3D's image. Note that path is relative to the model's *.vsp3 file. Consequently, if a file has not yet been saved or assigned a file name, the relative path is meaningless.
Print( bg_file );
void SetBackground3DRelativePath(const string &id, const string &fname)
string GetBackground3DRelativePath(const string &id)
- Parameters
-
[in] | id | string Background3D ID |
- Returns
- string Relative path to Background3D image file
◆ GetNumBackground3Ds()
int vsp::GetNumBackground3Ds |
( |
| ) |
|
|
extern |
Get Number of Background3D's in a model
{
Print( "ERROR: AddBackground3D" );
}
- Returns
- int Number of Background3D's in model
◆ HideAllBackground3Ds()
void vsp::HideAllBackground3Ds |
( |
| ) |
|
|
extern |
Hide all Background3Ds in model
void HideAllBackground3Ds()
◆ SetBackground3DAbsolutePath()
void vsp::SetBackground3DAbsolutePath |
( |
const string & | id, |
|
|
const string & | fname ) |
|
extern |
Set absolute path to specified Background3D's image.
- Parameters
-
[in] | id | string Background3D ID |
[in] | fname | string Absolute path to Background3D image file |
◆ SetBackground3DRelativePath()
void vsp::SetBackground3DRelativePath |
( |
const string & | id, |
|
|
const string & | fname ) |
|
extern |
Set relative path to specified Background3D's image. Note that path is relative to the model's *.vsp3 file. Consequently, if a file has not yet been saved or assigned a file name, the relative path is meaningless.
- Parameters
-
[in] | id | string Background3D ID |
[in] | fname | string Relative path to Background3D image file |
◆ ShowAllBackground3Ds()
void vsp::ShowAllBackground3Ds |
( |
| ) |
|
|
extern |
Show all Background3Ds in model
void ShowAllBackground3Ds()