<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Arial Baltic";}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.1pt 792.1pt;
        margin:.5in .2in .6in .5in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1><pre><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello All, <o:p></o:p></span></font></pre><pre><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I am a little confused using vtk&#8217;s AddObserver feature in C++. Most of the existing examples are in TCL where it is very easy to simply pass a procedure that gets called on an event. In C++, to add an observer a class needs to be first derived from vtkCommand and then the execute method must be overwritten. Within my Execute method how can I get pointers to multiple objects such as the vtkRenderer, vtkInteractor, or vtkCellPicker? VTK mouse picking article in Wikipedia, uses picker, </span></font>iren and ren1 (3 object pointers) in procedure cbLBR(). While, in C++ my <font
face=Arial><span style='font-family:Arial'>vtkCommand derived class gets one vtkObject*. I hope I have been clear in explaining my problem. I do obviously not understand something simple here. Can someone please comment and guide me to C++ examples that demonstrate. Further, the wikipedia article mentioned that the C++ example is also available. Where can I get access to it? Many thanks.</span></font><o:p></o:p></pre>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>-Cheers,<o:p></o:p></span></font></p>

<p class=MsoNormal><strong><b><font size=1 face="Arial Baltic"><span
style='font-size:7.5pt;font-family:"Arial Baltic"'>Abhishek </span></font></b></strong><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>