result Class Reference

#include <result.h>

List of all members.

Public Member Functions

 result (int n, string name)
 result (result::result *r)
void setColor (QColor acolor)
QColor getColor ()
string getName ()
vector< float > getResults ()
void addResult (float f)
vector< float > getX ()
void addX (float f)
vector< float > getCustomResults ()
void addCustomResult (float f)
vector< int > getCustomSizes ()
float * toFloatPointer (vector< float > f)
int * toIntPointer (vector< int > v)
int getInitialSize ()
void copyIntVector (vector< int > source, vector< int > target)
void copyFloatVector (vector< float > source, vector< float > target)
vtkDataArray * toVtkDataArray ()
void toOrigin ()
vtkDataArray * toVtkDataArray (vector< float > f)
void printToFile (QString file)


Detailed Description

This class holds the result of incremental test, offers some data transformation methods too.


Constructor & Destructor Documentation

result::result int  n,
string  name
 

Constructor, takes both the number of initial tests and the name of the test

Parameters:
n Number of initial results
name The name of the test

result::result result::result *  r  ) 
 

Copy constructor

Parameters:
r The result object to be copied


Member Function Documentation

void result::addCustomResult float  f  ) 
 

Add a new value for the custom results in this test

Parameters:
f Single custom value to be added

void result::addResult float  f  ) 
 

Adds an experimental value for the test

Parameters:
f the value to be added to the test

void result::addX float  f  ) 
 

Add a X value to the vector

Parameters:
f A single x value

void result::copyFloatVector vector< float >  source,
vector< float >  target
 

Create a copy of a float vector

Parameters:
source The float vector
target The copied float vector

void result::copyIntVector vector< int >  source,
vector< int >  target
 

Create a copy of a int vector

Parameters:
source The int vector
target The copied int vector

QColor result::getColor  ) 
 

Returns the color defined for this test

Returns:
Color for this test

vector< float > result::getCustomResults  ) 
 

Obtain the custom results for this test

Returns:
Vector containing all the custom results

vector< int > result::getCustomSizes  ) 
 

Get the x values for the custom sizes

Returns:
The vector containing the x values for the custom sizes

int result::getInitialSize  ) 
 

Get the initial amount of data defined for the test

Returns:
The initial size of the vector

string result::getName  ) 
 

Returns the name defined for this test

Returns:
The name of the test

vector< float > result::getResults  ) 
 

Returns the vector containing the results of this test

Returns:
The results for this tests

vector< float > result::getX  ) 
 

Returns the X values for the results

Returns:
The vector containing the x coordinate values

void result::printToFile QString  file  ) 
 

Writes the results in ascii format in the file passed on as parameter

Parameters:
file The name of the file the data will be saved to

void result::setColor QColor  acolor  ) 
 

Defines the color for this test

Parameters:
acolor Color for this test

float * result::toFloatPointer vector< float >  f  ) 
 

Create a float array out of a vector of floats

Parameters:
f The float vector
Returns:
The float array yet translated

int * result::toIntPointer vector< int >  v  ) 
 

Create a int array out of a vector of floats

Parameters:
v The int vector
Returns:
The int array yet translated

void result::toOrigin  ) 
 

normalize all the data of the array to the origin

vtkDataArray * result::toVtkDataArray vector< float >  f  ) 
 

Create a vtkArray out of the vector passed on as parameter

Parameters:
f The float vector source of the translation
Returns:
The vtkDataArray containing all the values of the vector

vtkDataArray * result::toVtkDataArray  ) 
 

Create a vtkArray out of the results of this test

Returns:
The vtkDataArray containing all the values of the vector


The documentation for this class was generated from the following files:
Generated on Tue Sep 5 00:04:05 2006 for UWP by  doxygen 1.4.6