本文整理汇总了C++中ossimDrect::makeNan方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimDrect::makeNan方法的具体用法?C++ ossimDrect::makeNan怎么用?C++ ossimDrect::makeNan使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimDrect
的用法示例。
在下文中一共展示了ossimDrect::makeNan方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getBoundingRect
void ossimShapeObject::getBoundingRect(ossimDrect& result,
ossimCoordSysOrientMode orient)const
{
double minx, miny, maxx, maxy;
if(theShape)
{
getBounds(minx, miny, maxx, maxy);
if(orient == OSSIM_RIGHT_HANDED)
{
result = ossimDrect(minx, maxy, maxx, miny, orient);
}
else
{
result = ossimDrect(minx, miny, maxx, maxy, orient);
}
}
else
{
result = ossimDrect(0,0,0,0,orient);
result.makeNan();
}
}
示例2: getBoundingBox
void ossimFgdcXmlDoc::getBoundingBox(ossimDrect& rect) const
{
rect.makeNan();
if (isOpen())
{
double ll_lat = 0.0;
double ll_lon = 0.0;
double lr_lat = 0.0;
double lr_lon = 0.0;
double ul_lat = 0.0;
double ul_lon = 0.0;
double ur_lat = 0.0;
double ur_lon = 0.0;
ossimString xpath = "/metadata/idinfo/spdom/lboundng/leftbc";
bool result = getPath(xpath, ul_lon);
if (!result)
{
xpath = "/metadata/idinfo/spdom/bounding/westbc";
result = getPath(xpath, ul_lon);
m_boundInDegree = true;
}
if (result)
{
ll_lon = ul_lon;
}
xpath = "/metadata/idinfo/spdom/lboundng/rightbc";
result = getPath(xpath, ur_lon);
if (!result)
{
xpath = "/metadata/idinfo/spdom/bounding/eastbc";
result = getPath(xpath, ur_lon);
m_boundInDegree = true;
}
if (result)
{
lr_lon = ur_lon;
}
xpath = "/metadata/idinfo/spdom/lboundng/bottombc";
result = getPath(xpath, ll_lat);
if (!result)
{
xpath = "/metadata/idinfo/spdom/bounding/southbc";
result = getPath(xpath, ll_lat);
m_boundInDegree = true;
}
if (result)
{
lr_lat = ll_lat;
}
xpath = "/metadata/idinfo/spdom/lboundng/topbc";
result = getPath(xpath, ul_lat);
if (!result)
{
xpath = "/metadata/idinfo/spdom/bounding/northbc";
result = getPath(xpath, ul_lat);
m_boundInDegree = true;
}
if (result)
{
ur_lat = ul_lat;
}
rect = ossimDrect(ossimDpt(ul_lon, ul_lat),
ossimDpt(ur_lon, ur_lat),
ossimDpt(lr_lon, lr_lat),
ossimDpt(ll_lon, ll_lat), OSSIM_RIGHT_HANDED);
}
}