Here is the reduced example code for evaluation, please tell me if you can
reproduce my issue (I am using the VTK libs of Paraview 4.1.0):
vtkContextView* poContextView = vtkContextView::New();
poContextView->GetRenderer()->SetBackground(1.0, 1.0, 1.0);
vtkChartXY* poChart = vtkChartXY::New();
poChart->GetAxis(1)->SetTitle( "xaxis" );
poChart->GetAxis(0)->SetTitle( "yaxis" );
poChart->SetTitle( "Title" );
poContextView->GetScene()->AddItem(poChart);
// Create a poTable with some points in it...
vtkTable* poTable = vtkTable::New();
vtkSmartPointer<vtkDoubleArray> oXAxis =
vtkSmartPointer<vtkDoubleArray>::New();
oXAxis->SetName("xaxis");
poTable->AddColumn(oXAxis);
//poTable->AddColumn(oXAxis);
vtkSmartPointer<vtkDoubleArray> oPositionlot =
vtkSmartPointer<vtkDoubleArray>::New();
oPositionlot->SetName( "Data0" );
poTable->AddColumn(oPositionlot);
poTable->SetNumberOfRows( 10 );
poContextView->GetRenderWindow()->SetMultiSamples(0);
poTable->GetColumn(0)->SetName("col1");
for ( size_t nRow = 0; nRow < 10; ++nRow )
{
poTable->SetValue(nRow, 0, 1);
}
vtkPlot * poPlot = poChart->AddPlot(vtkChart::LINE);
poPlot->SetInputData(poTable, 0, 0);
//poPlot->SetInput(m_poTable, 0, nColumn);
poPlot->SetColor( 1, 0, 0, 1 );
poPlot->SetWidth( 1 );
poPlot->GetPen()->SetLineType(1);
poContextView->GetRenderer()->Render();
poContextView->GetInteractor()->Initialize();
poContextView->GetInteractor()->Start();
Von: [email protected] [mailto:[email protected]] Im Auftrag von
Lodron, Gerald
Gesendet: Montag, 09. Dezember 2013 08:53
An: VTK Developer ([email protected])
Cc: ([email protected])
Betreff: [vtkusers] endless loop in vtkOpenGLError
Hi
I currently migrated my vtk code to vtk 6.1 and now have an endless loop in
vtkClearOpenGLErrors at line 192 of vtkOpenGLError.h while using
vtkContextView. This seems to be called in ClearLights of
vtkOpenGLRenderer.cxx, any ideas, would be great!
Best regards
Gerald
_________________________________________________________________
JOANNEUM RESEARCH Forschungsgesellschaft mbH
DIGITAL - Institute for Information and Communication Technologies
Steyrergasse 17, 8010 Graz, Austria
phone: +43 316 876-1751
fax: +43 316 8769-1751
e-mail: [email protected]<mailto:[email protected]>
web: www.joanneum.at/digital<http://www.joanneum.at/digital>
_________________________________________________________________
This message and any attached files are confidential and intended solely for
the addressee(s). Any publication, transmission or other use of the information
by a person or entity other than the intended addressee(s) is prohibited. If
you receive this in error please contact the sender and delete the material.
The sender does not accept liability for any errors or omissions as a result of
the transmission.
Please consider the environment before printing this page.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview