|
35 | 35 | /// |
36 | 36 |
|
37 | 37 | #include <Modules/Legacy/Fields/ConvertMatricesToMesh.h> |
38 | | -#include <Core/Datatypes/Field.h> |
39 | | -#include <Core/Datatypes/Mesh.h> |
40 | | -#include <Core/Datatypes/Matrix.h> |
41 | | -#include <Core/Datatypes/FieldInformation.h> |
42 | | - |
43 | | -#include <Dataflow/Network/Ports/MatrixPort.h> |
44 | | -#include <Dataflow/Network/Ports/FieldPort.h> |
45 | | - |
46 | | - |
47 | | -DECLARE_MAKER(ConvertMatricesToMesh) |
48 | | -ConvertMatricesToMesh::ConvertMatricesToMesh(GuiContext* ctx) |
49 | | - : Module("ConvertMatricesToMesh", ctx, Filter, "NewField", "SCIRun"), |
50 | | - gui_fieldname_(get_ctx()->subVar("fieldname"), "Created Field"), |
51 | | - gui_meshname_(get_ctx()->subVar("meshname"), "Created Mesh"), |
52 | | - gui_fieldbasetype_(get_ctx()->subVar("fieldbasetype"), "TetVol"), |
53 | | - gui_datatype_(get_ctx()->subVar("datatype"), "double") |
| 38 | +#include <Core/Datatypes/Legacy/Field/Field.h> |
| 39 | +#include <Core/Datatypes/Legacy/Field/Mesh.h> |
| 40 | +#include <Core/Datatypes/Legacy/Matrix/Matrix.h> |
| 41 | +#include <Core/Datatypes/Legacy/Field/FieldInformation.h> |
| 42 | + |
| 43 | +using namespace SCIRun::Modules::Fields; |
| 44 | +using namespace SCIRun::Dataflow::Networks; |
| 45 | + |
| 46 | +ALGORITHM_PARAMETER_DEF(Fields, InputFieldTypeName) |
| 47 | +ALGORITHM_PARAMETER_DEF(Fields, InputFieldTypeTypeName) |
| 48 | +ALGORITHM_PARAMETER_DEF(Fields, OutputMeshDataType) |
| 49 | +ALGORITHM_PARAMETER_DEF(Fields, OutputFieldDatatype) |
| 50 | + |
| 51 | +ConvertMatricesToMesh::ConvertMatricesToMesh() |
| 52 | + : Module(ModuleLookupInfo("ConvertMatricesToMesh", "ChangeMesh", "SCIRun"), false) |
54 | 53 | { |
| 54 | + INITIALIZE_PORT(MeshElements); |
| 55 | + INITIALIZE_PORT(MeshPositions); |
| 56 | + INITIALIZE_PORT(MeshNormals); |
| 57 | + INITIALIZE_PORT(OutputField); |
55 | 58 | } |
56 | 59 |
|
57 | 60 |
|
58 | 61 | void ConvertMatricesToMesh::execute() |
59 | | -{ |
| 62 | +{/* |
60 | 63 | MatrixHandle positionshandle; |
61 | 64 | MatrixHandle normalshandle; |
62 | 65 | |
@@ -111,10 +114,11 @@ void ConvertMatricesToMesh::execute() |
111 | 114 | result_field->vfield()->resize_values(); |
112 | 115 | send_output_handle("Output Field", result_field); |
113 | 116 | } |
| 117 | + */ |
114 | 118 | } |
115 | 119 |
|
116 | 120 | void ConvertMatricesToMesh::process_elements(VMesh* mesh, size_type positionRows, bool required) |
117 | | -{ |
| 121 | +{/* |
118 | 122 | MatrixHandle elementshandle; |
119 | 123 | if (get_input_handle("Mesh Elements", elementshandle, required)) |
120 | 124 | { |
@@ -146,5 +150,5 @@ void ConvertMatricesToMesh::process_elements(VMesh* mesh, size_type positionRows |
146 | 150 | { |
147 | 151 | error("..." + to_string(ecount - 9) + " additional bad indices found."); |
148 | 152 | } |
149 | | - } |
| 153 | + } */ |
150 | 154 | } |
0 commit comments