<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div style="font-family: 'lucida Grande', Verdana; font-size: 14px; line-height: 23px;">You could modify the&nbsp;<span style="white-space: pre-wrap; font-family: 'Courier New'; font-size: 12px; line-height: 18px;">vtkImplicitPlaneRepresentation of the widget, initial the plane then you could get what you want.</span></div><div style="font-family: 'lucida Grande', Verdana; font-size: 14px; line-height: 23px;"><font face="Courier New"><span style="font-size: 12px; line-height: 18px; white-space: pre-wrap;">Codes below are the pieces of the whole codes. Full example in :</span></font></div><div style="font-family: 'lucida Grande', Verdana; font-size: 14px; line-height: 23px;"><a href="http://www.cnblogs.com/dawnWind/archive/2013/05/04/3D_11.html" target="_blank" style="outline: none; cursor: pointer; color: rgb(75, 70, 50); line-height: 1.5;">http://www.cnblogs.com/dawnWind/archive/2013/05/04/3D_11.html</a></div><div style="font-family: 'lucida Grande', Verdana; font-size: 14px; line-height: 23px;"><font face="Courier New"><span style="font-size: 12px; line-height: 18px; white-space: pre-wrap;">// set up representation for vtkImplicitPlaneWidget2 
    // you could set the normal and origin with the value you want 
    vtkSmartPointer&lt;vtkImplicitPlaneRepresentation&gt; rep = 
    vtkSmartPointer&lt;vtkImplicitPlaneRepresentation&gt;::New();
    rep-&gt;SetPlaceFactor(1.25); // This must be set prior to placing the widget
    rep-&gt;PlaceWidget(coneSkinActor-&gt;GetBounds());
#ifndef SET_VALUE
    rep-&gt;SetNormal(measureNormal);
    rep-&gt;SetOrigin(point3);
#endif
    vtkSmartPointer&lt;vtkImplicitPlaneWidget2&gt; implicitPlaneWidget = vtkImplicitPlaneWidget2::New();
    implicitPlaneWidget-&gt;SetInteractor(iren);
    // this set the representation for the widget thus the normal and origin is transfer to the widget
    implicitPlaneWidget-&gt;SetRepresentation(rep);</span></font></div><br>DawnWind.Chen<div>CSU</div><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Fri, 3 May 2013 10:06:18 -0400<br>From: tonyzhang0985@gmail.com<br>To: vtkusers@vtk.org<br>Subject: [vtkusers] set up position of vtkImplicitPlaneWidget<br><br><div dir="ltr">I am trying to use vtkImplicitPlaneWidget and it is located in the middle of outline frame by default. I can use mouse to move the plane. What is the function I can use to set up an arbitrary position of the plane when it is initialized, or to move the position by program rather than the built-in mouse event function? <br>
</div>
<br>_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers</div>                                               </div></body>
</html>