TransferFunction Class Reference

#include <TransferFunction.h>

Collaboration diagram for TransferFunction:
[legend]

List of all members.

Classes

struct  lessThanVertex
struct  TransferColor
class  Vertex

Public Slots

virtual void update ()
void setVolume (Volume *volume)
void setZoomFactor (int value)
void loadTfFile ()
void saveTfFile ()

Signals

void getTransferFunction (unsigned int *transferFunction, int length)

Public Member Functions

 TransferFunction (QWidget *parent=0)
 ~TransferFunction ()
void timerEvent (QTimerEvent *event)
void paintEvent (QPaintEvent *event)
void mousePressEvent (QMouseEvent *event)
void mouseDoubleClickEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
QSize sizeHint () const
int width () const
void updateSize ()
void updateTransferfunction ()

Private Types

typedef std::set< Vertex
*, lessThanVertex >::iterator 
IteratorVertices

Private Member Functions

void initHisto ()
void initTransferfunction ()
void updateScale ()
void unselectAllVertices ()
VertexaddVertex (int xScaled, int y)
VertexaddVertex (int scaledX, QColor color)
void addVertex (Vertex *v)
void removeVertex (Vertex *v)
VertexnewVertex (int xScaled, int alpha)
void select (Vertex *v)
void unselect (Vertex *v)
bool containsVertex (Vertex *v)
void removeAllVertices ()
std::set< Vertex
*, lessThanVertex >::iterator 
containsNearVertex (Vertex *v)

Private Attributes

bool updateAsked
int timerIdentifier
Volumevolume
QWidget * parent
int widthMax
int scaledWidth
int height
int zoomFactor
double scaleFactor
unsigned int * normHistoVals
unsigned int * normScaledHistoVals
int marginBottom
int marginRight
QString curDir
TransferColortransferFunction
std::set< Vertex
*, lessThanVertex
vertices
std::set< Vertex
*, lessThanVertex
selectedVertices
std::set< Vertex
*, lessThanVertex >::iterator 
movingVertex


Detailed Description

Definition at line 12 of file TransferFunction.h.


Member Typedef Documentation

typedef std::set<Vertex*, lessThanVertex>::iterator TransferFunction::IteratorVertices [private]

Definition at line 100 of file TransferFunction.h.


Constructor & Destructor Documentation

TransferFunction::TransferFunction ( QWidget *  parent = 0  ) 

TransferFunction::~TransferFunction (  ) 


Member Function Documentation

void TransferFunction::addVertex ( Vertex v  )  [private]

TransferFunction::Vertex * TransferFunction::addVertex ( int  scaledX,
QColor  color 
) [private]

TransferFunction::Vertex * TransferFunction::addVertex ( int  xScaled,
int  y 
) [private]

TransferFunction::IteratorVertices TransferFunction::containsNearVertex ( Vertex v  )  [private]

bool TransferFunction::containsVertex ( Vertex v  )  [private]

Definition at line 576 of file TransferFunction.cpp.

References vertices.

Referenced by addVertex(), and removeVertex().

void TransferFunction::getTransferFunction ( unsigned int *  transferFunction,
int  length 
) [signal]

Referenced by updateTransferfunction().

void TransferFunction::initHisto (  )  [private]

void TransferFunction::initTransferfunction (  )  [private]

void TransferFunction::loadTfFile (  )  [slot]

void TransferFunction::mouseDoubleClickEvent ( QMouseEvent *  event  ) 

void TransferFunction::mouseMoveEvent ( QMouseEvent *  event  ) 

void TransferFunction::mousePressEvent ( QMouseEvent *  event  ) 

void TransferFunction::mouseReleaseEvent ( QMouseEvent *  event  ) 

Definition at line 173 of file TransferFunction.cpp.

TransferFunction::Vertex * TransferFunction::newVertex ( int  xScaled,
int  alpha 
) [private]

Definition at line 504 of file TransferFunction.cpp.

References scaleFactor.

