|
| 1 | +/* |
| 2 | + For more information, please see: http://software.sci.utah.edu |
| 3 | +
|
| 4 | + The MIT License |
| 5 | +
|
| 6 | + Copyright (c) 2012 Scientific Computing and Imaging Institute, |
| 7 | + University of Utah. |
| 8 | +
|
| 9 | + License for the specific language governing rights and limitations under |
| 10 | + Permission is hereby granted, free of charge, to any person obtaining a |
| 11 | + copy of this software and associated documentation files (the "Software"), |
| 12 | + to deal in the Software without restriction, including without limitation |
| 13 | + the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 14 | + and/or sell copies of the Software, and to permit persons to whom the |
| 15 | + Software is furnished to do so, subject to the following conditions: |
| 16 | +
|
| 17 | + The above copyright notice and this permission notice shall be included |
| 18 | + in all copies or substantial portions of the Software. |
| 19 | +
|
| 20 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 21 | + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 22 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 23 | + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 24 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 25 | + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 26 | + DEALINGS IN THE SOFTWARE. |
| 27 | +*/ |
| 28 | + |
| 29 | +#include <Interface/Modules/Visualization/GenerateStreamLinesDialog.h> |
| 30 | + |
| 31 | +using namespace SCIRun::Gui; |
| 32 | +using namespace SCIRun::Dataflow::Networks; |
| 33 | +using namespace SCIRun::Core::Algorithms::Field; |
| 34 | + |
| 35 | +GenerateStreamLinesDialog::GenerateStreamLinesDialog(const std::string& name, ModuleStateHandle state, |
| 36 | + QWidget* parent /* = 0 */) |
| 37 | + : ModuleDialogGeneric(state, parent) |
| 38 | +{ |
| 39 | + setupUi(this); |
| 40 | + setWindowTitle(QString::fromStdString(name)); |
| 41 | + fixSize(); |
| 42 | + |
| 43 | + streamlineMethod_.insert(StringPair("Direct entry", "single")); |
| 44 | + streamlineMethod_.insert(StringPair("Slider", "slider")); |
| 45 | + streamlineMethod_.insert(StringPair("L-curve", "lcurve")); |
| 46 | + streamlineMethod_.insert(StringPair("L-curve", "lcurve")); |
| 47 | + streamlineMethod_.insert(StringPair("L-curve", "lcurve")); |
| 48 | + |
| 49 | + streamlineDirection_.insert(StringPair("Negative", "single")); |
| 50 | + streamlineDirection_.insert(StringPair("Both", "slider")); |
| 51 | + streamlineDirection_.insert(StringPair("Positive", "lcurve")); |
| 52 | + |
| 53 | + streamlineValue_.insert(StringPair("Direct entry", "single")); |
| 54 | + streamlineValue_.insert(StringPair("Slider", "slider")); |
| 55 | + streamlineValue_.insert(StringPair("L-curve", "lcurve")); |
| 56 | + streamlineValue_.insert(StringPair("Direct entry", "single")); |
| 57 | + streamlineValue_.insert(StringPair("Slider", "slider")); |
| 58 | + streamlineValue_.insert(StringPair("L-curve", "lcurve")); |
| 59 | + |
| 60 | + addSpinBoxManager(maxStepsSpinBox_, Parameters::StreamlineMaxSteps); |
| 61 | + addDoubleSpinBoxManager(toleranceDoubleSpinBox_, Parameters::StreamlineTolerance); |
| 62 | + addDoubleSpinBoxManager(stepSizeDoubleSpinBox_, Parameters::StreamlineStepSize); |
| 63 | + addComboBoxManager(directionComboBox_, Parameters::StreamlineDirection, lambdaMethod_); |
| 64 | + addComboBoxManager(valueComboBox_, Parameters::StreamlineValue, lambdaMethod_); |
| 65 | + addComboBoxManager(methodComboBox_, Parameters::StreamlineMethod, lambdaMethod_); |
| 66 | + addCheckboxManager(autoParameterCheckBox_, Parameters::AutoParameters); |
| 67 | + addCheckboxManager(filterColinearCheckBox_, Parameters::RemoveColinearPoints); |
| 68 | +} |
0 commit comments