本文整理汇总了C++中ossimRefPtr::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimRefPtr::getName方法的具体用法?C++ ossimRefPtr::getName怎么用?C++ ossimRefPtr::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimRefPtr
的用法示例。
在下文中一共展示了ossimRefPtr::getName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setProperty
void ossimBandSelector::setProperty(ossimRefPtr<ossimProperty> property)
{
if(!property) return;
if(property->getName() == "bandSelection")
{
ossimString str = property->valueToString();
std::vector<ossimString> str_vec;
std::vector<ossim_uint32> int_vec;
str.split( str_vec, " " );
for ( ossim_uint32 i = 0; i < str_vec.size(); ++i )
{
if(!str_vec[i].empty())
{
int_vec.push_back( str_vec[i].toUInt32() );
}
}
setOutputBandList( int_vec );
}
else if(property->getName() == "bands")
{
std::vector<ossim_uint32> selection;
if(ossim::toSimpleVector(selection, property->valueToString()))
{
theOutputBandList = selection;
}
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}
示例2: setProperty
void ossimLasReader::setProperty(ossimRefPtr<ossimProperty> property)
{
if ( property.valid() )
{
if ( property->getName() == SCALE_KW )
{
ossimString s;
property->valueToString(s);
ossim_float64 d = s.toFloat64();
if ( ossim::isnan(d) == false )
{
setScale( d );
}
}
else if ( property->getName() == SCAN_KW )
{
ossimString s;
property->valueToString(s);
m_scan = s.toBool();
}
else
{
ossimImageHandler::setProperty(property);
}
}
}
示例3: setProperty
void ossimImageToPlaneNormalFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
ossimString name = property->getName();
if(name == "smoothnessFactor")
{
theSmoothnessFactor = property->valueToString().toDouble();
initialize();
}
else if(name == "xscale")
{
theXScale = property->valueToString().toDouble();
initialize();
}
else if(name == "yscale")
{
theYScale = property->valueToString().toDouble();
initialize();
}
else if(name == "autoTrackScaleFlag")
{
theTrackScaleFlag = property->valueToString().toDouble();
initialize();
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}
示例4: setProperty
void ossimCFARFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
if(!property) return;
ossimString name = property->getName();
if(name == "aperture_size")
{
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}
示例5: setProperty
bool ossimOpjCompressor::setProperty(ossimRefPtr<ossimProperty> property)
{
bool consumed = false;
if ( property.valid() )
{
ossimString key = property->getName();
if ( traceDebug() )
{
ossimNotify(ossimNotifyLevel_DEBUG)
<< "ossimOpjCompressor::setProperty DEBUG:"
<< "\nkey: " << key
<< " values: " << property->valueToString() << std::endl;
}
if (key == ossimKeywordNames::COMPRESSION_QUALITY_KW)
{
setQualityTypeString(property->valueToString());
consumed = true;
}
else if ( (key == LEVELS_KW) || (key == "Clevels") )
{
m_levels = property->valueToString().toInt32();
consumed = true;
}
else if( (key == REVERSIBLE_KW) || (key == "Creversible") )
{
setReversibleFlag(property->valueToString().toBool());
consumed = true;
}
else if (key == ADD_ALPHA_CHANNEL_KW)
{
m_alpha = property->valueToString().toBool();
consumed = true;
}
else if ( key == THREADS_KW)
{
m_threads = property->valueToString().toInt32();
consumed = true;
}
else if ( (key == "Clayers") ||
(key == "Cprecincts") )
{
// Generic options passed through kdu_params::parse_string.
// Make in the form of "key=value" for kdu_params::parse_string.
ossimString option = key;
option += "=";
option += property->valueToString();
// Add to list.
m_options.push_back(option);
consumed = true;
}
}
return consumed;
}
示例6: setProperty
void ossimEdgeFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
if(!property) return;
if(property->getName() == PROP_EDGE_FILTER)
{
theFilterType = property->valueToString();
}
}
示例7: setProperty
void ossimImageGaussianFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
if(!property) return;
if (property->getName() == PROPERTYNAME_GAUSSSTD) {
ossimNumericProperty* sProperty = PTR_CAST(ossimNumericProperty,
property.get());
if(sProperty)
{
setGaussStd(sProperty->asFloat64());
}
} else if (property->getName() == PROPERTYNAME_STRICTNODATA) {
ossimBooleanProperty* booleanProperty = PTR_CAST(ossimBooleanProperty,
property.get());
if(booleanProperty)
{
setStrictNoData(booleanProperty->getBoolean());
}
} else {
ossimImageSourceFilter::setProperty(property);
}
}
示例8: setProperty
void ossimPngReader::setProperty(ossimRefPtr<ossimProperty> property)
{
if ( property.valid() )
{
if ( property->getName().string() == USE_ALPHA_KW )
{
ossimString s;
property->valueToString(s);
m_useAlphaChannelFlag = s.toBool();
}
else
{
ossimImageHandler::setProperty(property);
}
}
}
示例9: setProperty
void ossimFftFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
if(!property) return;
if(property->getName() == "FFT Direction")
{
if(theTile.valid())
{
theTile = NULL;
}
setDirectionType(property->valueToString());
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}
示例10: setProperty
void ossimIndexToRgbLutFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
if(property.valid())
{
ossimString value = property->valueToString();
value = value.trim();
if(property->getName() == "LUT file")
{
setLut(ossimFilename(property->valueToString()));
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}
}
示例11: setProperty
void ossimCFARFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
if(!property) return;
ossimString name = property->getName();
if(name == "threshold")
{
theThreshold = property->valueToString().toDouble();
}
else if(name == "Kernel")
{
ossimMatrixProperty* matrixProperty = PTR_CAST(ossimMatrixProperty,
property.get());
if(matrixProperty)
{
for(ossim_int32 r = 0; r < 5; r++)
{
for(ossim_int32 c = 0; c < 5; c++)
{
theKernel[r][c] = (*matrixProperty)(r,c);
}
}
/*
theKernel[0][0] = (*matrixProperty)(0,0);
theKernel[1][0] = (*matrixProperty)(1,0);
theKernel[2][0] = (*matrixProperty)(2,0);
theKernel[0][1] = (*matrixProperty)(0,1);
theKernel[1][1] = (*matrixProperty)(1,1);
theKernel[2][1] = (*matrixProperty)(2,1);
theKernel[0][2] = (*matrixProperty)(0,2);
theKernel[1][2] = (*matrixProperty)(1,2);
theKernel[2][2] = (*matrixProperty)(2,2);
*/
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}
示例12: setProperty
void ossimRangeDomeTileSource::setProperty(ossimRefPtr<ossimProperty> property)
{
if (!property.valid())
return;
ossimString s;
property->valueToString(s);
if (s.empty())
return;
// The user should select either explicit GSD or relative GSD factor, never both:
if ( property->getName() == ossimKeywordNames::METERS_PER_PIXEL_KW )
{
ossim_float64 gsd = s.toFloat64();
if (!ossim::isnan(gsd))
setGSD(gsd);
}
else
{
ossimImageHandler::setProperty(property);
}
}
示例13: if
void
ossimOutlierRejection::setProperty(ossimRefPtr<ossimProperty> property)
{
if(!property.valid()) return;
ossimString name = property->getName();
if(name == "inlier_output_filename")
{
theInlierOutputFilename = ossimFilename(property->valueToString());
}
else if(name =="inlier_ratio")
{
setInlierRatio(property->valueToString().toDouble());
}
else if(name == "inlier_image_accuracy")
{
setInlierImageAccuracy(property->valueToString().toDouble());
}
else {
ossimModelOptimizer::setProperty(property);
}
}
示例14: setCurrentEntry
void ossimH5Reader::setProperty(ossimRefPtr<ossimProperty> property)
{
if ( property.valid() )
{
if ( property->getName().string() == LAYER_KW )
{
ossimString s;
property->valueToString(s);
ossim_uint32 SIZE = (ossim_uint32)m_entries.size();
for ( ossim_uint32 i = 0; i < SIZE; ++i )
{
if ( m_entries[i].getName() == s.string() )
{
setCurrentEntry( i );
}
}
}
else
{
ossimImageHandler::setProperty(property);
}
}
}
示例15: setProperty
void ossimWatermarkFilter::setProperty(ossimRefPtr<ossimProperty> property)
{
if (!property) return;
ossimString os = property->valueToString();
ossimString name = property->getName();
if (name == ossimKeywordNames::FILENAME_KW)
{
setFilename(os);
}
else if (name == WATERMARK_MODE_KW)
{
setMode(os);
}
else if (name == WEIGHT_KW)
{
setWeight(os.toDouble());
}
else
{
ossimImageSourceFilter::setProperty(property);
}
}