Next: , Previous: Applying Transformations to Solids, Up: Solid Reference


34.12 Outputting

The functions in this section are are called, directly or indirectly, by Picture::output(). See Picture Reference; Outputting.

— Virtual function: void output (void)

Writes the MetaPost code for drawing, filling, filldrawing, undrawing, unfilling, or unfilldrawing the Solid to out_stream.

— Virtual function: void suppress_output (void)

Used in Picture::output(). Sets do_output to false, if the Solid cannot be projected using a particular set of arguments to Picture::output().

— Virtual function: void unsuppress_output (void)

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.

— Virtual function: vector<Shape*> extract (const Focus& f, const unsigned short proj, real factor)

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.

— Virtual function: bool set_extremes (void)

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 inline virtual function: const valarray<real> get_extremes (void)

Returns projective_extremes.

const virtual functions: real get_minimum_z (void)
— : 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.