MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoView2D/SoView2DExtension.h File Reference

SoView2DExtension is base class for all View2DExtensions and is used for drawing and event handling on the View2D. More...

#include "SoView2DSystem.h"
#include "XVEnterScope.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 "XVLeaveScope.h"
#include <SoInteractionProviderNode.h>

Go to the source code of this file.

Classes

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...

Defines

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

Typedefs

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

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...

Detailed Description

SoView2DExtension is base class for all View2DExtensions and is used for drawing and event handling on the View2D.

Author:
Florian Link
Date:
12/2001

Definition in file SoView2DExtension.h.


Define Documentation

#define EventContainer   View2DEvent

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

Definition at line 180 of file SoView2DExtension.h.

#define EventPhase   View2DEventPhase

Definition at line 181 of file SoView2DExtension.h.

#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 59 of file SoView2DExtension.h.

#define TRISTATE

Definition at line 44 of file SoView2DExtension.h.


Typedef Documentation

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


Enumeration Type Documentation

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 78 of file SoView2DExtension.h.

mode used for event filter

Enumerator:
IGNORED 
PRESSED 
RELEASED 

Definition at line 46 of file SoView2DExtension.h.