Classes | |
class | AtomicScalar |
Structure which has built in atomic arithmetic operators which can be performed on 32-bit variables (e.g. More... | |
struct | DeviceInitInfo |
Structure to hold information about an available Device. More... | |
class | ConcurrentQueue |
ConcurrentQueue is an unbounded FIFO (First-In First-Out) data structure that permits producers and consumers on multiple threads of execution to concurrently push and pop elements. More... | |
class | DebugRenderer |
The DebugRenderer provides utilities to draw elements used in a haptic scene. More... | |
struct | DeviceState |
Structure holding data describing the state of a device, excluding calibration state. More... | |
class | DeviceEvent |
Class containing information about a device event. More... | |
class | DeviceListener |
DeviceListener is an interface class which can be implemented to receive event notifications from Device instances. More... | |
class | Device |
Device defines the interface all concrete haptic device subclasses must implement. More... | |
class | EventArgs |
Base class all event arguments must extend. More... | |
class | Exception |
Specialised Ogre::Exception which is used to signal errors inside the library. More... | |
class | DuplicateItemException |
class | HapticsAPIException |
class | InternalErrorException |
class | InvalidArgumentsException |
class | InvalidOperationException |
class | ItemNotFoundException |
class | ExceptionFactory |
Class implementing dispatch methods in order to construct by-value exceptions of a derived type based on an exception code. More... | |
class | ForceEffect |
A ForceEffect provides a way to render forces to a Device to simulate arbitrary sensations. More... | |
class | ForceEffectAlgorithm |
ForceEffectAlgorithm is used for the actual force calculations for the haptic rendering of a ForceEffect. More... | |
class | ForceEffectAlgorithmFactory |
Abstract class defining the interface to be implemented by creators of ForceEffectAlgorithm subclasses. More... | |
class | ForceEffectManager |
Manages force effects, force effect scripts (templates) and the available algorithm factories. More... | |
class | ForceOutput |
ForceOutput is a simple structure holding data that will be output by a Device. More... | |
struct | FrameEvent |
class | FrameListener |
class | NonCopyable |
NonCopyable provides the base implementation for all classes which should not be copyable through either copy constructors and assignment operators. More... | |
class | RenderSystem |
Abstract class defining the interface of a haptics rendering system, through which API wide settings and schedulers can be controlled. More... | |
class | System |
System is the root class of the OgreHaptics system. More... | |
class | Timer |
Abstract class defining the interface of a Timer to be implemented by rendering systems. More... | |
class | ConfigDialog |
Typedefs | |
typedef std::vector < DeviceInitInfo > | DeviceInfoList |
A list of DeviceInfo entries. | |
typedef std::map< String, Device * > | DeviceMap |
A map of named Device instances. | |
typedef ConstMapIterator < DeviceMap > | ConstDeviceIterator |
A const iterator over a map of String/Device entries. | |
typedef SchedulerCallbackCode | SchedulerCallback (void *params) |
Definition of the signature of a callback called from the haptic thread. | |
typedef unsigned int | EventType |
Used to identify the type of event in i.e. | |
typedef std::vector < ForceEffectAlgorithm * > | ForceEffectAlgorithmList |
A list of ForceEffectAlgoritms. | |
typedef std::vector < RenderSystem * > | RenderSystemList |
A list of RenderSystem instances. | |
Enumerations | |
enum | SchedulerCallbackCode { SCC_DONE, SCC_CONTINUE } |
Enumeration of types of exit codes for callbacks scheduled from the haptic thread. More... | |
enum | DebugRenderMode { DRM_TOUCH_WORKSPACE = 0x01, DRM_STYLUS = 0x02 } |
Enumeration of possible elements to render using the DebugRenderer. More... | |
enum | DeviceButton { DB_NO_BUTTON = 0, DB_BUTTON1 = 0x01, DB_BUTTON2 = 0x02, DB_BUTTON3 = 0x04, DB_BUTTON4 = 0x08, DB_INKWELL = DB_BUTTON3, DB_SAFETY = DB_BUTTON4 } |
Enumeration of the buttons found on the device, if available. More... | |
enum | DeviceCalibrationState { DCS_NOT_INITIALISED, DCS_NEEDS_CALIBRATION, DCS_CALIBRATED } |
Enumeration of possible states of calibration of a Device. More... | |
enum | DeviceCalibrationType { DCT_UNKNOWN, DCT_AUTO, DCT_INKWELL, DCT_PULL_PUSH, DCT_RESET_POSITION } |
Enumeration of possible ways devices are calibrated during run-time. More... | |
enum | ForceEffectState { FES_INACTIVE, FES_STARTING, FES_FADING_IN, FES_SUSTAINING, FES_FADING_OUT } |
Enumeration of possible states a ForceEffect can be in. More... | |
enum | ForceEffectSustainMode { FESM_TEMPORAL, FESM_PERSISTANT } |
Enumeration of possible modes of the sustaining state of a ForceEffect. More... | |
enum | ForceEffectTimeType { FETT_TOTAL, FETT_CURRENT_STATE } |
Enumeration of possible types of remaining time of a ForceEffect to be rendered through a Device. More... | |
Functions | |
void | memoryReadWriteBarrier (void) |
Issues a full memory barrier. | |
template<typename T> | |
T | atomicIncrement (volatile T *ptr) |
Atomically increments (increases by 1) the value of the 32-bit variable pointed to by the ptr parameter. | |
template<typename T> | |
T | atomicDecrement (volatile T *ptr) |
Atomically decrements (decreases by 1) the value of the 32-bit variable pointed to by the ptr parameter. | |
template<typename T> | |
T | atomicExchange (volatile T *ptr, T value) |
Sets the value of the 32-bit variable pointed to by the ptr parameter to the given value. | |
template<typename T> | |
T * | atomicExchangePtr (T *volatile *ptr, T *value) |
Sets the address to which the given ptr parameter will point to the given value. | |
template<typename T> | |
T | atomicExchangeAndAdd (volatile T *ptr, T value) |
Adds the given 32-bit value to the 32-bit variable pointed to by the given ptr. | |
template<typename T> | |
T | atomicExchangeAndSubtract (volatile T *ptr, T value) |
Subtracts the given 32-bit value from the 32-bit variable pointed to by the given ptr. | |
template<typename T> | |
bool | atomicCompareAndSwap (volatile T *ptr, T oldValue, T newValue) |
Sets the value of the 32-bit target variable to the given new value if the old value of the target variable equals the given old value. | |
template<typename T> | |
bool | atomicCompareAndSwapPtr (T *volatile *ptr, T *oldValue, T *newValue) |
Sets the value of the target pointer to the new value if the old value of the target pointer equals the given old value. |
typedef ConstMapIterator<DeviceMap> OgreHaptics::ConstDeviceIterator |
A const iterator over a map of String/Device entries.
Definition at line 47 of file OgreHapticsCommon.h.
typedef std::vector<DeviceInitInfo> OgreHaptics::DeviceInfoList |
typedef std::map<String, Device*> OgreHaptics::DeviceMap |
typedef unsigned int OgreHaptics::EventType |
Used to identify the type of event in i.e.
a event queue.
Definition at line 32 of file OgreHapticsEvent.h.
typedef std::vector<ForceEffectAlgorithm*> OgreHaptics::ForceEffectAlgorithmList |
typedef std::vector<RenderSystem*> OgreHaptics::RenderSystemList |
typedef SchedulerCallbackCode OgreHaptics::SchedulerCallback(void *params) |
Definition of the signature of a callback called from the haptic thread.
params | A pointer to parameters passed from the callback. |
Definition at line 79 of file OgreHapticsCommon.h.
Enumeration of possible elements to render using the DebugRenderer.
DRM_TOUCH_WORKSPACE |
The touch workspace of any Device.
|
DRM_STYLUS |
The stylus of any Device.
|
Definition at line 32 of file OgreHapticsDebugRenderer.h.
Enumeration of the buttons found on the device, if available.
This enumeration does include buttons found on the stylus/grip.
Definition at line 66 of file OgreHapticsDevice.h.
Enumeration of possible states of calibration of a Device.
DCS_NOT_INITIALISED |
The Device has not yet been initialised.
|
DCS_NEEDS_CALIBRATION |
The Device needs to be calibrated.
|
DCS_CALIBRATED |
The Device has been calibrated.
|
Definition at line 95 of file OgreHapticsDevice.h.
Enumeration of possible ways devices are calibrated during run-time.
Definition at line 111 of file OgreHapticsDevice.h.
Enumeration of possible states a ForceEffect can be in.
Definition at line 35 of file OgreHapticsForceEffect.h.
Enumeration of possible modes of the sustaining state of a ForceEffect.
FESM_TEMPORAL | Specifies the sustaining state is temporal and will last for the set sustain duration. |
FESM_PERSISTANT | Specifies the sustaining state is persistant and will last until the ForceEffect is stopped explicitly. |
Definition at line 56 of file OgreHapticsForceEffect.h.
Enumeration of possible types of remaining time of a ForceEffect to be rendered through a Device.
FETT_TOTAL |
Use this to query the total remaining time of a ForceEffect.
|
FETT_CURRENT_STATE | Use this to query the remaining time of the current state a ForceEffect is in. |
Definition at line 74 of file OgreHapticsForceEffect.h.
Enumeration of types of exit codes for callbacks scheduled from the haptic thread.
Definition at line 53 of file OgreHapticsCommon.h.
bool OgreHaptics::atomicCompareAndSwap | ( | volatile T * | ptr, | |
T | oldValue, | |||
T | newValue | |||
) |
Sets the value of the 32-bit target variable to the given new value if the old value of the target variable equals the given old value.
true
if the compare-and-swap operation was successfull, false
otherwise Definition at line 165 of file OgreHapticsAtomic.h.
Referenced by OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::allocateHazardPtr(), OgreHaptics::AtomicScalar< OgreHaptics::DeviceCalibrationState >::compareAndSwap(), and OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::retireHazardPtr().
bool OgreHaptics::atomicCompareAndSwapPtr | ( | T *volatile * | ptr, | |
T * | oldValue, | |||
T * | newValue | |||
) |
Sets the value of the target pointer to the new value if the old value of the target pointer equals the given old value.
true
if the compare-and-swap operation was successfull, false
otherwise Definition at line 182 of file OgreHapticsAtomic.h.
Referenced by OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::allocateHazardPtr(), OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::pop(), and OgreHaptics::ConcurrentQueue< OgreHaptics::EventArgs * >::push().
T OgreHaptics::atomicDecrement | ( | volatile T * | ptr | ) |
Atomically decrements (decreases by 1) the value of the 32-bit variable pointed to by the ptr parameter.
Definition at line 80 of file OgreHapticsAtomic.h.
Referenced by OgreHaptics::AtomicScalar< OgreHaptics::DeviceCalibrationState >::operator--().
T OgreHaptics::atomicExchange | ( | volatile T * | ptr, | |
T | value | |||
) |
Sets the value of the 32-bit variable pointed to by the ptr parameter to the given value.
Definition at line 94 of file OgreHapticsAtomic.h.
Referenced by OgreHaptics::AtomicScalar< OgreHaptics::DeviceCalibrationState >::operator=(), and OgreHaptics::AtomicScalar< OgreHaptics::DeviceCalibrationState >::set().
T OgreHaptics::atomicExchangeAndAdd | ( | volatile T * | ptr, | |
T | value | |||
) |
Adds the given 32-bit value to the 32-bit variable pointed to by the given ptr.
Definition at line 134 of file OgreHapticsAtomic.h.
Referenced by OgreHaptics::AtomicScalar< OgreHaptics::DeviceCalibrationState >::operator+=().
T OgreHaptics::atomicExchangeAndSubtract | ( | volatile T * | ptr, | |
T | value | |||
) |
Subtracts the given 32-bit value from the 32-bit variable pointed to by the given ptr.
Definition at line 149 of file OgreHapticsAtomic.h.
Referenced by OgreHaptics::AtomicScalar< OgreHaptics::DeviceCalibrationState >::operator-=().
T* OgreHaptics::atomicExchangePtr | ( | T *volatile * | ptr, | |
T * | value | |||
) |
Sets the address to which the given ptr parameter will point to the given value.
Definition at line 112 of file OgreHapticsAtomic.h.
T OgreHaptics::atomicIncrement | ( | volatile T * | ptr | ) |
Atomically increments (increases by 1) the value of the 32-bit variable pointed to by the ptr parameter.
Definition at line 66 of file OgreHapticsAtomic.h.
Referenced by OgreHaptics::AtomicScalar< OgreHaptics::DeviceCalibrationState >::operator++().
void OgreHaptics::memoryReadWriteBarrier | ( | void | ) |
Last modified Tue Jan 6 22:31:25 2009