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. See also Transient Flag
IDraw_DG can be queried from IModel_DG. See also: Metrics sample
void Begin(DrawPrimitive 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()
Returns value of EyeFrameSpace flag. When EyeFrameSpace is set, the entity created with this interface will be aligned
to Eye Frame and all coordinates are assumed relative to the Eye Frame
void SetEyeFrameSpace(bool val)
When EyeFrameSpace flag is set, the entity created with this interface will be aligned
to Eye Frame and all coordinates are assumed relative to the Eye Frame
bool IsTransient()
By default the entities created via Begin(); ...Vertex();...End(); are transient, i.e. they are not saved with the model.
Call this method to change this behaviour. See also Transient Flag
void SetTransient(bool val)
Sets the default Transient Flag for new entities. True is the default
|