const virtual function: void draw ([const vector<const Color*> v = Colors::default_color_vector, [const string ddashed = "", [const string ppen = "", [Picture& picture = current_picture]]]])Draws the
Solid.This function allocates a new
Solid, makes it a copy of*this, and puts a pointer to the copy onto picture.shapes. The data members of theShapesbelonging to the copy are set appropriately, so that they can be drawn, whenPicture::output()is called.The
Colorsused for drawing the variousPaths,Circles,Ellipses, etc., belonging to theSolidare passed in v. If theSolidcontains moreShapesthan v contains pointers toColor, theColorpointed to by the last pointer on v is used to draw the remainingShapes.Currently, a
Solidcan only be drawn with a single dash pattern (ddashed), and pen (ppen).
const virtual function: void fill ([const vector<const Color*> v = Colors::default_color_vector, [Picture& picture = current_picture]])Fills the
Solid.This function allocates a new
Solidmakes it a copy of*this, and puts a pointer to it onto picture.shapes. The data members of theShapesbelonging to the copy are set appropriately, so that they can be filled, whenPicture::output()is called.The
Colorsused for filling the variousPaths,Circles,Ellipses, etc., belonging to theSolidare passed in v. If theSolidcontains moreShapesthan v contains pointers toColor, theColorpointed to by the last pointer on v is used to fill the remainingShapes.
const virtual function: void filldraw ([const vector<const Color*> draw_colors = Colors::default_color_vector, [const vector<const Color*> fill_colors = Colors::background_color_vector, [const string ddashed = "", [const string ppen = "", [Picture& picture = current_picture]]]]])Filldraws the
Solid.This function allocates a new
Solid, makes it a copy of*this, and puts a pointer to it onto picture.shapes. The data members of theShapesbelonging to the copy are set appropriately, so that they can be filldrawn, whenPicture::output()is called.The
Colorsused for drawing and filling the variousPaths,Circles,Ellipses, etc., belonging to theSolidare passed in draw_colors and fill_colors. If theSolidcontains moreShapesthan draw_colors contains pointers toColor, theColorpointed to by the last pointer on draw_colors is used to draw the remainingShapes. The same applies tofill_colors.Currently, a
Solidcan only be filldrawn with a single dash pattern (ddashed), and pen (ppen).
const virtual function: void undraw ([const string ddashed = "", [const string ppen = "", [Picture& picture = current_picture]]])Undraws the
Solid.This function allocates a new
Solid, makes it a copy of*this, and puts a pointer to it onto picture.shapes. The data members of theShapesbelonging to the copy are set appropriately, so that they can be undrawn, whenPicture::output()is called.A
Solidcan currently only be undrawn using a single dash pattern (ddashed), and pen (ppen).
const virtual function: void unfill ([Picture& picture = current_picture])Unfills the
Solid.This function allocates a new
Solidmakes it a copy of*this, and puts a pointer to it onto picture.shapes. The data members of theShapesbelonging to the copy are set appropriately, so that they can be unfilled, whenPicture::output()is called.
const virtual function: void unfilldraw ([const string ddashed = "", [const string ppen = "", [Picture& picture = current_picture]]])const virtual function: void undraw ([const string ddashed = "", [const string ppen = "", [Picture& picture = current_picture]]])Unfilldraws the
Solid.This function allocates a new
Solid, makes it a copy of*this, and puts a pointer to it onto picture.shapes. The data members of theShapesbelonging to the copy are set appropriately, so that they can be unfilldrawn, whenPicture::output()is called.A
Solidcan currently only be unfilldrawn using a single dash pattern (ddashed), and pen (ppen).