Hi Nil,

you need to add a "LocalStorage", which derives from the 
mitk::Mapper::BaseLocalStorage class to your mapper's header file.
This internal class is intended for including all rendering related vtk member 
variables, such as mappers, actors etc.

To render transveral, coronal, and sagittal, each 2D mapper is called three 
times. For performance reasons, the corresponding data for each view is saved 
in the
internal helper class LocalStorage. This allows rendering n views with just 1 
mitkMapper using n vtkMapper.

Examples are provided in
Core/Code/Rendering/mitkImageVtkMapper2D.h
Core/Code/Rendering/mitkPointSetVtkMapper2D.h


The MapperSlotId is defined as enum in the mitk::BaseRenderer class:
enum StandardMapperSlot
    {
      Standard2D = 1, Standard3D = 2
    };

Best,
Sandy


Von: Nil Goyette [mailto:[email protected]]
Gesendet: Donnerstag, 25. September 2014 19:35
An: [email protected]
Betreff: [mitk-users] 2D mapper

Hi all,

I created my own 2D and 3D mapper for the FiberBundle type. My 2D mapper works 
as intended, but I can't get my 2D mapper to work for all views. It works only 
in the axial view.

auto mapper2D = MyMapper::New();
...
node->SetMapper(1, mapper2D);

Do I need to write something special to apply my mapper to the sagittal and 
frontal view?
Also, the first parameter of SetMaper (MapperSlotId) is the dimension (-1) I 
target, right?
--
[cid:[email protected]]<http://imeka.ca/>

Nil Goyette, M.Sc.
www.imeka.ca<http://imeka.ca/>


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to