[vtkusers] program crashes on vtkOrientationMarkerWidget
David Doria
daviddoria at gmail.com
Wed Jan 26 08:23:16 EST 2011
On Wed, Jan 26, 2011 at 12:48 AM, Nelson <gnjoseph at gmail.com> wrote:
>
> 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?
Does this example work for you?
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/OrientationMarkerWidget
David
More information about the vtkusers
mailing list