open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Classes | Functions
iAVtkDraw.h File Reference
#include <vtkImageData.h>
#include "iAbase_export.h"

Classes

class  iAvtkImageData
 An image which allows the user to specify min/max of scalar range. More...
 

Functions

template<typename T >
void clearImage (vtkImageData *img, T c)
 Set all pixels in the given image to the given value See the notes for drawPixel regarding Modified(). More...
 
template<typename T >
void drawLine (vtkImageData *img, int x1, int y1, int x2, int y2, T c)
 Draw a line in the given image. More...
 
template<typename T >
void drawPixel (vtkImageData *img, int x, int y, int z, T c)
 Change a single pixel in the given image. More...
 

Function Documentation

◆ clearImage()

template<typename T >
void clearImage ( vtkImageData *  img,
c 
)

Set all pixels in the given image to the given value See the notes for drawPixel regarding Modified().

WARNING: Only use for INT type at the moment!

◆ drawLine()

template<typename T >
void drawLine ( vtkImageData *  img,
int  x1,
int  y1,
int  x2,
int  y2,
c 
)

Draw a line in the given image.

See the notes for drawPixel regarding Modified(). WARNING: Only use for INT type at the moment!

◆ drawPixel()

template<typename T >
void drawPixel ( vtkImageData *  img,
int  x,
int  y,
int  z,
c 
)

Change a single pixel in the given image.

Don't forget to call Modified() on the image, and if the scalar range changed, to update the scalar range (unfortunately that seems to require a "dirty hack" at the moment, see iAvtkImageData above). WARNING: Only use for INT type at the moment!