Skip to content

Commit 042372b

Browse files
committed
Add dialog to factory
1 parent 03f515f commit 042372b

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

src/Core/Algorithms/Legacy/Fields/StreamLines/GenerateStreamLines.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ GenerateStreamLinesAlgo::GenerateStreamLinesAlgo()
5454
{
5555
addParameter(Parameters::StreamlineStepSize, 0.01);
5656
addParameter(Parameters::StreamlineTolerance, 0.0001);
57-
addParameter(Parameters::StreamlineMaxSteps, 100);
57+
addParameter(Parameters::StreamlineMaxSteps, 2000);
5858
add_option(Parameters::StreamlineDirection, "Both", "Negative|Both|Positive");
5959
add_option(Parameters::StreamlineValue, "Seed index", "Seed value|Seed index|Integration index|Integration step|Distance from seed|Streamline length");
60-
addParameter(Parameters::RemoveColinearPoints, true);
61-
add_option(Parameters::StreamlineMethod, "CellWalk", "AdamsBashforth|Heun|RungeKutta|RungeKuttaFehlberg|CellWalk");
60+
addParameter(Parameters::RemoveColinearPoints, false);
61+
add_option(Parameters::StreamlineMethod, "RungeKuttaFehlberg", "AdamsBashforth|Heun|RungeKutta|RungeKuttaFehlberg|CellWalk");
6262
// Estimate step size and tolerance automatically based on average edge length
6363
addParameter(Parameters::AutoParameters,false);
6464

src/Interface/Modules/Factory/ModuleDialogFactoryAdditional.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <Interface/Modules/BrainStimulator/ElectrodeCoilSetupDialog.h>
3333
#include <Interface/Modules/BrainStimulator/GenerateROIStatisticsDialog.h>
3434
#include <Interface/Modules/BrainStimulator/SetupRHSforTDCSandTMSDialog.h>
35+
#include <Interface/Modules/Visualization/GenerateStreamLinesDialog.h>
3536
#include <boost/assign.hpp>
3637
#include <boost/functional/factory.hpp>
3738

@@ -47,5 +48,6 @@ void ModuleDialogFactory::addDialogsToMakerMap2()
4748
ADD_MODULE_DIALOG(SetConductivitiesToMesh, SetConductivitiesToTetMeshDialog)
4849
ADD_MODULE_DIALOG(GenerateROIStatistics, GenerateROIStatisticsDialog)
4950
ADD_MODULE_DIALOG(SetupTDCS, SetupRHSforTDCSandTMSDialog)
51+
ADD_MODULE_DIALOG(GenerateStreamLines, GenerateStreamLinesDialog)
5052
;
5153
}

src/Interface/Modules/Visualization/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SCIRUN_ADD_LIBRARY(Interface_Modules_Visualization
6767

6868
TARGET_LINK_LIBRARIES(Interface_Modules_Visualization
6969
Modules_Visualization
70-
Core_Algorithms_Legacy_Field
70+
Core_Algorithms_Legacy_Fields
7171
Interface_Modules_Base
7272
${SCI_BOOST_LIBRARY}
7373
${QT_LIBRARIES}

src/Interface/Modules/Visualization/GenerateStreamLines.ui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<x>0</x>
88
<y>0</y>
99
<width>360</width>
10-
<height>247</height>
10+
<height>250</height>
1111
</rect>
1212
</property>
1313
<property name="minimumSize">
1414
<size>
15-
<width>0</width>
16-
<height>0</height>
15+
<width>360</width>
16+
<height>250</height>
1717
</size>
1818
</property>
1919
<property name="windowTitle">

src/Interface/Modules/Visualization/GenerateStreamLinesDialog.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,8 @@ GenerateStreamLinesDialog::GenerateStreamLinesDialog(const std::string& name, Mo
5656
addCheckBoxManager(autoParameterCheckBox_, Parameters::AutoParameters);
5757
addCheckBoxManager(filterColinearCheckBox_, Parameters::RemoveColinearPoints);
5858
}
59+
60+
void GenerateStreamLinesDialog::pull()
61+
{
62+
pull_newVersionToReplaceOld();
63+
}

0 commit comments

Comments
 (0)