36 static const char* GRID_TYPE_ENUM_NAMES[] = {
"none",
"line",
"reseaux"};
37 static const char* VIEW_WIDTH_KW =
"view_width";
38 static const char* VIEW_HEIGHT_KW =
"view_height";
39 static const char* METER_GRID_SPACING_X_KW =
"meter_grid_spacing_x";
40 static const char* METER_GRID_SPACING_Y_KW =
"meter_grid_spacing_y";
41 static const char* GEO_GRID_SPACING_LON_KW =
"geo_grid_spacing_lon";
42 static const char* GEO_GRID_SPACING_LAT_KW =
"geo_grid_spacing_lat";
43 static const char* METER_GRID_TYPE_KW =
"meter_grid_type";
44 static const char* GEO_GRID_TYPE_KW =
"geo_grid_type";
45 static const char* TOP_BORDER_LENGTH_KW =
"top_border_length";
46 static const char* BOTTOM_BORDER_LENGTH_KW =
"bottom_border_length";
47 static const char* LEFT_BORDER_LENGTH_KW =
"top_border_length";
48 static const char* RIGHT_BORDER_LENGTH_KW =
"right_border_length";
49 static const char* BORDER_COLOR_KW =
"border_color";
50 static const char* GEO_GRID_COLOR_KW =
"geo_grid_color";
51 static const char* METER_GRID_COLOR_KW =
"meter_grid_color";
52 static const char* TITLE_STRING_KW =
"title_string";
53 static const char* TITLE_COLOR_KW =
"title_color";
55 static const char* TOP_GEO_LABEL_COLOR_KW =
"top_geo_label_color";
56 static const char* BOTTOM_GEO_LABEL_COLOR_KW =
"bottom_geo_label_color";
57 static const char* LEFT_GEO_LABEL_COLOR_KW =
"left_geo_label_color";
58 static const char* RIGHT_GEO_LABEL_COLOR_KW =
"right_geo_label_color";
60 static const char* TOP_METER_LABEL_COLOR_KW =
"top_meter_label_color";
61 static const char* BOTTOM_METER_LABEL_COLOR_KW =
"bottom_meter_label_color";
62 static const char* LEFT_METER_LABEL_COLOR_KW =
"left_meter_label_color";
63 static const char* RIGHT_METER_LABEL_COLOR_KW =
"right_meter_label_color";
65 static const char* TOP_GEO_LABEL_FORMAT_KW =
"top_geo_label_format";
66 static const char* BOTTOM_GEO_LABEL_FORMAT_KW =
"bottom_geo_label_format";
67 static const char* LEFT_GEO_LABEL_FORMAT_KW =
"left_geo_label_format";
68 static const char* RIGHT_GEO_LABEL_FORMAT_KW =
"right_geo_label_format";
70 static const char* TOP_GEO_LABEL_FLAG_KW =
"top_geo_label_flag";
71 static const char* BOTTOM_GEO_LABEL_FLAG_KW =
"bottom_geo_label_flag";
72 static const char* LEFT_GEO_LABEL_FLAG_KW =
"left_geo_label_flag";
73 static const char* RIGHT_GEO_LABEL_FLAG_KW =
"right_geo_label_flag";
75 static const char* TOP_METER_LABEL_FLAG_KW =
"top_meter_label_flag";
76 static const char* BOTTOM_METER_LABEL_FLAG_KW =
"bottom_meter_label_flag";
77 static const char* LEFT_METER_LABEL_FLAG_KW =
"left_meter_label_flag";
78 static const char* RIGHT_METER_LABEL_FLAG_KW =
"right_meter_label_flag";
80 static const char* TOP_GEO_LABEL_FONT_KW =
"top_geo_label_font";
81 static const char* BOTTOM_GEO_LABEL_FONT_KW =
"bottom_geo_label_font";
82 static const char* LEFT_GEO_LABEL_FONT_KW =
"left_geo_label_font";
83 static const char* RIGHT_GEO_LABEL_FONT_KW =
"right_geo_label_font";
84 static const char* TOP_METER_LABEL_FONT_KW =
"top_meter_label_font";
85 static const char* BOTTOM_METER_LABEL_FONT_KW =
"bottom_meter_label_font";
86 static const char* LEFT_METER_LABEL_FONT_KW =
"left_meter_label_font";
87 static const char* RIGHT_METER_LABEL_FONT_KW =
"right_meter_label_font";
88 static const char* TITLE_FONT_KW =
"title_font";
90 static ossimTrace traceDebug(
"ossimMapCompositionSource:debug");
95 theMeterGridType(OSSIM_GRID_NONE),
96 theGeographicGridType(OSSIM_GRID_LINE),
97 theTopBorderLength(200),
98 theBottomBorderLength(200),
99 theLeftBorderLength(300),
100 theRightBorderLength(300),
101 theBorderColor(255,255,255),
102 theGeographicGridColor(255,255,255),
103 theMeterGridColor(255,255,255),
106 theTitleColor(1, 1, 1),
107 theTopGeographicLabelColor(1, 1, 1),
108 theBottomGeographicLabelColor(1, 1, 1),
109 theLeftGeographicLabelColor(1, 1, 1),
110 theRightGeographicLabelColor(1, 1, 1),
111 theTopMeterLabelColor(1, 1, 1),
112 theBottomMeterLabelColor(1, 1, 1),
113 theLeftMeterLabelColor(1, 1, 1),
114 theRightMeterLabelColor(1, 1, 1),
115 theGeographicTopLabelFont(NULL),
116 theGeographicBottomLabelFont(NULL),
117 theGeographicLeftLabelFont(NULL),
118 theGeographicRightLabelFont(NULL),
119 theMeterTopLabelFont(NULL),
120 theMeterBottomLabelFont(NULL),
121 theMeterLeftLabelFont(NULL),
122 theMeterRightLabelFont(NULL),
123 theTopGeographicFormat(
"dd@mm'ss\".ssssC"),
124 theBottomGeographicFormat(
"dd@mm'ss\".ssssC"),
125 theLeftGeographicFormat(
"dd@mm'ss\".ssssC"),
126 theRightGeographicFormat(
"dd@mm'ss\".ssssC"),
127 theTopGeographicLabelFlag(
true),
128 theBottomGeographicLabelFlag(
true),
129 theLeftGeographicLabelFlag(
true),
130 theRightGeographicLabelFlag(
true),
131 theTopGeographicTickFlag(
true),
132 theBottomGeographicTickFlag(
true),
133 theLeftGeographicTickFlag(
true),
134 theRightGeographicTickFlag(
true),
135 theTopMeterLabelFlag(false),
136 theBottomMeterLabelFlag(false),
137 theLeftMeterLabelFlag(false),
138 theRightMeterLabelFlag(false),
139 theTopMeterTickFlag(false),
140 theBottomMeterTickFlag(false),
141 theLeftMeterTickFlag(false),
142 theRightMeterTickFlag(false),
143 theGeographicSpacing(1.0, 1.0),
144 theMeterSpacing(3600*30, 3600*30)
147 vector<ossimFontInformation> info;
223 <<
"ossimMapCompositionSource::getTile\n" 224 <<
"Error input is not uchar" << endl;
235 for(band = 0; band < minBand; ++band)
244 for(;band < outBands;++band)
335 const char* MODULE =
"ossimMapCompositionSource::setGeographicTopLabelFont";
339 CLOG <<
"Entering...." <<endl;
345 CLOG <<
"Font info the same exiting...." <<endl
357 CLOG <<
"Previous font info " <<endl
365 CLOG <<
"New font info " <<endl
500 inputRect.
ul().
y - topBorderLength);
503 inputRect.
ur().
y - topBorderLength);
506 inputRect.
lr().
y + bottomBorderLength);
509 inputRect.
ll().
y + bottomBorderLength);
662 const char* MODULE =
"ossimMapCompositionSource::addGeographicTopGridLabels";
665 CLOG <<
"Entering...." << endl;
671 CLOG <<
"Exiting, flags are false...." << endl;
697 while(ulLatLon.
lat > 90)
701 while(ulLatLon.
lon < -180)
705 while(lrLatLon.
lat < -90)
709 while(lrLatLon.
lon > 180)
720 CLOG <<
"labeling bounding geo rect = " << latLonSpacing << endl;
745 if( (rounded.
x >= rect.
ul().
x)&&
746 (rounded.
x <= rect.
lr().
x))
773 center.y -= ossim::round<int>(rect.
ul().
y - intersection.
lr().
y);
796 CLOG <<
"Exiting...." << endl;
828 while(ulLatLon.
lat > 90)
832 while(ulLatLon.
lon < -180)
836 while(lrLatLon.
lat < -90)
840 while(lrLatLon.
lon > 180)
868 if(rect.
clip(tipt, bipt))
871 if( (rounded.
x >= rect.
ul().
x)&&
872 (rounded.
x <= rect.
lr().
x))
891 ossim::round<int>(rect.
lr().
y+(bounds.
height()/2)));
905 center.y += ossim::round<int>(rect.
lr().
y - intersection.
ul().
y);
918 ossim::round<int>(rect.
lr().
y+24)),
920 ossim::round<int>(rect.
lr().
y)));
962 while(ulLatLon.
lat > 90)
966 while(ulLatLon.
lon < -180)
970 while(lrLatLon.
lat < -90)
974 while(lrLatLon.
lon > 180)
988 latLonSpacing.
ul().
x,
992 latLonSpacing.
ur().
x,
999 if(rect.
clip(lipt, ript))
1002 if( (rounded.
y >= rect.
ul().
y)&&
1003 (rounded.
y <= rect.
lr().
y))
1036 center.
x -= ossim::round<int>(rect.
ul().
x - intersection.
ur().
x);
1095 while(ulLatLon.
lat > 90)
1099 while(ulLatLon.
lon < -180)
1103 while(lrLatLon.
lat < -90)
1107 while(lrLatLon.
lon > 180)
1121 latLonSpacing.
ul().
x,
1125 latLonSpacing.
ur().
x,
1133 if(rect.
clip(lipt, ript))
1136 if( (rounded.
y >= rect.
ul().
y)&&
1137 (rounded.
y <= rect.
lr().
y))
1169 center.
x -= ossim::round<int>(rect.
ur().
x - intersection.
ul().
x);
1223 while(ulLatLon.
lat > 90)
1227 while(ulLatLon.
lon < -180)
1231 while(lrLatLon.
lat < -90)
1235 while(lrLatLon.
lon > 180)
1263 if(rect.
clip(tipt, bipt))
1278 latLonSpacing.
ul().
x,
1282 latLonSpacing.
ur().
x,
1289 if(rect.
clip(lipt, ript))
1342 gptArray[0].datum());
1349 ossimIpt horizontalStart(rounded.
x-10, rounded.
y);
1350 ossimIpt horizontalEnd(rounded.
x+10, rounded.
y);
1352 ossimIpt verticalStart(rounded.
x, rounded.
y-10);
1353 ossimIpt verticalEnd(rounded.
x, rounded.
y+10);
1397 for(
double horizontal = meterSpacing.
ul().
x;
1398 horizontal <= meterSpacing.
lr().
x;
1411 if(rect.
clip(tipt, bipt))
1421 for(
double vertical = meterSpacing.
ul().
y;
1422 vertical >= meterSpacing.
lr().
y;
1433 if(rect.
clip(lipt, ript))
1484 long extraTopDelta = 0;
1485 long extraBottomDelta = 0;
1486 long extraLeftDelta = 0;
1487 long extraRightDelta = 0;
1498 extraTopDelta = box.
height();
1508 extraBottomDelta = box.
height();
1518 extraLeftDelta = box.
width();
1529 extraRightDelta = box.
width();
1534 for(
double horizontal = meterSpacing.
ul().
x;
1535 horizontal <= meterSpacing.
lr().
x;
1542 meterSpacing.
ul().
y);
1545 meterSpacing.
lr().
y);
1550 rect.
clip(tipt, bipt);
1568 ossimIpt centerTop(ossim::round<int>(tipt.
x),
1569 ossim::round<int>(rect.
ul().
y-(boundsTop.
height()/2)));
1584 centerTop.y -= ossim::round<int>(rect.
ul().
y - intersection.
lr().
y);
1587 centerTop.y -= (24+extraTopDelta);
1595 ossim::round<int>(tipt.
y-24)),
1597 ossim::round<int>(tipt.
y)));
1618 ossimIpt centerBottom(ossim::round<int>(bipt.
x),
1619 ossim::round<int>(rect.
lr().
y+(boundsBottom.
height()/2)));
1634 centerBottom.y += ossim::round<int>(rect.
lr().
y - intersection.
ul().
y);
1637 centerBottom.y += (24+extraBottomDelta);
1644 ossim::round<int>(bipt.
y+24)),
1646 ossim::round<int>(bipt.
y)));
1656 for(
double vertical = meterSpacing.
ul().
y;
1657 vertical >= meterSpacing.
lr().
y;
1670 if(rect.
clip(lipt, ript))
1685 ossim::round<int>(lipt.
y));
1701 centerLeft.
x -= ossim::round<int>(intersection.
lr().
x - rect.
ul().
x);
1704 centerLeft.
x -= (24+extraLeftDelta);
1711 ossim::round<int>(lipt.
y)),
1713 ossim::round<int>(lipt.
y)));
1732 ossimIpt centerRight(ossim::round<int>(rect.
ur().
x+(boundsRight.
width()/2)),
1733 ossim::round<int>(ript.
y));
1749 centerRight.
x += ossim::round<int>(intersection.
ul().
x - rect.
ur().
x);
1752 centerRight.
x += (24+extraRightDelta);
1759 ossim::round<int>(ript.
y)),
1761 ossim::round<int>(ript.
y)));
1806 for(
double horizontal = meterSpacing.
ul().
x; horizontal <= meterSpacing.
lr().
x; horizontal+=
theMeterSpacing.
x)
1816 ossimIpt horizontalStart(rounded.
x-10, rounded.
y);
1817 ossimIpt horizontalEnd(rounded.
x+10, rounded.
y);
1819 ossimIpt verticalStart(rounded.
x, rounded.
y-10);
1820 ossimIpt verticalEnd(rounded.
x, rounded.
y+10);
1906 if((*object).valid())
1925 if(!property.
valid())
return;
1932 if(property->
getName() ==
"Geographic label properties")
1940 tempProp = containerProp->
getProperty(
"Top font");
1946 tempProp = containerProp->
getProperty(
"Bottom font");
1952 tempProp = containerProp->
getProperty(
"Left font");
1958 tempProp = containerProp->
getProperty(
"Right font");
1966 tempProp = containerProp->
getProperty(
"Top color");
1972 tempProp = containerProp->
getProperty(
"Bottom color");
1978 tempProp = containerProp->
getProperty(
"Left color");
1984 tempProp = containerProp->
getProperty(
"Right color");
1992 tempProp = containerProp->
getProperty(
"Top enabled");
2000 tempProp = containerProp->
getProperty(
"Bottom enabled");
2008 tempProp = containerProp->
getProperty(
"Left enabled");
2016 tempProp = containerProp->
getProperty(
"Right enabled");
2024 tempProp = containerProp->
getProperty(
"Top tick enabled");
2031 tempProp = containerProp->
getProperty(
"Bottom tick enabled");
2038 tempProp = containerProp->
getProperty(
"Left tick enabled");
2045 tempProp = containerProp->
getProperty(
"Right tick enabled");
2054 else if(property->
getName() ==
"Geographic grid properties")
2060 tempProp = containerProp->
getProperty(
"Grid type");
2061 if(tempProp.
valid())
2069 else if(value ==
"line")
2073 else if(value ==
"reseaux")
2078 tempProp = containerProp->
getProperty(
"Horizontal spacing");
2079 if(tempProp.
valid())
2084 tempProp = containerProp->
getProperty(
"Vertical spacing");
2085 if(tempProp.
valid())
2092 if(tempProp.
valid())
2098 else if(property->
getName() ==
"Meter label properties")
2106 tempProp = containerProp->
getProperty(
"Top font");
2112 tempProp = containerProp->
getProperty(
"Bottom font");
2118 tempProp = containerProp->
getProperty(
"Left font");
2124 tempProp = containerProp->
getProperty(
"Right font");
2132 tempProp = containerProp->
getProperty(
"Top color");
2138 tempProp = containerProp->
getProperty(
"Bottom color");
2144 tempProp = containerProp->
getProperty(
"Left color");
2150 tempProp = containerProp->
getProperty(
"Right color");
2158 tempProp = containerProp->
getProperty(
"Top enabled");
2166 tempProp = containerProp->
getProperty(
"Bottom enabled");
2174 tempProp = containerProp->
getProperty(
"Left enabled");
2182 tempProp = containerProp->
getProperty(
"Right enabled");
2190 tempProp = containerProp->
getProperty(
"Top tick enabled");
2197 tempProp = containerProp->
getProperty(
"Bottom tick enabled");
2204 tempProp = containerProp->
getProperty(
"Left tick enabled");
2211 tempProp = containerProp->
getProperty(
"Right tick enabled");
2220 else if(property->
getName() ==
"Meter grid properties")
2226 tempProp = containerProp->
getProperty(
"Grid type");
2227 if(tempProp.
valid())
2235 else if(value ==
"line")
2239 else if(value ==
"reseaux")
2244 tempProp = containerProp->
getProperty(
"Horizontal spacing");
2245 if(tempProp.
valid())
2250 tempProp = containerProp->
getProperty(
"Vertical spacing");
2251 if(tempProp.
valid())
2258 if(tempProp.
valid())
2264 else if(property->
getName() ==
"Title properties")
2290 else if(property->
getName() ==
"Viewport properties")
2299 if(tempProp.
valid())
2304 if(tempProp.
valid())
2311 else if(property->
getName() ==
"Border color")
2320 else if(property->
getName() ==
"Border size")
2327 if(tempProp.
valid())
2333 if(tempProp.
valid())
2339 if(tempProp.
valid())
2345 if(tempProp.
valid())
2359 if(name ==
"Viewport properties")
2372 else if(name ==
"Geographic label properties")
2415 else if(name ==
"Geographic grid properties")
2418 std::vector<ossimString> gridTypeConstraints;
2421 gridTypeConstraints.push_back(
"none");
2422 gridTypeConstraints.push_back(
"line");
2423 gridTypeConstraints.push_back(
"reseaux");
2428 gridTypeConstraints));
2443 else if(name ==
"Meter label properties")
2486 else if(name ==
"Meter grid properties")
2489 std::vector<ossimString> gridTypeConstraints;
2492 gridTypeConstraints.push_back(
"none");
2493 gridTypeConstraints.push_back(
"line");
2494 gridTypeConstraints.push_back(
"reseaux");
2499 gridTypeConstraints));
2513 else if(name ==
"Title properties")
2526 else if(name ==
"Border size")
2545 else if(name ==
"Border color")
2553 else if(name ==
"Viewport properties")
2565 propertyNames.push_back(
"Title properties");
2566 propertyNames.push_back(
"Border size");
2567 propertyNames.push_back(
"Border color");
2568 propertyNames.push_back(
"Viewport properties");
2569 propertyNames.push_back(
"Geographic label properties");
2570 propertyNames.push_back(
"Geographic grid properties");
2571 propertyNames.push_back(
"Meter label properties");
2572 propertyNames.push_back(
"Meter grid properties");
2576 const char* prefix)
const 2589 METER_GRID_SPACING_X_KW,
2594 METER_GRID_SPACING_Y_KW,
2599 GEO_GRID_SPACING_LON_KW,
2604 GEO_GRID_SPACING_LAT_KW,
2611 meterGridType =
"none";
2615 meterGridType =
"reseaux";
2620 meterGridType.
c_str(),
2626 geoGridType =
"none";
2630 geoGridType =
"reseaux";
2635 geoGridType.
c_str(),
2639 TOP_BORDER_LENGTH_KW,
2644 BOTTOM_BORDER_LENGTH_KW,
2649 LEFT_BORDER_LENGTH_KW,
2654 RIGHT_BORDER_LENGTH_KW,
2673 METER_GRID_COLOR_KW,
2692 TOP_GEO_LABEL_COLOR_KW,
2699 BOTTOM_GEO_LABEL_COLOR_KW,
2705 LEFT_GEO_LABEL_COLOR_KW,
2711 RIGHT_GEO_LABEL_COLOR_KW,
2718 TOP_GEO_LABEL_FORMAT_KW,
2723 BOTTOM_GEO_LABEL_FORMAT_KW,
2727 LEFT_GEO_LABEL_FORMAT_KW,
2731 RIGHT_GEO_LABEL_FORMAT_KW,
2736 TOP_GEO_LABEL_FLAG_KW,
2741 BOTTOM_GEO_LABEL_FLAG_KW,
2746 LEFT_GEO_LABEL_FLAG_KW,
2751 RIGHT_GEO_LABEL_FLAG_KW,
2756 TOP_METER_LABEL_COLOR_KW,
2763 BOTTOM_METER_LABEL_COLOR_KW,
2769 LEFT_METER_LABEL_COLOR_KW,
2775 RIGHT_METER_LABEL_COLOR_KW,
2783 TOP_METER_LABEL_FLAG_KW,
2788 BOTTOM_METER_LABEL_FLAG_KW,
2793 LEFT_METER_LABEL_FLAG_KW,
2798 RIGHT_METER_LABEL_FLAG_KW,
2822 const char* viewWidth = kwl.
find(prefix, VIEW_WIDTH_KW);
2823 const char* viewHeight = kwl.
find(prefix, VIEW_HEIGHT_KW);
2824 const char* meterGridSpacingX = kwl.
find(prefix, METER_GRID_SPACING_X_KW);
2825 const char* meterGridSpacingY = kwl.
find(prefix, METER_GRID_SPACING_Y_KW);
2826 const char* geoGridSpacingLon = kwl.
find(prefix, GEO_GRID_SPACING_LON_KW);
2827 const char* geoGridSpacingLat = kwl.
find(prefix, GEO_GRID_SPACING_LAT_KW);
2828 const char* meterGridType = kwl.
find(prefix, METER_GRID_TYPE_KW);
2829 const char* geoGridType = kwl.
find(prefix, GEO_GRID_TYPE_KW);
2830 const char* topBorderLength = kwl.
find(prefix, TOP_BORDER_LENGTH_KW);
2831 const char* bottomBorderLength = kwl.
find(prefix, BOTTOM_BORDER_LENGTH_KW);
2832 const char* leftBorderLength = kwl.
find(prefix, LEFT_BORDER_LENGTH_KW);
2833 const char* rightBorderLength = kwl.
find(prefix, RIGHT_BORDER_LENGTH_KW);
2835 const char* borderColor = kwl.
find(prefix, BORDER_COLOR_KW);
2836 const char* geoGridColor = kwl.
find(prefix, GEO_GRID_COLOR_KW);
2837 const char* meterGridColor = kwl.
find(prefix, METER_GRID_COLOR_KW);
2838 const char* titleString = kwl.
find(prefix, TITLE_STRING_KW);
2839 const char* titleColor = kwl.
find(prefix, TITLE_COLOR_KW);
2841 const char* topGeoLabelColor = kwl.
find(prefix, TOP_GEO_LABEL_COLOR_KW);
2842 const char* bottomGeoLabelColor = kwl.
find(prefix, BOTTOM_GEO_LABEL_COLOR_KW);
2843 const char* leftGeoLabelColor = kwl.
find(prefix, LEFT_GEO_LABEL_COLOR_KW);
2844 const char* rightGeoLabelColor = kwl.
find(prefix, RIGHT_GEO_LABEL_COLOR_KW);
2846 const char* topMeterLabelColor = kwl.
find(prefix, TOP_METER_LABEL_COLOR_KW);
2847 const char* bottomMeterLabelColor = kwl.
find(prefix, BOTTOM_METER_LABEL_COLOR_KW);
2848 const char* leftMeterLabelColor = kwl.
find(prefix, LEFT_METER_LABEL_COLOR_KW);
2849 const char* rightMeterLabelColor = kwl.
find(prefix, RIGHT_METER_LABEL_COLOR_KW);
2851 const char* topGeoLabelFormat = kwl.
find(prefix, TOP_GEO_LABEL_FORMAT_KW);
2852 const char* bottomGeoLabelFormat = kwl.
find(prefix, BOTTOM_GEO_LABEL_FORMAT_KW);
2853 const char* leftGeoLabelFormat = kwl.
find(prefix, LEFT_GEO_LABEL_FORMAT_KW);
2854 const char* rightGeoLabelFormat = kwl.
find(prefix, RIGHT_GEO_LABEL_FORMAT_KW);
2856 const char* topGeoLabelFlag = kwl.
find(prefix, TOP_GEO_LABEL_FLAG_KW);
2857 const char* bottomGeoLabelFlag = kwl.
find(prefix, BOTTOM_GEO_LABEL_FLAG_KW);
2858 const char* leftGeoLabelFlag = kwl.
find(prefix, LEFT_GEO_LABEL_FLAG_KW);
2859 const char* rightGeoLabelFlag = kwl.
find(prefix, RIGHT_GEO_LABEL_FLAG_KW);
2861 const char* topMeterLabelFlag = kwl.
find(prefix, TOP_METER_LABEL_FLAG_KW);
2862 const char* bottomMeterLabelFlag = kwl.
find(prefix, BOTTOM_METER_LABEL_FLAG_KW);
2863 const char* leftMeterLabelFlag = kwl.
find(prefix, LEFT_METER_LABEL_FLAG_KW);
2864 const char* rightMeterLabelFlag = kwl.
find(prefix, RIGHT_METER_LABEL_FLAG_KW);
2878 if(meterGridSpacingX)
2883 if(meterGridSpacingY)
2887 if(geoGridSpacingLon)
2891 if(geoGridSpacingLat)
2898 if(type ==
"reseaux")
2902 else if(type ==
"line")
2915 if(type ==
"reseaux")
2919 else if(type ==
"line")
2934 if(bottomBorderLength)
2938 if(leftBorderLength)
2942 if(rightBorderLength)
3003 if(topGeoLabelColor)
3015 if(bottomGeoLabelColor)
3027 if(leftGeoLabelColor)
3039 if(rightGeoLabelColor)
3053 if(topMeterLabelColor)
3065 if(bottomMeterLabelColor)
3077 if(leftMeterLabelColor)
3089 if(rightMeterLabelColor)
3101 if(topGeoLabelFormat)
3106 if(bottomGeoLabelFormat)
3111 if(leftGeoLabelFormat)
3116 if(rightGeoLabelFormat)
3125 if(bottomGeoLabelFlag)
3129 if(leftGeoLabelFlag)
3133 if(rightGeoLabelFlag)
3138 if(topMeterLabelFlag)
3142 if(bottomMeterLabelFlag)
3146 if(leftMeterLabelFlag)
3150 if(rightMeterLabelFlag)
3177 vector<ossimFontInformation> info;
virtual void initialize()
virtual void loadBand(const void *src, const ossimIrect &src_rect, ossim_uint32 band)
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
bool theBottomGeographicTickFlag
virtual void setTopMeterTickMarkFlag(bool flag)
virtual void valueToString(ossimString &valueResult) const =0
virtual void setMeterRightLabelFont(const ossimFontInformation &fontInfo)
ossimAnnotationSource::AnnotationObjectListType theFixedAnnotationList
ossimFontInformation theTitleFontInfo
virtual void drawBorders()
virtual void setMeterLabelColor(const ossimRgbVector &color)
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
This will return the bounding rect of the source.
virtual ossim_int32 getLeftBorderLength() const
virtual ossimRgbVector getRightGeographicLabelColor() const
virtual void setProperty(ossimRefPtr< ossimProperty > property)
bool pointWithin(const ossimDpt &pt, double epsilon=0.0) const
virtual void addGeographicTopGridLabels()
virtual void setMeterTopLabelFont(const ossimFontInformation &fontInfo)
void setRightGeographicTickMarkFlag(bool flag)
ossimIrect theRightBorder
virtual ossim_uint32 getNumberOfBands() const
unsigned char getR() const
void setLeftGeographicLabelFlag(bool flag)
virtual void setGeographicBottomLabelFont(const ossimFontInformation &fontInfo)
virtual void addGeographicGridReseaux()
virtual void setRightBorderLength(ossim_int32 length)
virtual void setImageRectangle(const ossimIrect &rect)
ossim_float64 width() const
virtual ossimFontInformation getGeographicLeftLabelFontInfo() const
virtual ossimFontInformation getMeterTopLabelFontInfo() const
ossimFontInformation theMeterBottomLabelFontInfo
bool theLeftMeterLabelFlag
void setMeterTickMarkFlag(bool flag)
ossimRefPtr< ossimFont > theMeterLeftLabelFont
virtual ossimScalarType getOutputScalarType() const
This will be used to query the output pixel type of the tile source.
Represents serializable keyword/value map.
virtual void setGeographicGridType(ossimGridLineType gridType)
virtual bool getBottomGeographicTickMarkFlag() const
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
virtual bool getLeftMeterTickMarkFlag() const
virtual void setFont(ossimFont *font)
bool theLeftMeterTickFlag
virtual ossimString getRightGeographicLabelFormat() const
virtual void setBottomMeterTickMarkFlag(bool flag)
const char * find(const char *key) const
virtual ossimFontInformation getGeographicRightLabelFontInfo() const
ossimIpt theViewWidthHeight
ossimDpt getMeterSpacing() const
ossimFontInformation theGeographicTopLabelFontInfo
virtual void addFixedAnnotation(ossimAnnotationObject *obj)
virtual ossimDpt worldToLineSample(const ossimGpt &worldPoint) const
const ossimDpt & ul() const
virtual void getFontInformation(vector< ossimFontInformation > &fontInformationList) const
ossim_uint32 theLeftBorderLength
ossim_uint32 height() const
void setTopGeographicTickMarkFlag(bool flag)
virtual ossimGridLineType getGeographicGridType() const
void setGeographicTickMarkFlag(bool flag)
ossim_uint32 theRightBorderLength
void setGeographicSpacingLon(double value)
static ossimString toString(bool aValue)
Numeric to string methods.
virtual void addGeographicBottomGridLabels()
virtual void setRightGeographicLabelColor(const ossimRgbVector &color)
ossimDpt getGeographicSpacing() const
virtual void setMeterGridType(ossimGridLineType gridType)
ossimRefPtr< ossimFont > theMeterTopLabelFont
virtual void setRightMeterLabelColor(const ossimRgbVector &color)
virtual void setGeographicLabelFormat(const ossimString format)
const ossimIpt & ul() const
virtual bool getRightMeterLabelFlag() const
virtual ossimDataObjectStatus getDataObjectStatus() const
virtual ossimRgbVector getGeographicGridColor() const
ossim_uint32 toUInt32() const
virtual ossimFontInformation getMeterRightLabelFontInfo() const
virtual ossimRgbVector getTopGeographicLabelColor() const
bool theRightGeographicLabelFlag
bool intersects(const ossimIrect &rect) const
virtual bool getLeftGeographicLabelFlag() const
ossimRgbVector theTopMeterLabelColor
virtual bool getBottomMeterTickMarkFlag() const
bool theRightGeographicTickFlag
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name, bool recurse=false)
ossim_uint32 theBottomBorderLength
const ossimIpt & ll() const
virtual ossimFontInformation getGeographicBottomLabelFontInfo() const
virtual void setBottomGeographicLabelColor(const ossimRgbVector &color)
virtual void initialize()
virtual ossimRgbVector getBorderColor() const
virtual void setLeftGeographicLabelFormat(const ossimString &format)
virtual ossimString getLeftGeographicLabelFormat() const
virtual void setTopMeterLabelColor(const ossimRgbVector &color)
virtual void addGeographicGridLines()
ossimRgbVector theLeftMeterLabelColor
const ossimDatum * datum() const
datum().
virtual void setMeterLeftLabelFont(const ossimFontInformation &fontInfo)
virtual void setLeftMeterTickMarkFlag(bool flag)
ossimFontInformation theMeterRightLabelFontInfo
ossimRefPtr< ossimFont > theGeographicTopLabelFont
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &tileRect, ossim_uint32 resLevel=0)
virtual bool getTopMeterLabelFlag() const
void setViewWidthHeight(const ossimIpt &widthHeight)
virtual ossimRgbVector getBottomMeterLabelColor() const
virtual ossimRgbVector getMeterGridColor() const
ossimString theTitleString
ossimFontInformation theGeographicLeftLabelFontInfo
void setGeographicSpacingLat(double value)
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
ossimIpt getViewWidthHeight() const
void setTopGeographicLabelFlag(bool flag)
virtual bool getTopGeographicTickMarkFlag() const
virtual ossim_int32 getTopBorderLength() const
virtual ossimRgbVector getRightMeterLabelColor() const
virtual bool getRightMeterTickMarkFlag() const
void getFontInformation(std::vector< ossimFontInformation > &informationList) const
ossimIrect theBottomBorder
bool theRightMeterTickFlag
ossimDrect clipToRect(const ossimDrect &rect) const
virtual ossimGpt lineSampleToWorld(const ossimDpt &projectedPoint) const
virtual ~ossimMapCompositionSource()
ossimFontInformation theMeterLeftLabelFontInfo
virtual void setTopGeographicLabelColor(const ossimRgbVector &color)
ossimRefPtr< ossimFont > theGeographicBottomLabelFont
ossimFontInformation theMeterTopLabelFontInfo
virtual void setBottomMeterLabelColor(const ossimRgbVector &color)
virtual bool getBottomMeterLabelFlag() const
ossimRefPtr< ossimImageData > getImageData()
Will return the image data.
virtual void setGeographicLeftLabelFont(const ossimFontInformation &fontInfo)
virtual ossimDataObjectStatus validate() const
ossimIrect getViewingRect() const
virtual void lineSampleToEastingNorthing(const ossimDpt &liineSample, ossimDpt &eastingNorthing) const
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
virtual void setTitle(const ossimString &s)
ossimFontInformation theGeographicRightLabelFontInfo
ossimIpt midPoint() const
virtual void drawAnnotations(ossimRefPtr< ossimImageData > tile)
virtual void setRightGeographicLabelFormat(const ossimString &format)
void fill(const double *values, const ossimIrect &rect, bool clipPoly=true)
bool toBool() const
String to numeric methods.
virtual void addMeterGridReseaux()
virtual bool getTopGeographicLabelFlag() const
RTTI_DEF1(ossimMapCompositionSource, "ossimMapCompositionSource", ossimAnnotationSource)
ossimImageSource * theInputConnection
ossimRgbVector theTopGeographicLabelColor
virtual void getBoundingBox(ossimIrect &box)=0
ossimRefPtr< ossimFont > theGeographicLeftLabelFont
unsigned int ossim_uint32
virtual ossimFontInformation getMeterLeftLabelFontInfo() const
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
virtual void addGeographicLeftGridLabels()
void setLeftGeographicTickMarkFlag(bool flag)
const ossimRgbVector & getColor() const
virtual void deleteFixedAnnotations()
bool theLeftGeographicTickFlag
unsigned long toULong() const
virtual ossimIrect getImageRectangle() const
virtual void setGeographicRightLabelFont(const ossimFontInformation &fontInfo)
unsigned char getB() const
virtual void setGeographicTopLabelFont(const ossimFontInformation &fontInfo)
virtual ossim_int32 getRightBorderLength() const
ossimRefPtr< ossimFont > theTitleFont
virtual ossimRgbVector getTopMeterLabelColor() const
virtual void computeBoundingRect()
const ossimIpt & lr() const
ossimDpt theGeographicSpacing
ossimFont * createFont(const ossimFontInformation &information) const
static ossimString downcase(const ossimString &aString)
virtual void setColor(ossim_uint8 r, ossim_uint8 g, ossim_uint8 b)
ossimRgbVector theTitleColor
ossimFont * getDefaultFont() const
Class to draw fonts onto an image.
virtual void setLeftMeterLabelColor(const ossimRgbVector &color)
virtual void setTitleColor(const ossimRgbVector &color)
virtual ossimGridLineType getMeterGridType() const
virtual void setGeometryInformation(const ossimFontInformation &info)
ossim_uint32 width() const
const ossimFontInformation & getFontInformation() const
ossimIrect clipToRect(const ossimIrect &rect) const
bool intersects(const ossimDrect &rect) const
ossim_float64 height() const
virtual ossimRgbVector getTitleColor() const
bool theLeftGeographicLabelFlag
virtual ossimRefPtr< ossimImageGeometry > getImageGeometry()
Returns the image geometry object associated with this tile source or NULL if not defined...
ossimRgbVector theLeftGeographicLabelColor
virtual ossimObject * dup() const =0
const ossimIpt & ur() const
virtual void setBottomGeographicLabelFormat(const ossimString &format)
virtual bool getRightGeographicLabelFlag() const
void setMeterSpacing(double x, double y)
virtual ossim_int32 getBottomBorderLength() const
virtual ossimRgbVector getLeftGeographicLabelColor() const
bool clip(ossimDpt &p1, ossimDpt &p2) const
virtual bool getLeftMeterLabelFlag() const
virtual void computeBorderRects()
unsigned char getG() const
virtual ossimScalarType getScalarType() const
virtual void makeBlank()
Initializes data to null pixel values.
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
const ossimProjection * getProjection() const
Access methods for projection (may be NULL pointer).
ossimRgbVector theBottomMeterLabelColor
ossimRefPtr< ossimFont > theMeterBottomLabelFont
long toLong() const
toLong's deprecated, please use the toInts...
bool theBottomMeterLabelFlag
virtual void setString(const ossimString &s)
virtual void setRightMeterTickMarkFlag(bool flag)
virtual void setLeftMeterLabelFlag(bool flag)
virtual void setBottomMeterLabelFlag(bool flag)
static ossimFontFactoryRegistry * instance()
virtual bool getTopMeterTickMarkFlag() const
virtual void setRightMeterLabelFlag(bool flag)
ossimGridLineType theMeterGridType
ossimRgbVector theMeterGridColor
ossimRgbVector theBottomGeographicLabelColor
bool theTopMeterLabelFlag
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save the state of an object to a keyword list.
virtual void setTopMeterLabelFlag(bool flag)
virtual void addGeographicRightGridLabels()
ossimMapCompositionSource()
ossimRgbVector theRightGeographicLabelColor
virtual const void * getBuf() const
void setMeterSpacingY(double value)
virtual bool getBottomGeographicLabelFlag() const
virtual void setBottomBorderLength(ossim_int32 length)
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
virtual bool getRightGeographicTickMarkFlag() const
const ossimDpt & ur() const
bool theTopGeographicLabelFlag
ossimString theTopGeographicFormat
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
virtual ossimIrect getBoundingRect(ossim_uint32 resLevel=0) const
void setGeographicSpacing(double lat, double lon)
ossimRefPtr< ossimFont > theMeterRightLabelFont
ossim_uint32 theTopBorderLength
ossimRefPtr< ossimRgbImage > theImage
virtual ossimString getBottomGeographicLabelFormat() const
virtual void setMeterGridColor(const ossimRgbVector &color)
virtual ossimRgbVector getLeftMeterLabelColor() const
ossimRgbVector theRightMeterLabelColor
virtual ossimFontInformation getGeographicTopLabelFontInfo() const
ossimRgbVector theGeographicGridColor
virtual ossim_uint32 getNumberOfOutputBands() const
Returns the number of bands in a tile returned from this TileSource.
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
void setBottomGeographicTickMarkFlag(bool flag)
bool theBottomGeographicLabelFlag
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
bool theRightMeterLabelFlag
void setRightGeographicLabelFlag(bool flag)
virtual void eastingNorthingToLineSample(const ossimDpt &eastingNorthing, ossimDpt &lineSample) const
virtual void setLeftBorderLength(ossim_int32 length)
virtual void setMeterBottomLabelFont(const ossimFontInformation &fontInfo)
ossimString theRightGeographicFormat
ossimFontInformation theGeographicBottomLabelFontInfo
void allocate(const ossimIrect &rect)
const ossimMapProjection * inputMapProjection() const
Fetches the input connection's image geometry and verifies that it is a map projection.
ossimGridLineType theGeographicGridType
virtual void setGeographicGridColor(const ossimRgbVector &color)
virtual void addMeterGridLabels()
const ossimDpt & ll() const
bool theBottomMeterTickFlag
ossimRgbVector theBorderColor
virtual void setBorderColor(const ossimRgbVector &color)
virtual void addGridLabels()
virtual ossimRgbVector getBottomGeographicLabelColor() const
virtual void setGeographicLabelColor(const ossimRgbVector &color)
std::basic_istringstream< char > istringstream
Class for char input memory streams.
virtual void setLeftGeographicLabelColor(const ossimRgbVector &color)
ossimString theBottomGeographicFormat
virtual ossimFontInformation getTitleFont() const
virtual void addChild(ossimProperty *propery)
bool theTopGeographicTickFlag
void setCurrentImageData(ossimRefPtr< ossimImageData > &imageData)
Allows you to change the image data that this RgbImage object operates on.
ossimRefPtr< ossimFont > theGeographicRightLabelFont
virtual void drawAnnotations(ossimRefPtr< ossimImageData > tile)
ossimRefPtr< ossimImageData > theTile
virtual void setTopBorderLength(ossim_int32 length)
virtual void setTitleFont(const ossimFontInformation &fontInfo)
virtual void addMeterGridLines()
void setMeterSpacingX(double value)
const ossimDpt & lr() const
virtual void getDecimationFactor(ossim_uint32 resLevel, ossimDpt &result) const
Will return the decimation factor for the given resolution level.
void setBottomGeographicLabelFlag(bool flag)
virtual void setProperty(ossimRefPtr< ossimProperty > property)
virtual ossimString getTopGeographicLabelFormat() const
virtual void getBoundingRect(ossimDrect &rect) const
unsigned char ossim_uint8
virtual void setTopGeographicLabelFormat(const ossimString &format)
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossimString theLeftGeographicFormat
void setCacheRefreshBit()
virtual void setCenterPosition(const ossimIpt &position)
const ossimString & getName() const
virtual void layoutAnnotations()
virtual ossimString getTitle() const
ossimString toString(const ossimString &formatString=ossimString("")) const
You can specify a number of different formats.
virtual ossimFontInformation getMeterBottomLabelFontInfo() const
virtual bool getLeftGeographicTickMarkFlag() const
virtual ossimRefPtr< ossimImageData > getTile(const ossimIpt &origin, ossim_uint32 resLevel=0)