MeVisLab Toolbox Reference
SoView2DExtension.h File Reference
#include "SoView2DSystem.h"
#include <ThirdPartyWarningsDisable.h>
#include <Inventor/nodes/SoNode.h>
#include <Inventor/nodes/SoSubNode.h>
#include <Inventor/fields/SoSFFloat.h>
#include <Inventor/fields/SoSFBool.h>
#include <Inventor/fields/SoSFTrigger.h>
#include <Inventor/fields/SoSFEnum.h>
#include <Inventor/fields/SoSFColor.h>
#include <Inventor/sensors/SoNodeSensor.h>
#include <Inventor/nodes/SoGroup.h>
#include <Inventor/events/SoEvent.h>
#include <Inventor/events/SoMouseButtonEvent.h>
#include <Inventor/events/SoSpaceballButtonEvent.h>
#include <Inventor/events/SoKeyboardEvent.h>
#include <Inventor/events/SoLocation2Event.h>
#include <Inventor/events/SoMotion3Event.h>
#include <ThirdPartyWarningsRestore.h>
#include <SoInteractionProviderNode.h>
#include <mlGLHiDPI.h>

Go to the source code of this file.

Classes

struct  SoView2DDrawingSettings
 Drawing settings that can be overwritten by extensions. More...
 
class  View2DEvent
 View2DEvent stores all information on an event on a SoView2D. More...
 
class  SoView2DExtension
 SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View2D. More...
 

Macros

#define TRISTATE
 
#define TEST_STATE(state, flag)   (((state)==IGNORED)?TRUE:(((state)==PRESSED)==((flag)!=0)))
 TEST_STATE returns TRUE if tristate matches boolean flag. More...
 
#define EventContainer   View2DEvent
 deprecated old names, still defined but should NOT be used any more More...
 
#define EventPhase   View2DEventPhase
 
#define VIEW2D_DEFINE_LINE_STYLE_ENUM
 
#define VIEW2D_ADD_LINE_STYLE_FIELD(lineStyleField)
 

Enumerations

enum  tristateType { IGNORED , PRESSED , RELEASED }
 mode used for event filter More...
 
enum  View2DEventPhase {
  EVENT_START , EVENT_MOTION , EVENT_RELEASE , EVENT_KEY_PRESSED ,
  EVENT_KEY_RELEASED , EVENT_ANY , EVENT_MOUSEWHEEL , EVENT_MOUSEOVER_UPDATE
}
 event phase for simple extensions that grab the focus, do something (motion) and are released afterwards More...
 
enum  LineStyles { SOLID , DOTTED , DASHED , LONG_DASHED }
 Definition of line styles for stippling. More...
 

Macro Definition Documentation

◆ EventContainer

#define EventContainer   View2DEvent

deprecated old names, still defined but should NOT be used any more

Definition at line 198 of file SoView2DExtension.h.

◆ EventPhase

#define EventPhase   View2DEventPhase

Definition at line 199 of file SoView2DExtension.h.

◆ TEST_STATE

#define TEST_STATE (   state,
  flag 
)    (((state)==IGNORED)?TRUE:(((state)==PRESSED)==((flag)!=0)))

TEST_STATE returns TRUE if tristate matches boolean flag.

state is a tristate, flag is a boolean state | flag | result IGNORED | TRUE | TRUE IGNORED | FALSE | TRUE PRESSED | TRUE | TRUE PRESSED | FALSE | FALSE RELEASED | TRUE | FALSE RELEASED | FALSE | TRUE

Definition at line 74 of file SoView2DExtension.h.

◆ TRISTATE

#define TRISTATE

Definition at line 59 of file SoView2DExtension.h.

◆ VIEW2D_ADD_LINE_STYLE_FIELD

#define VIEW2D_ADD_LINE_STYLE_FIELD (   lineStyleField)
Value:
SO_NODE_ADD_FIELD(lineStyleField, (SOLID)); \
SO_NODE_SET_SF_ENUM_TYPE(lineStyleField, LineStyles);
LineStyles
Definition of line styles for stippling.
@ SOLID

Definition at line 216 of file SoView2DExtension.h.

◆ VIEW2D_DEFINE_LINE_STYLE_ENUM

#define VIEW2D_DEFINE_LINE_STYLE_ENUM
Value:
SO_NODE_DEFINE_ENUM_VALUE(LineStyles, SOLID); \
SO_NODE_DEFINE_ENUM_VALUE(LineStyles, DASHED); \
SO_NODE_DEFINE_ENUM_VALUE(LineStyles, DOTTED); \
SO_NODE_DEFINE_ENUM_VALUE(LineStyles, LONG_DASHED);
@ DOTTED
@ DASHED
@ LONG_DASHED

Definition at line 210 of file SoView2DExtension.h.

Enumeration Type Documentation

◆ LineStyles

enum LineStyles

Definition of line styles for stippling.

Enumerator
SOLID 
DOTTED 
DASHED 
LONG_DASHED 

Definition at line 202 of file SoView2DExtension.h.

◆ tristateType

mode used for event filter

Enumerator
IGNORED 
PRESSED 
RELEASED 

Definition at line 61 of file SoView2DExtension.h.

◆ View2DEventPhase

event phase for simple extensions that grab the focus, do something (motion) and are released afterwards

Enumerator
EVENT_START 

mouse mask of extension has become true (correct button+key combination)

EVENT_MOTION 

Motion while mask is still true.

EVENT_RELEASE 

Mask of extension has become false.

EVENT_KEY_PRESSED 

Key was pressed.

EVENT_KEY_RELEASED 

Key was released.

EVENT_ANY 

Event phase is undefined and has to be checked by getEvent() method.

EVENT_MOUSEWHEEL 

Mouse wheel was turned.

EVENT_MOUSEOVER_UPDATE 

An update was requested because a redraw is about to happen and the extension should show actual values.

Definition at line 96 of file SoView2DExtension.h.