// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void RotateEulerRefFrame::setupFilterParameters() { std::vector<FilterParameter::Pointer> parameters; { ChoiceFilterParameter::Pointer option = ChoiceFilterParameter::New(); option->setHumanLabel("Rotation Axis"); option->setPropertyName("RotationAxis"); option->setWidgetType(FilterParameter::FloatVec3Widget); option->setValueType("FloatVec3Widget_t"); option->setUnits("ijk"); parameters.push_back(option); } { ChoiceFilterParameter::Pointer option = ChoiceFilterParameter::New(); option->setHumanLabel("Rotation Angle"); option->setPropertyName("RotationAngle"); option->setWidgetType(FilterParameter::DoubleWidget); option->setValueType("float"); option->setCastableValueType("double"); option->setUnits("Degrees"); parameters.push_back(option); } setFilterParameters(parameters); }