|
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.
|