Interface for shape insert operations (like copy, import). More...
import "GEOM_Gen.idl";
Public Member Functions | |
| GEOM_Object | MakeCopy (in GEOM_Object theOriginal) |
| Create a copy of the given object. | |
| void | Export (in GEOM_Object theObject, in string theFileName, in string theFormatName) |
| Export the given shape into a file with given name. | |
| GEOM_Object | ImportFile (in string theFileName, in string theFormatName) |
| Import a shape from the BRep or IGES or STEP file (depends on given format) with given name. | |
| void | ImportTranslators (out string_array theFormats, out string_array thePatterns) |
| Get the supported import formats and corresponding patterns for File dialog. | |
| void | ExportTranslators (out string_array theFormats, out string_array thePatterns) |
| Get the supported export formats and corresponding patterns for File dialog. | |
| long | LoadTexture (in string theTextureFile) |
| Load texture from file. | |
| long | AddTexture (in long theWidth, in long theHeight, in SALOMEDS::TMPFile theTexture) |
| Add texture to the study. | |
| SALOMEDS::TMPFile | GetTexture (in long theID, out long theWidth, out long theHeight) |
| Get previously loaded texture data. | |
| ListOfLong | GetAllTextures () |
| Get list of all avaiable texture IDs. | |
| boolean | IsDone () |
| To know, if the operation was successfully performed. | |
| void | SetErrorCode (in string theErrorID) |
| Set the operation error code. | |
| string | GetErrorCode () |
| Get the operation error code. | |
| long | GetStudyID () |
| Get ID of study, where the operation is defined. | |
| void | StartOperation () |
| Opens a new transaction. | |
| void | FinishOperation () |
| Closes the previously opened trasaction. | |
| void | AbortOperation () |
| Aborts the previously opened transaction. | |
Interface for shape insert operations (like copy, import).
| GEOM_Object GEOM::GEOM_IInsertOperations::MakeCopy | ( | in GEOM_Object | theOriginal | ) |
Create a copy of the given object.
| void GEOM::GEOM_IInsertOperations::Export | ( | in GEOM_Object | theObject, |
| in string | theFileName, | ||
| in string | theFormatName | ||
| ) |
Export the given shape into a file with given name.
| theObject | Shape to be stored in the file. |
| theFileName | Name of the file to store the given shape in. |
| theFormatName | Specify format for the shape storage. Available formats can be obtained with ImportTranslators() method. |
| GEOM_Object GEOM::GEOM_IInsertOperations::ImportFile | ( | in string | theFileName, |
| in string | theFormatName | ||
| ) |
Import a shape from the BRep or IGES or STEP file (depends on given format) with given name.
| theFileName | The file, containing the shape. |
| theFormatName | Specify format for the file reading. Available formats can be obtained with ImportTranslators() method. If format 'IGES_SCALE' is used instead 'IGES' length unit will be set to 'meter' and result model will be scaled. |
| void GEOM::GEOM_IInsertOperations::ImportTranslators | ( | out string_array | theFormats, |
| out string_array | thePatterns | ||
| ) |
Get the supported import formats and corresponding patterns for File dialog.
| theFormats | Output. List of formats, available for import. |
| thePatterns | Output. List of file patterns, corresponding to available formats. |
| void GEOM::GEOM_IInsertOperations::ExportTranslators | ( | out string_array | theFormats, |
| out string_array | thePatterns | ||
| ) |
Get the supported export formats and corresponding patterns for File dialog.
| theFormats | Output. List of formats, available for export. |
| thePatterns | Output. List of file patterns, corresponding to available formats. |
| long GEOM::GEOM_IInsertOperations::LoadTexture | ( | in string | theTextureFile | ) |
Load texture from file.
| theTextureFile | texture file name |
| long GEOM::GEOM_IInsertOperations::AddTexture | ( | in long | theWidth, |
| in long | theHeight, | ||
| in SALOMEDS::TMPFile | theTexture | ||
| ) |
Add texture to the study.
| theWidth | texture width in pixels |
| theHeight | texture height in pixels |
| theTexture | texture byte array |
| SALOMEDS::TMPFile GEOM::GEOM_IInsertOperations::GetTexture | ( | in long | theID, |
| out long | theWidth, | ||
| out long | theHeight | ||
| ) |
Get previously loaded texture data.
| theID | texture identifier |
| theWidth | texture width in pixels |
| theHeight | texture height in pixels |
| ListOfLong GEOM::GEOM_IInsertOperations::GetAllTextures | ( | ) |
Get list of all avaiable texture IDs.
|
inherited |
To know, if the operation was successfully performed.
|
inherited |
Set the operation error code.
| theErrorID | is a string describing the error occured |
|
inherited |
Get the operation error code.
|
inherited |
Get ID of study, where the operation is defined.
|
inherited |
Opens a new transaction.
|
inherited |
Closes the previously opened trasaction.
|
inherited |
Aborts the previously opened transaction.