Skip to content

Commit b4c72f4

Browse files
committed
Add new modules to cmake
1 parent 961d1ee commit b4c72f4

File tree

6 files changed

+853
-3
lines changed

6 files changed

+853
-3
lines changed

src/Modules/Legacy/Fields/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# CMakeLists.txt for Dataflow/Modules/Fields
3030

3131
SET(Modules_Legacy_Fields_HEADERS
32-
RefineMesh.h
32+
RefineMesh.h
3333
CreateLatVol.h
3434
GetFieldBoundary.h
3535
BuildMappingMatrix.h
@@ -75,6 +75,8 @@ SET(Modules_Legacy_Fields_HEADERS
7575
ConvertHexVolToTetVol.h
7676
ExtractSimpleIsosurface.h
7777
GetSliceFromStructuredFieldByIndices.h
78+
GenerateSinglePointProbeFromField.h
79+
GeneratePointSamplesFromField.h
7880
)
7981

8082
SET(Modules_Legacy_Fields_SRCS
@@ -146,13 +148,13 @@ SET(Modules_Legacy_Fields_SRCS
146148
ConvertQuadSurfToTriSurf.cc
147149
#TransformPlanarMesh.cc
148150
#BuildPointCloudToLatVolMappingMatrix.cc
149-
#GenerateSinglePointProbeFromField.cc
151+
GenerateSinglePointProbeFromField.cc
150152
#GeneratePointSamplesFromFieldOrWidget.cc
151153
CreateLatVol.cc
152154
#CreateImage.cc
153155
#CreateStructHex.cc
154156
#ReportScalarFieldStats.cc
155-
#GeneratePointSamplesFromField.cc
157+
GeneratePointSamplesFromField.cc
156158
#SelectFieldROIWithBoxWidget.cc
157159
SetFieldOrMeshStringProperty.cc
158160
#ConvertMeshToPointCloud.cc
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
For more information, please see: http://software.sci.utah.edu
3+
4+
The MIT License
5+
6+
Copyright (c) 2015 Scientific Computing and Imaging Institute,
7+
University of Utah.
8+
9+
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+
#ifndef MODULES_LEGACY_FIELDS_GETDOMAINBOUNDARY_H__
30+
#define MODULES_LEGACY_FIELDS_GETDOMAINBOUNDARY_H__
31+
32+
#include <Dataflow/Network/Module.h>
33+
#include <Core/Thread/Interruptible.h>
34+
#include <Modules/Legacy/Fields/share.h>
35+
36+
namespace SCIRun {
37+
namespace Modules {
38+
namespace Fields {
39+
40+
/// @class GetDomainBoundary
41+
/// @brief This module extracts the boundaries of the different regions in a label map.
42+
43+
class SCISHARE GetDomainBoundary : public Dataflow::Networks::Module,
44+
public Has4InputPorts<FieldPortTag, ScalarPortTag, ScalarPortTag, MatrixPortTag>,
45+
public Has1OutputPort<FieldPortTag>,
46+
public Core::Thread::Interruptible
47+
{
48+
public:
49+
GetDomainBoundary();
50+
51+
virtual void execute();
52+
virtual void setStateDefaults();
53+
54+
INPUT_PORT(0, InputField, LegacyField);
55+
INPUT_PORT(1, MinValue, Double);
56+
INPUT_PORT(2, MaxValue, Double);
57+
INPUT_PORT(3, ElemLink, SparseRowMatrix);
58+
OUTPUT_PORT(0, BoundaryField, LegacyField);
59+
60+
static const Dataflow::Networks::ModuleLookupInfo staticInfo_;
61+
};
62+
63+
}
64+
}
65+
}
66+
67+
#endif
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
For more information, please see: http://software.sci.utah.edu
3+
4+
The MIT License
5+
6+
Copyright (c) 2015 Scientific Computing and Imaging Institute,
7+
University of Utah.
8+
9+
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+
#ifndef MODULES_LEGACY_FIELDS_GETDOMAINBOUNDARY_H__
30+
#define MODULES_LEGACY_FIELDS_GETDOMAINBOUNDARY_H__
31+
32+
#include <Dataflow/Network/Module.h>
33+
#include <Core/Thread/Interruptible.h>
34+
#include <Modules/Legacy/Fields/share.h>
35+
36+
namespace SCIRun {
37+
namespace Modules {
38+
namespace Fields {
39+
40+
/// @class GetDomainBoundary
41+
/// @brief This module extracts the boundaries of the different regions in a label map.
42+
43+
class SCISHARE GetDomainBoundary : public Dataflow::Networks::Module,
44+
public Has4InputPorts<FieldPortTag, ScalarPortTag, ScalarPortTag, MatrixPortTag>,
45+
public Has1OutputPort<FieldPortTag>,
46+
public Core::Thread::Interruptible
47+
{
48+
public:
49+
GetDomainBoundary();
50+
51+
virtual void execute();
52+
virtual void setStateDefaults();
53+
54+
INPUT_PORT(0, InputField, LegacyField);
55+
INPUT_PORT(1, MinValue, Double);
56+
INPUT_PORT(2, MaxValue, Double);
57+
INPUT_PORT(3, ElemLink, SparseRowMatrix);
58+
OUTPUT_PORT(0, BoundaryField, LegacyField);
59+
60+
static const Dataflow::Networks::ModuleLookupInfo staticInfo_;
61+
};
62+
63+
}
64+
}
65+
}
66+
67+
#endif

src/Modules/Legacy/Visualization/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ SET(Modules_Legacy_Visualization_SRCS
5353
#ShowTextureSurface.cc
5454
#ShowTextureVolume.cc
5555
#ShowString.cc
56+
ShowAndEditDipoles.cc
5657
)
5758

5859
SET(Modules_Legacy_Visualization_HEADERS
5960
GenerateStreamLines.h
61+
ShowAndEditDipoles.h
6062
share.h
6163
)
6264

0 commit comments

Comments
 (0)