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 theShapes
belonging to the copy are set appropriately, so that they can be drawn, whenPicture::output()
is called.The
Colors
used for drawing the variousPaths
,Circles
,Ellipses
, etc., belonging to theSolid
are passed in v. If theSolid
contains moreShapes
than v contains pointers toColor
, theColor
pointed to by the last pointer on v is used to draw the remainingShapes
.Currently, a
Solid
can 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
Solid
makes it a copy of*this
, and puts a pointer to it onto picture.shapes
. The data members of theShapes
belonging to the copy are set appropriately, so that they can be filled, whenPicture::output()
is called.The
Colors
used for filling the variousPaths
,Circles
,Ellipses
, etc., belonging to theSolid
are passed in v. If theSolid
contains moreShapes
than v contains pointers toColor
, theColor
pointed 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 theShapes
belonging to the copy are set appropriately, so that they can be filldrawn, whenPicture::output()
is called.The
Colors
used for drawing and filling the variousPaths
,Circles
,Ellipses
, etc., belonging to theSolid
are passed in draw_colors and fill_colors. If theSolid
contains moreShapes
than draw_colors contains pointers toColor
, theColor
pointed to by the last pointer on draw_colors is used to draw the remainingShapes
. The same applies tofill_colors
.Currently, a
Solid
can 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 theShapes
belonging to the copy are set appropriately, so that they can be undrawn, whenPicture::output()
is called.A
Solid
can 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
Solid
makes it a copy of*this
, and puts a pointer to it onto picture.shapes
. The data members of theShapes
belonging 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 theShapes
belonging to the copy are set appropriately, so that they can be unfilldrawn, whenPicture::output()
is called.A
Solid
can currently only be unfilldrawn using a single dash pattern (ddashed), and pen (ppen).