11#include <ttkUserInterfaceBaseModule.h>
15#include <vtkDataSetSurfaceFilter.h>
16#include <vtkInteractorStyleSwitch.h>
17#include <vtkInteractorStyleTrackballCamera.h>
18#include <vtkObjectFactory.h>
19#include <vtkPNGReader.h>
20#include <vtkPolyDataMapper.h>
21#include <vtkProperty.h>
22#include <vtkRenderWindow.h>
23#include <vtkRenderWindowInteractor.h>
24#include <vtkRenderer.h>
25#include <vtkVRMLExporter.h>
32 :
public vtkInteractorStyleTrackballCamera {
39 void OnKeyPress()
override;
43 userInterface_ = userInterface;
54 virtual int OnKeyPress(vtkRenderWindowInteractor *interactor,
66 int exportScene(
const std::string &fileName =
"output.wrl")
const;
74 for(
int i = 0; i < (int)outputList.size(); i++) {
75 bool isAlreadyIn =
false;
76 for(
int j = 0; j < (int)hiddenOutputs_.size(); j++) {
77 if(outputList[i] == hiddenOutputs_[j]) {
83 hiddenOutputs_.push_back(outputList[i]);
89 int init(
int &argc,
char **argv)
override;
96 keyHandler_ = handler;
100 int switchOutput(
const int &outputId);
102 int switchTransparency();
121 int updateScalarFieldTexture();
124template <
class ttkModule>
static ttkCustomInteractor * New()
int setUserInterface(ttkUserInterfaceBase *userInterface)
ttkUserInterfaceBase * userInterface_
virtual int OnKeyPress(vtkRenderWindowInteractor *interactor, std::string &key)=0
Base VTK editor class for standalone programs. This class parses the the command line,...
vtkDataSetAlgorithm * vtkWrapper_
Interactions and rendering.
std::vector< vtkPolyData * > surfaces_
vtkSmartPointer< vtkRenderWindowInteractor > interactor_
ttkKeyHandler * keyHandler_
vtkSmartPointer< ttkCustomInteractor > customInteractor_
int setKeyHandler(ttkKeyHandler *handler)
vtkSmartPointer< vtkRenderer > renderer_
vtkSmartPointer< vtkPNGReader > pngReader_
std::vector< vtkSmartPointer< vtkActor > > mainActors_
vtkSmartPointer< vtkRenderWindow > renderWindow_
std::vector< vtkSmartPointer< vtkDataSetSurfaceFilter > > boundaryFilters_
~ttkUserInterfaceBase() override
std::vector< int > hiddenOutputs_
std::vector< bool > visibleOutputs_
std::vector< vtkSmartPointer< ttkTextureMapFromField > > textureMapFromFields_
ttkKeyHandler * getKeyHandler()
std::vector< vtkSmartPointer< vtkPolyDataMapper > > boundaryMappers_
vtkSmartPointer< vtkTexture > texture_
int hideOutputs(const std::vector< int > &outputList)
Minimalist debugging class.
vtkSmartPointer< ttkModule > ttkObject_