VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgMultiRibbon.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgMultiRibbon.h,v $ $Revision: 1.8 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvOsg/DtOsgRibbon.h>
16 
17 #include <vector>
18 
19 namespace osg { class Node; class Group; }
20 
21 namespace makVrv
22 {
26  {
27  public:
28  typedef std::vector<DtOsgRibbon*> RibbonSet;
29 
32 
34  DtOsgMultiRibbon(DtDe& de, RibbonSet& ribbons);
35 
37  osg::Node* node();
38 
40  void addRibbon(DtOsgRibbon* ribbon);
41 
42  protected:
44  virtual ~DtOsgMultiRibbon();
45 
47  virtual void update(double dt, double simTime);
48 
49  typedef std::vector<osg::ref_ptr<DtOsgRibbon> > RibbonRefPtrSet;
50 
51  virtual void addParticle(osg::Vec3d const& left, osg::Vec3d const& right,
52  double simTime);
53 
55  virtual float currentSegmentLength();
56 
58  virtual void extendCurrentSegment(osg::Vec3d const& left,
59  osg::Vec3d const& right, double simTime);
60 
61  virtual osg::Drawable* getDrawable();
62 
65 
66  osg::ref_ptr<osg::Group> myNode;
67  };
68 }
69 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)