Skip to content

Studio/src/Visualization/StudioInteractorStyle.h

Namespaces

Name
shapeworks

Classes

Name
class shapeworks::StudioInteractorStyle

Source code

#pragma once

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

namespace shapeworks {

class Lightbox;

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

  void set_lightbox(Lightbox* lightbox);

  StudioInteractorStyle();

  virtual ~StudioInteractorStyle();

  void OnLeftButtonDown() override;
  void OnRightButtonDown() override;

  void OnMouseWheelForward() override;
  void OnMouseWheelBackward() override;

  void OnKeyDown() override;
  void Dolly() override;

  void Rotate() override;

  void OnMouseMove() override;

protected:

  void Dolly(double factor) override;
private:

  Lightbox* lightbox_;
};

}

Updated on 2022-07-23 at 17:50:05 -0600