Kinetic Visualization
 All Classes Functions Variables Pages
Public Types | Public Slots | Signals | Public Member Functions | Public Attributes
TransferPoints Class Reference

List of all members.

Public Types

enum  PointShape { CircleShape, RectangleShape }
enum  LockType { LockToLeft = 0x01, LockToRight = 0x02, LockToTop = 0x04, LockToBottom = 0x08 }
enum  EventObjectType { Selection = 0, DrawPoint = 1, DrawEllipse = 2, DrawRectangle = 3 }
enum  SortType { NoSort, XSort, YSort }
enum  ConnectionType { NoConnection, LineConnection, CurveConnection }

Public Slots

void setEnabled (bool enabled)
void setDisabled (bool disabled)
void changePointColor (QColor c)
void updateHistogram (double *histogram, int size)
void updateValues (glm::vec2 *values, int size)
void updateMode (int mode)
void DoClustering (int K)
void updateActionObjectType (int type)

Signals

void pointsChanged (int)

Public Member Functions

 TransferPoints (QWidget *widget, PointShape shape)
bool eventFilter (QObject *object, QEvent *event)
void paintPoints ()
QRectF boundingRect () const
void setBoundingRect (const QRectF &boundingRect)
const QVector< TPoint > & points () const
void setPoints (const QVector< TPoint > &points)
QSizeF pointSize () const
void setPointSize (const QSizeF &size)
SortType sortType () const
void setSortType (SortType sortType)
ConnectionType connectionType () const
void setConnectionType (ConnectionType connectionType)
void setConnectionPen (const QPen &pen)
void setShapePen (const QPen &pen)
void setShapeBrush (const QBrush &brush)
void setPointLock (int pos, LockType lock)
void setEditable (bool editable)
bool editable () const
void firePointChange ()

Public Attributes

std::vector< TFObjectstf_objects

Constructor & Destructor Documentation

TransferPoints::TransferPoints ( QWidget *  widget,
PointShape  shape 
)

Constructs a widget which is a child of widget, and the PointShape


Member Function Documentation

QRectF TransferPoints::boundingRect ( ) const
inline

Returns a QRectF with the given size or size of the widget

void TransferPoints::changePointColor ( QColor  c)
inlineslot

Stores the color in p_color if the color has changed

ConnectionType TransferPoints::connectionType ( ) const
inline

Returns the connectionType wich defines how the Points are connected

Warning:
{ the ConnectionType only changed the apperance of the Line }
bool TransferPoints::editable ( ) const
inline

Returns true if the item is editable

bool TransferPoints::eventFilter ( QObject *  object,
QEvent *  event 
)

Reimplementation of eventFilter to filter the different events and handel the MouseEvents to set/delet/move Points in the TransferfunktionWidget

void TransferPoints::firePointChange ( )

Is called whenever the transferfunction has been modified, sort ans emit pointsChanged

void TransferPoints::paintPoints ( )

Paints Transferpoints, connectionline, and Histogramm

const QVector< TPoint > & TransferPoints::points ( ) const

Returns a QVector with the points of the transferfunction

void TransferPoints::pointsChanged ( int  )
signal

This signal is emitted when the points have changed

QSizeF TransferPoints::pointSize ( ) const
inline

Returns a QSizeF with the width and Height of the point

void TransferPoints::setBoundingRect ( const QRectF &  boundingRect)
inline

Sets m_bounds to a given Size

void TransferPoints::setConnectionPen ( const QPen &  pen)
inline

Defines the apperance of the Line, with a QPen

void TransferPoints::setConnectionType ( ConnectionType  connectionType)
inline
Sets the connectionType 

#ConnectionType

Warning:
{ the ConnectionType only changed the apperance of the Line }
void TransferPoints::setDisabled ( bool  disabled)
inlineslot

Disables widget input events if disable is true

void TransferPoints::setEditable ( bool  editable)
inline

Sets whether the item is editable.

void TransferPoints::setEnabled ( bool  enabled)
slot

Sets whether the item is enabled, an enabled widget handles keyboard and mouse events

void TransferPoints::setPointLock ( int  pos,
LockType  lock 
)
inline

Locks the "Point" to a Border #LockType

void TransferPoints::setPoints ( const QVector< TPoint > &  points)

Sets the points of the transferfunction

void TransferPoints::setPointSize ( const QSizeF &  size)
inline

Sets the size of a Point as QSizeF ( int width, int height )

void TransferPoints::setShapeBrush ( const QBrush &  brush)
inline

Defines the apperance of the Shape filling, with a QBrush

void TransferPoints::setShapePen ( const QPen &  pen)
inline

Defines the apperance of the ShapeLine, with a QPen

void TransferPoints::setSortType ( SortType  sortType)
inline
Sets the sortType 

#SortType

SortType TransferPoints::sortType ( ) const
inline

Returns the sortType which defines how the points are sortet

void TransferPoints::updateHistogram ( double *  histogram,
int  size 
)
slot

Updates the histogramm

void TransferPoints::updateMode ( int  mode)
slot

Modus of Transferfunction 0... 1D TF 1... 1D Gradient

void TransferPoints::updateValues ( glm::vec2 *  values,
int  size 
)
slot

Update values


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