trueif thePathwas created using the constructorPath(const Point& p0, const Point& p1), directly or indirectly. See Path Reference; Constructors and Setting Functions.Point p0; Point p1(1, 1); Point p2(2, 3); Path q0(p0, p1); cout << q0.get_line_switch(); -| 1 Path q1; q1 = q0; cout << q1.get_line_switch(); -| 1 Path q2 = p0.draw(p1); cout << q2.get_line_switch(); -| 1 Path q3("..", false, &p1, &p2, &p0, 0); cout << q3.get_line_switch(); -| 0
![]()
Fig. 109.
Some
Pathfunctions only work on linearPaths, so it's necessary to be able to distinguish them from non-linear ones. The functionis_linear()should be enough to ensure that all of these functions work, so I plan to makeline_switchobsolete soon. However, at the moment, it's still needed. See Path Reference; Querying.
trueif thePathwas dynamically allocated on the free store. Otherwisefalse. Set totrueonly increate_new<Path>(), which should be the only wayPathsare ever dynamically allocated. See Path Reference; Constructors and Setting Functions.
Used in
Picture::output(). Set tofalseif thePathisn't projectable using the arguments passed toPicture::output(). See Picture Reference; Outputting.
Set in the drawing and filling functions, and used in
Path::output(), to determine what MetaPost code to write toout_stream. See Path Reference; Drawing and Filling, and Path Reference; Outputting.
String written to
out_streamfor the “dash pattern” in a MetaPostdraworundrawcommand. If and only ifdashedis not the empty string, “dashed<dash pattern>” is written toout_stream.Dash patterns have no meaning inside 3DLDF;
dashed, if non-empty, is written unchanged toout_stream. I may change this in the future.
String written to
out_streamfor thepento be used in a MetaPostdraw,undraw,filldraw, orunfilldrawcommand. If and only ifpenis not the empty string, “withpen<...>” is written toout_stream.Pens have no meaning inside 3DLDF;
pen, if non-empty, is written unchanged toout_stream. I may change this in the future.
Indicates whether an arrow should be drawn when outputting a
Path. Set totrueon aPathcreated on the free store and put onto aPicturebydrawarrow().
Contains the maxima and minima of the x, y, and z-coordinates of the projections of
Pointson aPathusing a particularFocus. Set inset_extremes()and used inPicture::output()for surface hiding.
The connectors between the
Pointson thePath. Connectors are simplystringsin 3DLDF, they are written unchanged toout_stream.
Pointer to a
const Color, which becomes the default fordraw_help(). See Path Reference; Drawing and Filling.Please note that
help_coloris a pointer to aconst Color, not aconstpointer to aColoror aconstpointer to aconst Color! It's easy to get confused by the syntax for these types of pointers.1
trueif help lines should be output, otherwisefalse. Iffalse, a call todraw_help()does not cause a copy of thePathto be created and put onto aPicture. See Path Reference; Drawing and Filling.