Thanks Ingmar,

Actually, I would like to have a contour like in mitkContourTool (but 
not using a mitkTool and mitkToolManager).
My requirement is kind of 2D, as I need it only in 2D views. The 
intention is to interactively "fuse" labels resulting e.g. from a 
segmentation algorithm.
I could not find QmitkExtrudedContourCutter. Is it a non-public class or 
you meant mitkExtrudedContour?

Thanks for the support
sebastian
> Hi Sebastian,
> sorry for my late answer.
>
> To draw a 3D Line, you can use a mitkPointSetMapper associated with a 
> mitkPointSet.
> The Points represent the edge points of the line.
> The mitkPointSetVtkMapper3D connects each point if the bool property "show 
> contour" is set to true.
>
>
>       mitk::PointSet::Pointer pointSet = mitk::PointSet::New();
>       mitk::DataTreeNode pointSetNode = mitk::DataTreeNode::New();
>       mitk::PointSetInteractor interactor = 
> mitk::PointSetInteractor::New("pointsetinteractor", pointSetNode);
>       mitk::GlobalInteraction::GetInstance()->AddInteractor(interactor);
>       pointSetNode->SetName("Contour");
>       pointSetNode->SetProperty("show contour", 
> mitk::BoolProperty::New(true));
>       pointSetNode->SetProperty("contoursize", mitk::FloatProperty::New(1.0));
>       pointSetNode->SetProperty("pointsize", mitk::FloatProperty::New(1.1));
>       pointSetNode->SetData(pointSet);
>       mitk::DataStorage::GetInstance()->Add(pointSetNode);
>
> The mitkContourInteractor is deprecated and formally used as a hierarchical 
> statemachine. 
> Hierarchical statemachines turned out to be too complex to use.
> But you can check the mitkExtrudedContourInteractor with statemachine pattern 
> "dragWithCtrl" as used in QmitkExtrudedContourCutter.
>
> Best Regrds,
> Ingmar
>
>   


------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to