Skip to content
Snippets Groups Projects
Commit a3be2cd3 authored by Sean McBride's avatar Sean McBride
Browse files

Removed dead code, since 08d7b9fe (September 2014)

Seems like no longer needed OS X workaround.
parent 0588efe6
No related branches found
No related tags found
No related merge requests found
......@@ -44,14 +44,6 @@ vtkChooserPainter::vtkChooserPainter()
this->PolyPainter = NULL;
this->StripPainter = NULL;
this->LastRenderer = NULL;
this->UseLinesPainterForWireframes = 0;
#if defined(__APPLE__) && defined(VTK_USE_COCOA)
/*
* On some Macs, glPolygonMode(*,GL_LINE) does not render anything
* for polys. To fix this, we use the GL_LINE_LOOP to render the polygons.
*/
// this->UseLinesPainterForWireframes = 1;
#endif
}
//-----------------------------------------------------------------------------
......@@ -333,23 +325,9 @@ void vtkChooserPainter::RenderInternal(vtkRenderer* renderer, vtkActor* actor,
{
//cout << this << "Polys" << endl;
this->ProgressScaleFactor = static_cast<double>(numPolys)/total_cells;
if ( this->UseLinesPainterForWireframes
&& (actor->GetProperty()->GetRepresentation() == VTK_WIREFRAME)
&& !actor->GetProperty()->GetBackfaceCulling()
&& !actor->GetProperty()->GetFrontfaceCulling()
&& !this->GetInputAsPolyData()->GetPointData()->GetAttribute(
vtkDataSetAttributes::EDGEFLAG) )
{
this->LinePainter->Render(renderer, actor, vtkPainter::POLYS,
forceCompileOnly);
this->TimeToDraw += this->LinePainter->GetTimeToDraw();
}
else
{
this->PolyPainter->Render(renderer, actor, vtkPainter::POLYS,
forceCompileOnly);
this->TimeToDraw += this->PolyPainter->GetTimeToDraw();
}
this->PolyPainter->Render(renderer, actor, vtkPainter::POLYS,
forceCompileOnly);
this->TimeToDraw += this->PolyPainter->GetTimeToDraw();
this->ProgressOffset += this->ProgressScaleFactor;
}
......@@ -373,6 +351,4 @@ void vtkChooserPainter::PrintSelf(ostream &os, vtkIndent indent)
os << indent << "LinePainter: " << this->LinePainter << endl;
os << indent << "PolyPainter: " << this->PolyPainter << endl;
os << indent << "StripPainter: " << this->StripPainter << endl;
os << indent << "UseLinesPainterForWireframes: "
<< this->UseLinesPainterForWireframes << endl;
}
......@@ -41,13 +41,6 @@ public:
void SetPolyPainter(vtkPolyDataPainter*);
void SetStripPainter(vtkPolyDataPainter*);
// Description:
// When set, the lines painter is used for drawing wireframes (off by
// default, except on Mac, where it's on by default).
vtkSetMacro(UseLinesPainterForWireframes, int);
vtkGetMacro(UseLinesPainterForWireframes, int);
vtkBooleanMacro(UseLinesPainterForWireframes, int);
// Description:
// Release any graphics resources that are being consumed by this mapper.
// The parameter window could be used to determine which graphic
......@@ -111,7 +104,6 @@ protected:
vtkRenderer *LastRenderer;
vtkTimeStamp PaintersChoiceTime;
int UseLinesPainterForWireframes;
private:
vtkChooserPainter(const vtkChooserPainter &); // Not implemented
void operator=(const vtkChooserPainter &); // Not implemented
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment