本文整理汇总了C++中PlugInArg::setName方法的典型用法代码示例。如果您正苦于以下问题:C++ PlugInArg::setName方法的具体用法?C++ PlugInArg::setName怎么用?C++ PlugInArg::setName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlugInArg
的用法示例。
在下文中一共展示了PlugInArg::setName方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getInputSpecification
bool ModelExporter::getInputSpecification(PlugInArgList*& pInArgList)
{
pInArgList = mpPlugInManager->getPlugInArgList();
VERIFY(pInArgList != NULL);
PlugInArg* pArg = NULL;
VERIFY((pArg = mpPlugInManager->getPlugInArg()) != NULL);
pArg->setName(Executable::ProgressArg());
pArg->setType("Progress");
pArg->setDefaultValue(NULL);
pArg->setDescription(Executable::ProgressArgDescription());
pInArgList->addArg(*pArg);
VERIFY((pArg = mpPlugInManager->getPlugInArg()) != NULL);
pArg->setName(Exporter::ExportDescriptorArg());
pArg->setType("FileDescriptor");
pArg->setDefaultValue(NULL);
pArg->setDescription("File descriptor for the output file.");
pInArgList->addArg(*pArg);
VERIFY((pArg = mpPlugInManager->getPlugInArg()) != NULL);
pArg->setName(Exporter::ExportItemArg());
pArg->setType(mDataElementSubclass);
pArg->setDefaultValue(NULL);
pArg->setDescription("Model item to export.");
pInArgList->addArg(*pArg);
return true;
}
示例2: getInputSpecification
bool AutoImporter::getInputSpecification(PlugInArgList*& pArgList)
{
pArgList = NULL;
pArgList = mpPlugInManager->getPlugInArgList();
if (pArgList == NULL)
{
return false;
}
// Menu command
PlugInArg* pArg = mpPlugInManager->getPlugInArg();
VERIFY(pArg != NULL);
pArg->setName(Executable::MenuCommandArg());
pArg->setType("string");
pArg->setDescription("String name for the menu command.");
pArg->setDefaultValue(NULL);
pArgList->addArg(*pArg);
// Progress
pArg = mpPlugInManager->getPlugInArg();
VERIFY(pArg != NULL);
pArg->setName(Executable::ProgressArg());
pArg->setType("Progress");
pArg->setDescription(Executable::ProgressArgDescription());
pArg->setDefaultValue(NULL);
pArgList->addArg(*pArg);
// Data element
pArg = mpPlugInManager->getPlugInArg();
VERIFY(pArg != NULL);
pArg->setName(Importer::ImportElementArg());
pArg->setType("DataElement");
pArg->setDescription("Data element to be imported.");
pArg->setDefaultValue(NULL);
pArgList->addArg(*pArg);
return true;
}
示例3: getInputSpecification
bool CgmImporter::getInputSpecification(PlugInArgList*& pInArgList)
{
pInArgList = mpPlugInManager->getPlugInArgList();
VERIFY(pInArgList != NULL);
PlugInArg* pArg = NULL;
VERIFY((pArg = mpPlugInManager->getPlugInArg()) != NULL);
pArg->setName(Executable::ProgressArg());
pArg->setType("Progress");
pArg->setDefaultValue(NULL);
pArg->setDescription(Executable::ProgressArgDescription());
pInArgList->addArg(*pArg);
VERIFY((pArg = mpPlugInManager->getPlugInArg()) != NULL);
pArg->setName(Importer::ImportElementArg());
pArg->setType("DataElement");
pArg->setDefaultValue(NULL);
pArg->setDescription("Data element to be imported.");
pInArgList->addArg(*pArg);
return true;
}
示例4: getInputSpecification
bool GenericConvolution::getInputSpecification(PlugInArgList*& pInArgList)
{
if (!ConvolutionFilterShell::getInputSpecification(pInArgList))
{
return false;
}
PlugInArg* pArg = Service<PlugInManagerServices>()->getPlugInArg();
VERIFY(pArg != NULL);
pArg->setName("Kernel");
pArg->setDescription("The convolution kernel as an ossim NEWMAT::Matrix.");
pArg->setType("NEWMAT::Matrix");
pInArgList->addArg(*pArg);
return true;
}
示例5: getOutputSpecification
bool BandMath::getOutputSpecification(PlugInArgList*& pArgList)
{
// Set up list
pArgList = mpPluginManager->getPlugInArgList();
VERIFY(pArgList != NULL);
PlugInArg* pArg = mpPluginManager->getPlugInArg();
VERIFY(pArg != NULL);
pArg->setName("Band Math Result");
pArg->setType("RasterElement");
pArg->setDefaultValue(NULL);
pArg->setDescription("Output element for the result of the band math operation.");
pArgList->addArg(*pArg);
return true;
}
示例6: getInputSpecification
bool PlugInTester::getInputSpecification(PlugInArgList *&pArgList)
{
bool bSuccess = false;
pArgList = mpPlugMgr->getPlugInArgList();
if (pArgList != NULL)
{
PlugInArg* pArg = mpPlugMgr->getPlugInArg();
if (pArg != NULL)
{
pArg->setName(Executable::ProgressArg());
pArg->setType("Progress");
pArg->setDefaultValue(NULL);
pArg->setDescription(Executable::ProgressArgDescription());
bSuccess = pArgList->addArg(*pArg);
}
}
return bSuccess;
}
示例7: getInputSpecification
bool BandMath::getInputSpecification(PlugInArgList*& pArgList)
{
// Set up list
pArgList = mpPluginManager->getPlugInArgList();
VERIFY(pArgList != NULL);
PlugInArg* pArg = mpPluginManager->getPlugInArg(); //progress
VERIFY(pArg != NULL);
pArg->setName(Executable::ProgressArg());
pArg->setType("Progress");
pArg->setDefaultValue(NULL);
pArg->setDescription(Executable::ProgressArgDescription());
pArgList->addArg(*pArg);
pArg = mpPluginManager->getPlugInArg(); //cube
VERIFY(pArg != NULL);
pArg->setName(Executable::DataElementArg());
pArg->setType("RasterElement");
pArg->setDefaultValue(NULL);
pArg->setDescription("Element on which band math will be performed.");
pArgList->addArg(*pArg);
if (!mbInteractive)
{
pArg = mpPluginManager->getPlugInArg(); //cube2
VERIFY(pArg != NULL);
pArg->setName("Raster Element 2");
pArg->setType("RasterElement");
pArg->setDefaultValue(NULL);
pArg->setDescription("Second element to perform band math on.");
pArgList->addArg(*pArg);
pArg = mpPluginManager->getPlugInArg(); //cube3
VERIFY(pArg != NULL);
pArg->setName("Raster Element 3");
pArg->setType("RasterElement");
pArg->setDefaultValue(NULL);
pArg->setDescription("Third element to perform band math on.");
pArgList->addArg(*pArg);
pArg = mpPluginManager->getPlugInArg(); //cube4
VERIFY(pArg != NULL);
pArg->setName("Raster Element 4");
pArg->setType("RasterElement");
pArg->setDefaultValue(NULL);
pArg->setDescription("Fourth element to perform band math on.");
pArgList->addArg(*pArg);
pArg = mpPluginManager->getPlugInArg(); //cube5
VERIFY(pArg != NULL);
pArg->setName("Raster Element 5");
pArg->setType("RasterElement");
pArg->setDefaultValue(NULL);
pArg->setDescription("Fifth element to perform band math on.");
pArgList->addArg(*pArg);
pArg = mpPluginManager->getPlugInArg(); // Input Expression
VERIFY(pArg != NULL);
pArg->setName("Input Expression");
pArg->setType("string");
pArg->setDefaultValue(&mExpression);
pArg->setDescription("Expression for band math to evaluate.");
pArgList->addArg(*pArg);
bool temp = true;
pArg = mpPluginManager->getPlugInArg(); // Display Results
VERIFY(pArg != NULL);
pArg->setName("Display Results");
pArg->setType("bool");
pArg->setDefaultValue(&temp);
pArg->setDescription("Whether or not to display the result of the band math operation.");
pArgList->addArg(*pArg);
temp = false;
pArg = mpPluginManager->getPlugInArg();
VERIFY(pArg != NULL);
pArg->setName("Degrees");
pArg->setType("bool");
pArg->setDefaultValue(&temp);
pArg->setDescription("True causes band math to use degrees; false uses radians (default).");
pArgList->addArg(*pArg);
VERIFY(pArgList->addArg<bool>("Overlay Results", mbAsLayerOnExistingView, "Flag for whether "
"the results should be added to the original view or a new view. A new view is created "
"by default if results are displayed."));
}
return true;
}