IBSimu
1.0.4
|
A 2D cut view of the geometry solids. More...
#include <solidgraph.hpp>
Classes | |
struct | Point |
struct | SolidPoints |
Public Member Functions | |
SolidGraph (const Geometry &g) | |
Constructor for SolidGraph drawable from geometry g. | |
virtual | ~SolidGraph () |
Destructor. | |
void | disable_cache (void) |
Disable internal cache. | |
virtual void | plot (cairo_t *cairo, const Coordmapper *cm, const double range[4]) |
Plot drawable with cairo. | |
virtual void | get_bbox (double bbox[4]) |
Get bounding box of drawable. |
A 2D cut view of the geometry solids.
Class for constructing and plotting a view of the geometry solids. The view data is stored inside the object in a cache to speed up more frequent use (in interactive plotter).
SolidGraph::SolidGraph | ( | const Geometry & | g | ) |
Constructor for SolidGraph drawable from geometry g.
virtual SolidGraph::~SolidGraph | ( | ) | [virtual] |
Destructor.
void SolidGraph::disable_cache | ( | void | ) |
Disable internal cache.
Makes solid boundaries to be calculated at every plot().
virtual void SolidGraph::get_bbox | ( | double | bbox[4] | ) | [virtual] |
Get bounding box of drawable.
Returns the bounding box of the drawable in array bbox in order xmin, ymin, xmax, ymax.
Implements Graph3D.
virtual void SolidGraph::plot | ( | cairo_t * | cairo, |
const Coordmapper * | cm, | ||
const double | range[4] | ||
) | [virtual] |
Plot drawable with cairo.
Plot the drawable using cairo and coordinate mapper cm. The visible range of plot is given in array range in order xmin, ymin, xmax, ymax.
Implements Graph3D.