VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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/vrvOsg.h>
16 #include <vrvOsg/DtOsgRibbon.h>
17 
18 #include <vector>
19 
20 namespace osg { class Node; class Group; }
21 
22 namespace makVrv
23 {
27  {
28  public:
29  typedef std::vector<DtOsgRibbon*> RibbonSet;
30 
33 
35  DtOsgMultiRibbon(DtDe& de, RibbonSet& ribbons);
36 
38  osg::Node* node();
39 
41  void addRibbon(DtOsgRibbon* ribbon);
42 
43  protected:
46 
48  virtual void update(double dt, double simTime);
49 
50  typedef std::vector<osg::ref_ptr<DtOsgRibbon> > RibbonRefPtrSet;
51 
52  virtual void addParticle(osg::Vec3d const& left, osg::Vec3d const& right,
53  double simTime);
54 
56  virtual float currentSegmentLength();
57 
59  virtual void extendCurrentSegment(osg::Vec3d const& left,
60  osg::Vec3d const& right, double simTime);
61 
62  virtual osg::Drawable* getDrawable();
63 
66 
67  osg::ref_ptr<osg::Group> myNode;
68  };
69 }
70 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)