44 #define SOLIDPLOT_HPP 1
64 Point(
double _x,
double _y ) { x[0] = _x; x[1] = _y; }
66 double &operator[](
int i ) {
return( x[i] ); }
67 const double &operator[](
int i )
const {
return( x[i] ); }
74 SolidPoints(
int N ) : N(N) {}
79 std::vector<SolidPoints *> _solid;
86 bool is_edge(
int N,
const int i[3] )
const;
87 int get_mesh(
const int i[3],
int offsetx,
int offsety )
const;
88 void build_solid( SolidPoints *solid,
const int i[3],
char *done,
int last,
int N );
89 void build_data(
void );
90 void clear_data(
void );
117 virtual void plot( cairo_t *cairo,
const Coordmapper *cm,
const double range[4] );
123 virtual void plot_sample( cairo_t *cairo,
double x,
double y,
double width,
double height );
130 virtual void get_bbox(
double bbox[4] );
virtual void plot_sample(cairo_t *cairo, double x, double y, double width, double height)
Plot sample for legend.
SolidGraph(const Geometry &g)
Constructor for SolidGraph drawable from geometry g.
virtual void get_bbox(double bbox[4])
Get bounding box of drawable.
A 2D cut view of the geometry solids.
Definition: solidgraph.hpp:59
virtual ~SolidGraph()
Destructor.
view_e
View types.
Definition: graph3d.hpp:53
virtual void plot(cairo_t *cairo, const Coordmapper *cm, const double range[4])
Plot graph with cairo.
void disable_cache(void)
Disable internal cache.
Geometry defining class.
Definition: geometry.hpp:131
Linear-linear 2D coordinate mapper.
Definition: coordmapper.hpp:119
Abstract base class for geometry slice plots.
Definition: graph3d.hpp:78
Base for three dimensional plottable graphs.
Color class for plotting.
Definition: color.hpp:53