DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > Views > Scene Go to DGKC docs Search Documentation


Scene

In addition to model, which manages persistent properties, 3D views often generate auxiliary items and attributes for presentation of the model. These are managend by Scene.

A scene is an attribute of a view, which manages collections of objects extending the model.

A scene can be accessed via IScene_DG Interface, which can be obtained via IView_DG.GetScene().

Per View Entity Visibility

In the case, when two or more DGK components, and hence two or more views share a model, an entity can be shown or hidden in each view intependently.

By default each view uses entity's visibility property accessible via IEntity_DG.Visible property. To show or hide the entity in a specific view use IScene_DG.Show(IEntity_DG entity, bool show) call. In the case a new property will be stored in the scene to remember the entty's visibility in the view.

This property is considered transient, it is not copied to the entity automatically and not persistent with the model in this version. Use the application's persistence mechanism, if required.

Show Local Frame Flag

Show Local Frame Flag is a per-view transient property of an entity. It is stored in scene only and not persisted with the model.

Use IScene_DG.ShowLocalFrame(IEntity_DG entity, bool show) and IScene_DG.IsLocalFrameVisible() to modify or query the property.