VisualizationFoundation Global Function CATWriteCgr
CATWriteCgr( | | iRep, |
| | iFileName, |
| | iCGRSetting | = 0, |
| | iColMap | = 0, |
| | ioMode | = CATVizCGRAccessModeMemory) |
-
Function to save the representation of a graphic scene
in a cgr file.
Role:This function write a Cgr file.
- Returns:
-
- 0
- OK
- -1
- KO
- Parameters:
-
- iRep
- A pointer to the root node of the 3D scene to save.
- iFileName
- The name of the file in which the scene will be saved.
- iCGRSettingCgr
- The CATCGRSetting to specify the kind of graphic data we want to store in the cgr file.
- iColMap
- The color map to use to convert color attribute in RGB composants.
- iFileMarked
- do not use.
Legal values:
- TRUE
- The cgr file will be readable by only CATIA Demo version
- FALSE
- The cgr file will be readable by every CATIA versions
The default value is set to FALSE.
- ioMode
- Defines the method used for writing the CGR.
The default value is set to CATVizCGRAccessModeMemory.
This object is included in the file: CATReadWriteCgr.h
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.