FieldGraph Class Reference
Class for drawing fields with colormap. More...
#include <fieldgraph.hpp>

Public Member Functions | |
FieldGraph (const Geometry &geom) | |
Constructor for empty FieldGraph. | |
FieldGraph (const Geometry &geom, field_type_e field_type, const ScalarField *field) | |
Constructor for plotting ScalarField. | |
FieldGraph (const Geometry &geom, field_type_e field_type, const VectorField *field) | |
Constructor for plotting a VectorField field in geometry geom. | |
virtual | ~FieldGraph () |
Destructor. | |
field_type_e | field_type (void) |
Get field type. | |
void | set_field (field_type_e field_type, const ScalarField *field) |
Set field to be plotted. | |
void | set_field (field_type_e field_type, const VectorField *field) |
Set field to be plotted. | |
void | enable (bool enable) |
Enable/disable plot. | |
void | set_zrange (double min, double max) |
Set zrange for plot. | |
virtual void | plot (cairo_t *cairo, const Coordmapper *cm, const double range[4]) |
Plot graph with cairo. | |
virtual void | plot_sample (cairo_t *cairo, double x, double y, double width, double height) |
Plot sample for legend. | |
virtual void | get_bbox (double bbox[4]) |
Get bounding box of drawable. |
Detailed Description
Class for drawing fields with colormap.
Implementation of Graph3D. Used in Frame type plots.
Constructor & Destructor Documentation
FieldGraph::FieldGraph | ( | const Geometry & | geom | ) |
Constructor for empty FieldGraph.
FieldGraph::FieldGraph | ( | const Geometry & | geom, | |
field_type_e | field_type, | |||
const ScalarField * | field | |||
) |
Constructor for plotting ScalarField.
FieldGraph::FieldGraph | ( | const Geometry & | geom, | |
field_type_e | field_type, | |||
const VectorField * | field | |||
) |
Constructor for plotting a VectorField field in geometry geom.
virtual FieldGraph::~FieldGraph | ( | ) | [virtual] |
Destructor.
Member Function Documentation
void FieldGraph::enable | ( | bool | enable | ) |
Enable/disable plot.
field_type_e FieldGraph::field_type | ( | void | ) |
Get field type.
virtual void FieldGraph::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.
Reimplemented from Colormap.
virtual void FieldGraph::plot | ( | cairo_t * | cairo, | |
const Coordmapper * | cm, | |||
const double | range[4] | |||
) | [virtual] |
virtual void FieldGraph::plot_sample | ( | cairo_t * | cairo, | |
double | x, | |||
double | y, | |||
double | width, | |||
double | height | |||
) | [virtual] |
Plot sample for legend.
Plot graph sample for legend at cairo coordinates x.
Reimplemented from Colormap.
void FieldGraph::set_field | ( | field_type_e | field_type, | |
const ScalarField * | field | |||
) |
Set field to be plotted.
The field_type can be FIELD_NONE and field NULL for no plotting.
void FieldGraph::set_field | ( | field_type_e | field_type, | |
const VectorField * | field | |||
) |
Set field to be plotted.
The field_type can be FIELD_NONE and field NULL for no plotting.
void FieldGraph::set_zrange | ( | double | min, | |
double | max | |||
) |
Set zrange for plot.
The zrange defaults to automatically scaled range for the whole field for scalarfields and automatically scaled range for the view plane only for vectorfields.
Reimplemented from Colormap.
The documentation for this class was generated from the following file: