40 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the vtk deprecated warning 41 #include <vtkSmartPointer.h> 42 #include <vtkPolygon.h> 43 #include <vtkPoints.h> 45 #include "UblasVectorInclude.hpp" 46 #include "SmartPointers.hpp" 47 #include "DimensionalChastePoint.hpp" 48 #include "UnitCollection.hpp" 53 template<
unsigned DIM>
60 std::vector<boost::shared_ptr<DimensionalChastePoint<DIM> > >
mVertices;
149 vtkSmartPointer<vtkPlane>
GetPlane();
162 boost::shared_ptr<DimensionalChastePoint<DIM> >
GetVertex(
unsigned idx);
168 std::vector<boost::shared_ptr<DimensionalChastePoint<DIM> > >
GetVertices();
180 std::pair<vtkSmartPointer<vtkPoints>, vtkSmartPointer<vtkIdTypeArray> >
GetVtkVertices();
Polygon(std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > vertices)
vtkSmartPointer< vtkPolygon > GetVtkPolygon()
bool ContainsPoint(const DimensionalChastePoint< DIM > &rLocation)
void AddVertex(boost::shared_ptr< DimensionalChastePoint< DIM > > pVertex)
void Translate(DimensionalChastePoint< DIM > translationVector)
units::quantity< unit::length > GetDistance(const DimensionalChastePoint< DIM > &rLocation)
static boost::shared_ptr< Polygon > Create(std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > vertices)
void ReplaceVertex(unsigned idx, boost::shared_ptr< DimensionalChastePoint< DIM > > pVertex)
std::pair< vtkSmartPointer< vtkPoints >, vtkSmartPointer< vtkIdTypeArray > > GetVtkVertices()
std::vector< units::quantity< unit::length > > GetBoundingBox()
std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > mVertices
void AddVertices(std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > vertices)
units::quantity< unit::length > mReferenceLength
DimensionalChastePoint< DIM > GetCentroid()
units::quantity< unit::length > GetDistanceToEdges(const DimensionalChastePoint< DIM > &rLocation)
vtkSmartPointer< vtkPlane > GetPlane()
boost::shared_ptr< DimensionalChastePoint< DIM > > GetVertex(unsigned idx)
void RotateAboutAxis(c_vector< double, 3 > axis, double angle)
std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > GetVertices()
c_vector< double, DIM > GetNormal()