Skip to content

Commit b634dfb

Browse files
committed
Rename Module
1 parent 3183106 commit b634dfb

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/Modules/Factory/Config/CalculateNormals.module renamed to src/Modules/Factory/Config/GenerateNodeNormals.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"module": {
3-
"name": "CalculateNormals",
3+
"name": "GenerateNodeNormals",
44
"namespace": "Fields",
55
"status": "new module",
66
"description": "Make a new vector field that points to the input point.",
7-
"header": "Modules/Legacy/Fields/CalculateNormals.h"
7+
"header": "Modules/Legacy/Fields/GenerateNodeNormals.h"
88
},
99
"algorithm": {
1010
"name": "N/A",

src/Modules/Legacy/Fields/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ SET(Modules_Legacy_Fields_HEADERS
9898
CalculateMeshNodes.h
9999
GenerateElectrode.h
100100
InterfaceWithTetGen.h
101-
CalculateNormals.h
101+
GenerateNodeNormals.h
102102
)
103103

104104
SET(Modules_Legacy_Fields_SRCS
@@ -212,7 +212,7 @@ SET(Modules_Legacy_Fields_SRCS
212212
ExtractSimpleIsosurface.cc
213213
ReorderNormalCoherently.cc
214214
InterfaceWithTetGen.cc
215-
CalculateNormals.cc
215+
GenerateNodeNormals.cc
216216
)
217217

218218
IF(WITH_TETGEN)

src/Modules/Legacy/Fields/CalculateNormals.cc renamed to src/Modules/Legacy/Fields/GenerateNodeNormals.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727

2828

29-
#include <Modules/Legacy/Fields/CalculateNormals.h>
29+
#include <Modules/Legacy/Fields/GenerateNodeNormals.h>
3030
#include <Core/Datatypes/Legacy/Field/Field.h>
3131
#include <Core/Datatypes/Legacy/Field/VField.h>
3232
#include <Core/Datatypes/Legacy/Field/VMesh.h>
@@ -38,20 +38,20 @@ using namespace SCIRun::Modules::Fields;
3838
using namespace SCIRun::Core::Datatypes;
3939
using namespace SCIRun::Dataflow::Networks;
4040

41-
/// @class CalculateNormals
41+
/// @class GenerateNodeeNormals
4242
/// @brief Make a new vector field that points to the input point.
4343

44-
MODULE_INFO_DEF(CalculateNormals, ChangeFieldData, SCIRun) ;
44+
MODULE_INFO_DEF(GenerateNodeNormals, ChangeFieldData, SCIRun) ;
4545

46-
CalculateNormals::CalculateNormals() : Module(staticInfo_, false)
46+
GenerateNodeNormals::GenerateNodeNormals() : Module(staticInfo_, false)
4747
{
4848
INITIALIZE_PORT(InputField);
4949
INITIALIZE_PORT(InputPoint);
5050
INITIALIZE_PORT(OutputField);
5151
}
5252

5353
void
54-
CalculateNormals::execute()
54+
GenerateNodeNormals::execute()
5555
{
5656
auto ifieldhandle = getRequiredInput(InputField);
5757
auto ipointhandle = getRequiredInput(InputPoint);

src/Modules/Legacy/Fields/CalculateNormals.h renamed to src/Modules/Legacy/Fields/GenerateNodeNormals.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
// makes sure that headers aren't loaded multiple times.
3030
// This requires the string to be unique to this file.
3131
// standard convention incorporates the file path and filename.
32-
#ifndef MODULES_FIELDS_CalculateNormals_H
33-
#define MODULES_FIELDS_CalculateNormals_H
32+
#ifndef MODULES_FIELDS_GenerateNodeNormals_H
33+
#define MODULES_FIELDS_GenerateNodeNormals_H
3434

3535
#include <Dataflow/Network/Module.h>
3636
#include <Modules/Legacy/Fields/share.h>
@@ -44,13 +44,13 @@ namespace Fields {
4444

4545
// define module ports.
4646
// Can have any number of ports (including none), and dynamic ports.
47-
class SCISHARE CalculateNormals : public SCIRun::Dataflow::Networks::Module,
47+
class SCISHARE GenerateNodeNormals : public SCIRun::Dataflow::Networks::Module,
4848
public Has1OutputPort<FieldPortTag>,
4949
public Has2InputPorts<FieldPortTag, FieldPortTag>
5050
{
5151
public:
5252
// these functions are required for all modules
53-
CalculateNormals();
53+
GenerateNodeNormals();
5454

5555
virtual void execute();
5656
virtual void setStateDefaults(){}

0 commit comments

Comments
 (0)