

#include "vtkRenderWindow.h"
#include "vtkRenderer.h"
#include "vtkRenderWindowInteractor.h"

#include "vtkActor.h"
#include "vtkPolyDataMapper.h"
#include "vtkCylinderSource.h"


int main(int, char**)
{
  vtkRenderer* ren1 = vtkRenderer::New();

  // create 2 windows and hook the renderers up to them
  vtkRenderWindow* win1 = vtkRenderWindow::New();
  win1->AddRenderer(ren1);
  win1->SetWindowName("Window 1");  // this works fine on X11, but not windows

  // create the win32 interactors and hook our X11 stuff up to them
  vtkRenderWindowInteractor* iren1 = vtkRenderWindowInteractor::New();
  iren1->SetRenderWindow(win1);
  iren1->Initialize();

//  win1->SetWindowName("Window 1"); // uncomment this line and the window title is finally set right

  vtkActor* actor = vtkActor::New();
  vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
  actor->SetMapper(mapper);
  vtkCylinderSource* cyl = vtkCylinderSource::New();
  mapper->SetInput(cyl->GetOutput());

  ren1->AddProp(actor);
  ren1->ResetCamera();
  iren1->Start();

  return 0;

}


