VR-Forces Developer's Guide
 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;
46  {
49  };
50 
51  typedef std::vector<PickableSegment> PickableSegments;
53  };
54 }
55 
56 
osg::ref_ptr< osg::MatrixTransform > transform
Definition: DtOsgSegmentPickable.h:47
Definition: DtOsgSegmentPickable.h:45
std::vector< PickableSegment > PickableSegments
Definition: DtOsgSegmentPickable.h:51
Create a series of cylinders that can be used as pickable on lines that only have osg width...
Definition: DtOsgSegmentPickable.h:23
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Geode > geode
Definition: DtOsgSegmentPickable.h:48
osg::Group * myParent
Definition: DtOsgSegmentPickable.h:43
PickableSegments myPickableSegments
Definition: DtOsgSegmentPickable.h:52
osg::ref_ptr< osg::Group > myPickableTransform
Definition: DtOsgSegmentPickable.h:44
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)