Chaste  Build::
MicrovesselVtkScene< DIM > Class Template Reference

#include <MicrovesselVtkScene.hpp>

+ Collaboration diagram for MicrovesselVtkScene< DIM >:

Public Member Functions

 MicrovesselVtkScene ()
 
 ~MicrovesselVtkScene ()
 
void End ()
 
boost::shared_ptr< PartActorGenerator< DIM > > GetPartActorGenerator ()
 
boost::shared_ptr< DiscreteContinuumMeshActorGenerator< DIM > > GetDiscreteContinuumMeshActorGenerator ()
 
boost::shared_ptr< RegularGridActorGenerator< DIM > > GetRegularGridActorGenerator ()
 
boost::shared_ptr< VesselNetworkActorGenerator< DIM > > GetVesselNetworkActorGenerator ()
 
boost::shared_ptr< CellPopulationActorGenerator< DIM > > GetCellPopulationActorGenerator ()
 
void ResetRenderer (unsigned timeStep=0)
 
void Start ()
 
void SetCellPopulation (boost::shared_ptr< AbstractCellPopulation< DIM > > pCellPopulation)
 
void SetOutputFilePath (const std::string &rPath)
 
void SetIsInteractive (bool isInteractive)
 
void SetSaveAsAnimation (bool saveAsAnimation)
 
void SetSaveAsImages (bool saveAsImages)
 
void StartInteractiveEventHandler ()
 
void SetPart (boost::shared_ptr< Part< DIM > > pPart)
 
void SetVesselNetwork (boost::shared_ptr< VesselNetwork< DIM > > pNetwork)
 
void SetRegularGrid (boost::shared_ptr< RegularGrid< DIM > > pGrid)
 
void SetMesh (boost::shared_ptr< DiscreteContinuumMesh< DIM > > pMesh)
 

Private Attributes

vtkSmartPointer< vtkRenderer > mpRenderer
 
vtkSmartPointer< vtkRenderWindow > mpRenderWindow
 
vtkSmartPointer< vtkRenderWindowInteractor > mpRenderWindowInteractor
 
std::string mOutputFilePath
 
vtkSmartPointer< vtkLookupTable > mpColorLookUpTable
 
vtkSmartPointer< vtkWindowToImageFilter > mWindowToImageFilter
 
bool mIsInteractive
 
bool mSaveAsAnimation
 
bool mSaveAsImages
 
bool mHasStarted
 
bool mAddAnnotations
 
unsigned mOutputFrequency
 
bool mIncludeAxes
 
boost::shared_ptr< CellPopulationActorGenerator< DIM > > mpCellPopulationGenerator
 
boost::shared_ptr< PartActorGenerator< DIM > > mpPartGenerator
 
boost::shared_ptr< VesselNetworkActorGenerator< DIM > > mpNetworkGenerator
 
boost::shared_ptr< DiscreteContinuumMeshActorGenerator< DIM > > mpDiscreteContinuumMeshGenerator
 
boost::shared_ptr< RegularGridActorGenerator< DIM > > mpGridGenerator
 
units::quantity< unit::length > mLengthScale
 

Detailed Description

template<unsigned DIM>
class MicrovesselVtkScene< DIM >

A simple vtk renderer for simulation outputs

Definition at line 72 of file MicrovesselVtkScene.hpp.

Constructor & Destructor Documentation

Member Function Documentation

template<unsigned DIM>
void MicrovesselVtkScene< DIM >::End ( )

Shut down the scene and close the animation

Definition at line 332 of file MicrovesselVtkScene.cpp.

References MicrovesselVtkScene< DIM >::mHasStarted, and MicrovesselVtkScene< DIM >::mSaveAsAnimation.

template<unsigned DIM>
void MicrovesselVtkScene< DIM >::SetCellPopulation ( boost::shared_ptr< AbstractCellPopulation< DIM > >  pCellPopulation)

Set the cell population

Parameters
pCellPopulationthe cell population for rendering

Definition at line 314 of file MicrovesselVtkScene.cpp.

References MicrovesselVtkScene< DIM >::mpCellPopulationGenerator, MicrovesselVtkScene< DIM >::mpDiscreteContinuumMeshGenerator, and MicrovesselVtkScene< DIM >::mpGridGenerator.

template<unsigned DIM>
void MicrovesselVtkScene< DIM >::SetOutputFilePath ( const std::string &  rPath)

Member Data Documentation

template<unsigned DIM>
bool MicrovesselVtkScene< DIM >::mAddAnnotations
private

Add annotation

Definition at line 134 of file MicrovesselVtkScene.hpp.

template<unsigned DIM>
bool MicrovesselVtkScene< DIM >::mHasStarted
private
template<unsigned DIM>
bool MicrovesselVtkScene< DIM >::mIsInteractive
private
template<unsigned DIM>
units::quantity<unit::length> MicrovesselVtkScene< DIM >::mLengthScale
private

Scale features using this length. e.g. set to micron if we want to render features in microns

Definition at line 172 of file MicrovesselVtkScene.hpp.

template<unsigned DIM>
std::string MicrovesselVtkScene< DIM >::mOutputFilePath
private
template<unsigned DIM>
unsigned MicrovesselVtkScene< DIM >::mOutputFrequency
private

How often to update the renderer during a simulation

Definition at line 139 of file MicrovesselVtkScene.hpp.

template<unsigned DIM>
boost::shared_ptr<CellPopulationActorGenerator<DIM> > MicrovesselVtkScene< DIM >::mpCellPopulationGenerator
private
template<unsigned DIM>
vtkSmartPointer<vtkLookupTable> MicrovesselVtkScene< DIM >::mpColorLookUpTable
private

The color lookup

Definition at line 97 of file MicrovesselVtkScene.hpp.

template<unsigned DIM>
boost::shared_ptr<DiscreteContinuumMeshActorGenerator<DIM> > MicrovesselVtkScene< DIM >::mpDiscreteContinuumMeshGenerator
private
template<unsigned DIM>
boost::shared_ptr<RegularGridActorGenerator<DIM> > MicrovesselVtkScene< DIM >::mpGridGenerator
private
template<unsigned DIM>
boost::shared_ptr<VesselNetworkActorGenerator<DIM> > MicrovesselVtkScene< DIM >::mpNetworkGenerator
private
template<unsigned DIM>
boost::shared_ptr<PartActorGenerator<DIM> > MicrovesselVtkScene< DIM >::mpPartGenerator
private
template<unsigned DIM>
vtkSmartPointer<vtkRenderer> MicrovesselVtkScene< DIM >::mpRenderer
private
template<unsigned DIM>
vtkSmartPointer<vtkRenderWindow> MicrovesselVtkScene< DIM >::mpRenderWindow
private
template<unsigned DIM>
vtkSmartPointer<vtkRenderWindowInteractor> MicrovesselVtkScene< DIM >::mpRenderWindowInteractor
private

The vtk render window interactor

Definition at line 87 of file MicrovesselVtkScene.hpp.

Referenced by MicrovesselVtkScene< DIM >::MicrovesselVtkScene(), and MicrovesselVtkScene< DIM >::Start().

template<unsigned DIM>
bool MicrovesselVtkScene< DIM >::mSaveAsImages
private
template<unsigned DIM>
vtkSmartPointer<vtkWindowToImageFilter> MicrovesselVtkScene< DIM >::mWindowToImageFilter
private

The image to window filter

Definition at line 109 of file MicrovesselVtkScene.hpp.

Referenced by MicrovesselVtkScene< DIM >::ResetRenderer(), and MicrovesselVtkScene< DIM >::Start().


The documentation for this class was generated from the following files: