A3DGraphSolidPatternData
Fields
A3DBool |
m_bMaterial |
A3DUns32 |
m_uiRgbColorIndex |
A3DUns32 |
m_uiNextPatternIndex |
Detailed Description
-
struct
A3DGraphSolidPatternData A fill pattern describing either a simple color or a material.
A3DGraphSolidPatternDatais one of the four fill pattern provided by HOOPS. It is associated to thekA3DTypeGraphSolidPatternentity type. The other available fill patterns areA3DGraphDottingPatternData,A3DGraphHatchingPatternDataandA3DGraphVPicturePatternData.- Version
- 2.0
See also
A3DGlobalGetGraphSolidPatternData
See also
A3DGlobalInsertGraphSolidPattern
See also
See also
See also
- Pattern description
- This pattern consists in either a flat shading represented with an RGB color code, or a full material description By default (
m_bMaterial == A3D_FALSE),m_uiRgbColorIndexis an index to an instance ofA3DGraphRgbColorDatawhich can be retrieved usingA3DGlobalGetGraphRgbColorData. ifm_bMaterialis true,m_uiRgbColorIndexindexes aA3DGraphMaterialData. In that case, useA3DGlobalGetGraphMaterialData.// Getting the solid pattern info according to its type: A3DGraphSolidPatternData solid_pattern; A3D_INITIALIZE_DATA(A3DGraphSolidPatternData, solid_pattern); // Filling in solid_pattern... if(solid_pattern.m_bMaterial) { A3DGraphMaterialData material; A3D_INITIALIZE_DATA(A3DGraphMaterialData, material); A3DGlobalGetGraphMaterialData(solid_pattern.m_uiRgbColorIndex, &material); // Processing material... } else { A3DGraphRgbColorData rgb_color; A3D_INITIALIZE_DATA(A3DGraphRgbColorData, rgb_color); A3DGlobalGetGraphRgbColorData(solid_pattern.m_uiRgbColorIndex, &rgb_color); // Processing rgb_color... }
- Pattern layers
- Implementations can express complex patterns by chaining them in order, using the
m_uiNextPatternIndexfield.