feat: technique overhaul

This commit is contained in:
2024-05-26 14:21:06 +02:00
parent 211a219431
commit 86ec78f831
16 changed files with 222 additions and 144 deletions

View File

@@ -1,5 +1,6 @@
#include "Layer.h"
#include <vtkRenderWindow.h>
#include <vtkCamera.h>
#include <vtkRenderWindowInteractor.h>
using std::string;
@@ -16,7 +17,10 @@ void Layer::addObservers(vtkSmartPointer<vtkRenderWindowInteractor> interactor)
// By default, do nothing
}
void Layer::setCamera(vtkCamera *camera) {
this->getLayer()->SetActiveCamera(camera);
void Layer::removeObservers(vtkSmartPointer<vtkRenderWindowInteractor> interactor) {
// By default, do nothing
}
void Layer::setCamera(vtkSmartPointer<vtkCamera> cam) {
this->getLayer()->SetActiveCamera(cam.GetPointer());
}