Skip to content
Snippets Groups Projects
Commit fe2f9940 authored by Andrew Maclean's avatar Andrew Maclean
Browse files

Set window size and update the test image

parent cd6e558c
No related branches found
No related tags found
1 merge request!313Add transient hdf reader.py
......@@ -33,14 +33,14 @@ int main(int ac, char** av)
vtkNew<vtkNamedColors> colors;
// Read the dataset
// Read the dataset.
vtkNew<vtkHDFReader> reader;
reader->SetFileName(av[1]);
reader->Update();
std::cout << "number of steps: " << reader->GetNumberOfSteps() << endl;
auto polydata = vtkPolyData::SafeDownCast(reader->GetOutput());
// Render the dataset
// Render the dataset.
vtkNew<vtkPolyDataMapper> mapper;
mapper->SetInputData(polydata);
mapper->SetLookupTable(GetCTF());
......@@ -58,14 +58,15 @@ int main(int ac, char** av)
vtkNew<vtkRenderWindow> renWin;
renWin->AddRenderer(renderer);
renWin->SetWindowName("TransientHDFReader");
renWin->SetSize(1024, 512);
renWin->Render();
// Add the animation callback
// Add the animation callback.
vtkNew<vtkCallbackCommand> command;
command->SetCallback(&Animate);
command->SetClientData(reader);
// Add the interactor
// Add the interactor.
vtkNew<vtkRenderWindowInteractor> iren;
iren->SetRenderWindow(renWin);
iren->AddObserver(vtkCommand::TimerEvent, command);
......
src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png

130 B | W: | H:

src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png

130 B | W: | H:

src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png
src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png
src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png
src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png
  • 2-up
  • Swipe
  • Onion skin
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