On Thu, 2009-03-19 at 11:25 +0100, Susanne Walter wrote:
> Hi!
> 
> I want to show a sphere in my functionallity. I tried this but get a runtime 
> error. (Showing .vtk-files at the same position in code is no problem)
> 
> mitk::Ellipsoid * pEllipsoid = mitk::Ellipsoid::New();
> mitk::DataTreeNode::Pointer pNode = mitk::DataTreeNode::New();
> mitk::DataTreeNodeFactory::SetDefaultSurfaceProperties( pNode );
> pNode->SetData( pEllipsoid );
> GetDataTreeIterator()->Add(pNode);

Hi,

first and perhaps only problem is that you don't use ITK SmartPointers
to hold the ellipsoid. Try

mitk::Ellipsoid::Pointer pEllipsoid = mitk::Ellipsoid::New();

instead. This could fix your problem.

Regards
Daniel


-- 
Dipl.-Inform. Med. Daniel Maleike          Phone: +49 6221 42 2326
Deutsches Krebsforschungszentrum           Im Neuenheimer Feld 280
Medical and Biological Informatics (E130)         69120 Heidelberg



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to