Node:Outputting Solids, Next:Drawing and Filling Solids, Previous:Applying Transformations to Solids, Up:Solid Reference
The functions in this section are are called, directly or indirectly, by
Picture::output().
See Picture Reference; Outputting.
void output (void)
|
Virtual function |
Writes the MetaPost code for drawing, filling, filldrawing, undrawing,
unfilling, or unfilldrawing the Solid to out_stream.
|
void suppress_output (void)
|
Virtual function |
Used in Picture::output(). Sets do_output to false, if the
Solid cannot be projected using a particular set of arguments to
Picture::output().
|
void unsuppress_output (void)
|
Virtual function |
Used in Picture::output(). Resets do_output to true,
so that the Solid will be tested for projectability again, if the
Picture it's on is output again.
|
| vector<Shape*> extract (const Focus& f, const unsigned short proj, real factor) | Virtual function |
Tests whether all of the Shapes belonging to the Solid are
projectable, using the arguments passed to output(). If it is,
this function returns a
vector of pointers to Shape containing a single pointer to
the Solid. If not, an empty vector is returned.
|
bool set_extremes (void)
|
Virtual function |
Sets projective_extremes to contain the maximum and minimum
values for the x, y, and z-coordinates of the Points on the
Shape. Used for determining projectability of a Solid
using a particular set of arguments.
|
const valarray<real> get_extremes (void)
|
const inline virtual function |
Returns projective_extremes.
|
real get_minimum_z (void)
|
const virtual functions |
real get_maximum_z (void)
|
|
real get_mean_z (void)
|
Returns the minimum, maximum, or mean z-value, respectively, of the
Points belonging to the Solid.
Used for surface hiding.
See Surface Hiding.
|