[vtkusers] How to initialize vtkAngleWidget with three points specified?

cybfly cybfly1 at hotmail.com
Fri May 3 22:14:56 EDT 2013


angleWidgetWithSetPoints.cpp
<http://vtk.1045678.n5.nabble.com/file/n5720558/angleWidgetWithSetPoints.cpp>  
I encountered this problem and i found the VTK source codes does not initial
the three points presentation.
So i inherit a class of vtkAngleRepresentation3D, initial the points then i
can modify them in some other place and no "null point 1 representation"
appears. 
Like codes below and the full codes in the attachments:
class vtkAngleRepresentation3DWithPointRepresentation: public
vtkAngleRepresentation3D
{
	public:
	 static vtkAngleRepresentation3DWithPointRepresentation *New()
	 {
		  return new vtkAngleRepresentation3DWithPointRepresentation;
	 }
	 void initialPointRepresentation()
	 {
		 this->Point1Representation = vtkPointHandleRepresentation3D::New();
		 this->Point2Representation = vtkPointHandleRepresentation3D::New();
		 this->CenterRepresentation = vtkPointHandleRepresentation3D::New();
	 }
};
<http://vtk.1045678.n5.nabble.com/file/n5720558/clipAndInitAnglewidget.png> 





--
View this message in context: http://vtk.1045678.n5.nabble.com/Re-How-to-initialize-vtkAngleWidget-with-three-points-specified-tp3281326p5720558.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list