VR-Forces 4.1.1 Class Documentation
sharedMemoryFeaturesDebugDrawer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
10 
11 #pragma once
12 
13 #include <features/feature.h>
14 #include <features/featureSet.h>
15 
17 
18 #include <vlutil/vlMutex.h>
19 
20 namespace MAKVRinTerra
21 {
23  {
24  public:
25  static DtFeatureSet* MakeFeatureSet(std::auto_ptr<DtFeatureGeometry::GeometryVector>);
26 
28 
30 
32  virtual void addFeatureSet(DtFeatureSet*);
33 
35  virtual void setFeatureSet(DtFeatureSet*);
36 
37  virtual void setPointColor(const DtDebugDrawerGeometryMemoryColor&);
38  virtual void setPathColor(const DtDebugDrawerGeometryMemoryColor&);
39  virtual void setAreaColor(const DtDebugDrawerGeometryMemoryColor&);
40 
42  virtual void setPointRadius(unsigned radius);
43 
45  virtual void setHeight(double);
46 
47  virtual void draw();
48 
49  protected:
50  virtual void drawFeature(const DtFeature&);
51 
52  virtual void draw(DtFeatureGeometry);
54 
55  private:
56  typedef std::pair<std::string, DtFeatureSet*> FeatureSetPair;
57  typedef std::vector<FeatureSetPair> FeatureSetMap;
58 
59  mutable DtMutex myMutex;
60  boost::scoped_ptr<DtDebugDrawerSharedMemoryManager> myMemManager;
61  boost::scoped_ptr<DtFeatureSet::List> myFeatureSets;
66  unsigned myPointRadius;
67  double myHeight;
68  };
69 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)