41 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning 42 #include <vtkSmartPointer.h> 43 #include <vtkPoints.h> 45 #include "SmartPointers.hpp" 46 #include "UblasVectorInclude.hpp" 47 #include "Polygon.hpp" 48 #include "DimensionalChastePoint.hpp" 53 template<
unsigned DIM>
59 std::vector<boost::shared_ptr<Polygon<DIM> > >
mPolygons;
65 std::vector<boost::shared_ptr<DimensionalChastePoint<DIM> > >
mVertices;
76 std::map<std::string, double>
mData;
107 static boost::shared_ptr<Facet<DIM> >
Create(std::vector<boost::shared_ptr<
Polygon<DIM> > > polygons);
114 static boost::shared_ptr<Facet<DIM> >
Create(boost::shared_ptr<
Polygon<DIM> > pPolygon);
169 vtkSmartPointer<vtkPlane>
GetPlane();
181 std::vector<boost::shared_ptr<Polygon<DIM> > >
GetPolygons();
187 std::vector<boost::shared_ptr<DimensionalChastePoint<DIM> > >
GetVertices();
193 std::pair<vtkSmartPointer<vtkPoints>, vtkSmartPointer<vtkIdTypeArray> >
GetVtkVertices();
206 void SetLabel(
const std::string& label);
void AddPolygon(boost::shared_ptr< Polygon< DIM > > pPolygon)
std::vector< boost::shared_ptr< Polygon< DIM > > > mPolygons
Facet(std::vector< boost::shared_ptr< Polygon< DIM > > > polygons)
std::pair< vtkSmartPointer< vtkPoints >, vtkSmartPointer< vtkIdTypeArray > > GetVtkVertices()
void AddPolygons(std::vector< boost::shared_ptr< Polygon< DIM > > > polygons)
bool ContainsPoint(const DimensionalChastePoint< DIM > &location)
std::map< std::string, double > mData
std::vector< boost::shared_ptr< Polygon< DIM > > > GetPolygons()
static boost::shared_ptr< Facet< DIM > > Create(std::vector< boost::shared_ptr< Polygon< DIM > > > polygons)
vtkSmartPointer< vtkPlane > GetPlane()
c_vector< double, DIM > GetNormal()
void Translate(DimensionalChastePoint< DIM > translationVector)
void SetLabel(const std::string &label)
std::vector< units::quantity< unit::length > > GetBoundingBox()
void RotateAboutAxis(c_vector< double, 3 > axis, double angle)
DimensionalChastePoint< DIM > GetCentroid()
units::quantity< unit::length > mReferenceLength
std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > mVertices
units::quantity< unit::length > GetDistance(const DimensionalChastePoint< DIM > &rLocation)
std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > GetVertices()