Hi Raj,<div><br></div><div>It's true that you will get a better precision with a slider. For that you can use the JQuery library, it is lighter than Dojo.</div><div>Dojo is the one I used in two of our sample application.</div>
<div><br></div><div>Seb<br><br><div class="gmail_quote">On Tue, May 3, 2011 at 7:49 PM, Rajvikram Singh <span dir="ltr"><<a href="mailto:rajvikrams@yahoo.com">rajvikrams@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Great .. yes the colors show up correctly and though now the interactive widget has disappeared I think I'm going to work around it by having a UI slider which lets the users slice through the data in X, Y or Z..<br>
<br>Thanks once again for all the patience and help.<div class="im"><br>Raj<br><br><br><br>--- On <b>Wed, 4/5/11, Sebastien Jourdain <i><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></i></b> wrote:<br>
</div><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><div class="im"><br>From: Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>><br>
Subject: Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline<br>To: "Rajvikram Singh" <<a href="mailto:rajvikrams@yahoo.com" target="_blank">rajvikrams@yahoo.com</a>><br>Cc: <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
</div>Date: Wednesday, 4 May, 2011, 4:29 AM<div><div></div><div class="h5"><br><br><div>Hi Raj, <div><br></div><div>I managed to show the correct color by
executing that:</div><div><br></div><div><div>sliceType.setNormal(0,0,1);</div><div>sliceType.setOrigin(view1.getCenterOfRotation());</div></div><div><div>
pv.SetDisplayProperties( {proxy : slice, view : view1, Representation : 'Surface', ColorArrayName : 'ImageFile'} );</div><div><br></div><div>In fact you shouldn't set any normal/origin on the widget, but instead set them on the plan of the Slice filter.</div>
<div>The reason why you couldn't select the ColorArrayName was because the plane was outside the bound of your dataset which was producing no output and therefore no data array.</div><div><br></div></div><div>Seb</div>
</div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br></div>