#include <QMessageBox>
#include <QFileDialog>
+#ifdef Q_OS_OSX
+# include "vvOSXHelper.h"
+#endif
+
//----------------------------------------------------------------------------
class vvManagerCallback : public vtkCommand
{
mCurrentTime = 0;
connect(loadButton,SIGNAL(clicked()),this,SLOT(LoadSurface()));
+
+#ifdef Q_OS_OSX
+ disableGLHiDPI(renderWidget->winId());
+#endif
}
vvSurfaceViewerDialog::~vvSurfaceViewerDialog()
#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput(mReaders[mCurrentTime]->GetOutput());
#else
- mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput());
+ mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort());
#endif
if (!mActor) {
#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput(mReaders[mCurrentTime]->GetOutput());
#else
- mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput());
+ mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort());
#endif
mMapper->Modified();
renderWidget->GetRenderWindow()->Render();
#if VTK_MAJOR_VERSION <= 5
mMapper->SetInput(mReaders[mCurrentTime]->GetOutput());
#else
- mMapper->SetInputData(mReaders[mCurrentTime]->GetOutput());
+ mMapper->SetInputConnection(mReaders[mCurrentTime]->GetOutputPort());
#endif
mMapper->Modified();
renderWidget->GetRenderWindow()->Render();