SoView2DExample¶
-
InventorModule
¶ genre Examples
author MeVis Medical Solutions AG
package MeVisLab/Examples
dll SoView2DExample
definition SoView2DExample.def see also SoView2D
,SimpleAddExample
,ProcessAllPagesExample
inherits from SoView2DExtension
keywords example
,SoView2D
,Extension
Purpose¶
The module SoView2DExample
is a programming example to demonstrate how to develop a new SoView2DExtension which draws its own OpenGL stuff on slices in 2D viewers.
It derives from the SoView2DExtension class and needs to be connected somewhere before a SoView2D in the Open Inventor scene graph to become active.
The programmer can handle viewer events as well as OpenGL drawings on each slice shown in a viewer. Also a definition of colors, mouse buttons and different event phases is possible.
Have a close look to the source code of the SoView2DExample project for detailed programming information.
Parameter Fields¶
Field Index¶
alt : Enum |
createNewModeRequest : Trigger |
needsValidVoxel : Bool |
Button1 : Enum |
cursorShape : Enum |
renderOnSlab : Bool |
Button2 : Enum |
Drawing On : Bool |
selectionTolerance : Float |
Button3 : Enum |
Editing On : Bool |
setEventHandled : Bool |
clipToSlice : Bool |
fixZOn : Bool |
shift : Enum |
Color : Color |
ignoreHandledEvents : Bool |
wantsAllEvents : Bool |
control : Enum |
interactionProviderID : String |
wantsKeyEvents : Bool |
createNewMode : Bool |
maskValid : Bool |
wantsMouseWheelEvents : Bool |