Share

AcGiWorldDraw

Class Hierarchy

AcRxObject
    AcGiCommonDraw
        AcGiWorldDraw

C++

class AcGiWorldDraw : public AcGiCommonDraw;

File

acgi.h

Description

The AcGiWorldDraw class provides functionality that has the ability to generate geometry that doesn't change for different viewports. The geometry may look different in different viewports (due to different zoom factors, viewpoints, etc.), but only one set of geometry is generated, which is then adjusted by AutoCAD for all the different viewports. For generating different geometry in different viewports, see AcGiViewportDraw.

The default constructor creates new AcGiWorldGeometry and AcGiSubEntityTraits objects, both of which are accessible via methods in the AcGiWorldDraw object.

An object of AcGiWorldDraw is passed into the AcDbEntity::worldDraw() function.

The AcGiWorldDraw class provides functions that return references to objects of other key AcGi classes. From AcGiWorldDraw, you can obtain objects of the following classes:

Class Usage
AcGiSubEntityTraits Setting drawing attributes (color, linetype, etc.) and selection markers.
AcGiViewportGeometry Drawing model coordinate geometry (arcs, polylines, etc.); getting current transforms.

Remarks

This class can be derived from to create your own class to pass into an entity's worldDraw() method. If you also derive from AcGiWorldGeometry and override its methods with your own implementations and use objects of both derived classes together, you will be able to obtain the graphics information for an entity without having direct access to the entity's underlying code. One situation where this has proven useful is when the facet geometry of AutoCAD solids is needed.

Links

AcGiWorldDraw Methods

See Also

AcGiWorldGeometry, AcGiSubEntityTraits, AcGiViewportDraw, AcDbEntity::worldDraw

Was this information helpful?