And maybe more logical line: mitk::LookupTableProperty* lutProp = mitk::LookupTableProperty::New(dynamic_cast<mitk::LookupTable*>(lut));
is not possible either. -- Xabier Artaechevarria Cancer Imaging Laboratory Centre for Applied Medical Research www.cima.es Daniel Maleike <[EMAIL PROTECTED]> ha escrito: > On Thu, 2008-06-12 at 16:13 +0200, Xabier Artaechevarria Artieda wrote: >> // set colors for the segments >> mitk::LabeledImageLookupTable* lut = >> mitk::LabeledImageLookupTable::New(); > >> lut->SetColorForLabel(1, 1.0, 0.0, 0.0, 1.0 ); >> >> I guess it has to do with the fact that "lut" is not created as >> "Pointer" but with "*". >> > > This is definitely a problem! Whenever you create something > with ::New(), the first thing to do is to assign the return value > of ::New() to some SmartPointer object. Otherwise the returned object > will be destroyed immediately (returned value is a SmartPointer, > returned SmartPointer goes out of scope quite soon, destroys object it > points to). > > 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 > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users > ---------------------------------------------------------------- Este mensaje ha sido enviado desde https://webmail.unav.es ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
