MeVisLab Toolbox Reference
ManagedActionTrigger Class Reference

ManagedActionTrigger is a base class for all triggers of managed interactions. More...

#include <ManagedActionTrigger.h>

Inheritance diagram for ManagedActionTrigger:
ManagedKeyboardShortcut ManagedMouseButtonTrigger ManagedOffsetTrigger ManagedMouseWheelTrigger

Public Types

enum  {
  NoModifier = 0 , ShiftModifier = 0x10 , ControlModifier = 0x20 , AltModifier = 0x40 ,
  AllModifiersMask = 0x70
}
 Constants to use where keyboard modifiers must be specified. More...
 
enum  { Button1Mask = 1 , Button2Mask = 2 , Button3Mask = 4 , AllButtonsMask = 0x07 }
 Same for mouse buttons: More...
 

Static Public Member Functions

Utility functions

Splits a string at given character.

Do not split at last character of string if doNotSplitAtLastChar is set

static std::list< std::string > splitString (const std::string &s, char c, bool doNotSplitAtLastChar=false)
 
static std::string strip (const std::string &s)
 Strips whitespaces away. More...
 
template<typename T >
static std::string join (const std::list< T > &l, const std::string &s)
 Joins a list of objects having a .toString() method, using a separator string s. More...
 

Detailed Description

ManagedActionTrigger is a base class for all triggers of managed interactions.

It implements some utility methods.

Definition at line 51 of file ManagedActionTrigger.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Constants to use where keyboard modifiers must be specified.

Modifiers usually can be combined with the bit-wise-or operator (|).

Enumerator
NoModifier 

No modifier key.

ShiftModifier 

Shift modifier key.

ControlModifier 

Control modifier key.

AltModifier 

Alt modifier key.

AllModifiersMask 

All modifier keys.

Definition at line 56 of file ManagedActionTrigger.h.

◆ anonymous enum

anonymous enum

Same for mouse buttons:

Enumerator
Button1Mask 

Left button.

Button2Mask 

Middle button.

Button3Mask 

Right button.

AllButtonsMask 

All buttons.

Definition at line 65 of file ManagedActionTrigger.h.

Member Function Documentation

◆ join()

template<typename T >
std::string ManagedActionTrigger::join ( const std::list< T > &  l,
const std::string &  s 
)
static

Joins a list of objects having a .toString() method, using a separator string s.

Definition at line 85 of file ManagedActionTrigger.h.

◆ splitString()

static std::list<std::string> ManagedActionTrigger::splitString ( const std::string &  s,
char  c,
bool  doNotSplitAtLastChar = false 
)
static

◆ strip()

static std::string ManagedActionTrigger::strip ( const std::string &  s)
static

Strips whitespaces away.


The documentation for this class was generated from the following file: