Hello,
I am trying to use mitk::PlanarLine to get line drawing on an image, but am
having issues with the implementation. Does the following code seem right? I
know I am missing something, but not exactly sure what.
******************************************************************************************
std::string refName("Pic3D");
for (mitk::DataStorage::SetOfObjects::ConstIterator
it=_NodeSetinDS->Begin();it!=_NodeSetinDS->End();it++){
node=const_cast<mitk::DataNode*>(it->Value().GetPointer());
std::string nodeName=node->GetName();
if(nodeName==refName)
{
break;
}
}
if(figureInteractor.IsNull()){
if(node){
//node is a specific image, in this case Pic3D.pic
mitk::PlanarFigureInteractor::Pointer myPlanarLineInteractor =
mitk::PlanarFigureInteractor::New("PlanarFigureInteractor", node);
mitk::PlanarLine::Pointer myPlanarLine = mitk::PlanarLine::New();
mitk::GlobalInteraction::GetInstance()->AddInteractor(myPlanarLineInteractor);
mitk::DataNode::Pointer interactorNode=mitk::DataNode::New();
interactorNode->SetName("PlanarLineInteractor");
interactorNode->SetData( myPlanarLine);
this->GetDataStorage()->Add(interactorNode);
mitk::RenderingManager::GetInstance()->RequestUpdateAll();
}
}
******************************************************************************************
Any help is greatly appreciated!
-Keshav
Keshav Chintamani,
Systems Engineer
Space Applications Services NV
Leuvensesteenweg 325
1932 Zaventem
Belgium
Tel: +32 2 721 54 84 Fax: +32 2 721 54 44
URL: http://www.spaceapplications.com
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users