VisualizationFoundation CATCGRSetting
Usage: you must use this class as is. You should never derive it.
public class CATCGRSetting
class to specify what kind of data belonging
to a graphical representation we want to store
in a CGR file.
Constructor and Destructor Index
- o
CATCGRSetting(int)
- Constructs a setting to specify the graphical data type
we want to store in a CGR file.
- o
CATCGRSetting(CATCGRSetting*)
- Copy constructor.
- o
~CATCGRSetting()
-
Method Index
- o
Get2DLineicFlag()
- Gets the 2Dlineic flag.
- o
GetAxisFlag()
- Gets the axis flag.
- o
GetDemoFlag()
- Gets the demo flag.
- o
GetEdgesFlag()
- Gets the edges flag.
- o
GetLineicFlag()
- Gets the lineic flag.
- o
GetLodsSags(float*&,float*&,int&)
- Sets the target sags for the LOD containers.
- o
GetNo3DCustomRepFlag()
- Gets the "No CAT3DCustomRep" flag.
- o
GetNoIsoparsFlag()
- Gets the isopars flag.
- o
GetNoLodsFlag()
- Gets the nolod flag.
- o
GetNoMaterialFlag()
- Gets the material flag.
- o
GetRealLodsSags(float*&,int&)
- Sets the target sags for the LOD containers.
- o
GetSetting()
- Gets the setting.
- o
GetShowAndNoShowFlag()
- Gets the "show and no show" flag.
- o
GetShowFreeModeFlag()
- Gets the "show and no show" flag.
- o
GetTextureFlag()
- Gets the texture flag.
- o
Set2DLineicFlag(int)
- Sets the 2Dlineic flag to "on" or "off".
- o
SetAxisFlag(int)
- Sets the axis flag to "on" or "off" .
- o
SetDemoFlag(int)
- Sets the demo flag to "on" or "off".
- o
SetEdgesFlag(int)
- Sets the edges flag to "on" or "off".
- o
SetLineicFlag(int)
- Sets the lineic flag to "on" or "off".
- o
SetNo3DCustomRepFlag(int)
- Sets the "no CAT3DCustomRep" flag to "on" or "off".
- o
SetNoIsoparsFlag(int)
- Sets the isopars flag to "on" or "off".
- o
SetNoLodsFlag(int)
- Sets the nolod flag to "on" or "off".
- o
SetNoMaterialFlag(int)
- Sets the material flag to "on" or "off".
- o
SetSetting(int)
- Sets the setting.
- o
SetShowAndNoShowFlag(int)
- Sets the "show and no show" flag to "on" or "off" .
- o
SetShowFreeModeFlag(int)
- Sets the "show free mode" flag to "on" or "off" .
- o
SetTargetLodsSags(float*,int)
- Sets the target sags for the LOD containers.
- o
SetTextureFlag(int)
- Sets the texture flag to "on" or "off" .
Constructor and Destructor
o CATCGRSetting
public CATCGRSetting( | | iSetting | = EDGES | TEXTURE) |
-
Constructs a setting to specify the graphical data type
we want to store in a CGR file.
- Parameters:
-
- iSetting
- The setting we want. This integer is obtained by
combining the flags defined above.
For example, if you need to save your graphical representation
in a CGR file, with its edges, its texture, the axis, but without
the CAT3DCustomRep that could be in the scene, you have to specify the following
setting :
EDGES | TEXTURE | AXIS | NO_3DCUSTOMREP
.
The default value is EDGES | TEXTURE
.
o CATCGRSetting
public CATCGRSetting( | | ipBrother) |
-
Copy constructor.
o ~CATCGRSetting
public virtual ~CATCGRSetting( | ) |
-
Methods
o Get2DLineicFlag
-
Gets the 2Dlineic flag.
- Returns:
- 1 means that the 2D lineic informations are stored int the CGR file.
0 means the contrary.
o GetAxisFlag
-
Gets the axis flag.
- Returns:
- 1 means that axes are to be stored in the CGR file.
0 means the contrary.
o GetDemoFlag
-
Gets the demo flag.
- Returns:
- 1 means that the CGR file is a demo file.
0 means the contrary.
o GetEdgesFlag
-
Gets the edges flag.
- Returns:
- 1 means that edges are to be stored in the CGR file.
0 means the contrary.
o GetLineicFlag
-
Gets the lineic flag.
- Returns:
- 1 means that the lineic informations are stored int the CGR file,
0 means the contrary.
o GetLodsSags
public GetLodsSags( | const | oTargetSags, |
| | oRealSags, |
| | oNbContainers) |
-
Sets the target sags for the LOD containers.
- Parameters:
-
- oSags
- The target sags
- oNbContainers
- The number of containers to store in the CGR.
o GetNo3DCustomRepFlag
public GetNo3DCustomRepFlag( | ) |
-
Gets the "No CAT3DCustomRep" flag.
- Returns:
- 1 means that CAT3DCustomRep must not be stored in the CGR file.
0 means the contrary.
o GetNoIsoparsFlag
public GetNoIsoparsFlag( | ) |
-
Gets the isopars flag.
- Returns:
- 1 means that the isopars are not stored int the CGR file,
0 means the contrary.
o GetNoLodsFlag
-
Gets the nolod flag.
- Returns:
- 1 means that the lods are not stored int the CGR file,
0 means the contrary.
o GetNoMaterialFlag
public GetNoMaterialFlag( | ) |
-
Gets the material flag.
- Returns:
- 1 means that the materials are not stored int the CGR file,
0 means the contrary.
o GetRealLodsSags
public GetRealLodsSags( | | oSags, |
| | oNbContainers) |
-
Sets the target sags for the LOD containers.
- Parameters:
-
- oSags
- The target sags
- oNbContainers
- The number of containers to store in the CGR.
o GetSetting
-
Gets the setting.
o GetShowAndNoShowFlag
public GetShowAndNoShowFlag( | ) |
-
Gets the "show and no show" flag.
- Returns:
- 1 means that "show and no show" spaces are to be stored in the CGR file.
0 means the contrary.
o GetShowFreeModeFlag
public GetShowFreeModeFlag( | ) |
-
Gets the "show and no show" flag.
- Returns:
- 1 means that hidden layer information have also to be stored in the CGR file.
0 means the contrary.
o GetTextureFlag
-
Gets the texture flag.
- Returns:
- 1 means that texture is to be stored in the CGR file.
0 means the contrary.
o Set2DLineicFlag
public Set2DLineicFlag( | | iOnOff) |
-
Sets the 2Dlineic flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 to save the 2D lineic informations (CAT2D...GP) in the CGR file,
0 otherwise.
o SetAxisFlag
public SetAxisFlag( | | iOnOff) |
-
Sets the axis flag to "on" or "off" .
- Parameters:
-
- iOnOff
- 1 to save axes in the CGR file, 0 otherwise.
o SetDemoFlag
public SetDemoFlag( | | iOnOff) |
-
Sets the demo flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 to save the CGR file as a demo file, 0 otherwise.
o SetEdgesFlag
public SetEdgesFlag( | | iOnOff) |
-
Sets the edges flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 to save edges in the CGR file, 0 otherwise.
o SetLineicFlag
public SetLineicFlag( | | iOnOff) |
-
Sets the lineic flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 to save the lineic informations (wiredege - linerep) in the CGR file,
0 otherwise.
o SetNo3DCustomRepFlag
public SetNo3DCustomRepFlag( | | iOnOff) |
-
Sets the "no CAT3DCustomRep" flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 not to save CAT3DCustomRep in the CGR file, 0 otherwise.
o SetNoIsoparsFlag
public SetNoIsoparsFlag( | | iOnOff) |
-
Sets the isopars flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 Not to save the isopars in the CGR file,
0 otherwise.
o SetNoLodsFlag
public SetNoLodsFlag( | | iOnOff) |
-
Sets the nolod flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 Not to save the lods in the CGR file,
0 otherwise.
o SetNoMaterialFlag
public SetNoMaterialFlag( | | iOnOff) |
-
Sets the material flag to "on" or "off".
- Parameters:
-
- iOnOff
- 1 Materials are not saved in the CGR file,
0 Materials are saved.
o SetSetting
public SetSetting( | | iSetting) |
-
Sets the setting.
- Parameters:
-
- iSetting
- the wanted setting.
o SetShowAndNoShowFlag
public SetShowAndNoShowFlag( | | iOnOff) |
-
Sets the "show and no show" flag to "on" or "off" .
- Parameters:
-
- iOnOff
- 1 to save "show" and "no show" spaces in the CGR file, 0 otherwise.
o SetShowFreeModeFlag
public SetShowFreeModeFlag( | | iOnOff) |
-
Sets the "show free mode" flag to "on" or "off" .
- Parameters:
-
- iOnOff
- 1 to save hidden layer information in the CGR file, 0 otherwise.
o SetTargetLodsSags
public SetTargetLodsSags( | const | iSags, |
| | iNbContainers) |
-
Sets the target sags for the LOD containers.
- Parameters:
-
- iSags
- The target sags
- iNbContainers
- The number of containers to store in the CGR.
o SetTextureFlag
public SetTextureFlag( | | iOnOff) |
-
Sets the texture flag to "on" or "off" .
- Parameters:
-
- iOnOff
- 1 to save texture in the CGR file, 0 otherwise.
This object is included in the file: CATCGRSetting.h
If needed, your Imakefile.mk should include the module: CATVisFoundation
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.