<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=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="cid:filelist.xml@01C04595.1445DB60">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle16
        {mso-style-type:personal-compose;
        mso-ansi-font-size:10.0pt;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:black;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
</head>

<body lang=EN-AU style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>How do you associate a vtkFollower object with a camera source in an MFC
application like Sample?<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>Clearly you cannot do something like this in the Document class:<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>this-&gt;textActor-&gt;SetCamera(Renderer-&gt;GetActiveCamera());<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>this-&gt;Props-&gt;AddItem(textActor);<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>Because the renderer Renderer is not visible. <o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>So can you do this in the code where the view is generated?<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>i.e here in SampleViewDoc:<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>/////////////////////////////////////////////////////////////////////////////<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>// CSampleView message handlers<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>void CSampleView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>{<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
TODO: Add your specialized code here and/or call the base class<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span>vtkPropCollection *propc;<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span>vtkProp *prop;<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span>// TODO: Add your
specialized code here and/or call the base class<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span>// first remove any old
actors<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp;
</span>this-&gt;Renderer-&gt;GetProps()-&gt;RemoveAllItems();<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span>propc =
this-&gt;GetDocument()-&gt;GetProps();<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span>propc-&gt;InitTraversal();<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span>while (prop =
propc-&gt;GetNextProp())<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;
</span>this-&gt;Renderer-&gt;AddProp(prop);<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;
</span>this-&gt;Renderer-&gt;ResetCamera();<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </span>}<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp; </span><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><span style="mso-spacerun: yes">&nbsp;
</span>this-&gt;vtkMFCRenderView::OnUpdate(pSender, lHint, pHint);<span
style='mso-tab-count:3'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>}<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle16><font size=2 color=black
face=Arial><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></font></span></p>

</div>

</body>

</html>