Skip to content

Commit 54cf392

Browse files
committed
additional review comments resolved
1 parent a5e28a5 commit 54cf392

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

mevislab.github.io/content/tutorials/image_processing/cpp_1.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Make sure to have [cmake](https://cmake.org/download) installed. This example ha
2222
In this example, we develop our own C++ ML module, which adds a constant value to each voxel of the given input image.
2323

2424
## Steps to Do
25-
### Create a new ML Module
25+
### Create a New ML Module
2626
Before creating the module, make sure to have your own user package available. See [Package creation](tutorials/basicmechanisms/macromodules/package/) for details about Packages.
2727

2828
Use the *Project Wizard* via the menu entry {{< menuitem "File" "Run Project Wizard ..." >}} to create a new ML module. Select *ML Module* and click *Run Wizard*.
@@ -60,7 +60,7 @@ The Project Wizard creates a *CMakeLists.txt* file that describes the typical pr
6060

6161
Just make sure that the MLAB_ROOT environment variable is set on your system and points to the packages directory of your MeVisLab installation, because this is used to resolve the reference to the 'MeVisLab' project.
6262

63-
Open a commandline and change to your current module directory (the directory containing your *CMakeLists.txt* file). Enter **cmake . -G "Visual Studio 17"**. After execution, a lot of files are generated by CMake.
63+
Open a command line and change to your current module directory (the directory containing your *CMakeLists.txt* file). Enter **cmake . -G "Visual Studio 17"**. After execution, a lot of files are generated by CMake.
6464

6565
For further documentation about our use of CMake, see: [CMake for MeVisLab - Documentation](https://mevislabdownloads.mevis.de/docs/current/MeVisLab/Resources/Documentation/Publish/SDK/CMakeManual/#mainBook).
6666

@@ -124,7 +124,7 @@ Next, we are going to finally change the voxel values of the image. Open the fil
124124
```
125125
{{</highlight>}}
126126

127-
Then, change the inner line of the loop, so that the constant value is added to the value of the input voxel:
127+
Then, change the inner line of the loop so that the constant value is added to the value of the input voxel:
128128

129129
{{< highlight filename="mlSimpleAddOutputImageHandler.cpp" >}}
130130
```c++
@@ -141,9 +141,9 @@ Compile the project in the development environment. Make sure to select a *Relea
141141
### Use Your Module in MeVisLab
142142
Your compiled **.dll* is available in your project directory under *Sources/lib*. In order to use it in MeVisLab, it needs to be copied to the *lib* folder of your user package.
143143
144-
You can either do this manually or via PostBuild step.
144+
This only works in a post-build step.
145145
146-
In the case MeVisLab was running during development, restart MeVisLab and use your new module.
146+
If the environment variable *MLAB_AUTOMATIC_POSTBUILD_COPY* is set, the newly compiled DLLs and .lib files are copied to the correct location when MeVisLab restarts. Otherwise, they must be copied manually.
147147
148148
For testing purposes, you can use a `LocalImage` module and two `View2D` modules. Connect the `SimpleAdd` module to the second `View2D` and change the <field>Constant Value</field> field.
149149

mevislab.github.io/content/tutorials/image_processing/cpp_development.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ menu:
1818
The development of your own C++ modules can be done by ML modules and by Open Inventor modules.
1919

2020
{{<alert class="info" caption="Important Information">}}
21-
Make sure to use a compiler that is compatible to your currently installed MeVisLab version.
21+
Make sure to use a compiler that is compatible with your currently installed MeVisLab version.
2222
{{</alert>}}
2323

2424
### ML Modules on the C++ Level
@@ -27,9 +27,9 @@ Make sure to use a compiler that is compatible to your currently installed MeVis
2727
* Inputs and outputs for abstract data structures are connectors to pointers of objects derived from class Base and are called Base objects.
2828

2929
### Open Inventor Modules on the C++ Level
30-
* Most Open Inventor modules are objects derived from class SoNode defined in the Open Inventor library.
31-
* Open Inventor inputs and outputs are connectors to objects derived from class SoNode defined in the Open Inventor library. Many Open Inventor modules will return themselves as outputs (“self”). On inputs, they may have connectors to child Open Inventor modules.
32-
* Some Open Inventor modules are objects derived from class SoEngine. They are used for calculations and return their output not via output connectors but via fields.
30+
* Most Open Inventor modules are objects derived from class SoNode, defined in the Open Inventor library.
31+
* Open Inventor inputs and outputs are connectors to objects derived from class SoNode, defined in the Open Inventor library. Many Open Inventor modules will return themselves as outputs (“self”). On inputs, they may have connectors to child Open Inventor modules.
32+
* Some Open Inventor modules are objects derived from class SoEngine. They are used for calculations and return their output not via output connectors but via parameter fields.
3333
* Open Inventor modules may also have input and output connectors to Base objects and Image objects.
3434
* All standard Open Inventor nodes defined in the Open Inventor library are available in MeVisLab as Open Inventor modules.
3535

0 commit comments

Comments
 (0)