11 static ossimTrace traceDebug(
"ossimGeographicAnnotationGrid:debug");
15 theViewProjection(NULL),
16 theGroundRect(0,0,0,0),
17 theDeltaLatSpacing(1.0/60.0),
18 theDeltaLonSpacing(1.0/60.0)
73 groundUpper.lond(lon);
74 groundUpper.latd(lat);
75 groundLower.lond(lon);
76 groundLower.latd(lat-height);
92 groundUpper.lond(lon);
93 groundUpper.latd(lat);
94 groundLower.lond(lon);
95 groundLower.latd(lat-height);
99 font->
setText(
ossimDms(groundUpper.lond(),
false).toString(
"ddd@mm'ss.ssss\"C"));
101 start.
y -= boundingRect.
height();
105 end.
y += boundingRect.
height();
107 ossimDms(groundLower.lond(),
false).toString(
"ddd@mm'ss.ssssC"));
120 groundLeft.
lond(lon);
121 groundLeft.
latd(lat);
122 groundRight.
lond(lon+width);
123 groundRight.
latd(lat);
137 groundLeft.
lond(lon);
138 groundLeft.
latd(lat);
139 groundRight.
lond(lon+width);
140 groundRight.
latd(lat);
148 start.
x -= boundingRect.
width()/2.0-1;
152 end.
x += boundingRect.
width()/2.0+1;
154 ossimDms(groundRight.
latd()).toString(
"ddd@mm'ss.ssssC"));
167 static const char* MODULE =
"ossimGeographicAnnotationGrid::setViewProjectionInformation";
186 double upperLeftLonShift = clipRect.
ul().
lond() + 180;
187 double upperLeftLatShift = clipRect.
ul().
latd() + 90;
188 double lowerRightLonShift = clipRect.
lr().
lond() + 180;
189 double lowerRightLatShift = clipRect.
lr().
latd() + 90;
208 upperLeftLonCell = (upperLeftLonCell<0?0:upperLeftLonCell);
209 upperLeftLatCell = (upperLeftLatCell>180?180:upperLeftLatCell);
210 lowerRightLonCell = (lowerRightLonCell>360?360:lowerRightLonCell);
211 lowerRightLatCell = (lowerRightLatCell<0?0:lowerRightLatCell);
214 upperLeftLonCell -= 180;
215 upperLeftLatCell -= 90;
216 lowerRightLonCell -= 180;
217 lowerRightLatCell -= 90;
221 lowerRightLatCell, lowerRightLonCell,
238 static const char* MODULE =
"ossimGeographicAnnotationGrid::computeBoundingRect";
242 vector<ossimDpt> points(4);
269 lr.
x + boundingRect.
width(),
ossimRefPtr< ossimMapProjection > theViewProjection
ossim_float64 width() const
double lond() const
Will convert the radian measure to degrees.
virtual void draw(ossimRgbImage &anImage) const
virtual ossimDpt worldToLineSample(const ossimGpt &worldPoint) const
const ossimDpt & ul() const
ossim_float64 width() const
Returns the width of a rectangle in deg.
virtual std::ostream & print(std::ostream &out) const
Generic print method.
double latd() const
Will convert the radian measure to degrees.
const ossimDatum * datum() const
datum().
virtual void draw(ossimRgbImage &anImage) const
virtual ossimDrect getBoundingRect() const
virtual void draw(ossimRgbImage &anImage) const
ossimRefPtr< ossimImageData > getImageData()
Will return the image data.
virtual void setCenterTextPosition(const ossimDpt &position)
void setLine(const ossimDpt &start, const ossimDpt &end)
ossimGrect clipToRect(const ossimGrect &rect) const
ossimDrect theBoundingRect
const ossimGpt & ul() const
double theDeltaLatSpacing
ossimGeographicAnnotationGrid()
ossim_float64 height() const
virtual void setCenterText(const ossimDpt ¢er, const ossimString &text)
double theDeltaLonSpacing
virtual void getBoundingRect(ossimDrect &rect) const
void setDrawColor(ossim_uint8 r=255, ossim_uint8 g=255, ossim_uint8 b=255)
virtual void setText(const ossimString &text)
virtual void setViewProjectionInformation(ossimMapProjection *projection, const ossimGrect &boundingGroundRect)
ossim_float64 height() const
Returns the height of a rectangle in deg.
const ossimDpt & lr() const
virtual void computeBoundingRect()
const ossimGpt & lr() const
std::basic_ostream< char > ostream
Base class for char output streams.