[vtkusers] how to get result of the Execute Method of a subclass of vtkCommand

Laurent PAUL Laurent.Paul at orto.ucl.ac.be
Wed Apr 19 04:41:16 EDT 2006


Hi Andinet,

I agree with you, I can add methods to get the result, but, as the Execute
method is called when an event is invoked, I can not control this method.
I don't know how (and where, and when ) to call the "Get" method.
I'd want to get the result for each iteraction.

Any idea?

Laurent.



> Laurent PAUL wrote:
>
>>Hi users,
>>
>>I'd want to (try to) create an image in the execute method from a
>> subclass
>>of vtkCommand.
>>I can pass data using a "Set" method, but don't know how to get the
>> result.
>>
>>Changing the returning value from void to vtkImageData?
>>How and where do I get the result?
>>
>>
>
>
> You can add GetImage() method....You can define as many new methods as
> you want in your subclass...there is not restriction at all.
>
> vtkImageData Your_vtkCommand_Subclass::GetImage();
>
>
> Andinet
>
>
>
>>Thanks for any help!
>>
>>Laurent.
>>
>>PAUL Laurent
>>Ingénieur de recherche - Doctorand
>>Université Catholique de Louvain
>>Laboratoire d'Orthopédie
>>avenue Mounier, 53
>>Bruxelles
>>tél:(0032) 2 764 93 88
>>
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>>
>
>
>





More information about the vtkusers mailing list