[vtkusers] Add Metadata into Actor

Thiago Macedo tmacedo29 at gmail.com
Mon Sep 17 15:53:36 EDT 2012


This is the way I'm trying ( and it's not working ):


vtkInformationIntegerKey* infoKey = new vtkInformationIntegerKey( "type", "" );
vtkInformation* info = actor->GetPropertyKeys();
if ( !info )
    info = vtkInformation::New();

infoKey->Set( info, 2 );
actor->SetPropertyKeys( info );

....

vtkInformationIntegerKey* infoKey = new vtkInformationIntegerKey( "type", "" );
vtkInformation* info = actor->GetPropertyKeys();
const int type = infoKey->Get( info );


But "const int type" is always 0. Could someone help me?





On Mon, Sep 17, 2012 at 12:30 PM, Thiago Macedo <tmacedo29 at gmail.com> wrote:
> Hi,
>
> how can I add a metadata ( e.g.: a string as the actor name ) into an Actor?
>
> Sorry about my poor english.
>
> Regards
>
> --
> Thiago B. Macedo



-- 
Thiago B. Macedo

Esta mensagem pode conter informação confidencial e/ou privilegiada.
Se você não for o destinatário ou a pessoa autorizada a receber
esta mensagem, não pode usar, copiar ou divulgar as informações nela
contidas ou tomar qualquer ação baseada nessas informações.
Se você recebeu esta mensagem por engano, por favor, avise
imediatamente o remetente, respondendo o e-mail e em seguida apague-a.
Agradeço a sua cooperação.

This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for
the addressee, you must not use, copy, disclose or take any action
based on this message or any information herein. If you have
received this message in error, please advise the sender immediately
by reply e-mail and delete this message. Thank you for your
cooperation.



More information about the vtkusers mailing list