Navigation

Main Page
Download
Support
Installation
Tutorial
Examples
Reference Manual
   Version 1.0.6dev
      Class Index
      File List
   Version 1.0.6
   Version 1.0.5new_solver
   Version 1.0.5dev
   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
meshcolormap.hpp File Reference

Mesh based colormap graph for plotting. More...

#include <cairo.h>
#include <vector>
#include "palette.hpp"
#include "graph.hpp"
#include "colormap.hpp"
#include "coordmapper.hpp"
#include "interpolation.hpp"

Go to the source code of this file.

Classes

class  MeshColormap
 Class for colormap type plots on a regular rectangular mesh. More...
 

Enumerations

enum  interpolation_e { INTERPOLATION_CLOSEST = 0 , INTERPOLATION_BILINEAR , INTERPOLATION_BICUBIC }
 Interpolation type enum. More...
 
enum  zscale_e { ZSCALE_LINEAR = 0 , ZSCALE_LOG , ZSCALE_RELLOG }
 Z-scale enum. More...
 

Detailed Description

Mesh based colormap graph for plotting.

Enumeration Type Documentation

◆ interpolation_e

Interpolation type enum.

The interpolation can be either 0th order (INTERPOLATION_CLOSEST), 1st order (INTERPOLATION_BILINEAR) or 3rd order (INTERPOLATION_BICUBIC).

Enumerator
INTERPOLATION_CLOSEST 

Closest point interpolation.

INTERPOLATION_BILINEAR 

Bilinear interpolation.

INTERPOLATION_BICUBIC 

Bicubic interpolation.

◆ zscale_e

enum zscale_e

Z-scale enum.

The zscale can be either linear scale (ZSCALE_LINEAR), logarithmic scale (ZSCALE_LOG) or relative logarithmic (ZSCALE_RELLOG). The relative logarithmic scaling follows the relation

\[ \frac{\log(0.001+x)-\log(0.001)}{\log(1.001)-\log(0.001)} \]

, where x is prescaled to range [0,1]. The z-ranges completely contained on the negative side are inverted to positive and z-ranges both on negative and positive sides are scaled separately to provide magnification close to zero.

Enumerator
ZSCALE_LINEAR 

Linear scale.

ZSCALE_LOG 

Logarithmic scale.

ZSCALE_RELLOG 

Relative logarithmic scale.


Reference manual for Ion Beam Simulator 1.0.6dev
Generated by Doxygen 1.9.1 on Thu Sep 11 2025 09:37:24.