Changeset 5969 for geovis/trunk/Placard.h
- Timestamp:
- Jan 25, 2016, 6:28:49 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geovis/trunk/Placard.h
r5961 r5969 22 22 class Placard { 23 23 public: 24 Placard() 25 {} 24 Placard(); 26 25 virtual ~Placard() 27 26 {} … … 53 52 return _attrNames.size(); 54 53 } 54 void setStyle(const osgEarth::Symbology::Style& style) 55 { 56 _textStyle = style; 57 } 58 const osgEarth::Symbology::Style& getStyle() const 59 { 60 return _textStyle; 61 } 62 void setPadding(float padding) 63 { 64 _padding = padding; 65 } 66 float getPadding() const 67 { 68 return _padding; 69 } 70 void setBackdropColor(const osg::Vec4& color) 71 { 72 _backdropColor = color; 73 } 74 const osg::Vec4& getBackdropColor() const 75 { 76 return _backdropColor; 77 } 55 78 private: 56 79 std::vector<std::string> _attrNames; 57 80 std::vector<std::string> _attrLabels; 81 float _padding; 82 osg::Vec4 _backdropColor; 83 osgEarth::Symbology::Style _textStyle; 58 84 }; 59 85 … … 75 101 const osgEarth::GeoPoint& position, 76 102 const Placard& placardConf, 77 const osgEarth::Features::AttributeTable &attrs, 78 const osgEarth::Symbology::Style& style = osgEarth::Symbology::Style()); 103 const osgEarth::Features::AttributeTable &attrs); 79 104 80 105 virtual ~PlacardLabelNode() … … 105 130 const osgEarth::GeoPoint& position, 106 131 const Placard& placardConf, 107 const osgEarth::Features::AttributeTable &attrs, 108 const osgEarth::Symbology::Style& style = osgEarth::Symbology::Style()); 132 const osgEarth::Features::AttributeTable &attrs); 109 133 110 134 virtual ~PlacardNode()
Note: See TracChangeset
for help on using the changeset viewer.