本文整理汇总了C++中filterparameter::Pointer类的典型用法代码示例。如果您正苦于以下问题:C++ Pointer类的具体用法?C++ Pointer怎么用?C++ Pointer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Pointer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void MultiThresholdCells::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
ChoiceFilterParameter::Pointer parameter = ChoiceFilterParameter::New();
parameter->setHumanLabel("Output Array Name");
parameter->setPropertyName("OutputArrayName");
parameter->setWidgetType(FilterParameter::ChoiceWidget);
parameter->setValueType("string");
parameter->setEditable(true);
std::vector<std::string> choices;
choices.push_back(DREAM3D::CellData::GoodVoxels);
parameter->setChoices(choices);
parameters.push_back(parameter);
}
{
FilterParameter::Pointer parameter = FilterParameter::New();
parameter->setHumanLabel("Select Arrays to Threshold");
parameter->setPropertyName("ComparisonInputs");
parameter->setWidgetType(FilterParameter::CellArrayComparisonSelectionWidget);
parameter->setValueType("std::vector<ComparisonInput_t>");
parameters.push_back(parameter);
}
setFilterParameters(parameters);
}
示例2: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void OpenCloseBadData::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
ChoiceFilterParameter::Pointer option = ChoiceFilterParameter::New();
option->setHumanLabel("Direction of Operation");
option->setPropertyName("Direction");
option->setWidgetType(FilterParameter::ChoiceWidget);
option->setValueType("unsigned int");
std::vector<std::string> choices;
choices.push_back("Dilate");
choices.push_back("Erode");
option->setChoices(choices);
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Number of Iterations");
option->setPropertyName("NumIterations");
option->setWidgetType(FilterParameter::IntWidget);
option->setValueType("int");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例3: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void RemoveArrays::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer parameter = FilterParameter::New();
parameter->setHumanLabel("Arrays to Delete");
parameter->setPropertyName("ArraysToDelete");
parameter->setWidgetType(FilterParameter::ArraySelectionWidget);
parameters.push_back(parameter);
}
setFilterParameters(parameters);
}
示例4: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void CropVolumePipeline::setupFilterParameters()
{
// Now append our options
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Input File");
option->setPropertyName("InputFile");
option->setWidgetType(FilterParameter::InputFileWidget);
option->setValueType("string");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例5: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void ArraySelectionExample::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> options;
/* To select arrays */
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Arrays to Delete");
option->setPropertyName("ArraysToDelete");
option->setWidgetType(FilterParameter::ArraySelectionWidget);
options.push_back(option);
}
setFilterParameters(options);
}
示例6: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void GoldfeatherReader::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
/* For an input file use this code*/
{
FilterParameter::Pointer parameter = FilterParameter::New();
parameter->setHumanLabel("Input File");
parameter->setPropertyName("InputFile");
parameter->setWidgetType(FilterParameter::InputFileWidget);
parameter->setValueType("string");
parameters.push_back(parameter);
}
setFilterParameters(parameters);
}
示例7: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void YSChoiAbaqusReader::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Input File");
option->setPropertyName("InputFile");
option->setWidgetType(FilterParameter::InputFileWidget);
option->setValueType("string");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Input Grain Orientation File");
option->setPropertyName("InputGrainInfoFile");
option->setWidgetType(FilterParameter::InputFileWidget);
option->setValueType("string");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例8: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void FindFaceAverage::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Face Array Name");
option->setPropertyName("SelectedFaceArrayName");
option->setWidgetType(FilterParameter::SurfaceMeshFaceArrayNameSelectionWidget);
option->setValueType("string");
option->setUnits("");
parameters.push_back(option);
}
{
ChoiceFilterParameter::Pointer parameter = ChoiceFilterParameter::New();
parameter->setHumanLabel("Average Type");
parameter->setPropertyName("AverageMethod");
parameter->setWidgetType(FilterParameter::ChoiceWidget);
parameter->setValueType("unsigned int");
std::vector<std::string> choices;
choices.push_back("Number Average");
choices.push_back("Area Weighted Average");
parameter->setChoices(choices);
parameters.push_back(parameter);
}
setFilterParameters(parameters);
}
示例9: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void AlignSectionsFeature::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Write Alignment Shift File");
option->setPropertyName("WriteAlignmentShifts");
option->setWidgetType(FilterParameter::BooleanWidget);
option->setValueType("bool");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Alignment File");
option->setPropertyName("AlignmentShiftFileName");
option->setWidgetType(FilterParameter::OutputFileWidget);
option->setValueType("string");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例10: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void BinaryNodesTrianglesReader::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Binary Nodes Input File");
option->setPropertyName("BinaryNodesFile");
option->setWidgetType(FilterParameter::InputFileWidget);
option->setValueType("string");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Binary Triangles Input File");
option->setPropertyName("BinaryTrianglesFile");
option->setWidgetType(FilterParameter::InputFileWidget);
option->setValueType("string");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例11: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void AddOrientationNoise::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Magnitude of Orientation Noise");
option->setPropertyName("Magnitude");
option->setWidgetType(FilterParameter::DoubleWidget);
option->setValueType("float");
option->setCastableValueType("double");
option->setUnits("Degrees");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例12: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void DecimateSolidMesh::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Goal Number of Elements");
option->setPropertyName("GoalElementNumber");
option->setWidgetType(FilterParameter::IntWidget);
option->setValueType("int");
option->setUnits("");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例13: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void AbaqusSurfaceMeshWriter::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Output File");
option->setPropertyName("OutputFile");
option->setWidgetType(FilterParameter::OutputFileWidget);
option->setValueType("string");
option->setFileExtension("*.inp");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例14: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void ChangeResolution::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Resolution");
option->setPropertyName("Resolution");
option->setWidgetType(FilterParameter::FloatVec3Widget);
option->setValueType("FloatVec3Widget_t");
option->setUnits("Microns");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例15: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void FindFieldNeighborCAxisMisalignments::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Find Average C-Axis Misalignments");
option->setPropertyName("FindAvgMisals");
option->setWidgetType(FilterParameter::BooleanWidget);
option->setValueType("bool");
option->setUnits("");
parameters.push_back(option);
}
setFilterParameters(parameters);
}