Hi,

I would like to display a plane, like the crosshair planes, parallel to the
axial plane.

I tried several things but cannot get it work. The crash report is below.
The crash happens in mitk::Geometry2DDataVtkMapper3D which does not have a
data storage.

What I did:

     m_AxialCutOffSlice = mitk::Geometry2DData::New();


    m_AxialCutOffSliceNode = mitk::DataNode::New();

    m_AxialCutOffSliceNode->SetData(m_AxialCutOffSlice);

    m_AxialCutOffSliceNode->GetPropertyList()->SetProperty("layer",
mitk::IntProperty::New(1000));


    m_AxialCutOffSliceNode->SetProperty("reslice.thickslices",
mitk::ResliceMethodProperty::New());

    m_AxialCutOffSliceNode->SetProperty("reslice.thickslices.num",
mitk::IntProperty::New(1));

    m_AxialCutOffSliceNode->SetFloatProperty("reslice.thickslices.sizeinmm",
5.0f);


    m_AxialCutOffSliceNode->SetName("Axial cut-off slice");

    m_AxialCutOffSliceNode->SetBoolProperty("helper object", false);

    m_AxialCutOffSliceNode->SetBoolProperty("includeInBoundingBox", false);

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

    mapper->SetDatastorageAndGeometryBaseNode(this->GetDataStorage(),
referenceImageNode);

    // plane1Data is the axial cross plane, just to have a valid geometry.

    mitk::Geometry2D::Pointer geom2D =
plane1Data->GetGeometry2D()->Clone();
m_AxialCutOffSlice->SetGeometry2D(geom2D);
this->GetDataStorage()->Add(m_AxialCutOffSliceNode,
referenceImageNode); // add as a child, because the segmentation
"derives" from the original


The call stack at the crash:


5   libMitk.dylib                     0x000000010d2225c3
mitk::DataStorage::GetSubset(mitk::NodePredicateBase const*) const + 45
(mitkDataStorage.cpp:61)
6   libMitk.dylib                     0x000000010eb0d372
mitk::Geometry2DDataVtkMapper3D::GenerateDataForRenderer(mitk::BaseRenderer*)
+ 6580 (mitkGeometry2DDataVtkMapper3D.cpp:395)
7   libMitk.dylib                     0x000000010eb1f831
mitk::Mapper::Update(mitk::BaseRenderer*) + 379 (mitkMapper.cpp:131)
8   libMitk.dylib                     0x000000010eb71cb3
mitk::VtkPropRenderer::Update(mitk::DataNode*) + 543
(mitkVtkPropRenderer.cpp:404)
9   libMitk.dylib                     0x000000010eb6fe39
mitk::VtkPropRenderer::Update() + 287 (mitkVtkPropRenderer.cpp:423)
10  libMitk.dylib                     0x000000010eb7369d
mitk::VtkPropRenderer::PrepareMapperQueue() + 303
(mitkVtkPropRenderer.cpp:248)
11  libMitk.dylib                     0x000000010eb73e80
mitk::VtkPropRenderer::Render(mitk::VtkPropRenderer::RenderType) + 172
(mitkVtkPropRenderer.cpp:182)
12  libMitk.dylib                     0x000000010eb80cac
vtkMitkRenderProp::RenderOpaqueGeometry(vtkViewport*) + 76
(vtkMitkRenderProp.cpp:48)
13  libvtkRendering.5.10.dylib        0x000000011888a5d7
vtkRenderer::UpdateGeometry() + 843 (vtkRenderer.cxx:630)
...


Any idea?

Thank you,
Miklos
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to