VR-Forces 4.1 Class Documentation
kynapseLinesModel.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #ifndef DtKynapseLinesModel_H_
12 #define DtKynapseLinesModel_H_
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
15 #include <vrvCore/DtDe.h>
16 #include <vrvCore/DtUniqueID.h>
17 #include <osg/Geode>
19 
20 #include <vrvOsg/DtOsgRenderer.h>
21 
22 #include <osg/Geometry>
23 #include <osg/Geode>
24 #include <osg/LineWidth>
25 #include <osg/PositionAttitudeTransform>
26 #include <osg/ShapeDrawable>
27 #include <osg/Material>
29 
30 #include <vrvOsg/DtOsgRenderer.h>
33 
34 #include <string>
35 #include <vector>
36 #include <math.h>
37 
38 namespace makVrf
39 {
45  {
46  public:
49 
51  virtual ~DtKynapseLinesModel();
52 
57  virtual void init(std::string& str, bool useLocalCoord = false);
58 
60  void update();
61 
62  protected:
64  {
65  osg::ref_ptr<osg::PositionAttitudeTransform> myTransform;
66  osg::ref_ptr<osg::Geode> myGeode;
67  osg::ref_ptr<osg::Vec3dArray> myPoints;
68  osg::ref_ptr<osg::Vec3dArray> myColors;
69  osg::ref_ptr<osg::Geometry> myGeometry;
70  osg::ref_ptr<osg::DrawElementsUInt> myPrimitive;
71 
73  DtVector transformVec(const DtVector& inputVec);
74 
75  void addLine(const DtVector& localStart, const DtVector& localEnd,
77  };
78 
79  virtual DtRegionalGeodeInfo findOrCreateRegonalNode(const DtVector& location);
80  virtual void clearRegionalNodes();
81  virtual void drawMemoryBlock(unsigned long entries);
83  std::list<DtRegionalGeodeInfo> myRegionalNodes;
84  osg::ref_ptr<osg::Group> myGroupNode;
86  std::map<DtString, int> myLastFrameNumber;
89  };
90 
91 }
92 
93 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)