Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.5new_solver
   Version 1.0.5dev
      Class Index
      File List
   Version 1.0.5b
   Version 1.0.4dev
   Version 1.0.4
Publications


Hosted by Get Ion Beam Simulator at SourceForge.net. Fast, secure and Free Open Source software downloads

SolidGraph Class Reference

A 2D cut view of the geometry solids. More...

#include <solidgraph.hpp>

Inheritance diagram for SolidGraph:
Graph3D Graph

List of all members.

Classes

struct  Point
struct  SolidPoints

Public Member Functions

 SolidGraph (const Geometry &geom)
 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 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

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).


Constructor & Destructor Documentation

SolidGraph::SolidGraph ( const Geometry geom  ) 

Constructor for SolidGraph drawable from geometry g.

virtual SolidGraph::~SolidGraph (  )  [virtual]

Destructor.


Member Function Documentation

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 graph with cairo.

Plot the graph using cairo and coordinate mapper cm. The visible range of plot is given in array range in order xmin, ymin, xmax, ymax. The graph should be able to handle any range values. Also min > max.

Called by Frame during drawing.

Implements Graph3D.

virtual void SolidGraph::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.

Implements Graph3D.


The documentation for this class was generated from the following file:


Reference manual for Ion Beam Simulator 1.0.5dev
Generated by Doxygen 1.7.1 on Mon Feb 6 2012 15:07:16.