feat: technique overhaul
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user