Draw Module

Detailed Description

group a3d_draw_module

Draws model file entities using callback functions you provide.

Deprecated:

The Draw module is deprecated and will be removed in version 2026.1.0.

The functions and callback functions in this module allow you to draw PRC model files using drawing functions that you provide.

Function Documentation

A3DStatus deprecated_A3DDrawInitCallbacks(deprecated_A3DDrawCallbacksData *psCallbacks)

Initializes the callbacks used for drawing.

Deprecated:

The Draw module is deprecated and will be removed in version 2026.1.0.

Version
2.0

Return values:
  • A3D_INITIALIZE_NOT_CALLED
  • A3D_INVALID_DATA_STRUCT_SIZE
  • A3D_INVALID_DATA_STRUCT_NULL
  • A3D_INVALID_ENTITY_NULL
  • A3D_INVALID_ENTITY_TYPE
  • A3D_SUCCESS
Returns:

A3D_SUCCESS on success, or an error code on failure

A3DStatus deprecated_A3DDraw(const A3DAsmModelFile *pModelFile, A3DUns32 uiDrawFlags)

Draws the model file entities, using the callbacks defined by deprecated_A3DDrawInitCallbacks.

Deprecated:

The Draw module is deprecated and will be removed in version 2026.1.0.

To set the uiDrawFlags argument, use the flags defined in Flags for Drawing Model File Entities.
Version
2.0

Return values:
  • A3D_INITIALIZE_NOT_CALLED
  • A3D_INVALID_DATA_STRUCT_SIZE
  • A3D_INVALID_DATA_STRUCT_NULL
  • A3D_INVALID_ENTITY_NULL
  • A3D_INVALID_ENTITY_TYPE
  • A3D_SUCCESS
Returns:

A3D_SUCCESS on success, or an error code on failure

A3DStatus deprecated_A3DDrawRepresentationItem(const A3DRiRepresentationItem *pRepItem, const A3DMiscCascadedAttributes *pFatherAttr)

Draws the representation item entities, using the callbacks defined by deprecated_A3DDrawInitCallbacks.

Deprecated:

The Draw module is deprecated and will be removed in version 2026.1.0.

Version
2.0

Return values:
  • A3D_INITIALIZE_NOT_CALLED
  • A3D_INVALID_DATA_STRUCT_SIZE
  • A3D_INVALID_DATA_STRUCT_NULL
  • A3D_INVALID_ENTITY_NULL
  • A3D_INVALID_ENTITY_TYPE
  • A3D_SUCCESS
Returns:

A3D_SUCCESS on success, or an error code on failure

A3DStatus deprecated_A3DDrawMarkup(const A3DMkpMarkup *pMarkup, const A3DMiscCascadedAttributes *pFatherAttr)

Draws the markup item entities, using the callbacks defined by deprecated_A3DDrawInitCallbacks.

Deprecated:

The Draw module is deprecated and will be removed in version 2026.1.0.

Version
2.0

Return values:
  • A3D_INITIALIZE_NOT_CALLED
  • A3D_INVALID_DATA_STRUCT_SIZE
  • A3D_INVALID_DATA_STRUCT_NULL
  • A3D_INVALID_ENTITY_NULL
  • A3D_INVALID_ENTITY_TYPE
  • A3D_SUCCESS
Returns:

A3D_SUCCESS on success, or an error code on failure

A3DStatus deprecated_A3DDrawGetBoundingBox(const A3DAsmModelFile *pModelFile, A3DBoundingBoxData *psBoundingBox, A3DUns32 uiDrawFlags)

Calculates the bounding box of the model file entity, without using any callback functions.

Deprecated:

The Draw module is deprecated and will be removed in version 2026.1.0.

To set the uiDrawFlags argument, use the flags defined in Flags for Drawing Model File Entities.
Version
2.0

Return values:
  • A3D_INITIALIZE_NOT_CALLED
  • A3D_INVALID_DATA_STRUCT_SIZE
  • A3D_INVALID_DATA_STRUCT_NULL
  • A3D_INVALID_ENTITY_NULL
  • A3D_INVALID_ENTITY_TYPE
  • A3D_SUCCESS
Returns:

A3D_SUCCESS on success, or an error code on failure