1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGMOUSEDATADEVICEINTERFACE_H_
40 #define _OSGMOUSEDATADEVICEINTERFACE_H_
45 #include "OSGMouseData.h"
46 #include "OSGDeviceInterface.h"
48 #include <boost/circular_buffer.hpp>
52 class OSG_CONTRIBCSM_DLLMAPPING MouseDataDeviceInterface
:
53 public DeviceInterface
56 /*========================== PUBLIC =================================*/
60 typedef boost::circular_buffer
<MouseData
> MouseDataBuffer
;
62 /*---------------------------------------------------------------------*/
63 /*! \name Reference Counting */
66 /*---------------------------------------------------------------------*/
67 /*! \name Reference Counting */
70 const MouseDataBuffer
&getDataBuffer(void) const;
73 /*---------------------------------------------------------------------*/
74 /*! \name Constructors */
77 virtual void clearNewData(void);
80 /*========================= PROTECTED ===============================*/
84 typedef DeviceInterface Inherited
;
86 MouseDataBuffer _cbMouseData
;
88 /*---------------------------------------------------------------------*/
89 /*! \name Reference Counting */
93 /*---------------------------------------------------------------------*/
94 /*! \name Constructors */
97 MouseDataDeviceInterface(const Char8
*szName
, UInt32 uiId
, bool bGlobal
);
100 /*---------------------------------------------------------------------*/
101 /*! \name Destructor */
104 virtual ~MouseDataDeviceInterface(void);
107 /*---------------------------------------------------------------------*/
108 /*! \name Destructor */
112 /*---------------------------------------------------------------------*/
113 /*! \name Constructors */
117 /*========================== PRIVATE ================================*/
121 /*!\brief prohibit default function (move to 'public' if needed) */
122 MouseDataDeviceInterface(const MouseDataDeviceInterface
&source
);
123 void operator =(const MouseDataDeviceInterface
&source
);
128 #include "OSGMouseDataDeviceInterface.inl"
130 #endif //_OSGMOUSEDATADEVICEINTERFACE_H_