vtkutil.h File Reference

#include "includes.h"

Functions

vtkImageViewer * loadImageRenderer (float *phase, int xsize, int ysize, QVTKWidget *qren)
bool loadGraph (vector< float > X, QVTKWidget *qren, vtkRenderer *ren, QColor color, QString name)
unsigned char * toUcharArray (float *floatarray, int size)
bool load3dSurface (float *uphase, int xsize, int ysize, QVTKWidget *qren, vtkRenderer *ren)
void loadVTKImage (char *imageFile, QVTKWidget *qvtkwidget, int xscale, int yscale)
void ImageFullScreen (float *uimage, float height, float width, float axsize, float aysize, int onlysave, QString file)
void ucreate3d (float *imagen, int height, int width, int xsize, int ysize, int onlysave, QString file)

Detailed Description

Author:
Tomás Aguado Gómez
Date:
16 5 2006

Function Documentation

void ImageFullScreen float *  uimage,
float  height,
float  width,
float  axsize,
float  aysize,
int  onlysave,
QString  file
 

Loads an image in an independent fullscreen window

Parameters:
uimage The image distribution that should be loaded
height The X size of the window
width The Y size of the window
axsize The X axis scale of the image
aysize The Y axis scale of the image
onlysave A flag indicating if the model should be pipelined to the file specified as parameter
file The string containing the path to save the image

bool load3dSurface float *  uphase,
int  xsize,
int  ysize,
QVTKWidget *  qren,
vtkRenderer *  ren
 

Loads a 3d cloud of points out of uphase in a QVTKwidget

Parameters:
uphase The phase distribution that should be modelled
xsize The width of the distribution
ysize The height of the distribution
qren The QVTKWidget the model should be loaded in
ren The render that should be used to show the model

bool loadGraph vector< float >  X,
QVTKWidget *  qren,
vtkRenderer *  ren,
QColor  color,
QString  name
 

Loads the the X vector as a graph using the renderer and QVTKWidget provided as param

Parameters:
X vector with result data
qren The QVTKWidget the graph should be loaded in
ren The render that should be used to show the graph
color The color of the graph
name The label of the graph

vtkImageViewer* loadImageRenderer float *  phase,
int  xsize,
int  ysize,
QVTKWidget *  qren
 

Include useful functions for common VTK UWP functions

void loadVTKImage char *  imageFile,
QVTKWidget *  qvtkwidget,
int  xscale,
int  yscale
 

Loads an image in a QVTKWidget

Parameters:
imageFile The image distribution that should be loaded
xscale The X axis of the scale
yscale The Y axis of the scale
qvtkwidget The QVTKWidget the model should be loaded in

unsigned char* toUcharArray float *  floatarray,
int  size
 

Translates a float array to an unsigned char array

Parameters:
floatarray Array source
size The size of the array

void ucreate3d float *  imagen,
int  height,
int  width,
int  xsize,
int  ysize,
int  onlysave,
QString  file
 

Loads a 3d cloud of points out of uphase in a QVTKwidget

Parameters:
imagen The phase distribution that should be modelled
height The X size of the window
width The Y size of the window
xsize The X axis scale of the image
ysize The Y axis scale of the image
onlysave A flag indicating if the model should be pipelined to the file specified as parameter
file The string containing the path to save the image


Generated on Tue Sep 5 00:04:05 2006 for UWP by  doxygen 1.4.6