DG Kernel Documentation


Skip Navigation Links.
Skip Navigation LinksHome Page > API Reference > Model > Entities > IDraw_DG Search Documentation


IDraw_DG Interface

Begin
End
BeginUpdate
EndUpdate
Vertex
Normal
Color
LineWidth
PointSize
PushAttrib
PopAttrib
PushMatrix
PopMatrix
Translate
Rotate
LoadIdentity
SetCurrentFrame
IsEyeFrameSpace
SetEyeFrameSpace
IsTransient
SetTransient

IDraw_DG allows adding quickly simple entities following OpenGL syntax. Such entites are used normaly as auxiliary items. In other words it is an interface to draw into a model

By default the entities created via Begin(); ...Vertex();...End(); are transient, i.e. they are not saved with the model, which can be changed by calling SetTransient() prior the creation.

IDraw_DG can be queried from IModel_DG.

See also: Metrics sample


void Begin(DrawPrimitive_DG mode)


IEntity_DG End()


void BeginUpdate(IEntity_DG obj)


void EndUpdate()


void Vertex(double x, double y, double z)


void Normal(double nx, double ny, double nz)


void Color(double red, double green, double blue, double alpha)


void LineWidth(float width)


void PointSize(float size)


void PushAttrib()


void PopAttrib()


void PushMatrix()


void PopMatrix()


void Translate(double vx, double vy, double vz)


void Rotate(double angle, double vx, double vy, double vz)


void LoadIdentity()


void SetCurrentFrame(IFrame_DG frame)


bool IsEyeFrameSpace()


void SetEyeFrameSpace(bool val)


bool IsTransient()


void SetTransient(bool val)

Sets the default Transient Flag for new entities. True is the default