本文整理汇总了C++中ossimKeywordlist::add方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimKeywordlist::add方法的具体用法?C++ ossimKeywordlist::add怎么用?C++ ossimKeywordlist::add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimKeywordlist
的用法示例。
在下文中一共展示了ossimKeywordlist::add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: saveState
bool ossimDrect::saveState(ossimKeywordlist& kwl,
const char* prefix)const
{
kwl.add(prefix,
ossimKeywordNames::TYPE_KW,
"ossimDrect",
true);
kwl.add(prefix, "rect", toString());
return true;
}
示例2: saveState
bool ossimElevationCellDatabase::saveState(ossimKeywordlist& kwl, const char* prefix)const
{
kwl.add(prefix, "memory_map_cells", m_memoryMapCellsFlag, true);
kwl.add(prefix, "min_open_cells", m_minOpenCells, true);
kwl.add(prefix, "max_open_cells", m_maxOpenCells, true);
if(m_geoid.valid())
{
kwl.add(prefix, "geoid.type", m_geoid->getShortName(), true);
}
return ossimElevationDatabase::saveState(kwl, prefix);
}
示例3: saveState
bool ossimBuckeyeSensor::saveState(ossimKeywordlist& kwl,
const char* prefix) const
{
if (traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimBuckeyeSensor::saveState: entering..." << std::endl;
ossimSensorModel::saveState(kwl, prefix);
kwl.add(prefix, "type", "ossimBuckeyeSensor", true);
kwl.add(prefix, "roll", theRoll, true);
kwl.add(prefix, "pitch", thePitch, true);
kwl.add(prefix, "heading", theHeading, true);
kwl.add(prefix, "principal_point", "("+ossimString::toString(thePrincipalPoint.x) + "," + ossimString::toString(thePrincipalPoint.y)+")");
kwl.add(prefix, "pixel_size", "("+ossimString::toString(thePixelSize.x) + "," + ossimString::toString(thePixelSize.y)+")");
kwl.add(prefix, "focal_length", theFocalLength);
kwl.add(prefix, "ecef_platform_position",
ossimString::toString(theEcefPlatformPosition.x()) + " " +
ossimString::toString(theEcefPlatformPosition.y()) + " " +
ossimString::toString(theEcefPlatformPosition.z()));
if(theLensDistortion.valid())
{
ossimString lensPrefix = ossimString(prefix)+"distortion.";
theLensDistortion->saveState(kwl,
lensPrefix.c_str());
}
if (traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimBuckeyeSensor::saveState: returning..." << std::endl;
return true;
}
示例4: saveState
bool ossimImageGaussianFilter::saveState(ossimKeywordlist& kwl,
const char* prefix)const
{
kwl.add(prefix,
PROPERTYNAME_GAUSSSTD,
theGaussStd,
true);
kwl.add(prefix,
PROPERTYNAME_STRICTNODATA,
isStrictNoData()?"true":"false", //use string instead of boolean
true);
return ossimImageSourceFilter::saveState(kwl, prefix);
}
示例5: saveState
bool ossimUtmProjection::saveState(ossimKeywordlist& kwl, const char* prefix) const
{
kwl.add(prefix,
ossimKeywordNames::ZONE_KW,
theZone,
true);
kwl.add(prefix,
ossimKeywordNames::HEMISPHERE_KW,
theHemisphere,
true);
return ossimMapProjection::saveState(kwl, prefix);
}
示例6: saveState
bool ossimLambertConformalConicProjection::saveState(ossimKeywordlist& kwl, const char* prefix) const
{
kwl.add(prefix,
ossimKeywordNames::STD_PARALLEL_1_KW,
Lambert_Std_Parallel_1*DEG_PER_RAD,
true);
kwl.add(prefix,
ossimKeywordNames::STD_PARALLEL_2_KW,
Lambert_Std_Parallel_2*DEG_PER_RAD,
true);
return ossimMapProjection::saveState(kwl, prefix);
}
示例7: saveState
bool ossimWatermarkFilter::saveState(ossimKeywordlist& kwl,
const char* prefix) const
{
kwl.add(prefix,
ossimKeywordNames::FILENAME_KW,
theFilename.c_str());
kwl.add(prefix,
WATERMARK_MODE_KW,
getModeString().c_str());
kwl.add(prefix,
WEIGHT_KW,
theWatermarkWeight);
return ossimImageSourceFilter::saveState(kwl, prefix);
}
示例8: getMetadata
void ossimNitfImageHeader::getMetadata(ossimKeywordlist& kwl,
const char* prefix) const
{
kwl.add(prefix, "source",
getImageSource().c_str(),
false);
kwl.add(prefix,
"image_date",
getAcquisitionDateMonthDayYear().c_str(),
false);
kwl.add(prefix,
"image_title",
getTitle().c_str(),
false);
}
示例9: saveState
//*************************************************************************************************
// Saves the state of the original chain along with number of clones present.
//*************************************************************************************************
bool ossimImageChainMtAdaptor::saveState(ossimKeywordlist& kwl, const char* prefix) const
{
if (m_chainContainers.empty())
return false;
kwl.add(prefix, NUM_THREADS_KW, m_numThreads);
kwl.add(prefix, ORIGINAL_SOURCE_ID_KW, m_clones[0]->getId().getId());
bool rtn_state = m_chainContainers[0]->saveState(kwl, prefix);
if (d_debugEnabled)
kwl.write("ossimImageChainMtAdaptor.kwl");
return rtn_state;
}
示例10: saveState
bool ossimTilingPoly::saveState(ossimKeywordlist& kwl,
const char* prefix)const
{
kwl.add(prefix,
"tile_source",
m_shpFilename.c_str(),
true);
kwl.add(prefix,
"paddding_use_mbr",
m_useMbr,
true);
return ossimTilingRect::saveState(kwl, prefix);;
}
示例11: saveState
//*******************************************************************
// Public method:
//*******************************************************************
bool ossimGeneralRasterTileSource::saveState(ossimKeywordlist& kwl,
const char* prefix) const
{
// Our stuff:
m_rasterInfo.saveState(kwl, prefix);
// Base class:
bool result = ossimImageHandler::saveState(kwl, prefix);
if ( result && isBandSelector() && m_outputBandList.size() )
{
if ( isIdentityBandList( m_outputBandList ) == false )
{
// If we're not identity output the bands.
ossimString bandsString;
ossim::toSimpleStringList(bandsString, m_outputBandList);
kwl.add(prefix,
ossimKeywordNames::BANDS_KW,
bandsString,
true);
}
}
return result;
}
示例12: saveState
bool ossimNdfTileSource::saveState(ossimKeywordlist& kwl,
const char* prefix)const
{
kwl.add(prefix, "header_filename", theHeaderFile.c_str(), true);
return ossimGeneralRasterTileSource::saveState(kwl, prefix);
}
示例13: saveState
bool ossimCFARFilter::saveState(ossimKeywordlist& kwl, const char* prefix)const
{
ossimImageSourceFilter::saveState(kwl, prefix);
kwl.add(prefix,"aperture_size",0,true);
return true;
}
示例14: saveState
bool ossimQtVceWindowController::saveState(ossimKeywordlist& kwl,
const char* prefix)const
{
if(theVceWindow)
{
kwl.add(prefix,
ossimKeywordNames::TYPE_KW,
"ossimQtVceWindow",
true);
QWidget* widget = theVceWindow->parentWidget(true);
QPoint pt(widget->pos());
kwl.add(prefix,
"position",
ossimString::toString((int)pt.x()) + " " + ossimString::toString((int)pt.y()),
true);
kwl.add(prefix,
"size",
ossimString::toString((int)theVceWindow->width()) + " " + ossimString::toString((int)theVceWindow->height()),
true);
ossimString showState = "shown";
if(theVceWindow->isMinimized())
{
showState = "minimized";
}
else if(theVceWindow->isMaximized())
{
showState = "maximized";
}
else if(theVceWindow->isHidden())
{
showState = "hidden";
}
kwl.add(prefix,
"show_state",
showState,
true);
return theVceWindow->theCanvasView->saveState(kwl, (ossimString(prefix)+"canvas_view0.").c_str());
}
return false;
}
示例15: saveState
//*****************************************************************************
// METHOD: ossimTileMapModel::saveState()
//
// Saves the model state to the KWL. This KWL also serves as a geometry file.
//
//*****************************************************************************
bool ossimTileMapModel::saveState(ossimKeywordlist& kwl,
const char* prefix) const
{
if (traceExec()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimTileMapModel::saveState: entering..." << std::endl;
kwl.add(prefix, ossimKeywordNames::TYPE_KW, TYPE_NAME(this));
kwl.add(prefix, "depth", qDepth);
//***
// Hand off to base class for common stuff:
//***
ossimSensorModel::saveState(kwl, prefix);
if (traceExec()) ossimNotify(ossimNotifyLevel_DEBUG) << "DEBUG ossimTileMapModel::saveState: returning..." << std::endl;
return true;
}