Commit 480528d3 authored by Alexander Neundorf's avatar Alexander Neundorf
Browse files

COMP: fix linking on BlueGene, when the method was inline its section was discarded, the linker complained

Alex
parent 682ed3f6
......@@ -23,7 +23,7 @@
#include "vtkRendererCollection.h"
#include "vtkTransform.h"
vtkCxxRevisionMacro(vtkRenderWindow, "1.150");
vtkCxxRevisionMacro(vtkRenderWindow, "1.151");
//----------------------------------------------------------------------------
// Needed when we don't use the vtkStandardNewMacro.
......@@ -1194,3 +1194,26 @@ const char *vtkRenderWindow::GetRenderLibrary()
return vtkGraphicsFactory::GetRenderLibrary();
}
// Description: Return the stereo type as a character string.
// when this method was inlined, static linking on BlueGene failed
// (symbol referenced which is defined in discarded section)
const char *vtkRenderWindow::GetStereoTypeAsString()
{
switch ( this->StereoType )
{
case VTK_STEREO_CRYSTAL_EYES:
return "CrystalEyes";
case VTK_STEREO_RED_BLUE:
return "RedBlue";
case VTK_STEREO_LEFT:
return "Left";
case VTK_STEREO_RIGHT:
return "Right";
case VTK_STEREO_DRESDEN:
return "DresdenDisplay";
case VTK_STEREO_ANAGLYPH:
return "Anaglyph";
default:
return "";
}
}
......@@ -526,27 +526,4 @@ private:
void operator=(const vtkRenderWindow&); // Not implemented.
};
// Description:
// Return the stereo type as a character string.
inline const char *vtkRenderWindow::GetStereoTypeAsString()
{
switch ( this->StereoType )
{
case VTK_STEREO_CRYSTAL_EYES:
return "CrystalEyes";
case VTK_STEREO_RED_BLUE:
return "RedBlue";
case VTK_STEREO_LEFT:
return "Left";
case VTK_STEREO_RIGHT:
return "Right";
case VTK_STEREO_DRESDEN:
return "DresdenDisplay";
case VTK_STEREO_ANAGLYPH:
return "Anaglyph";
default:
return "";
}
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment