<div dir="ltr">Thank you. I'll try to work around this and provide an update.<div><br></div><div>Regards,</div><div>Sunil</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 10:13 PM, David Cole <span dir="ltr"><<a href="mailto:DLRdave@aol.com" target="_blank">DLRdave@aol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In ActiViz .NET, you cannot derive a new class from a VTK wrapper<br>
class. You would have to write the class in C++ and then wrap it to<br>
generate the class on the managed/.NET side.<br>
<br>
You can intercept events fired from the VTK objects: there should be<br>
decent examples of how to do that in ActiViz .NET, but no deriving<br>
classes in the wrapper layer without having a corresponding class on<br>
the unwrapped side.<br>
<br>
<br>
Hope this helps,<br>
David C.<br>
<div><div class="h5"><br>
<br>
<br>
On Wed, Aug 31, 2016 at 4:12 AM, Sunil Mathew via vtkusers<br>
<<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>> wrote:<br>
> Hi,<br>
><br>
> I'm clicking on the playback buttons but they do not trigger the overridden<br>
> method. I tried making the call explicitly and it does work. I also tried<br>
> some enable flags, but did not seem to work. Any help is appreciated. I got<br>
> here by trying out an<br>
> example-><a href="https://itk.org/Wiki/VTK/Examples/Cxx/Broken/Widgets/PlaybackWidget" rel="noreferrer" target="_blank">https://itk.org/Wiki/<wbr>VTK/Examples/Cxx/Broken/<wbr>Widgets/PlaybackWidget</a><br>
><br>
> public class PlaybackRepresentation: vtkPlaybackRepresentation<br>
> {<br>
>     public new static PlaybackRepresentation New()<br>
>     {<br>
>         return new PlaybackRepresentation();<br>
>     }<br>
><br>
>     public PlaybackRepresentation()<br>
>     {<br>
>     }<br>
><br>
>     public override void Play()<br>
>     {<br>
>         Log("Play pressed.");<br>
>     }<br>
> }<br>
><br>
> PlaybackRepresentation   pbRep    = PlaybackRepresentation.New();<br>
> vtkPlaybackWidget        pbWidget = vtkPlaybackWidget.New();<br>
><br>
> public void AddPlaybackWidget()<br>
> {<br>
>     pbRep.SetShowBorderToOff();<br>
>     pbRep.SetPosition( 0.43, 0.05);<br>
>     pbRep.SetPosition2(0.14, 0.07);<br>
><br>
>     pbWidget.SetInteractor(_style.<wbr>GetInteractor());<br>
>     pbWidget.SetRepresentation(<wbr>pbRep);<br>
>     pbWidget.On();<br>
><br>
>     pbRep.Play(); // This does work, but clicking<br>
>                   // on the button does not trigger the method call<br>
> }<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
><br>
</blockquote></div><br></div>