[Paraview-developers] [Paraview] WG: endless loop in vtkOpenGLError

Burlen Loring burlen.loring at gmail.com
Mon Dec 9 16:24:37 EST 2013


Hi Gerald,

your example isn't complete, also I had to make some substantial 
changes(based on the TestLinePlot.cxx ctest) it to get it to work. At 
any rate, to figure out if you're problem is self inflicted or not, to 
keep this simple use VTK and not PV for now, cd into a VTK build and run 
the following command:

ctest -R TestLinePlot --verbose

if those tests pass, then you can use TestLinePlot.cxx as an example of 
how it should be done. If they fail then that's something we can work 
with. report the test output from one of the failing tests. Once you 
figure out exactly what's going on, then try using VTK that's in PV.

Thanks
Burlen

On 12/09/2013 12:19 AM, Lodron, Gerald wrote:
>
> 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();
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20131209/e1fb7cf2/attachment.htm>


More information about the Paraview-developers mailing list