Skip to content

Commit 7c7de32

Browse files
committed
Fix GSPPFF
1 parent 7ea6f26 commit 7c7de32

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

src/Interface/Modules/Fields/GenerateSinglePointProbeFromFieldDialog.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ void GenerateSinglePointProbeFromFieldDialog::pullSpecial()
7575
static_cast<int>(color.r() > 1 ? color.r() : color.r() * 255.0),
7676
static_cast<int>(color.g() > 1 ? color.g() : color.g() * 255.0),
7777
static_cast<int>(color.b() > 1 ? color.b() : color.b() * 255.0));
78-
79-
bool reexecute = state_->getValue(Parameters::WidgetMoved).toBool();
80-
state_->setValue(Parameters::WidgetMoved, false);
81-
if (reexecute)
82-
{
83-
Q_EMIT executeActionTriggered();
84-
}
8578
}
8679

8780
void GenerateSinglePointProbeFromFieldDialog::assignDefaultMeshColor()

src/Modules/Legacy/Fields/GenerateSinglePointProbeFromField.cc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ ALGORITHM_PARAMETER_DEF(Fields, FieldElem);
6363
ALGORITHM_PARAMETER_DEF(Fields, ProbeSize);
6464
ALGORITHM_PARAMETER_DEF(Fields, ProbeLabel);
6565
ALGORITHM_PARAMETER_DEF(Fields, ProbeColor);
66-
ALGORITHM_PARAMETER_DEF(Fields, WidgetMoved);
6766

6867
namespace SCIRun
6968
{
@@ -97,7 +96,6 @@ namespace SCIRun
9796
GenerateSinglePointProbeFromField::GenerateSinglePointProbeFromField()
9897
: GeometryGeneratingModule(staticInfo_), impl_(new GenerateSinglePointProbeFromFieldImpl)
9998
{
100-
//counter_ = -1;
10199
INITIALIZE_PORT(InputField);
102100
INITIALIZE_PORT(GeneratedWidget);
103101
INITIALIZE_PORT(GeneratedPoint);
@@ -111,10 +109,10 @@ void GenerateSinglePointProbeFromField::processWidgetFeedback(const ModuleFeedba
111109
if (impl_->previousTransform_ != vsf.transform)
112110
{
113111
adjustPositionFromTransform(vsf.transform);
112+
enqueueExecuteAgain();
114113
}
115114
}
116115

117-
118116
void GenerateSinglePointProbeFromField::adjustPositionFromTransform(const Transform& transformMatrix)
119117
{
120118
DenseMatrix center(4, 1);
@@ -133,8 +131,6 @@ void GenerateSinglePointProbeFromField::adjustPositionFromTransform(const Transf
133131
state->setValue(ZLocation, newLocation.z());
134132
std::string oldMoveMethod = state->getValue(MoveMethod).toString();
135133
state->setValue(MoveMethod, std::string("Location"));
136-
//TODO: Communicate with dialog to Q_EMIT executeActionTriggered();
137-
state->setValue(WidgetMoved, true);
138134
state->setValue(MoveMethod, std::string(oldMoveMethod));
139135
impl_->previousTransform_ = transformMatrix;
140136
}
@@ -156,7 +152,6 @@ void GenerateSinglePointProbeFromField::setStateDefaults()
156152
state->setValue(ProbeSize, 1.0);
157153
state->setValue(ProbeLabel, std::string());
158154
state->setValue(ProbeColor, ColorRGB(1, 1, 1).toString());
159-
state->setValue(WidgetMoved, false);
160155

161156
getOutputPort(GeneratedWidget)->connectConnectionFeedbackListener([this](const ModuleFeedback& var) { processWidgetFeedback(var); });
162157
}
@@ -216,9 +211,6 @@ FieldHandle GenerateSinglePointProbeFromField::GenerateOutputField(boost::option
216211
auto state = get_state();
217212
using namespace Parameters;
218213

219-
//std::cout << "Size: " << state->getValue(ProbeSize).toInt() << std::endl;
220-
//std::cout << "executing" << std::endl;
221-
222214
// Maybe update the widget.
223215
BBox bbox;
224216
if (ifieldOption && *ifieldOption)

src/Modules/Legacy/Fields/GenerateSinglePointProbeFromField.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ namespace SCIRun {
5555
ALGORITHM_PARAMETER_DECL(ProbeSize);
5656
ALGORITHM_PARAMETER_DECL(ProbeLabel);
5757
ALGORITHM_PARAMETER_DECL(ProbeColor);
58-
ALGORITHM_PARAMETER_DECL(WidgetMoved);
5958
}
6059
}
6160
}

0 commit comments

Comments
 (0)