VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CustomFeatureNode.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 #include <osg/Referenced>
14 #include <osg/Vec3d>
15 #include <osg/Quat>
16 
17 #include <boost/function.hpp>
18 #include <boost/signal.hpp>
19 #include <boost/unordered_map.hpp>
20 
21 namespace osgEarth
22 {
23  namespace Features
24  {
26 
44  : public osg::Referenced
45  {
46  public:
47 
51  {
52  std::string strMarkerName;
53  std::string featureStyleName;
54  osg::Vec3d vPosition;
55  osg::Quat rotation;
56  double scale;
57  osg::Vec3d minBound;
58  osg::Vec3d maxBound;
59  };
60 
62  typedef std::list<OsgEarthMarkerRequest> MarkerRequestList;
63 
66  typedef boost::unordered_multimap < std::string, unsigned long long >
68 
70  typedef std::pair<FeatureRegistrantToIdMap::iterator,
71  FeatureRegistrantToIdMap::iterator> RangeIterFeatureRegistrantToId;
72  typedef std::pair<FeatureRegistrantToIdMap::const_iterator,
73  FeatureRegistrantToIdMap::const_iterator> ConstRangeIterFeatureRegistrantToId;
74 
75  public:
76 
78 
79  virtual ~CustomFeatureNode();
80 
81  FeatureRegistrantToIdMap& featureRegistrantToIdMap();
82  const FeatureRegistrantToIdMap& featureRegistrantToIdMap() const;
83 
84  MarkerRequestList& markerRequestList();
85  const MarkerRequestList& markerRequestList() const;
86 
87  boost::signal<void(CustomFeatureNode*)> signal_aboutToBeDeleted;
88 
89  void setCheckDestructingFunction(boost::function<bool()>);
90 
91  protected:
92 
95  boost::function<bool()> myCheckDestructingFunction;
96  };
97  }
98 } // namespace osgEarth::Features

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)