/*========================================================================= Program: wxMaracas Module: $RCSfile: wxMaracasIRMViewManager.h,v $ Language: C++ Date: $Date: 2009/04/01 16:16:59 $ Version: $Revision: 1.1 $ Copyright: (c) 2002, 2003 License: This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #ifndef __wxMaracasIRMViewManagerH__ #define __wxMaracasIRMViewManagerH__ #include #include #include "vtkProp3D.h" #include "vtkRenderer.h" #include "vtkSTLReader.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" #include "vtkProperty.h" class wxMaracasIRMViewManager { public: wxMaracasIRMViewManager(); ~wxMaracasIRMViewManager(); /** ** Sets the renderer to manage the prop3D from the view **/ void setRenderer(vtkRenderer* renderer); /** ** Adds a prop3D to the manager and returns the identifier **/ int addProp3D(vtkProp3D* prop3D); /** ** Changes the opacity in a prop3D **/ void changeOpacity(int propid, int value); /** ** changes the isovalue in a prop3D **/ void changeIsoValue(int propid, int value); /** ** loads a prop3D from a nSTL file **/ vtkProp3D* getProp3D(std::string filename); private: std::vector prop3Dvect; vtkRenderer* _renderer; }; #endif