Skip to content

Commit

Permalink
Removed some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
YHordijk committed Sep 1, 2024
1 parent 895ca2f commit 948fb18
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/tcviewer/mol_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,6 @@ def screenshot(self, path: str):
writer.SetInputConnection(img_filter.GetOutputPort())
writer.Write()

# vtkNew<vtkWindowToImageFilter> windowToImageFilter;
# windowToImageFilter->SetInput(renderWindow);
# #if VTK_MAJOR_VERSION >= 8 || VTK_MAJOR_VERSION == 8 && VTK_MINOR_VERSION >= 90
# windowToImageFilter->SetScale(2); // image quality
# #else
# windowToImageFilter->SetMagnification(2); // image quality
# #endif
# windowToImageFilter->SetInputBufferTypeToRGBA(); // also record the alpha
# // (transparency) channel
# windowToImageFilter->ReadFrontBufferOff(); // read from the back buffer
# windowToImageFilter->Update();

# vtkNew<vtkPNGWriter> writer;
# writer->SetFileName("screenshot2.png");
# writer->SetInputConnection(windowToImageFilter->GetOutputPort());
# writer->Write();

def save_camera(self):
camera = self.renderer.GetActiveCamera()
self.cam_settings = {}
Expand Down

0 comments on commit 948fb18

Please sign in to comment.