Node:Modifying Paths, Next:, Previous:Clearing Paths, Up:Path Reference



Modifying

bool set_on_free_store ([bool b = true]) Virtual function
Sets on_free_store to b. This is used in the template function create_new(). See Path Reference; Constructors and Setting Functions.

void set_fill_draw_value (const signed short s) Virtual function
Sets fill_draw_value to s, which should be one of Shape::DRAW, Shape::FILL, Shape::FILLDRAW, Shape::UNDRAW, Shape::UNFILL, or Shape::UNFILLDRAW.

void set_draw_color (const Color& c) Virtual function
void set_draw_color (const Color * c) Virtual function
Sets draw_color (a pointer to a const Color) to &c or c, depending on whether the version with a reference argument or the version with a pointer argument is used.

set_draw_color() is used in the Solid drawing and filling functions, because Path::draw_color is protected, and the Solid cannot access it directly. See Solid Reference; Drawing and Filling.

void set_fill_color (const Color& c) Virtual function
void set_fill_color (const Color* c) Virtual function
Sets fill_color (a pointer to a const Color) to &c or c, depending on whether the version with a reference argument or the version with a pointer argument is used.

set_fill_color() is used in the Solid drawing and filling functions, because Path::fill_color is protected, and the Solid cannot access it directly. See Solid Reference; Drawing and Filling.

void set_dash_pattern ([const string s = ""]) Virtual function
Sets dashed to s.

void set_pen ([const string s = ""]) Virtual function
Sets pen to s.

void set_connectors ([const string s = ".."]) Virtual function
Clears connectors and then pushes s onto it, making s the only connector. Additional connectors can be added by using Path::operator+=(const string). See Path Reference; Operators.

I plan to add a version of this function taking a vector of strings as its argument, to make it possible to set several connectors at one time.