Next: , Previous: Affine Transformations for Pictures, Up: Picture Reference


21.6 Modifying

— Function: void clear (void)

Destroys the Shapes and Labels on the Picture and removes all the Shape pointers from shapes and the Label pointers from labels. All dynamically allocated objects are deallocated, namely the Shapes, the Labels, and the Points belonging to the Labels. transform is reset to the identity Transform.

— Function: void reset_transform (void)

Resets transform to the identity Transform.

— Function: Transform set_transform (const Transform& t)

Sets transform to t and returns t.

— Function: void kill_labels (void)

Removes the Labels from the Picture.