Share

AcGiGeometry::draw

C++

virtual Adesk::Boolean draw(
    AcGiDrawable*
) const = 0;

Description

Instructs the graphics system to regenerate pDrawable as a component of this object.

For example, a Block Definition (AcDbBlockTableRecord) uses it to draw its contained objects. Any object that owns another AcDb object should use this method to have that subentity draw itself (as opposed to directly calling its worldDraw() method).

This allows a graphics system to cache the graphics of the object. Calling worldDraw directly would prevent this type of caching.

To implement this method:

  1. Set up linetype, layer, color, and fill type for the AcGiDrawable using a call to setAttributes(), passing in your implementation of AcGiSubEntityTraits.
  1. Call worldDraw() on the drawable and record the return value.
  1. If false is returned, call viewportDraw() once for each viewport.

Returning false to the caller indicates that you did not process the request.

Parameters

Parameters Description
unnamed Drawable to be rendered

Links

AcGiGeometry

Was this information helpful?