VisualizationFoundation Global Function CATWriteCgr
CATWriteCgr( | | iRep, |
| | oBuffer, |
| | oLBuffer, |
| | iSettingCgr, |
| | iColMap, |
| | iFileMarked | =FALSE) |
-
Function to save, in the Cgr format, the representation of a graphic scene
in a buffer.
Role:This function writes a Cgr buffer.
- Returns:
-
- 0
- OK
- -1
- KO
- Parameters:
-
- iRep
- A pointer to the root node of the 3D scene to save.
- oBuffer
- The buffer in which the Cgr data are stored. This buffer is allocated by CATWriteCgr,
but its deletion is let to the caller and must be done by using the "free" function.
- oLBuffer
- The length of oBuffer.
- iSettingCgr
- The CATSettingCgr flag to specify the kind of graphic data you want to store in the cgr file.
- iColMap
- The color 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.
This object is included in the file: CATReadWriteCgr.h
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.