SoView2DExample¶
- InventorModule¶
 genre
author
package
dll
definition
see also
inherits from
keywords
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.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
 
Parameter Fields¶
Field Index¶
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
Visible Fields¶
Drawing On¶
- name: drawingOn, type: Bool, default: TRUE¶
 
Editing On¶
- name: editingOn, type: Bool, default: TRUE¶
 
Color¶
- name: color, type: Color, default: 1 1 1¶