GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: src/gui/point-intersector.hh Lines: 0 2 0.0 %
Date: 2023-03-14 11:04:37 Branches: 0 0 - %

Line Branch Exec Source
1
/* -*-c++-*- OpenSceneGraph Cookbook
2
 * Chapter 10 Recipe 7
3
 * Author: Wang Rui <wangray84 at gmail dot com>
4
 */
5
6
#ifndef SRC_GEPETTO_VIEWER_POINT_INTERSECTOR_HH
7
#define SRC_GEPETTO_VIEWER_POINT_INTERSECTOR_HH
8
9
#include <osgUtil/LineSegmentIntersector>
10
11
namespace gepetto {
12
namespace gui {
13
14
class PointIntersector : public osgUtil::LineSegmentIntersector {
15
 public:
16
  PointIntersector();
17
  PointIntersector(const osg::Vec3& start, const osg::Vec3& end);
18
  PointIntersector(CoordinateFrame cf, double x, double y);
19
20
  void setPickBias(float bias) { _pickBias = bias; }
21
  float getPickBias() const { return _pickBias; }
22
23
  virtual Intersector* clone(osgUtil::IntersectionVisitor& iv);
24
  virtual void intersect(osgUtil::IntersectionVisitor& iv,
25
                         osg::Drawable* drawable);
26
27
 protected:
28
  virtual ~PointIntersector() {}
29
  float _pickBias;
30
};
31
32
}  // namespace gui
33
}  // namespace gepetto
34
35
#endif  // SRC_GEPETTO_VIEWER_POINT_INTERSECTOR_HH