Skip to content

Studio/src/Visualization/MeshSlice.h

Namespaces

Name
shapeworks

Classes

Name
class shapeworks::MeshSlice
MeshSlice.

Source code

#pragma once

#include <vtkSmartPointer.h>

class vtkImageSlice;
class vtkImageSliceMapper;
class vtkImageData;

namespace shapeworks {

class Viewer;

class MeshSlice {
 public:
  MeshSlice(Viewer* viewer);

  void set_volume(vtkSmartPointer<vtkImageData> volume);

  bool is_image_loaded();

  void update_renderer();

  void update_camera();

  void handle_key(std::string key);

 private:
  Viewer *viewer_;

  vtkSmartPointer<vtkImageSlice> image_slice_;
  vtkSmartPointer<vtkImageSliceMapper> slice_mapper_;
  vtkSmartPointer<vtkImageData> volume_;
  int image_slice_number_ = 0;

};

}  // namespace shapeworks

Updated on 2022-07-23 at 16:40:07 -0600