Skip to content

Commit 92f88f7

Browse files
author
allywarner
committed
Merge branch 'SCIInstitute/master'
2 parents cc895ad + 940e4ec commit 92f88f7

File tree

133 files changed

+9440
-2094
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+9440
-2094
lines changed

bin/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*
1+
*

src/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ CPM_AddModule("es_general"
424424
# ++ MODULE: Entity System Rendering.
425425
CPM_AddModule("es_render"
426426
GIT_REPOSITORY "https://github.com/CIBC-Internal/cpm-es-render"
427-
GIT_TAG "origin/SCIRun"
427+
GIT_TAG "origin/AddFBO"
428428
USE_EXISTING_VER TRUE)
429429

430430
# ++ MODULE: Acorn
@@ -857,6 +857,7 @@ IF(BUILD_TESTING)
857857
IF(BUILD_WITH_PYTHON)
858858
SET_PROPERTY(TARGET Core_Python_Tests PROPERTY FOLDER "Core/Tests")
859859
SET_PROPERTY(TARGET Engine_Python_Tests PROPERTY FOLDER "Dataflow/Engine/Tests")
860+
SET_PROPERTY(TARGET Modules_Python_Tests PROPERTY FOLDER "Modules/Python")
860861
ENDIF()
861862
ENDIF()
862863

@@ -868,6 +869,8 @@ SET_PROPERTY(TARGET xml2 PROPERTY FOLDER "Externals")
868869
IF(BUILD_WITH_PYTHON)
869870
SET_PROPERTY(TARGET Core_Python PROPERTY FOLDER "Core")
870871
SET_PROPERTY(TARGET SCIRunPythonAPI PROPERTY FOLDER "Dataflow/Engine")
872+
SET_PROPERTY(TARGET Modules_Python PROPERTY FOLDER "Modules/Python")
873+
SET_PROPERTY(TARGET Interface_Modules_Python PROPERTY FOLDER "Interface/Modules")
871874
ENDIF()
872875

873876
########################################################################

src/Core/Algorithms/Base/AlgorithmBase.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ double AlgorithmParameter::toDouble() const
134134
return v ? *v : toInt();
135135
}
136136

137+
std::vector<double> AlgorithmParameter::toDoubleVector() const
138+
{
139+
const std::vector<double>* v = boost::get<std::vector<double>>(&value_);
140+
return v ? *v : std::vector<double>();
141+
}
142+
137143
std::string AlgorithmParameter::toString() const
138144
{
139145
const std::string* v = boost::get<std::string>(&value_);

src/Core/Algorithms/Base/Variable.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ namespace Algorithms {
5454
std::string,
5555
bool,
5656
AlgoOption,
57+
std::vector<double>,
5758
List
5859
> Value;
5960

6061
Variable() {}
6162
Variable(const Name& name, const Value& value);
62-
Variable(const Name& name, const Datatypes::DatatypeHandle& data) : name_(name), data_(data) {}
63+
enum DatatypeVariableDummyEnum { DATATYPE_VARIABLE };
64+
Variable(const Name& name, const Datatypes::DatatypeHandle& data, DatatypeVariableDummyEnum) : name_(name), data_(data) {}
6365
virtual ~Variable() {}
6466

6567
const Name& name() const { return name_; }
@@ -72,6 +74,7 @@ namespace Algorithms {
7274
std::string toString() const;
7375
boost::filesystem::path toFilename() const;
7476
bool toBool() const;
77+
std::vector<double> toDoubleVector() const;
7578
List toVector() const;
7679
AlgoOption toOption() const;
7780

src/Core/Algorithms/Legacy/Converter/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SET(Core_Algorithms_Legacy_Converter_SRCS
3333
#MatrixToField.cc
3434
NrrdToField.cc
3535
FieldToNrrd.cc
36-
#ConvertToNrrd.cc
36+
ConvertToNrrd.cc
3737
#MatricesToDipoleField.cc
3838
#ConvertBundleToField.cc
3939
ConvertMatrixToString.cc
@@ -43,7 +43,9 @@ SET(Core_Algorithms_Legacy_Converter_HEADERS
4343
ConverterAlgo.h
4444
NrrdToField.h
4545
FieldToNrrd.h
46+
ConvertToNrrd.h
4647
ConvertMatrixToString.h
48+
share.h
4749
)
4850

4951
SCIRUN_ADD_LIBRARY(Core_Algorithms_Legacy_Converter

src/Core/Algorithms/Legacy/Converter/ConvertMatrixToString.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@ namespace SCIRun {
3838
namespace Core {
3939
namespace Algorithms {
4040
namespace Converters {
41-
41+
4242
class SCISHARE ConvertMatrixToStringAlgo : public AlgorithmBase
4343
{
4444
public:
45-
static AlgorithmInputName InputMatrix;
4645
static AlgorithmOutputName ResultString;
4746
ConvertMatrixToStringAlgo() {}
4847
bool run(Datatypes::MatrixHandle input, Datatypes::StringHandle& output) const;
4948
virtual AlgorithmOutput run_generic(const AlgorithmInput& input) const;
5049
};
5150
}}}}
5251

53-
#endif
52+
#endif

0 commit comments

Comments
 (0)