Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkTransferFunction2DRGBA Class Reference

#include <mitkTransferFunction2DRGBA.h>

Inherits mitkTransferFunction.

Inheritance diagram for mitkTransferFunction2DRGBA:

Inheritance graph
[legend]
Collaboration diagram for mitkTransferFunction2DRGBA:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int GetDimension ()
float * GetRed ()
float * GetGreen ()
float * GetBlue ()
float * GetAlpha ()
void SetMax (int maxX, int maxY)
int GetMaxX ()
int GetMaxY ()
bool AddClassifier (mitkTF2DRGBAClassifier *Classifier)
bool RemoveClassifier (mitkTF2DRGBAClassifier *Classifier)
bool RemoveAllClassifiers ()
bool IsModified ()
void SetUnmodified ()
void Update ()

Detailed Description

mitkTransferFunction2DRGBA - a concrete 2D transfer function to map the data property (value and gredient) to opacity and color

mitkTransferFunction2DRGBA is a 2D transfer function to map the data property, including scalar value, gradient value, etc., to opacity and color. The transfer function is generated by combining classifiers that added to it.


Member Function Documentation

bool mitkTransferFunction2DRGBA::AddClassifier mitkTF2DRGBAClassifier Classifier  ) 
 

Add a classifier to the transfer function

Parameters:
Classifier Specify the classifier to be added to the transfer function
Returns:
Return true if the addition is successful

float* mitkTransferFunction2DRGBA::GetAlpha  ) 
 

Get alpha channel values of the transfer function\

Returns:
Return alpha channel values of the transfer function

float* mitkTransferFunction2DRGBA::GetBlue  ) 
 

Get blue channel values of the transfer function

Returns:
Return blue channel values of the transfer function

virtual int mitkTransferFunction2DRGBA::GetDimension  )  [inline, virtual]
 

Get the dimensionality of this transfer function.

Returns:
always return 2

Implements mitkTransferFunction.

float* mitkTransferFunction2DRGBA::GetGreen  ) 
 

Get green channel values of the transfer function

Returns:
Return green channel values of the transfer function

int mitkTransferFunction2DRGBA::GetMaxX  )  [inline]
 

Get Max value

Returns:
Return max value

int mitkTransferFunction2DRGBA::GetMaxY  )  [inline]
 

Get Max gradient

Returns:
Return Max gradient

float* mitkTransferFunction2DRGBA::GetRed  ) 
 

Get red channel values of the transfer function

Returns:
Return red channel values of the transfer function

bool mitkTransferFunction2DRGBA::IsModified  )  [inline]
 

Return the modified status of the transfer function Be sure to call Update to apply changes to classifiers

Returns:
true is the transfer function is modified

bool mitkTransferFunction2DRGBA::RemoveAllClassifiers  ) 
 

Remove all classifiers from the transfer function

Returns:
Return true if all removal is successful

bool mitkTransferFunction2DRGBA::RemoveClassifier mitkTF2DRGBAClassifier Classifier  ) 
 

Remove a classifier from the transfer function

Parameters:
Classifier Specify the classifier to be removed from the transfer function
Returns:
Return true if the removal is successful

void mitkTransferFunction2DRGBA::SetMax int  maxX,
int  maxY
 

Set Max value and gradient

Parameters:
maxX Specify max value
maxY Specify max gradient

void mitkTransferFunction2DRGBA::SetUnmodified  )  [inline]
 

Set the the modified status of the transfer function to false

Reimplemented from mitkTransferFunction.

void mitkTransferFunction2DRGBA::Update  ) 
 

Apply all changes to classifiers as well as changes to the classifier membership. If any change is made, the modified status of the transfer function is set to true.


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:06:56 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3