Share

AcGiWorldGeometry

Class Hierarchy

AcRxObject
    AcGiGeometry
        AcGiWorldGeometry

C++

class AcGiWorldGeometry : public AcGiGeometry;

File

acgi.h

Description

This class is responsible for inserting geometry into the graphics cache for later display. An object of this class is part of every AcGiWorldDraw object which is passed into an entity's worldDraw() method when graphics generation is required for the entity. Geometry generated with the methods of this class is used in all viewports. If viewport-specific graphics are desired, then viewportDraw() must be used instead of worldDraw().

This class also exposes the current net block insert transform of the entity and allows the user to set the object's extents to some value.

Model coordinates are applied to all geometry in this class; only AcGiWorldGeometry::setExtents() requires a pointer to an array of two World Coordinate points. For an explanation of coordinate systems, see the ObjectARX Developer's Guide.

Note

AcGiWorldGeometry::pline does not work for proxy graphics

Remarks

This class can be derived from to create your own class with your own implementations of the various geometry functions. An object of your custom class can be used with an object of a custom class derived from AcGiWorldDraw to pass into an entity's worldDraw() method. This gives you the ability 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

AcGiWorldGeometry Methods

See Also

AcGiWorldDraw, AcGiEdgeData, AcGiFaceData, AcGiVertexData, AcGiTextStyle, AcDbEntity, AcGePoint3d, AcGeVector3d, AcGeMatrix3d

Was this information helpful?