[vtkusers] Need help to use vtkAxesTransformWidget class
Geeta
geeta_kapse at yahoo.com
Wed Oct 29 08:45:41 EDT 2014
Want to use vtkAxesTransformWidget class.
Added following code in Simple C exe..
int main (int, char *[])
{
// A renderer and render window
vtkSmartPointer<vtkRenderer> renderer =
vtkSmartPointer<vtkRenderer>::New();
vtkSmartPointer<vtkRenderWindow> renderWindow
=vtkSmartPointer<vtkRenderWindow>::New();
renderWindow->AddRenderer(renderer);
// An interactor
vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =
vtkSmartPointer<vtkRenderWindowInteractor>::New();
renderWindowInteractor->SetRenderWindow(renderWindow);
renderWindow->Render();
vtkSmartPointer<vtkAxesTransformWidget> axesTransWidget =
vtkSmartPointer<vtkAxesTransformWidget>::New();
axesTransWidget->SetInteractor(renderWindowInteractor);
axesTransWidget->CreateDefaultRepresentation();
axesTransWidget->On();
renderWindowInteractor->Initialize();
renderWindow->Render();
renderWindowInteractor->Start();
return EXIT_SUCCESS;
}
But getting following error at line " renderWindow->Render()"
ERROR: In ..\..\VTK\Hybrid\vtkVectorText.cxx, line 1728
vtkVectorText (05D2B040): Text is not set!
ERROR: In ..\..\VTK\Filtering\vtkExecutive.cxx, line 756
vtkStreamingDemandDrivenPipeline (05D2BA48): Algorithm
vtkVectorText(05D2B040) returned failure for request: vtkInformation
(05D496B8)
Debug: Off
Modified Time: 3052
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
--
View this message in context: http://vtk.1045678.n5.nabble.com/Need-help-to-use-vtkAxesTransformWidget-class-tp5729277.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list