36 #include <boost/filesystem.hpp> 37 #include <boost/lexical_cast.hpp> 38 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning 39 #include <vtkPoints.h> 40 #include <vtkPolyData.h> 41 #include <vtkPolyDataMapper.h> 43 #include <vtkProperty.h> 44 #include <vtkUnsignedCharArray.h> 45 #if VTK_MAJOR_VERSION > 5 46 #include <vtkNamedColors.h> 48 #include <vtkSphereSource.h> 49 #include <vtkGlyph3D.h> 50 #include <vtkGlyph2D.h> 51 #include <vtkCubeAxesActor2D.h> 52 #include <vtkImageData.h> 53 #include <vtkGeometryFilter.h> 54 #include <vtkTubeFilter.h> 55 #include <vtkExtractEdges.h> 56 #include <vtkUnstructuredGrid.h> 58 #include <vtkPolygon.h> 59 #include <vtkIdList.h> 60 #include <vtkFeatureEdges.h> 61 #include "UblasIncludes.hpp" 62 #include "UblasVectorInclude.hpp" 63 #include "Exception.hpp" 64 #include "BaseUnits.hpp" 65 #include "VesselNetworkWriter.hpp" 67 #include "DiscreteContinuumMeshActorGenerator.hpp" 70 template<
unsigned DIM>
73 mpDiscreteContinuumMesh()
78 template<
unsigned DIM>
84 template<
unsigned DIM>
91 vtkSmartPointer<vtkGeometryFilter> p_geom_filter = vtkSmartPointer<vtkGeometryFilter>::New();
92 #if VTK_MAJOR_VERSION <= 5 93 p_geom_filter->SetInput(p_grid);
95 p_geom_filter->SetInputData(p_grid);
98 vtkSmartPointer<vtkPolyDataMapper> p_mapper = vtkSmartPointer<vtkPolyDataMapper>::New();
99 #if VTK_MAJOR_VERSION <= 5 100 p_mapper->SetInput(p_geom_filter->GetOutput());
102 p_mapper->SetInputData(p_geom_filter->GetOutput());
105 vtkSmartPointer<vtkActor> p_actor = vtkSmartPointer<vtkActor>::New();
106 p_actor->SetMapper(p_mapper);
107 p_actor->GetProperty()->SetColor(0,0,1);
108 pRenderer->AddActor(p_actor);
112 template<
unsigned DIM>
~DiscreteContinuumMeshActorGenerator()
void AddActor(vtkSmartPointer< vtkRenderer > pRenderer)
boost::shared_ptr< DiscreteContinuumMesh< DIM, DIM > > mpDiscreteContinuumMesh
DiscreteContinuumMeshActorGenerator()
void SetDiscreteContinuumMesh(boost::shared_ptr< DiscreteContinuumMesh< DIM, DIM > > pDiscreteContinuumMesh)