#include <mitkPickManipulator.h>
Inherits mitkManipulator.
Inherited by mitkImageViewManipulatorWithWidgets, and mitkWidgetsViewManipulator.
Inheritance diagram for mitkPickManipulator:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
void | ClearPickResult () |
mitkWidgetModel * | GetPickedObject () |
mitkPickManipulator is a manipulator with picking function enabled. Manipulators who need to pick objects in the scene should derive from this class. In your derived class, use protected function _pick() to do the picking operation. If it returns a "true", something was picked and the information of the picked object was put into a WidgetNames struct member : m_PickedWidgets. The protected member m_PickBox indicates the precision of the picking operation. Smaller means preciser. The protected member m_EnableDepthTest indicates if the picking function deal with the depth information when multiple objects are at the same position on screen. The default value is "true", which means the picking function will test the depth of all the objects and return the most front object. In your derived class, you can set it to "false", which means no depth test will be done, and picked object will be the one rendered at last.
The WidgetNames struct is defined as follows:
typedef struct _widget_names { mitkWidgetModel *owner; // a pointer to the widget which was picked GLuint name1; // name1 to name3 indicate the picked parts of the widget GLuint name2; GLuint name3; } WidgetNames;
|
Clear picked results. |
|
Get current picked widget.
|
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkManipulator. Reimplemented in mitkImageViewManipulatorWithWidgets, and mitkWidgetsViewManipulator. |