#include <mitkImageView.h>
Inherits mitkView.
Inheritance diagram for mitkImageView:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
void | GetDataValueAndCoordinate (int mIdx, int x, int y, int &vx, int &vy, int &vz, float &rValue, float &gValue, float &bValue) |
void | GetVolumeCoordinate (int mIdx, int x, int y, int &vx, int &vy, int &vz) |
void | GetViewCoordinate (int mIdx, int vx, int vy, int vz, int &sx, int &sy) |
void | AdjustWidthCenter (float deltX, float deltY) |
float | GetWindowWidth () |
float | GetWindowCenter () |
void | SetWindowWidth (float winWidth) |
void | SetWindowCenter (float winCenter) |
void | ResetWindowWidthCenter () |
void | EnableCrossArrow () |
void | DisableCrossArrow () |
void | SetCrossArrow (bool isEnabled) |
bool | GetCrossArrow () |
void | SetCrossArrowWidth (int width) |
void | SetCrossArrowHeight (int height) |
int | GetCrossArrowWidth () |
int | GetCrossArrowHeight () |
void | SetCrossArrowPositionX (float xPos) |
void | SetCrossArrowPositionY (float yPos) |
void | SetCrossArrowPosition (int mIdx, int vx, int vy) |
float | GetCrossArrowPositionX () |
float | GetCrossArrowPositionY () |
void | ResetCrossArrowPosition () |
mitkImageView is a 2d view to display 2-dimensional images. The purpose of providing it is for the convenience. To display 2d images, you must create one or several image models(mitkImageModel) firstly, then add them using the function
AddModel()
mitkImageView *aView = new mitkImageView; //Set the parent window, and fill out the whole parent window aView->SetParent(parentWindowId); aView->SetLeft(0); aView->SetTop(0); aView->SetWidth(parentWindowWidth); aView->SetHeight(parentWindowHeight); aView->Show();
|
Adjust the window width and window center of this view
|
|
Set the cross arrow to disable. If the cross arrow is enabled, the view will draw a cross arrow and a rectangle centered in the cross. |
|
Set the cross arrow to enable. If the cross arrow is enabled, the view will draw a cross arrow and a rectangle centered in the cross. |
|
Get the status of cross arrow. If the cross arrow is enabled, the view will draw a cross arrow and a rectangle centered in the cross.
|
|
Get the height of the rectangle associated with the cross arrow.
|
|
Get the x coordinate of the cross arrow center.
|
|
Get the y coordinate of the cross arrow center.
|
|
Get the width of the rectangle associated with the cross arrow.
|
|
Get the data value and volume coordinate at a specified view coordinate.
|
|
Get the view (screen) coordinate at a specified volume coordinate.
|
|
Get the volume coordinate at a specified view coordinate.
|
|
Get the window center of this view
|
|
Get the window width of this view
|
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkView. |
|
Reset the center position and the rectangle size to the default value. |
|
Reset the window width and center to the default value. |
|
Set the status of cross arrow. If the cross arrow is enabled, the view will draw a cross arrow and a rectangle centered in the cross.
|
|
Set the height of the rectangle associated with the cross arrow.
|
|
Set the cross arrow position according the volume coordinates of the mIdx'th model.
|
|
Set the x coordinate of the cross arrow center.
|
|
Set the y coordinate of the cross arrow center.
|
|
Set the width of the rectangle associated with the cross arrow.
|
|
Set the window center of this view
|
|
Set the window width of this view
|