VR-Forces 4.8 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) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/DtOsgRibbon.h>
13 
15 
16 #include <vector>
17 
18 namespace osg { class Node; class Group; }
19 
20 namespace makVrv
21 {
25  {
26  public:
27  typedef std::vector<DtOsgRibbon*> RibbonSet;
28 
29  protected:
32 
34 
36  virtual ~DtOsgMultiRibbon();
37 
38  private:
44  DtOsgMultiRibbon &operator=(const DtOsgMultiRibbon&);
45 
46  public:
48  virtual osg::Node* node();
49 
51  virtual void addRibbon(DtOsgRibbon* ribbon);
52 
54  virtual void setDroppedPointsPositionOffset(const osg::Vec3d& posOffset);
55 
57  virtual void update(double dt, double simTime);
58 
59  typedef std::vector<osg::ref_ptr<DtOsgRibbon> > RibbonRefPtrSet;
60 
61  virtual void addParticle(osg::Vec3d const& left, osg::Vec3d const& right,
62  double simTime);
63 
65  virtual float currentSegmentLength();
66 
68  virtual void extendCurrentSegment(osg::Vec3d const& left,
69  osg::Vec3d const& right, double simTime);
70 
71  virtual osg::Drawable* getDrawable();
72 
76  virtual void cleanupOldSegments(double simTime);
77 
78  protected:
79 
82 
84  };
85 
86  //
87  // Creator for DtOsgMultiRibbons
88  //
90  {
91  public:
94 
96  virtual ~DtOsgMultiRibbonCreator();
97 
100  static DtOsgMultiRibbonCreator& instance(DtDe& de);
101 
104  static void registerInstance(DtDe& de, DtOsgMultiRibbonCreator* creator);
105 
107  virtual DtOsgMultiRibbon* create(DtDe& de);
108  };
109 }
110 
Virtual base class.
Definition: DtVirtualBaseClass.h:22
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::vector< osg::ref_ptr< DtOsgRibbon > > RibbonRefPtrSet
Definition: DtOsgMultiRibbon.h:59
Definition: DtOsgMultiRibbon.h:89
Contains makVrv::DtVirtualBaseClass class.
Ribbon implementation that composes multiple child ribbons.
Definition: DtOsgMultiRibbon.h:24
osg::ref_ptr< osg::Group > myNode
Definition: DtOsgMultiRibbon.h:83
Base class for OSG ribbon implementations.
Definition: DtOsgRibbon.h:25
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Base class for ribbons.
RibbonRefPtrSet myRibbons
Set of sub-ribbons.
Definition: DtOsgMultiRibbon.h:81
std::vector< DtOsgRibbon * > RibbonSet
Definition: DtOsgMultiRibbon.h:27

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)