36 #ifndef MICROVESSELVTKSCENE_HPP_ 37 #define MICROVESSELVTKSCENE_HPP_ 40 #include "SmartPointers.hpp" 41 #include <vtkVersion.h> 42 #if VTK_MAJOR_VERSION > 5 43 #include <vtkAutoInit.h> 44 VTK_MODULE_INIT(vtkRenderingOpenGL);
45 VTK_MODULE_INIT(vtkRenderingFreeType);
46 #include <vtkOggTheoraWriter.h> 48 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning 49 #include <vtkSmartPointer.h> 50 #include <vtkRenderer.h> 51 #include <vtkLookupTable.h> 52 #include <vtkRenderWindow.h> 53 #include <vtkRenderWindowInteractor.h> 54 #include <vtkWindowToImageFilter.h> 56 #include "PartActorGenerator.hpp" 57 #include "RegularGrid.hpp" 58 #include "RegularGridActorGenerator.hpp" 59 #include "VesselNetwork.hpp" 60 #include "VesselNetworkActorGenerator.hpp" 61 #include "AbstractCellPopulation.hpp" 62 #include "CellPopulationActorGenerator.hpp" 63 #include "DiscreteContinuumMesh.hpp" 64 #include "DiscreteContinuumMeshActorGenerator.hpp" 65 #include "UnitCollection.hpp" 66 #include "MeshBasedCellPopulation.hpp" 71 template<
unsigned DIM>
99 #if VTK_MAJOR_VERSION > 5 103 vtkSmartPointer<vtkOggTheoraWriter> mAnimationWriter;
191 boost::shared_ptr<PartActorGenerator<DIM> > GetPartActorGenerator();
193 boost::shared_ptr<DiscreteContinuumMeshActorGenerator<DIM> > GetDiscreteContinuumMeshActorGenerator();
195 boost::shared_ptr<RegularGridActorGenerator<DIM> > GetRegularGridActorGenerator();
197 boost::shared_ptr<VesselNetworkActorGenerator<DIM> > GetVesselNetworkActorGenerator();
199 boost::shared_ptr<CellPopulationActorGenerator<DIM> > GetCellPopulationActorGenerator();
216 void SetCellPopulation(boost::shared_ptr<AbstractCellPopulation<DIM> > pCellPopulation);
224 void SetIsInteractive(
bool isInteractive);
226 void SetSaveAsAnimation(
bool saveAsAnimation);
228 void SetSaveAsImages(
bool saveAsImages);
230 void StartInteractiveEventHandler();
232 void SetPart(boost::shared_ptr<
Part<DIM> > pPart);
vtkSmartPointer< vtkWindowToImageFilter > mWindowToImageFilter
vtkSmartPointer< vtkLookupTable > mpColorLookUpTable
vtkSmartPointer< vtkRenderWindowInteractor > mpRenderWindowInteractor
void SetOutputFilePath(const std::string &rPath)
boost::shared_ptr< VesselNetworkActorGenerator< DIM > > mpNetworkGenerator
vtkSmartPointer< vtkRenderer > mpRenderer
boost::shared_ptr< DiscreteContinuumMeshActorGenerator< DIM > > mpDiscreteContinuumMeshGenerator
units::quantity< unit::length > mLengthScale
unsigned mOutputFrequency
void SetCellPopulation(boost::shared_ptr< AbstractCellPopulation< DIM > > pCellPopulation)
vtkSmartPointer< vtkRenderWindow > mpRenderWindow
boost::shared_ptr< CellPopulationActorGenerator< DIM > > mpCellPopulationGenerator
std::string mOutputFilePath
boost::shared_ptr< PartActorGenerator< DIM > > mpPartGenerator
void ResetRenderer(unsigned timeStep=0)
boost::shared_ptr< RegularGridActorGenerator< DIM > > mpGridGenerator