Navigation

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


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

Graph3D Class Reference

Abstract base class for drawable3d plots. More...

#include <graph3d.hpp>

Inheritance diagram for Graph3D:
Graph EqPotGraph FieldGraph MeshGraph ParticleGraph SolidGraph

List of all members.

Public Member Functions

 Graph3D ()
 Constructor.
virtual ~Graph3D ()
 Virtual destructor.
virtual void plot (cairo_t *cairo, const Coordmapper *cm, const double range[4])=0
 Plot drawable with cairo.
virtual void get_bbox (double bbox[4])=0
 Get bounding box of drawable.
void set_view (view_e view, int level)
 Set the view of 3D drawable.

Protected Attributes

view_e _view
int _vb [3]
int _level

Detailed Description

Abstract base class for drawable3d plots.


Constructor & Destructor Documentation

Graph3D::Graph3D (  )  [inline]

Constructor.

virtual Graph3D::~Graph3D (  )  [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual void Graph3D::get_bbox ( double  bbox[4]  )  [pure virtual]

Get bounding box of drawable.

Returns the bounding box of the drawable in array bbox in order xmin, ymin, xmax, ymax.

Implements Graph.

Implemented in EqPotGraph, FieldGraph, MeshGraph, ParticleGraph, and SolidGraph.

virtual void Graph3D::plot ( cairo_t *  cairo,
const Coordmapper cm,
const double  range[4] 
) [pure 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 Graph.

Implemented in EqPotGraph, FieldGraph, MeshGraph, ParticleGraph, and SolidGraph.

void Graph3D::set_view ( view_e  view,
int  level 
) [inline]

Set the view of 3D drawable.

Sets view direction to view and the view level to level.


Member Data Documentation

int Graph3D::_level [protected]
int Graph3D::_vb[3] [protected]
view_e Graph3D::_view [protected]

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


Reference manual for Ion Beam Simulator 1.0.4
Generated by Doxygen 1.7.1 on Wed Apr 13 2011 23:25:35.