OpenCOVER
OSGVruiHit.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef OSG_VRUI_HIT_H
9#define OSG_VRUI_HIT_H
10
12
13#include <osgUtil/IntersectionVisitor>
14#include <osgUtil/LineSegmentIntersector>
15
16namespace vrui
17{
18
19class vruiNode;
20
21class OSGVRUIEXPORT OSGVruiHit : public vruiHit
22{
23
24public:
25 OSGVruiHit(const osgUtil::LineSegmentIntersector::Intersection &isect, bool mouseHit);
26 virtual ~OSGVruiHit();
27
28 virtual coVector &getLocalIntersectionPoint() const;
29 virtual coVector &getWorldIntersectionPoint() const;
30 virtual coVector &getWorldIntersectionNormal() const;
31 virtual bool isMouseHit() const;
32
34
35 const osgUtil::LineSegmentIntersector::Intersection &getHit() const;
36
37private:
38 osgUtil::LineSegmentIntersector::Intersection hit;
39 bool mouseHit;
40
41 mutable coVector *isecLocalPoint;
42 mutable coVector *isecWorldPoint;
43 mutable coVector *isecNormal;
44 mutable vruiNode *node;
45};
46}
47#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: vruiHit.h:21
Definition: vruiNode.h:22
Definition: OSGVruiHit.h:22
virtual coVector & getLocalIntersectionPoint() const
OSGVruiHit(const osgUtil::LineSegmentIntersector::Intersection &isect, bool mouseHit)
virtual coVector & getWorldIntersectionNormal() const
virtual coVector & getWorldIntersectionPoint() const
virtual bool isMouseHit() const
virtual ~OSGVruiHit()
vruiNode * getNode()
const osgUtil::LineSegmentIntersector::Intersection & getHit() const