Graphics
Modules | |
| Bit Field for Behavior on Graphics | |
| Display Style | |
| RGB Color | |
| Line Pattern | |
| Material | |
| Picture | |
| Dotting Pattern | |
| Hatching Pattern | |
| Solid Pattern | |
| Vectorized Picture Pattern | |
| Textures | |
Data Structures | |
| struct | A3DGraphicsData |
| Graphics data. More... | |
Functions | |
| A3DStatus | A3DGraphicsCreate (const A3DGraphicsData *pData, A3DGraphics **ppGraphics) |
| Creates a A3DGraphics from A3DGraphicsData structure. More... | |
| A3DStatus | A3DGraphicsGet (const A3DGraphics *pGraphics, A3DGraphicsData *pData) |
| Populates the A3DGraphicsData structure. More... | |
Detailed Description
Graphics data exists only on entities that have the base type A3DRootBaseWithGraphics.
Graphics data is stored as a set of arrays in the global object A3DGlobalData. Graphics data includes the following attributes:
- Display style attributes such as transparency and width (see Display Style)
- Graphics attributes such as patterns, RGB color, and graphics materials (A3DGraphVPicturePatternData or A3DGraphLinePatternData, A3DGraphRgbColorData, A3DGraphMaterialData or A3DGraphTextureApplicationData)
To process a graphical attribute for an entity, consider whether the attribute is expressed as an explicit value or as an index that reference global attributes, as described in the following steps:
- Use the Miscellaneous Cascaded Attributes feature to obtain an A3DGraphStyleData structure for the entity. (You can also use the A3DGraphicsGet function to obtain graphic data for the entity; however, it does not resolve inheritance settings.)
- For A3DGraphStyleData members that contain attribute values (instead of indexes), use the values as is.
- For A3DGraphStyleData members that contain indexes (patterns or colors), obtain the value from the current default global settings or from the appropriate global array.
Function Documentation
| A3DStatus A3DGraphicsCreate | ( | const A3DGraphicsData * | pData, |
| A3DGraphics ** | ppGraphics | ||
| ) |
Creates a A3DGraphics from A3DGraphicsData structure.
- Version
- 2.0
| A3DStatus A3DGraphicsGet | ( | const A3DGraphics * | pGraphics, |
| A3DGraphicsData * | pData | ||
| ) |
Populates the A3DGraphicsData structure.
- Version
- 2.0
