[vtkusers] program crashes on vtkOrientationMarkerWidget

Nelson gnjoseph at gmail.com
Wed Jan 26 00:48:49 EST 2011


Hi All,

I have added vtkAxesActor to my render window, but it crashes.
The following is the code:

vtkSmartPointer<vtkAxesActor> axes = vtkSmartPointer<vtkAxesActor>::New();
m_pRenderer->AddActor( axes );

vtkSmartPointer<vtkOrientationMarkerWidget> widget =
vtkSmartPointer<vtkOrientationMarkerWidget>::New();
	widget->SetOutlineColor( 0.9300, 0.5700, 0.1300 );
	widget->SetOrientationMarker( axes );
	widget->SetInteractor( m_pRenderWindowInteractor );
	widget->SetViewport( 0.0, 0.0, 0.4, 0.4 );
	widget->SetEnabled( 1 );

Could anybody help me please?

-----
Best Regards,
Nelson
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/program-crashes-on-vtkOrientationMarkerWidget-tp3357419p3357419.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list