Node:Copying Solids, Next:, Previous:Solid Operators, Up:Solid Reference



Copying

Shape* get_copy (void) const virtual function
Dynamically allocates a new Solid on the free store, using create_new<Solid>(), and makes it a copy of *this. Then, a pointer to Shape is pointed at the copy and returned. Used for putting Solids onto Picture::shapes in the drawing and filling functions for Solid. See Solid Reference; Drawing and Filling.