Skip to content

Commit 1a0686a

Browse files
committed
Merge branch 'master' into issues_Y
2 parents c187fac + dbb8c78 commit 1a0686a

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

src/Interface/Modules/Math/CollectMatricesDialog.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
*/
2828

2929
#include <Interface/Modules/Math/CollectMatricesDialog.h>
30-
#include <Dataflow/Network/ModuleStateInterface.h> //TODO: extract into intermediate
3130
#include <Core/Algorithms/Math/CollectMatrices/CollectMatricesAlgorithm.h>
3231

3332
using namespace SCIRun::Gui;
@@ -41,7 +40,7 @@ CollectMatricesDialog::CollectMatricesDialog(const std::string& name, ModuleStat
4140
setupUi(this);
4241
setWindowTitle(QString::fromStdString(name));
4342
fixSize();
44-
addRadioButtonGroupManager({ rowRadioButton_, columnRadioButton_ }, Parameters::CollectAppendIndicator);
45-
addRadioButtonGroupManager({ appendRadioButton_, replaceRadioButton_ }, Parameters::CollectRowIndicator);
43+
addRadioButtonGroupManager({ rowRadioButton_, columnRadioButton_ }, Parameters::CollectRowIndicator);
44+
addRadioButtonGroupManager({ appendRadioButton_, replaceRadioButton_ }, Parameters::CollectAppendIndicator);
4645
addRadioButtonGroupManager({ prependRadioButton_, postpendRadioButton_ }, Parameters::CollectPrependIndicator);
4746
}

src/Modules/Factory/HardCodedModuleFactory.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636
#include <Dataflow/Network/SimpleSourceSink.h>
3737
#include <Modules/Factory/ModuleDescriptionLookup.h>
3838

39+
using namespace SCIRun::Core::Algorithms;
3940
using namespace SCIRun::Dataflow::Networks;
4041
using namespace SCIRun::Modules;
41-
using namespace SCIRun::Modules::Factory;
42+
using namespace Factory;
4243
//
4344
using namespace boost::assign;
4445

@@ -97,18 +98,18 @@ HardCodedModuleFactory::HardCodedModuleFactory() : impl_(new HardCodedModuleFact
9798
Module::Builder::use_source_type(boost::factory<SimpleSource*>());
9899
}
99100

100-
void HardCodedModuleFactory::setStateFactory(SCIRun::Dataflow::Networks::ModuleStateFactoryHandle stateFactory)
101+
void HardCodedModuleFactory::setStateFactory(ModuleStateFactoryHandle stateFactory)
101102
{
102103
stateFactory_ = stateFactory;
103104
Module::defaultStateFactory_ = stateFactory_;
104105
}
105106

106-
void HardCodedModuleFactory::setAlgorithmFactory(SCIRun::Core::Algorithms::AlgorithmFactoryHandle algoFactory)
107+
void HardCodedModuleFactory::setAlgorithmFactory(AlgorithmFactoryHandle algoFactory)
107108
{
108109
Module::defaultAlgoFactory_ = algoFactory;
109110
}
110111

111-
void HardCodedModuleFactory::setReexecutionFactory(SCIRun::Dataflow::Networks::ReexecuteStrategyFactoryHandle reexFactory)
112+
void HardCodedModuleFactory::setReexecutionFactory(ReexecuteStrategyFactoryHandle reexFactory)
112113
{
113114
Module::defaultReexFactory_ = reexFactory;
114115
}

src/Modules/Factory/HardCodedModuleFactory.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ namespace SCIRun {
3939
namespace Modules {
4040
namespace Factory {
4141

42-
class SCISHARE HardCodedModuleFactory : public SCIRun::Dataflow::Networks::ModuleFactory
42+
class SCISHARE HardCodedModuleFactory : public Dataflow::Networks::ModuleFactory
4343
{
4444
public:
4545
HardCodedModuleFactory();
46-
virtual SCIRun::Dataflow::Networks::ModuleDescription lookupDescription(const SCIRun::Dataflow::Networks::ModuleLookupInfo& info);
47-
virtual SCIRun::Dataflow::Networks::ModuleHandle create(const SCIRun::Dataflow::Networks::ModuleDescription& info);
48-
virtual void setStateFactory(SCIRun::Dataflow::Networks::ModuleStateFactoryHandle stateFactory);
49-
virtual void setAlgorithmFactory(SCIRun::Core::Algorithms::AlgorithmFactoryHandle algoFactory);
50-
virtual void setReexecutionFactory(SCIRun::Dataflow::Networks::ReexecuteStrategyFactoryHandle reexFactory);
51-
virtual const Dataflow::Networks::ModuleDescriptionMap& getAllAvailableModuleDescriptions() const;
52-
virtual const Dataflow::Networks::DirectModuleDescriptionLookupMap& getDirectModuleDescriptionLookupMap() const;
46+
virtual Dataflow::Networks::ModuleDescription lookupDescription(const Dataflow::Networks::ModuleLookupInfo& info) override;
47+
virtual Dataflow::Networks::ModuleHandle create(const Dataflow::Networks::ModuleDescription& info) override;
48+
virtual void setStateFactory(Dataflow::Networks::ModuleStateFactoryHandle stateFactory) override;
49+
virtual void setAlgorithmFactory(Core::Algorithms::AlgorithmFactoryHandle algoFactory) override;
50+
virtual void setReexecutionFactory(Dataflow::Networks::ReexecuteStrategyFactoryHandle reexFactory) override;
51+
virtual const Dataflow::Networks::ModuleDescriptionMap& getAllAvailableModuleDescriptions() const override;
52+
virtual const Dataflow::Networks::DirectModuleDescriptionLookupMap& getDirectModuleDescriptionLookupMap() const override;
5353
private:
54-
SCIRun::Dataflow::Networks::ModuleStateFactoryHandle stateFactory_;
54+
Dataflow::Networks::ModuleStateFactoryHandle stateFactory_;
5555
boost::shared_ptr<class HardCodedModuleFactoryImpl> impl_;
5656
};
5757
}

src/Modules/Legacy/Math/CollectMatrices.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,14 @@ CollectMatrices::execute()
116116
{
117117
update_state(NeedData);
118118

119-
//MatrixHandle aH, bH;
120119
auto aHOpt = getOptionalInput(Optional_BaseMatrix);
121120
auto bH = getRequiredInput(SubMatrix);
122121

123122
auto state = get_state();
124-
bool append = state->getValue(Parameters::CollectAppendIndicator).toInt() != 0;
125-
bool row = state->getValue(Parameters::CollectRowIndicator).toInt() != 0;
126-
bool front = state->getValue(Parameters::CollectPrependIndicator).toInt() != 0;
127-
123+
bool append = state->getValue(Parameters::CollectAppendIndicator).toInt() == 0;
124+
bool row = state->getValue(Parameters::CollectRowIndicator).toInt() == 0;
125+
bool front = state->getValue(Parameters::CollectPrependIndicator).toInt() == 0;
126+
128127
MatrixHandle omatrix;
129128

130129
if (!append) // Replace -- just send B matrix

0 commit comments

Comments
 (0)