true
if thePath
was 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
Path
functions 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_switch
obsolete soon. However, at the moment, it's still needed. See Path Reference; Querying.
true
if thePath
was dynamically allocated on the free store. Otherwisefalse
. Set totrue
only increate_new<Path>()
, which should be the only wayPaths
are ever dynamically allocated. See Path Reference; Constructors and Setting Functions.
Used in
Picture::output()
. Set tofalse
if thePath
isn'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_stream
for the “dash pattern” in a MetaPostdraw
orundraw
command. If and only ifdashed
is 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_stream
for thepen
to be used in a MetaPostdraw
,undraw
,filldraw
, orunfilldraw
command. If and only ifpen
is 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 totrue
on aPath
created on the free store and put onto aPicture
bydrawarrow()
.
Contains the maxima and minima of the x, y, and z-coordinates of the projections of
Points
on aPath
using a particularFocus
. Set inset_extremes()
and used inPicture::output()
for surface hiding.
The connectors between the
Points
on thePath
. Connectors are simplystrings
in 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_color
is a pointer to aconst Color
, not aconst
pointer to aColor
or aconst
pointer to aconst Color
! It's easy to get confused by the syntax for these types of pointers.1
true
if help lines should be output, otherwisefalse
. Iffalse
, a call todraw_help()
does not cause a copy of thePath
to be created and put onto aPicture
. See Path Reference; Drawing and Filling.