TRANSFORM_DEF
List of: Discussion Topic
Subjects: Entity, Extending ACIS
Contents: Application Development Manual

TRANSFORM_DEF defines apply_transform, which is an optional function that should apply the given transform to the entity.

Signature

logical MY_ENTITY::apply_transform( const SPAtransf &tform,

ENTITY_LIST &list, logical negate )

Implementation

When overriding the apply_transform virtual function, one should use the TRANSFORM_FUNCTION macro in the ENTITY declaration.

The application programmer should provide code to apply the transform to the entity and call apply_transform on any subsidiary entities. The list argument is used in the macro code to prevent duplicate application of the transform to the same entity. The application writer normally does not need to use the list argument other than to pass it on to the subsidiary entities. The negate argument indicates that the body is being negated as well as transformed.
PDF/APPDEV/09ENT.PDF
HTM/DATA/ACIS/APPDEV/09ENT/0013.HTM