VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgSegmentPickable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/ShapeDrawable>
15 #include <osg/MatrixTransform>
16 
17 namespace makVrv
18 {
24  {
25  public:
26 
28  DtOsgSegmentPickable(osg::Group* parent);
29 
31  virtual ~DtOsgSegmentPickable();
32 
34  virtual void updateFromGeometry(const std::vector<osg::Vec3>& geometry, const std::vector<double>& lineWidths);
35 
37  virtual void updateFromGeometry(const osg::Vec3Array& geometry, const std::vector<double>& lineWidths);
38 
40  virtual void removeAll();
41 
42  protected:
43  osg::Group* myParent;
44  osg::ref_ptr<osg::Group> myPickableTransform;
46  {
47  osg::ref_ptr<osg::MatrixTransform> transform;
48  osg::ref_ptr<osg::Geode> geode;
49  };
50 
51  typedef std::vector<PickableSegment> PickableSegments;
53  };
54 }
55 
56 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)