Hi all,<div><br></div><div>Could someone please tell me that is there a way to disable the moving and translating events of vtk spline widget?</div><div>I have tried with accessing the the event and add just a return there, but it did not work .</div>
<div>Below is the code:</div><div><br></div><div><div>class myvtkSplineWidget : public vtkSplineWidget</div><div>{</div><div><span class="" style="white-space:pre">        </span>public:</div><div> static myvtkSplineWidget *New()</div>
<div> { </div><div> return new myvtkSplineWidget; </div><div> }</div><div><span class="" style="white-space:pre">        </span>int GetCurrentIndex() { return this->CurrentHandleIndex; }</div><div><span class="" style="white-space:pre">        </span>void Translate(double *p1, double *p2){return;}</div>
<div><br></div><div>};</div></div><div><br></div><div>I want to allow the user to add points(handles) and delete them as well to drag them and change the shape of the spline. But moving and translating events should be disabled.</div>
<div>Thanks.</div>