CSol
Public Member Functions | Protected Member Functions | List of all members
CSol_2d_Grid_to_Image Class Reference

Grid to QImage convertor. More...

#include <csol_2d_grid_to_image.h>

Inherits Operation.

Public Member Functions

 CSol_2d_Grid_to_Image ()
 
virtual ~CSol_2d_Grid_to_Image ()
 

Protected Member Functions

virtual bool execute ()
 

Detailed Description

Converts a 2D grid layer to a QImage. The range maximum and minimum determine the bounds on the colour scheme. If these are equal, the range is automatically calculated. Above or below this range a transparent pixel is used, unless the 'Draw values' options are set. In this case a pixel colour of the bounding value is used. The scale factor sets the scaling applied to the output image. The opacity value sets the alpha value of the output image. If smooth scaling is used the scaled output image uses bilinear filtering. If the logarithmic option is used, the pixel value is calculated as log10(|p|+1), where p is the value in the grid cell. For a 3D grid input, the z-position selects the slice in the z-direction used for the 2D grid layer. The colour scheme option selects from a range of colour schemes. Outputs are the image, as well as the minimum and maximum ranges of the image.

Constructor & Destructor Documentation

~CSol_2d_Grid_to_Image ( )
virtual

Member Function Documentation

bool execute ( )
protectedvirtual