Hi Hongzhi,

do you have any updates regarding your issue? Does your pointset have special 
properties (e.g. is it empty or is it time resolved)?

We now integrated a new rendering test suite for the SplineVtkMapper3D in order 
to test its functionality on a more regular base.
You can find the test on the current master here:
\MITK\Modules\MapperExt\test\mitkSplineVtkMapper3DTest.cpp

The provided code should give you hints how to apply the SplineMapper to a 
pointset. The mapper renders splines in the 3D window by connecting the points 
according to their order in the pointset.

Please note that the SplineVtkMapper3D still needs a redesign (e.g. it does not 
use smartpointers at all) , but I think its basic functionality has been 
restored and should work.

Cheers,
Sandy

See also [1] http://bugs.mitk.org/show_bug.cgi?id=19543 for more updates on 
this issue




-----Ursprüngliche Nachricht-----
Von: Kislinskiy, Stefan [mailto:s.kislins...@dkfz-heidelberg.de] 
Gesendet: Freitag, 5. Februar 2016 10:33
An: Hongzhi Lan; mitk-users@lists.sourceforge.net
Betreff: Re: [mitk-users] error when using SplineVtkMapper3D

Hi Hongzhi,

you are describing two distinct issues here.

Regarding US_MODULE_NAME: This is a compile definition which is set in the 
CMake script. It is done automatically for MITK modules and plugins in the 
according CMake macros to create them. It seems that you have your own 
application, so I recommend to read [1] (please note the required name for 
executables).

Regarding the SplineVtkMapper3D I am sorry to say that according to its Git 
history, the last time someone from us touched it except for keep it compiling 
was unfortunately a decade ago and it is not used in any place of the current 
MITK source. Hence, we would need to have a closer look at one of our next bug 
squashing parties but it will take some time. I opened a ticket in our bug 
tracker [2]. If you can't wait and want to help us fixing it, feel free to do 
so. :-)

[1] http://docs.mitk.org/2015.05/MicroServices_TheModuleContext.html
[2] http://bugs.mitk.org/show_bug.cgi?id=19543

Best regards,
Stefan

________________________________________
Von: Hongzhi Lan [hong...@stanford.edu]
Gesendet: Freitag, 5. Februar 2016 04:24
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] error when using SplineVtkMapper3D

Hi,


I'm trying to use SplineVtkMapper3D for PointSet. The code is like this:


mitk::SplineVtkMapper3D::Pointer mapper=mitk::SplineVtkMapper3D::New();

pointSetNode->SetMapper(mitk::BaseRenderer::Standard3D,mapper);



The error is as below:

============================================================================

In file included from 
/home/hongzhi/SourceCode/MITK/Modules/Core/include/mitkCoreServices.h:25:0,
                 from 
/home/hongzhi/SourceCode/MITK/Modules/Core/include/mitkVtkMapper.h:28,
                 from 
/home/hongzhi/SourceCode/MITK/Modules/Core/include/mitkPointSetVtkMapper3D.h:22,
                 from 
/home/hongzhi/SourceCode/MITK/Modules/MapperExt/include/mitkSplineVtkMapper3D.h:21,
                 from 
/home/hongzhi/SimVascular/SimVascular3/Code/Applications/PathPlanning/svPathCreate.cxx:17:
/home/hongzhi/SourceCode/MITK/Modules/CppMicroServices/core/include/usGetModuleContext.h:27:2:
 error: #error Missing preprocessor define US_MODULE_NAME  #error Missing 
preprocessor define US_MODULE_NAME 
===============================================================================


I added "#define US_MODULE_NAME somename" in my source file to avoid the error 
above. As I added points, I can see the points on 2D windows, but nothing on 3D 
window.

Can I get some suggestion about how to use SplineVtkMapper3D for pointsets and 
avoid the US_MODULE_NAME issue as above?

Thanks,

Hongzhi

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + 
Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end 
web transactions and take corrective actions now Troubleshoot faster and 
improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to