Hi Susanne,
I just tried it myself. I inserted the following code in a functionality:
mitk::DataTreeNode::Pointer ellnode = mitk::DataTreeNode::New();
mitk::Ellipsoid::Pointer ell = mitk::Ellipsoid::New();
ellnode->SetData(ell);
ellnode->SetColor(0.9, 0.0, 0.9);
ellnode->SetName("Test Sphere");
mitk::DataStorage::GetInstance()->Add(ellnode);
The sphere came up with the correct color right away.
Did you change anything in the Mapper classes?
Regards,
Jochen
> -----Ursprüngliche Nachricht-----
> Von: Susanne Walter [mailto:[email protected]]
>
> The QmitkDataManager is not aktivated, if I activate it I could chang
> the color of the Ellipsoid.
> I have set Default Properties on the Ellipsoid. Is the material than
> "material"?
>
> > > -----Ursprüngliche Nachricht-----
> > > Von: Susanne Walter [mailto:[email protected]]
> > > Gesendet: Freitag, 27. März 2009 16:22
> > > An: [email protected]
> > > Betreff: [mitk-users] SetColor
> > >
> > > Hi
> > >
> > > I want to change the color of the data of an mitk::DataTreeNode.
> > >
> > > node->SetColor(0.5,0.5,0.7);
> > >
> > > compiles but has no effect.
> > >
> > > Can you please help?
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users