Skip to content

Studio/Visualization/StudioSliceInteractorStyle.h

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
class shapeworks::StudioSliceInteractorStyle

Source code

#pragma once

#include <vtkInteractorStyleImage.h>
#include <vtkPropPicker.h>
#include <vtkRenderWindowInteractor.h>

class vtkImageActor;
class vtkImageSlice;

namespace shapeworks {

class Lightbox;

// Handle mouse events
class StudioSliceInteractorStyle : public vtkInteractorStyleImage {
 public:
  static StudioSliceInteractorStyle* New();
  vtkTypeMacro(StudioSliceInteractorStyle, vtkInteractorStyleImage);

  void set_lightbox(Lightbox* lightbox);

  StudioSliceInteractorStyle();

  virtual ~StudioSliceInteractorStyle();

  void OnLeftButtonDown() override;
  void OnRightButtonDown() override;
  void OnMouseWheelForward() override;
  void OnMouseWheelBackward() override;
  void OnKeyDown() override;
  void WindowLevel() override;
  void StartWindowLevel() override;

 protected:
 private:
  Lightbox* lightbox_;
  vtkImageSlice* current_image_slice_{nullptr};
};

}  // namespace shapeworks

Updated on 2024-03-17 at 12:58:44 -0600