[IGSTK-Developers] Re: [IGSTK-Users] A question about igstkEventTransductionMarco

Luis Ibanez luis.ibanez at kitware.com
Mon Oct 29 14:59:05 EDT 2007


Hi Vincent,

Thanks for trying the code and for letting us know that it worked.

Please let us know if you encounter any other problems.


    Thanks


       Luis


-----------------------
Vincent Gratsac wrote:
> Hi Luis,
> 
> I tried to compile my code using IGSTK last updates and all seem to be 
> working fine.
> Thank your for taking care of my remarks !
> 
> Have a nice day,
> 
> Vincent
> 
> Luis Ibanez a écrit :
> 
>>
>> Hi Vincent,
>>
>> Thanks for pointing this out.
>>
>> We created a bug report for the second item that you mentioned.
>>
>>      http://public.kitware.com/Bug/view.php?id=5971
>>
>> We just committed a fix (*in the Sandbox*):
>>
>> http://public.kitware.com/cgi-bin/viewcvs.cgi/IGSTK/Source/igstkMacros.h?root=IGSTKSandbox&sortby=date&r2=1.6&r1=1.5 
>>
>>
>> The fix is in the Sandbox, because at this point we are refactoring
>> large portions of IGSTK, and most files have been moved there for
>> that purpose.
>>
>> Note that the Macro interface was also modified in order to match
>> how other StateMachine-related macros are used.
>>
>> In particular, before you called it as:
>>
>>     igstkEventTransductionMacro(
>>               TransformModifiedEvent,
>>               TransformChangedInput
>>               )
>>
>> Now you don't need to specify "Event" nor "Input", the macro add
>> those sufixes internally. The new call looks like:
>>
>>     igstkEventTransductionMacro(
>>               TransformModified,
>>               TransformChanged
>>               )
>>
>>
>> If you have a chance, please give it a try and let us know what
>> you find.
>>
>>
>>    Thanks
>>
>>
>>       Luis
>>
>>
>> ------------------------
>> Vincent Gratsac wrote:
>>
>>> Hi igstk-users,
>>>
>>> There is two points I would like to discuss :
>>>
>>> First, I have some problems with QTWidget and ViewNew available in 
>>> IGSTK Sandbox.
>>> I'm not able to display objects in these views, and I did not find 
>>> example code which is working fine.
>>> Could anyone tell me how to use these classes or show me a sample code ?
>>>
>>> Second, I tried to use the igstkEventTransductionMacro and it seems 
>>> that there is actually a bug. ProcessInputs() method is not called.
>>> As Luis Ibanez adviced me, I added a call to this method in the 
>>> macro, and now the problem is solved. So I think it would be nice to 
>>> add this new line in each event transduction macro.
>>>
>>> Vincent
>>>
>>>
>>> Vincent Gratsac wrote:
>>>
>>>> Hi all,
>>>>
>>>> Thank you for your reply Luis !
>>>>
>>>> In fact, I did not try to use this macro, I was just trying to 
>>>> understand its behavior.
>>>> Now I'm trying to use it in my code, and it seems that it works fine 
>>>> as it... but I don't understand why.
>>>>
>>>> So there is no bug in this part.
>>>> I will try to find when occurs the ProcessInputs() call, just in 
>>>> order to understand.
>>>>
>>>> Thank you for your help,
>>>>
>>>> Vincent
>>>>
>>>>
>>>> Luis Ibanez a écrit :
>>>>
>>>>>
>>>>>
>>>>> Hi Vincent,
>>>>>
>>>>> Thanks for pointing this out.
>>>>>
>>>>> This looks indeed like a bug.
>>>>>
>>>>>
>>>>> Could you please try adding to your local copy the line
>>>>>
>>>>>        m_StateMachine.ProcessInputs();
>>>>>
>>>>> and let us know what you find ?
>>>>>
>>>>>
>>>>> If this works for you, then will log a bug report
>>>>> and will fix the set of Transduction macros in
>>>>> the igstkMacro.h file.  We probably should add
>>>>> a explicit test just for this feature.
>>>>>
>>>>>
>>>>>    Thanks
>>>>>
>>>>>
>>>>>
>>>>>       Luis
>>>>>
>>>>>
>>>>>
>>>>> ---------------------
>>>>> Vincent Gratsac wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I send a question on this mailing list a few days ago and I'm 
>>>>>> still not able to answer it.
>>>>>>
>>>>>> Could someone give me some clues ?
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>> Vincent
>>>>>>
>>>>>>
>>>>>>> Hi IGSTK users,
>>>>>>>
>>>>>>> I'm currently trying to use the igstkEventTransductionMarco in 
>>>>>>> order to integrate a received event to my state machine.
>>>>>>> I read the code added by this macro, and I noticed that the 
>>>>>>> CallBackMyEventInput method only pushes the input in the state 
>>>>>>> machine, but does not ask the state machine to process this input :
>>>>>>>
>>>>>>> 00272   void Callback##event##input( const ::itk::EventObject & ) \
>>>>>>> 00273   { \
>>>>>>> 00274     m_StateMachine.PushInput( m_##input ); \
>>>>>>> 00275   } \
>>>>>>>
>>>>>>>
>>>>>>> So I don't understand when the state machine will process inputs 
>>>>>>> pushed by this macro...
>>>>>>>
>>>>>>> Could someone help me ?
>>>>>>>
>>>>>>> Thank you and have a nice day ! 
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>>
> 



More information about the IGSTK-Developers mailing list