#include <mitkPseudocolorWidgetModel.h>
Inherits mitkWidgetModel2D.
Inheritance diagram for mitkPseudocolorWidgetModel:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
virtual int | Render (mitkScene *scene) |
virtual void | Pick (const WidgetNames &names) |
virtual void | Release () |
void | SetStartPoint (int x, int y) |
void | SetMovePoint (int x, int y) |
void | SetEndPoint (int x, int y) |
int | GetWidth () |
int | GetHeight () |
int | GetLeft () |
int | GetRight () |
int | GetBottom () |
int | GetTop () |
void | GetStartPoint (int &sx, int &sy) |
void | GetStartPoint (int p[2]) |
void | GetEndPoint (int &ex, int &ey) |
void | GetEndPoint (int p[2]) |
bool | IsValid () |
int | SetColorTable (unsigned char table[][3], int colorNum=COLOR_TABLE_SIZE) |
void | ResetColorTable () |
int | GetColorTable (unsigned char table[][3], int colorNum=COLOR_TABLE_SIZE) |
virtual mitkVolume * | GetRegionMask () |
Protected Member Functions | |
virtual void | _onMouseDown (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos) |
virtual void | _onMouseUp (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos) |
virtual void | _onMouseMove (bool ctrlDown, bool shiftDown, int xPos, int yPos, int deltaX, int deltaY) |
mitkPseudocolorWidgetModel is a 2D widget for displaying pseudocolor image. It can respond the mouse events and display the pseudocolor image of current rectangle part and return the width and height. It is supposed to be attached to a 2D data model (e.g. mitkImageModel) and add to a 2D scene (e.g. mitkImageScene), and in other conditions the display could be improper.
|
Deal with mouse down event.
Implements mitkWidgetModel. |
|
Deal with mouse move event.
Implements mitkWidgetModel. |
|
Deal with mouse up event.
Implements mitkWidgetModel. |
|
Get the bottom of the pseudocolor rectangle.
|
|
Get color table.
|
|
Get the end point of the pseudocolor rectangle.
|
|
Get the end point of the pseudocolor rectangle.
|
|
Get the height of the pseudocolor rectangle.
|
|
Get the left of the pseudocolor rectangle.
|
|
Get mask image where the value of widget region is 255 and the rest is 0.
Reimplemented from mitkWidgetModel2D. |
|
Get the right of the pseudocolor rectangle.
|
|
Get the start point of the pseudocolor rectangle.
|
|
Get the start point of the pseudocolor rectangle.
|
|
Get the top of the pseudocolor rectangle.
|
|
Get the width of the pseudocolor rectangle.
|
|
If the widget model is valid.
|
|
Maintain the selection status when this widget is picked.
Implements mitkWidgetModel. |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkWidgetModel2D. |
|
Maintain the selection status when this widget is released. Implements mitkWidgetModel. |
|
Render this model.
Reimplemented from mitkModel. |
|
Reset the color table to the default values. |
|
Set color table.
|
|
Set the end point of the pseudocolor image rectangle draged by mouse.
|
|
Set position of the moving end point.
|
|
Set the start point of the pseudocolor image rectangle draged by mouse.
|