|
26 | 26 | */ |
27 | 27 |
|
28 | 28 |
|
29 | | -// makes sure that headers aren't loaded multiple times. |
30 | | -// This requires the string to be unique to this file. |
31 | | -// standard convention incorporates the file path and filename. |
32 | 29 | #ifndef MODULES_FIELDS_GenerateNodeNormals_H |
33 | 30 | #define MODULES_FIELDS_GenerateNodeNormals_H |
34 | 31 |
|
35 | 32 | #include <Dataflow/Network/Module.h> |
36 | 33 | #include <Modules/Legacy/Fields/share.h> |
37 | | -// share.h must be the last include, or it will not build on windows systems. |
38 | 34 |
|
39 | 35 | namespace SCIRun { |
40 | 36 | namespace Modules { |
41 | 37 | namespace Fields { |
42 | | -// this final namespace needs to match the .module file |
43 | | -// in src/Modules/Factory/Config/ |
44 | 38 |
|
45 | | - // define module ports. |
46 | | - // Can have any number of ports (including none), and dynamic ports. |
47 | 39 | class SCISHARE GenerateNodeNormals : public SCIRun::Dataflow::Networks::Module, |
48 | 40 | public Has1OutputPort<FieldPortTag>, |
49 | 41 | public Has2InputPorts<FieldPortTag, FieldPortTag> |
50 | 42 | { |
51 | 43 | public: |
52 | | - // these functions are required for all modules |
53 | 44 | GenerateNodeNormals(); |
54 | 45 |
|
55 | 46 | virtual void execute(); |
56 | 47 | virtual void setStateDefaults(){} |
57 | 48 |
|
58 | | - //name the ports and datatype. |
59 | 49 | INPUT_PORT(0, InputField, Field); |
60 | 50 | INPUT_PORT(1, InputPoint, Field); |
61 | 51 | OUTPUT_PORT(0, OutputField, Field); |
62 | 52 |
|
63 | | - // this is needed for the module factory |
64 | | - // the arguments of this function could vary as NoAlgoOrUI or ModuleHasUIAndAlgorithm |
65 | 53 | MODULE_TRAITS_AND_INFO(NoAlgoOrUI) |
66 | 54 | }; |
67 | 55 | }}} |
|
0 commit comments