40#ifndef _RSO_INTERFACE_1_H
41#define _RSO_INTERFACE_1_H
103 virtual void SetResource(
const char* resourceName,
const char* resourceVal ) = 0;
138 const Vector& logicalCoords,
140 const Vector& directionVector,
191 inline void Set(
float x,
float y,
float z )
199 inline float X() {
return _x; }
202 inline float Y() {
return _y; }
205 inline float Z() {
return _z; }
222 _data[ 0 ] = data[ 0 ];
223 _data[ 1 ] = data[ 1 ];
224 _data[ 2 ] = data[ 2 ];
225 _data[ 3 ] = data[ 3 ];
226 _data[ 4 ] = data[ 4 ];
227 _data[ 5 ] = data[ 5 ];
228 _data[ 6 ] = data[ 6 ];
229 _data[ 7 ] = data[ 7 ];
230 _data[ 8 ] = data[ 8 ];
231 _data[ 9 ] = data[ 9 ];
232 _data[ 10 ] = data[ 10 ];
233 _data[ 11 ] = data[ 11 ];
234 _data[ 12 ] = data[ 12 ];
235 _data[ 13 ] = data[ 13 ];
236 _data[ 14 ] = data[ 14 ];
237 _data[ 15 ] = data[ 15 ];
287 inline void Set(
float a,
float b,
float c,
float d )
296 inline float A() {
return _a; }
299 inline float B() {
return _b; }
302 inline float C() {
return _c; }
305 inline float D() {
return _d; }
356 SHIFT_STATE = 0x00010000,
357 CAPS_LOCK_STATE = 0x00020000,
358 CTRL_STATE = 0x00040000,
359 ALT_STATE = 0x00080000,
360 NUM_LOCK_STATE = 0x00100000,
361 META_STATE = 0x00400000,
362 SCROLL_LOCK_STATE = 0x00800000,
363 BUTTON1_STATE = 0x01000000,
364 BUTTON2_STATE = 0x02000000,
365 BUTTON3_STATE = 0x04000000
470 KEY_BackSpace = 0xff08,
474 KEY_Scroll_Lock = 0xff14,
481 KEY_Page_Up = 0xff55,
482 KEY_Page_Down = 0xff56,
487 KEY_Num_Lock = 0xff7f,
489 KEY_KP_Enter = 0xff8d,
490 KEY_KP_Last = 0xffbd,
493 KEY_Shift_L = 0xffe1,
494 KEY_Shift_R = 0xffe2,
495 KEY_Control_L = 0xffe3,
496 KEY_Control_R = 0xffe4,
497 KEY_Caps_Lock = 0xffe5,
724 static inline unsigned int strlen(
const char* str )
727 while( str[ i ] !=
'\0' )
738 static inline char*
strcpy(
char* dest,
const char* src )
741 while( ( dest[ i ] = src[ i ] ) !=
'\0' )
Definition: rso_interface_1.h:310
bool _enabled
Whether or not culling is enabled.
Definition: rso_interface_1.h:312
PlaneClass _planes[6]
Array of six clipping planes to define the frustum.
Definition: rso_interface_1.h:313
Definition: rso_interface_1.h:636
virtual int HandleEvent(Event *ev)=0
Definition: rso_interface_1.h:322
unsigned short _eventType
Definition: rso_interface_1.h:347
unsigned short EventSubType()
Definition: rso_interface_1.h:384
unsigned short EventType()
Definition: rso_interface_1.h:377
unsigned short _eventSubtype
Definition: rso_interface_1.h:348
EventSubtypeEnum
Definition: rso_interface_1.h:336
@ MOUSE_DOWN
Definition: rso_interface_1.h:337
@ MOUSE_ENTER
Definition: rso_interface_1.h:342
@ MOUSE_UP
Definition: rso_interface_1.h:338
@ MOUSE_DRAG
Definition: rso_interface_1.h:340
@ MOUSE_MOVE
Definition: rso_interface_1.h:339
@ MOUSE_WHEEL_PLUS
Definition: rso_interface_1.h:344
@ MOUSE_LEAVE
Definition: rso_interface_1.h:341
@ MOUSE_WHEEL_MINUS
Definition: rso_interface_1.h:343
EventTypeEnum
Definition: rso_interface_1.h:326
@ EVENT_MOUSE
Definition: rso_interface_1.h:327
@ EVENT_KEYBOARD_UP
Definition: rso_interface_1.h:331
@ EVENT_OBJECT
Definition: rso_interface_1.h:330
@ EVENT_TIMER
Definition: rso_interface_1.h:329
@ EVENT_KEYBOARD
Definition: rso_interface_1.h:328
void EventType(unsigned short value)
Definition: rso_interface_1.h:381
void EventSubType(unsigned short value)
Definition: rso_interface_1.h:388
SpecialKeyState
Definition: rso_interface_1.h:354
Definition: rso_interface_1.h:464
void Modifiers(int value)
Definition: rso_interface_1.h:527
int KeySym()
Definition: rso_interface_1.h:516
int _keysym
Definition: rso_interface_1.h:505
int Modifiers()
Definition: rso_interface_1.h:523
int _modifiers
Definition: rso_interface_1.h:506
void KeySym(int value)
Definition: rso_interface_1.h:520
enum disti::RSOInterface1::KeyboardEvent::@6 KeySymCodeEnum
<
Definition: rso_interface_1.h:395
Vector _winLoc
Definition: rso_interface_1.h:397
void WinLoc(Vector value)
Definition: rso_interface_1.h:412
Vector WinLoc()
Definition: rso_interface_1.h:408
Definition: rso_interface_1.h:210
double _data[4 *4]
Raw column-major matrix data.
Definition: rso_interface_1.h:212
MatrixD(double *data)
Definition: rso_interface_1.h:220
Definition: rso_interface_1.h:417
void Modifiers(int value)
Definition: rso_interface_1.h:459
MouseButtonType
Definition: rso_interface_1.h:421
@ MOUSE_BUTTON_ANY
Definition: rso_interface_1.h:425
@ MOUSE_LBUTTON
Definition: rso_interface_1.h:422
@ MOUSE_RBUTTON
Definition: rso_interface_1.h:424
@ MOUSE_MBUTTON
Definition: rso_interface_1.h:423
int Modifiers()
Definition: rso_interface_1.h:455
int _modifiers
Definition: rso_interface_1.h:430
void Clicks(unsigned char value)
Definition: rso_interface_1.h:452
unsigned char _buttonMask
Definition: rso_interface_1.h:428
unsigned char Clicks()
Definition: rso_interface_1.h:448
void ButtonMask(unsigned char value)
Definition: rso_interface_1.h:445
unsigned char ButtonMask()
Definition: rso_interface_1.h:441
unsigned char _clicks
Definition: rso_interface_1.h:429
Definition: rso_interface_1.h:532
virtual void EventName(const char *value)
Definition: rso_interface_1.h:595
const char * EventData() const
Definition: rso_interface_1.h:610
char * _eventName
Definition: rso_interface_1.h:535
virtual void Initiator(const char *value)
Definition: rso_interface_1.h:573
const char * Initiator() const
Definition: rso_interface_1.h:566
char * _initiator
Definition: rso_interface_1.h:534
const char * EventName() const
Definition: rso_interface_1.h:588
virtual void EventData(const char *value)
Definition: rso_interface_1.h:617
char * _eventData
Definition: rso_interface_1.h:536
Definition: rso_interface_1.h:243
MatrixD * _projMatrix
The projection matrix.
Definition: rso_interface_1.h:246
MatrixD * _modelMatrix
The modelview matrix.
Definition: rso_interface_1.h:247
OpenGLMatrices(int *viewPort, MatrixD *projMatrix, MatrixD *modelMatrix)
Definition: rso_interface_1.h:259
int * _viewPort
Pointer to viewport array size 4.
Definition: rso_interface_1.h:245
Definition: rso_interface_1.h:268
float A()
Definition: rso_interface_1.h:296
void Set(float a, float b, float c, float d)
Definition: rso_interface_1.h:287
float _a
Coefficient to describe a 3D plane: aX + bY + cZ + d = 0.
Definition: rso_interface_1.h:270
float C()
Definition: rso_interface_1.h:302
float D()
Definition: rso_interface_1.h:305
float _c
Coefficient to describe a 3D plane: aX + bY + cZ + d = 0.
Definition: rso_interface_1.h:272
float _b
Coefficient to describe a 3D plane: aX + bY + cZ + d = 0.
Definition: rso_interface_1.h:271
float _d
Coefficient to describe a 3D plane: aX + bY + cZ + d = 0.
Definition: rso_interface_1.h:273
float B()
Definition: rso_interface_1.h:299
Definition: rso_interface_1.h:650
virtual int GroupLevelsDown() const =0
virtual void AddInclude(const char *str)=0
virtual void GroupLevelsDown(int value)=0
virtual int ExcludeCount() const =0
virtual void LevelsUp(int value)=0
virtual const char * GetExclude(int index) const =0
virtual void AddExclude(const char *str)=0
virtual const char * GetInclude(int index) const =0
virtual int LevelsUp() const =0
virtual bool PassFilter(const char *name) const =0
virtual bool NamesOnly() const =0
virtual void NamesOnly(bool value)=0
virtual int IncludeCount() const =0
Definition: rso_interface_1.h:175
float _z
The Z component.
Definition: rso_interface_1.h:179
float Y()
Definition: rso_interface_1.h:202
float _x
The X component.
Definition: rso_interface_1.h:177
float _y
The Y component.
Definition: rso_interface_1.h:178
float X()
Definition: rso_interface_1.h:199
void Set(float x, float y, float z)
Definition: rso_interface_1.h:191
float Z()
Definition: rso_interface_1.h:205
Definition: rso_interface_1.h:61
virtual bool SetEmittedEventHandler(EmittedEventHandler *handler)=0
static unsigned int strlen(const char *str)
Definition: rso_interface_1.h:724
virtual void SetResource(const char *resourceName, const char *resourceVal)=0
static char * strcpy(char *dest, const char *src)
Definition: rso_interface_1.h:738
virtual bool HandleInput(Event *ev)=0
virtual bool GetBoundingSphere(Vector *center, float *radius)=0
virtual void DeleteInstance()=0
Safely delete the object.
virtual const char * GetResource(const char *resourceName)=0
virtual RSOInterface1 * CloneObject()=0
virtual void PreDraw(const OpenGLMatrices ¤t, Culler &culler)=0
virtual const char * GetResources(ResourceFilter *filter=0)=0
virtual bool Pick3D(const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices)=0
virtual bool GetBoundingBox(Vector *min, Vector *max, const MatrixD *transform=0)=0
virtual ~RSOInterface1()
Protected destructor so it can't be deleted directly.
Definition: rso_interface_1.h:166
virtual void Calculate(double time)=0
The RSO Interface methods.
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47