vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrecko::CAINFO__VER1 Struct Reference

#include <ControllableAbility.h>

Inheritance diagram for vrecko::CAINFO__VER1:
vrecko::CAINFO__VER2

Public Types

enum  CAType { Unknown = 0, SimpleVREdit = 1, AbilityMapper = 2, DummyCATypeToDWORD = 0xFFFFFFFF }
 

Public Attributes

unsigned long dwSize
 
CAType type
 
unsigned long dwFlags
 

Member Enumeration Documentation

Type of the ability.

Enumerator
Unknown 

Unknown type, something completely new.

SimpleVREdit 

Simple editing ability. What does it mean to the ability programmer? Basically you need only to implement activate() / deactivate() and possibly update() (and fillDefaultInfo(), of course). Everything else is done automatically, you ability activate() function will be called when the user presses a button and the deactivate() will be called when the same button will be released. You may disable the automatic ability deactivation upon mouse release by including the CAINFO_FLAGS_NO_AUTO_DEACTIVATE flag in [dwFlags]. What does it mean to the controlling ability? Issue the "ActivePointerID" requests upon mouse button press and release. If CAINFO_FLAGS_NO_AUTO_DEACTIVATE is specified in [dwFlags] then do not issue the release request.

AbilityMapper 

An ability to map other abilities to finger presses. Requires some additional communication with the EditorController. There will be probably only one ability of such type.

DummyCATypeToDWORD 

Just to have this enum sized to 4 bytes.

Member Data Documentation

unsigned long vrecko::CAINFO__VER1::dwFlags

Flags. A combination of CAINFO_FLAGS_* constants.

unsigned long vrecko::CAINFO__VER1::dwSize

Size of the structure.

CAType vrecko::CAINFO__VER1::type

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