Referenced by mouseDoubleClickEvent(), and mousePressEvent().

void TransferFunction::paintEvent ( QPaintEvent *  event  ) 

void TransferFunction::removeAllVertices (  )  [private]

Definition at line 567 of file TransferFunction.cpp.

References vertices.

Referenced by initTransferfunction(), loadTfFile(), and ~TransferFunction().

void TransferFunction::removeVertex ( Vertex v  )  [private]

void TransferFunction::saveTfFile (  )  [slot]

Definition at line 118 of file TransferFunction.cpp.

References curDir, and vertices.

void TransferFunction::select ( Vertex v  )  [private]

void TransferFunction::setVolume ( Volume volume  )  [slot]

void TransferFunction::setZoomFactor ( int  value  )  [slot]

Definition at line 295 of file TransferFunction.cpp.

References updateSize(), and zoomFactor.

QSize TransferFunction::sizeHint (  )  const

Definition at line 61 of file TransferFunction.cpp.

References height, and scaledWidth.

void TransferFunction::timerEvent ( QTimerEvent *  event  ) 

Definition at line 52 of file TransferFunction.cpp.

References update(), and updateAsked.

void TransferFunction::unselect ( Vertex v  )  [private]

Definition at line 618 of file TransferFunction.cpp.

References TransferFunction::Vertex::selected, and selectedVertices.

Referenced by mouseDoubleClickEvent().

void TransferFunction::unselectAllVertices (  )  [private]

Definition at line 609 of file TransferFunction.cpp.

References selectedVertices.

Referenced by initTransferfunction(), mouseDoubleClickEvent(), and mousePressEvent().

void TransferFunction::update (  )  [virtual, slot]

void TransferFunction::updateScale (  )  [private]

void TransferFunction::updateSize (  ) 

Definition at line 301 of file TransferFunction.cpp.

References updateScale().

Referenced by setZoomFactor().

void TransferFunction::updateTransferfunction (  ) 

int TransferFunction::width (  )  const

Definition at line 278 of file TransferFunction.cpp.

References parent.

Referenced by updateScale().


Member Data Documentation

QString TransferFunction::curDir [private]

Definition at line 55 of file TransferFunction.h.

Referenced by loadTfFile(), and saveTfFile().

int TransferFunction::height [private]

Definition at line 50 of file TransferFunction.h.

Referenced by initHisto(), paintEvent(), setVolume(), sizeHint(), and TransferFunction().

Definition at line 54 of file TransferFunction.h.

Referenced by TransferFunction().

Definition at line 54 of file TransferFunction.h.

Referenced by TransferFunction().

std::set<Vertex*, lessThanVertex>::iterator TransferFunction::movingVertex [private]

unsigned int* TransferFunction::normHistoVals [private]

Definition at line 52 of file TransferFunction.h.

Referenced by initHisto(), TransferFunction(), updateScale(), and ~TransferFunction().

unsigned int* TransferFunction::normScaledHistoVals [private]

QWidget* TransferFunction::parent [private]

Definition at line 49 of file TransferFunction.h.

Referenced by width().

Definition at line 50 of file TransferFunction.h.

Referenced by initTransferfunction(), paintEvent(), sizeHint(), and updateScale().

Definition at line 87 of file TransferFunction.h.

Referenced by select(), unselect(), and unselectAllVertices().

Definition at line 46 of file TransferFunction.h.

Referenced by TransferFunction(), and ~TransferFunction().

Definition at line 45 of file TransferFunction.h.

Referenced by timerEvent(), TransferFunction(), and update().

Definition at line 48 of file TransferFunction.h.

Referenced by initHisto(), paintEvent(), and TransferFunction().

Definition at line 50 of file TransferFunction.h.

Referenced by setZoomFactor(), TransferFunction(), and updateScale().


The documentation for this class was generated from the following files:

Generated on Wed Dec 10 13:50:14 2008 for Tido Visualization by  doxygen 1.5.7.1