本文整理汇总了C++中filterparameter::Pointer::setFileExtension方法的典型用法代码示例。如果您正苦于以下问题:C++ Pointer::setFileExtension方法的具体用法?C++ Pointer::setFileExtension怎么用?C++ Pointer::setFileExtension使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类filterparameter::Pointer
的用法示例。
在下文中一共展示了Pointer::setFileExtension方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void DxReader::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Input File");
option->setPropertyName("InputFile");
option->setWidgetType(FilterParameter::InputFileWidget);
option->setFileExtension("*.dx");
option->setValueType("string");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Origin");
option->setPropertyName("Origin");
option->setWidgetType(FilterParameter::FloatVec3Widget);
option->setValueType("FloatVec3Widget_t");
option->setUnits("XYZ");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Resolution");
option->setPropertyName("Resolution");
option->setWidgetType(FilterParameter::FloatVec3Widget);
option->setValueType("FloatVec3Widget_t");
option->setUnits("XYZ");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例2: 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);
}
示例3: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void AvizoRectilinearCoordinateWriter::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Output File");
option->setPropertyName("OutputFile");
option->setWidgetType(FilterParameter::OutputFileWidget);
option->setFileExtension("*.am");
option->setFileType("Amira Mesh");
option->setValueType("string");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Write Binary File");
option->setPropertyName("WriteBinaryFile");
option->setWidgetType(FilterParameter::BooleanWidget);
option->setValueType("bool");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例4: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void FieldDataCSVWriter::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Output File");
option->setPropertyName("FieldDataFile");
option->setWidgetType(FilterParameter::OutputFileWidget);
option->setFileExtension("*.csv");
option->setFileType("Comma Separated Data");
option->setValueType("string");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Write Neighbor Data");
option->setPropertyName("WriteNeighborListData");
option->setWidgetType(FilterParameter::BooleanWidget);
option->setValueType("bool");
parameters.push_back(option);
}
setFilterParameters(parameters);
}
示例5: setupFilterParameters
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
void RawBinaryReader::setupFilterParameters()
{
std::vector<FilterParameter::Pointer> parameters;
/* Place all your option initialization code here */
{
FilterParameter::Pointer parameter = FilterParameter::New();
parameter->setHumanLabel("Input File");
parameter->setPropertyName("InputFile");
parameter->setWidgetType(FilterParameter::InputFileWidget);
parameter->setValueType("string");
parameter->setFileExtension("*.raw *.bin");
parameters.push_back(parameter);
}
{
ChoiceFilterParameter::Pointer parameter = ChoiceFilterParameter::New();
parameter->setHumanLabel("Scalar Type");
parameter->setPropertyName("ScalarType");
parameter->setWidgetType(FilterParameter::ChoiceWidget);
parameter->setValueType("unsigned int");
std::vector<std::string> choices;
choices.push_back("signed int 8 bit");
choices.push_back("unsigned int 8 bit");
choices.push_back("signed int 16 bit");
choices.push_back("unsigned int 16 bit");
choices.push_back("signed int 32 bit");
choices.push_back("unsigned int 32 bit");
choices.push_back("signed int 64 bit");
choices.push_back("unsigned int 64 bit");
choices.push_back(" Float 32 bit");
choices.push_back(" Double 64 bit");
parameter->setChoices(choices);
parameters.push_back(parameter);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Dimensionality");
option->setPropertyName("Dimensionality");
option->setWidgetType(FilterParameter::IntWidget);
option->setValueType("int");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Number Of Components");
option->setPropertyName("NumberOfComponents");
option->setWidgetType(FilterParameter::IntWidget);
option->setValueType("int");
parameters.push_back(option);
}
{
ChoiceFilterParameter::Pointer parameter = ChoiceFilterParameter::New();
parameter->setHumanLabel("Endian");
parameter->setPropertyName("Endian");
parameter->setWidgetType(FilterParameter::ChoiceWidget);
parameter->setValueType("unsigned int");
std::vector<std::string> choices;
choices.push_back("Little");
choices.push_back("Big");
parameter->setChoices(choices);
parameters.push_back(parameter);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Dimensions");
option->setPropertyName("Dimensions");
option->setWidgetType(FilterParameter::IntVec3Widget);
option->setValueType("IntVec3Widget_t");
option->setUnits("XYZ");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Origin");
option->setPropertyName("Origin");
option->setWidgetType(FilterParameter::FloatVec3Widget);
option->setValueType("FloatVec3Widget_t");
option->setUnits("XYZ");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Resolution");
option->setPropertyName("Resolution");
option->setWidgetType(FilterParameter::FloatVec3Widget);
option->setValueType("FloatVec3Widget_t");
option->setUnits("XYZ");
parameters.push_back(option);
}
{
FilterParameter::Pointer option = FilterParameter::New();
option->setHumanLabel("Over Ride Origin & Resolution");
option->setPropertyName("OverRideOriginResolution");
option->setWidgetType(FilterParameter::BooleanWidget);
option->setValueType("bool");
parameters.push_back(option);
}
//.........这里部分代码省略.........