<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<META content="Microsoft Word 11" name=Originator><LINK 
href="cid:filelist.xml@01C4C66C.50295470" rel=File-List><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DisplayBackgroundShape/>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:HyphenationZone>14</w:HyphenationZone>
  <w:EnvelopeVis/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:UseWord2002TableStyleRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 2.0cm 2.0cm 2.0cm; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
P.MsoAutoSig {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoAutoSig {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoAutoSig {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
SPAN.StileMessaggioDiPostaElettronica17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
        mso-style-name: ""; mso-spl-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Tabella normale";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]--></HEAD>
<BODY lang=IT style="tab-interval: 35.4pt" vLink=purple link=blue>
<DIV><SPAN class=616330015-09112004><FONT color=#800000 size=2>I can think of 
several ways to do this, but the most straightforward way is probably to attach 
an observer to the render window start event that checks the render windows 
desired update rate and sets the LOD accordingly.&nbsp; The code could look 
something like this (I'm free handing so apologies if I make 
errors.)</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>// Declaration of callback function.</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>static void SelectLODCallback(vtkObject *__renwin, unsigned long, void 
*__prop)</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>{</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp; vtkRenderWindow *renwin = static_cast&lt;vtkRenderWindow 
*&gt;(__renwin);</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp; vtkLODProp3D *prop = static_cast&lt;vtkLODProp3D 
*&gt;(__prop);</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp; if (renwin-&gt;GetDesiredUpdateRate() &gt; 
5.0)</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp;&nbsp;&nbsp; {</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp;&nbsp;&nbsp; // Set low LOD in prop.</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp;&nbsp;&nbsp; }</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp; else</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp;&nbsp;&nbsp; {</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp;&nbsp;&nbsp; // Set high LOD in prop.</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>&nbsp;&nbsp;&nbsp; }</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>}</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>// Code to set up the observer.&nbsp; Assumes renwin is a vtkRenderWindow 
and prop</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>// is the vtkLODProp3D you want to control.</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>vtkCallbackCommand *cbc = vtkCallbackCommand::New();</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>cbc-&gt;SetClientData(prop);</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>cbc-&gt;SetCallback(SelectLODCallback);</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>renwin-&gt;AddObserver(vtkCommand::StartEvent, cbc);</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2>cbc-&gt;Delete();&nbsp;&nbsp;&nbsp; // Won't actually delete since renwin 
holds a reference.</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT color=#800000 size=2>That's basically 
be all you need.&nbsp; The render window interactor holds two update rates 
(DesiredUpdateRate and StillUpdateRate) and should set the render window's 
DesiredUpdateRate to one of these two depending on whether interaction is 
happening.</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><FONT color=#800000 
size=2>-Ken</FONT></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=616330015-09112004><!-- Converted from text/plain format -->
<P><FONT face="Courier New" color=#800000 size=2>&nbsp;&nbsp; 
****&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Kenneth Moreland<BR>&nbsp;&nbsp;&nbsp; 
***&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sandia National 
Laboratories<BR>***********&nbsp;<BR>*** *** ***&nbsp; email: 
kmorel@sandia.gov<BR>**&nbsp; ***&nbsp; **&nbsp; phone: (505) 
844-8919<BR>&nbsp;&nbsp;&nbsp; ***&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
fax:&nbsp;&nbsp; (505) 844-0833<BR></FONT></P></SPAN></DIV>
<DIV><SPAN class=616330015-09112004><FONT face="Courier New" color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #800000 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <B>On Behalf Of 
  </B>Massimo Ivani<BR><B>Sent:</B> Tuesday, November 09, 2004 6:57 
  AM<BR><B>To:</B> vtkusers@vtk.org<BR><B>Subject:</B> [vtkusers] vtkLODActor 
  and mouse interaction<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello <SPAN 
  class=SpellE>vtk</SPAN> <SPAN 
  class=SpellE>Users</SPAN>,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">I have 
  to show medical data using <SPAN class=SpellE>vtk</SPAN>. I use vtkLODProp3D 
  to add different LOD volume. I do not want that <SPAN class=SpellE>vtk</SPAN> 
  select the LOD but I want to select myself the LOD when I rotate, zoom or pan 
  volume. I can select the right LOD using <SPAN 
  class=SpellE>SetSelectedLODID</SPAN> but I do not know where I can intercept 
  mouse click to change LOD. Can I have your help?<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><SPAN class=SpellE><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thank</SPAN></FONT></SPAN><FONT 
  face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <SPAN 
  class=SpellE>you</SPAN>. <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoAutoSig><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Dr. Massimo 
  Ivani<o:p></o:p></SPAN></FONT></P>
  <P class=MsoAutoSig><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Media Lab 
  Software<o:p></o:p></SPAN></FONT></P>
  <P class=MsoAutoSig><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Ph. (+39) 
  0187517775<o:p></o:p></SPAN></FONT></P>
  <P class=MsoAutoSig><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes">Fax (+39) 
  0187511833<o:p></o:p></SPAN></FONT></P>
  <P class=MsoAutoSig><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes"><A 
  href="mailto:massimo.ivani@mlsw.com"><SPAN lang=EN-GB 
  style="mso-ansi-language: EN-GB">massimo.ivani@mlsw.com</SPAN></A></SPAN></FONT><SPAN 
  lang=EN-GB 
  style="mso-ansi-language: EN-GB; mso-no-proof: yes"><o:p></o:p></SPAN></P>
  <P class=MsoAutoSig><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes"><A 
  href="http://www.mlsw.com"><SPAN lang=EN-GB 
  style="mso-ansi-language: EN-GB">www.mlsw.com</SPAN></A></SPAN></FONT><SPAN 
  lang=EN-GB 
  style="mso-ansi-language: EN-GB; mso-no-proof: yes"><o:p></o:p></SPAN></P>
  <P class=MsoAutoSig><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-no-proof: yes"><A 
  href="http://www.implant3d.com"><SPAN lang=EN-GB 
  style="mso-ansi-language: EN-GB">www.implant3d.com</SPAN></A></SPAN></FONT><FONT 
  face=Arial size=2><SPAN lang=EN-GB 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: EN-GB"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-GB 
  style="FONT-SIZE: 12pt; mso-ansi-language: EN-GB"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>