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 _OSGLINUX3AXISEVENTINTERFACE_H_
40 #define _OSGLINUX3AXISEVENTINTERFACE_H_
45 #include "OSGTransformationDeviceInterface.h"
49 class OSG_CONTRIBCSM_DLLMAPPING Linux3AxisEventInterface
:
50 public TransformationDeviceInterface
53 /*========================== PUBLIC =================================*/
57 OSG_GEN_INTERNAL_MEMOBJPTR(Linux3AxisEventInterface
);
59 /*---------------------------------------------------------------------*/
60 /*! \name Reference Counting */
63 static ObjTransitPtr
get (Char8
*szName
, bool bGlobal
);
64 static Linux3AxisEventInterface
*find(Char8
*szName
);
66 /*---------------------------------------------------------------------*/
67 /*! \name Reference Counting */
70 virtual bool start (void);
71 virtual void shutdown(void);
74 /*---------------------------------------------------------------------*/
75 /*! \name Constructors */
78 virtual void setOptions(InterfaceOptions
*pOptions
);
81 /*========================= PROTECTED ===============================*/
85 typedef TransformationDeviceInterface Inherited
;
87 static MPThreadType _type
;
103 /*---------------------------------------------------------------------*/
104 /*! \name Reference Counting */
107 static BaseThread
*create(const Char8
*szName
,
112 /*---------------------------------------------------------------------*/
113 /*! \name Constructors */
116 Linux3AxisEventInterface(const Char8
*szName
, UInt32 uiId
, bool bGlobal
);
119 /*---------------------------------------------------------------------*/
120 /*! \name Destructor */
123 virtual ~Linux3AxisEventInterface(void);
126 /*---------------------------------------------------------------------*/
127 /*! \name Destructor */
130 virtual void workProc(void);
133 /*---------------------------------------------------------------------*/
134 /*! \name Constructors */
137 void getRawData(void);
140 /*========================== PRIVATE ================================*/
144 /*!\brief prohibit default function (move to 'public' if needed) */
145 Linux3AxisEventInterface(const Linux3AxisEventInterface
&source
);
146 void operator =(const Linux3AxisEventInterface
&source
);
149 OSG_GEN_MEMOBJPTR(Linux3AxisEventInterface
);
153 #include "OSGLinux3AxisEventInterface.inl"
155 #endif //_OSGLINUX3AXISEVENTINTERFACE_H_