Dear Mitk-users,
I want to enable the user to interactively select a seed point on an image.
I use the project's template which can be seen by the tree in the attached
file (my filter which can be run by a press button is implemented in
Filter_Implementation.cpp).
In which file of those in my tree should I add the following lines of
selecting points?
mitk::PointSet::Pointer pointSet = mitk::PointSet::New();
mitk::DataNode::Pointer pointSetNode = mitk::DataNode::New();
pointSetNode->SetData(pointSet);
ds->Add(pointSetNode);
mitk::GlobalInteraction::GetInstance()->AddInteractor(
mitk::PointSetInteractor::New("pointsetinteractor", pointSetNode)
);
Another question in the same subject:
Can I use an existing Mitk's plugin to do the above (enable the user to
select points) by copy the existing files to my plugin directory and use his
functions/classes? (for example: to use org.mitk.gui.qt.pointsetinteraction
which in the path: C:\MITK-superbuild\MITK-build\Modules\Bundles)
If yes, how should I do it? in which file of those that in my tree should I
use in order to use an existing Mitk's plugin variables?
Many thanks,
Miri
C:\MITK_ProjectTemplate>tree /f
C:.
│ CMakeLists.txt
│ Copyright.txt
│ README.markdown
│ SuperBuild.cmake
│ tree.txt
│
├───Apps
│ └───Filter1
│ CMakeLists.txt
│ Filter1.cpp
│ Filter1.ini
│ startFilter1.bat.in
│
├───CMake
│ CPackSetup.cmake
│ CTestCustom.cmake.in
│ MacroEmptyExternalProject.cmake
│ StartVS.bat.in
│
├───CMakeExternals
│ MITK.cmake
│
├───Modules
│ │ CMakeLists.txt
│ │
│ └───MyFilterLib
│ CMakeLists.txt
│ files.cmake
│ Filter_Implementation.cpp
│ Filter_Implementation.h
│
└───Plugins
│ Plugins.cmake
│
└───my.awesomeproject.exampleplugin
│ CMakeLists.txt
│ files.cmake
│ manifest_headers.cmake
│ plugin.xml
│
├───documentation
│ ├───doxygen
│ │ modules.dox
│ │
│ └───Manual
│ icon.png
│ Manual.dox
│
├───resources
│ icon.xpm
│
└───src
└───internal
mitkPluginActivator.cpp
mitkPluginActivator.h
QmitkAwesomeView.cpp
QmitkAwesomeView.h
QmitkAwesomeViewControls.ui
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users