DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Collapse ModelModel
Expand ViewView
Expand General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > Model > Entities > Appearence > IAppearance_DG Search Documentation


IAppearance_DG Interface

SetColor
GetColor
GetPointWidth
SetPointWidth
GetDimension

IAppearance_DG gives access to the generic (base) appearance attribute of an entity. It can be used directly to change attributes of 0-dimentional entities which consist of a single point or a set (array/list) of points.

Objects with 1-dimensional geometry (IGeometry_DG.GetDimension()==EDim_DG.e1D) also implement ILineStyle_KC, which can be queried from this interface and exposes more attributes.

Objects with surface ((IGeometry_DG.GetDimension()==EDim_DG.e2D) also implement IMaterial, which can be queried from this interface and handles surface-related attributes.

IAppearance_DG is returned by IEntity_DG.GetAppearance()

See also: IMaterial

void SetColor(float red, float green, float blue)


void GetColor([out] float red, [out] float green, [out] float blue)


float GetPointWidth()


void SetPointWidth(float width)


EDim_DG GetDimension()

Identifies the actual type of the object implementing this interface. Return e2D means that IMaterial can be queried from this interface. Return e1D means that ILineStyle_KC can be queried from this interface.