Thanks a lot, it works now, now it is just a matter of taste to choose the right colors ;)
-- 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:31 +0200, Xabier Artaechevarria Artieda wrote: >> Thanks Daniel. >> >> But then, how can I tell the LookupTableProperty to use >> LabeledImageLookupTable? >> Because I cannot do static_cast if it is a SmartPointer. >> I mean, the line >> >> mitk::LookupTableProperty* lutProp = >> mitk::LookupTableProperty::New(dynamic_cast<mitk::LookupTable*>(lut)); >> >> will not compile. > > > I see, > > you code would work like this (I guess, not tested): > > mitk::LabeledImageLookupTable::Pointer lut = > mitk::LabeledImageLookupTable::New(); > > lut->dosomething(); > > mitk::LookupTableProperty::Pointer lutProperty = > mitk::LookupTableProperty::New( lut.GetPointer() ); > > // lut.GetPointer gives a C pointer, which should be implicitly cast > to a LookupTable*, which can initialize a LookupTableProperty > > Kind 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
