Node: Copying Paths, Next: , Previous: Appending to Paths, Up: Path Reference


Shape* get_copy (void) const virtual function
Creates a copy of the Path using create_new<Path>(), which returns a pointer to Path. get_copy() then casts this pointer to a pointer to Shape and returns it.

This function is used when copying Pictures and in Solid::output(), where objects of types derived from Shape must be handled in the same way, without their actual types being known.