cisst-saw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
catkin_ws
src
cisst-saw
sawOpenSceneGraph
include
sawOpenSceneGraph
osaOSGPick.h
Go to the documentation of this file.
1
#ifndef _osaOSGPick_h
2
#define _osaOSGPick_h
3
4
#include <osgGA/GUIEventHandler>
5
#include <osgViewer/Viewer>
6
7
#include <
sawOpenSceneGraph/osaOSGBody.h
>
8
#include <
sawOpenSceneGraph/sawOpenSceneGraphExport.h
>
9
10
class
CISST_EXPORT
osaOSGPick
:
public
osgGA::GUIEventHandler{
11
12
protected
:
13
14
double
mousex
;
15
double
mousey
;
16
17
enum
Event
{ PUSH, DRAG, RELEASE };
18
19
bool
Pick( Event e,
double
x,
double
y, osgViewer::Viewer* viewer );
20
21
virtual
void
PickHandler
(
osaOSGBody
*,
Event
,
double
,
double
){}
22
23
public
:
24
25
osaOSGPick
();
26
27
// OSG virtual method
28
bool
handle(
const
osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa );
29
30
};
31
32
#endif
CISST_EXPORT
#define CISST_EXPORT
Definition:
cmnExportMacros.h:50
osaOSGBody
Definition:
osaOSGBody.h:34
osaOSGPick
Definition:
osaOSGPick.h:10
osaOSGPick::mousey
double mousey
Definition:
osaOSGPick.h:15
sawOpenSceneGraphExport.h
osaOSGPick::Event
Event
Definition:
osaOSGPick.h:17
osaOSGPick::PickHandler
virtual void PickHandler(osaOSGBody *, Event, double, double)
Definition:
osaOSGPick.h:21
osaOSGPick::mousex
double mousex
Definition:
osaOSGPick.h:14
osaOSGBody.h
Generated by
1.8.6