A3DGraphStyleData Struct Reference

General style information. More...

Data Fields

A3DBool m_bBackCulling
 Enables back face culling. Active only when m_bSpecialCulling is set to A3D_TRUE.
 
A3DBool m_bFrontCulling
 Enables front face culling. Active only when m_bSpecialCulling is set to A3D_TRUE.
 
A3DBool m_bIsTransparencyDefined
 Indicates whether transparency is defined.
 
A3DBool m_bMaterial
 Indicates whether m_uiRgbColorIndex indexes an A3DGraphMaterialData (A3D_TRUE) or an A3DGraphRgbColorData (A3D_FALSE).
 
A3DBool m_bNoLight
 If true, lighting is disabled for the whole style.
 
A3DBool m_bSpecialCulling
 If true, front and back face culling can be enabled separately using m_bFrontCulling and m_bBackCulling respectively.
 
A3DBool m_bVPicture
 Indicates whether m_uiLinePatternIndex indexes an A3DGraphVPicturePattern (A3D_TRUE) or an A3DGraphLinePattern (A3D_FALSE).
 
A3DDouble m_dWidth
 Drawing lines width in millimeters.
 
A3DERenderingMode m_eRenderingMode
 Surface rendering mode: solid, outline, wireframe or hidden line removal.
 
A3DUns8 m_ucTransparency
 The transparency value from 0 (invisible) to 255 (fully visible) when m_bIsTransparencyDefined is set.
 
A3DUns32 m_uiLinePatternIndex
 A global index to either an A3DGraphVPicturePattern or an A3DGraphLinePattern according to the value of m_bVPicture.
 
A3DUns32 m_uiRgbColorIndex
 A global index to either an A3DGraphMaterialData or an A3DGraphRgbColorData according to the value of m_bMaterial.
 

Detailed Description

General style information.

Version
2.0

The A3DGraphStyleData is a globally indexed entity describing all the graphics properties a renderable object can be assigned to, such as drawing patterns, materials or textures.

Any A3DRootBaseWithGraphics entity holds an instance of A3DGraphStyle through its A3DGraphics entity. The following example function fills in an A3DGraphStyleData given an A3DRootBaseWithGraphics instance:

void GetGraphStyleData(const A3DRootBaseWithGraphics* base, A3DGraphStyleData* style_data)
{
assert(style_data != 0);
A3DStatus result = A3DRootBaseWithGraphicsGet(base, &base_data);
assert(result == A3D_SUCCESS);
A3DGraphicsData graphics_data;
result = A3DGraphicsGet(base_data.m_pGraphics, &graphics_data);
assert(result == A3D_SUCCESS);
result = A3DGlobalGetGraphStyleData(graphics_data.m_uiStyleIndex, style_data);
assert(result == A3D_SUCCESS);
A3DGraphicsGet(0, &graphics_data);
}
See also
A3DGraphicsData
A3DGraphicsGet
A3DERenderingMode
A3DGlobalGetGraphStyleData
A3DGlobalInsertGraphStyle
A3DRootBaseWithGraphicsData
A3DRootBaseWithGraphicsGet
A3DStatus A3DGlobalGetGraphStyleData(const A3DUns32 uiIndexStyle, A3DGraphStyleData *pData)
Retrieves an indexed graph style.
#define A3D_INITIALIZE_DATA(MAC_TYPE, MAC_VALUE)
Definition: A3DSDKInitializeFunctions.h:31
A structure specifying root graphics data.
Definition: A3DSDKRootEntities.h:314
void A3DRootBaseWithGraphics
Definition: A3DSDKTypes.h:370
A3DGraphics * m_pGraphics
Definition: A3DSDKRootEntities.h:317
General style information.
Definition: A3DSDKGraphics.h:252
Main description of graphics properties within an A3DRootBaseWithGraphics instance.
Definition: A3DSDKGraphics.h:120
@ A3D_SUCCESS
Definition: A3DSDKErrorCodes.h:85
A3DStatus A3DGraphicsGet(const A3DGraphics *pGraphics, A3DGraphicsData *pData)
Fetches data from a graphics entity, given its handle.
A3DStatus
Error Codes.
Definition: A3DSDKErrorCodes.h:71
A3DUns32 m_uiStyleIndex
An index to a global A3DGraphStyleData instance.
Definition: A3DSDKGraphics.h:124
A3DStatus A3DRootBaseWithGraphicsGet(const A3DRootBaseWithGraphics *pRoot, A3DRootBaseWithGraphicsData *pData)
Populates the A3DRootBaseWithGraphicsData structure.