Graphics
- group a3d_graphics_module
Query and manipulate scene and rendering informations.
The graphics group provides the essential set of tools for describing a rendering scene, such as texturing, lighting or view information. The following entities are presents in this modules, along with their public data and access functions:
The module also provides a set of indexed data:
Any entity of the given type can be used as an
A3DRootBaseWithGraphics
.- General Structure
An entity of type
A3DRootBaseWithGraphics
embeds anA3DGraphics
entity. This structure mainly provides two informations:A layer which allows grouping entities with a common identifier.
A style index which references an
A3DGraphStyleData
.A3DGraphStyleData
lists all graphics properties theA3DRootBaseWithGraphics
is assigned to, such as drawing patterns, materials or textures.
HOOPS Exchange provides a global container (
A3DGlobalData
) which references each of these data using indexed lists. Thus, structures such asA3DGraphRgbColorData
are obtained using an non-typed numerical index.- Indexed data
Indexed data are plain structures which are globally shared among a potentially important amount of entities within a model file. For example, the same color description can be used for all the graphics entities of a scene.
Yet, these data act as front-end for internal entities which are still referenced to by handles. The purpose of obtaining the underlying entity of an indexed data depends on the context and is generally an uncommon operation. As an example, the full PBR (Physically-Based Rendering) features is provided as an extension of
A3DGraphMaterialData
throughout its underlying entity. To retrieve the underlying entity of an indexed data, seeA3DMiscPointerFromIndexGet
.
Data Structures
Main description of graphics properties within an A3DRootBaseWithGraphics instance. |
|
General style information. |
|
Utility class for manipulating RGB color data. |
|
2D line pattern descriptor. |
|
Material properties descriptor. |
|
A description of a two-dimensional picture. |
|
Dotting fill pattern descriptor. |
|
Line descriptor for the A3DGraphHatchingPatternData structure. |
|
Hatching lines fill pattern descriptor. |
|
A fill pattern describing either a simple color or a material. |
|
A fill pattern using a vectorized picture. |
|
Data for an ambient light source entity (``) |
|
Data for a point light source entity ( A3DGraphPointLight ) |
|
Data for a spotlight source entity ( A3DGraphSpotLight ) |
|
Data for a directional light source entity ( A3DGraphDirectionalLight ) |
|
Describes inheritable properties of a model file node ( A3DMiscCascadedAttributes ) |
Functions
Fetches data from a graphics entity, given its handle. |
|
Creates a new graphics entity, returning its handle. |
|
Deletes an A3DGraphics entity. |
|
Retrieves an indexed graph style. |
|
Creates a new graphics style, returning its index. |
|
Retrieves an indexed RGB color. |
|
Creates a new indexed color, returning its index. |
|
Retrieves a line pattern descriptor. |
|
Retrieves an indexed RGB color. |
|
Creates a new material, returning its index. |
|
Retrieves an A3DGraphPictureData instance. |
|
Insert a new picture into the global state, returning its index. |
|
Retrieves an A3DGraphDottingPatternData instance. |
|
Insert a new dotting pattern into the global state, returning its index. |
|
Retrieves an A3DGraphHatchingPatternData instance. |
|
Insert a new hatching lines fill pattern into the global state, returning its index for further retrieval. |
|
Retrieves an A3DGraphHatchingPatternData instance. |
|
Insert a new solid fill pattern into the global state, returning its index for further retrieval. |
|
Retrieves an A3DGraphVPicturePatternData instance. |
|
Insert a new vectorized picture fill pattern into the global state, returning its index for further retrieval. |
|
Fetches data from a camera entity given its handle. |
|
Creates a new camera entity, returning its handle. |
|
Fetches data from an ambient light source entity given its handle. |
|
Creates a new ambient light source entity, returning its handle. |
|
Fetches data from a point light source entity given its handle. |
|
Creates a new point light source entity, returning its handle. |
|
Fetches data from a spotlight source entity given its handle. |
|
Creates a new spotlight source entity, returning its handle. |
|
Fetches data from a directional source entity given its handle. |
|
Creates a new directional source entity, returning its handle. |
|
Fetches data from a scene diplay parameters entity given its handle. |
|
Creates a new A3DGraphSceneDisplayParameters entity, returning its handle. |
|
Creates a new A3DMiscCascadedAttributes entity, returning its handle. |
|
Deletes a A3DMiscCascadedAttributes . |
|
Fetches data from a cascaded attributes entity given its handle. |
|
Computes the result of cascaded attribute propagation from a parent node. |
|
Retrieve the handle of an indexed entity. |
|
Adds a new attribute to the given entity. |