![]()  | 
  
    Chaste
    Build::
    
   | 
 
#include <Facet.hpp>
 Collaboration diagram for Facet< DIM >:Public Member Functions | |
| Facet (std::vector< boost::shared_ptr< Polygon< DIM > > > polygons) | |
| Facet (boost::shared_ptr< Polygon< DIM > > pPolygon) | |
| ~Facet () | |
| void | AddPolygons (std::vector< boost::shared_ptr< Polygon< DIM > > > polygons) | 
| void | AddPolygon (boost::shared_ptr< Polygon< DIM > > pPolygon) | 
| bool | ContainsPoint (const DimensionalChastePoint< DIM > &location) | 
| std::vector< units::quantity< unit::length > > | GetBoundingBox () | 
| DimensionalChastePoint< DIM > | GetCentroid () | 
| units::quantity< unit::length > | GetDistance (const DimensionalChastePoint< DIM > &rLocation) | 
| std::string | GetLabel () | 
| vtkSmartPointer< vtkPlane > | GetPlane () | 
| c_vector< double, DIM > | GetNormal () | 
| std::vector< boost::shared_ptr< Polygon< DIM > > > | GetPolygons () | 
| std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > | GetVertices () | 
| std::pair< vtkSmartPointer< vtkPoints >, vtkSmartPointer< vtkIdTypeArray > > | GetVtkVertices () | 
| void | RotateAboutAxis (c_vector< double, 3 > axis, double angle) | 
| void | SetLabel (const std::string &label) | 
| void | Translate (DimensionalChastePoint< DIM > translationVector) | 
| void | UpdateVertices () | 
Static Public Member Functions | |
| static boost::shared_ptr< Facet< DIM > > | Create (std::vector< boost::shared_ptr< Polygon< DIM > > > polygons) | 
| static boost::shared_ptr< Facet< DIM > > | Create (boost::shared_ptr< Polygon< DIM > > pPolygon) | 
Private Attributes | |
| std::vector< boost::shared_ptr< Polygon< DIM > > > | mPolygons | 
| std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > | mVertices | 
| bool | mVerticesUpToDate | 
| std::map< std::string, double > | mData | 
| std::string | mLabel | 
| units::quantity< unit::length > | mReferenceLength | 
A collection of planar polygons
Constructor
| pPolygon | a single polygon for the facet | 
Definition at line 58 of file Facet.cpp.
References Facet< DIM >::mPolygons.
| void Facet< DIM >::AddPolygon | ( | boost::shared_ptr< Polygon< DIM > > | pPolygon | ) | 
Add polygon
| pPolygon | a polygon | 
Definition at line 96 of file Facet.cpp.
References Facet< DIM >::mPolygons, and Facet< DIM >::mVerticesUpToDate.
| void Facet< DIM >::AddPolygons | ( | std::vector< boost::shared_ptr< Polygon< DIM > > > | polygons | ) | 
Add polygons
| polygons | planar polygons | 
Definition at line 89 of file Facet.cpp.
References Facet< DIM >::mPolygons, and Facet< DIM >::mVerticesUpToDate.
| bool Facet< DIM >::ContainsPoint | ( | const DimensionalChastePoint< DIM > & | location | ) | 
Return true if the specified location is in the facet
| location | the location to be tested | 
Definition at line 103 of file Facet.cpp.
References Facet< DIM >::mPolygons.
| std::vector< units::quantity< unit::length > > Facet< DIM >::GetBoundingBox | ( | ) | 
Return the bounding box of the facet
Definition at line 118 of file Facet.cpp.
References Facet< DIM >::GetVertices(), and Facet< DIM >::mReferenceLength.
| DimensionalChastePoint< DIM > Facet< DIM >::GetCentroid | ( | ) | 
Return the centroid of the facet
Definition at line 157 of file Facet.cpp.
References Facet< DIM >::GetVtkVertices(), and Facet< DIM >::mReferenceLength.
Referenced by Facet< DIM >::GetPlane().
| units::quantity< unit::length > Facet< DIM >::GetDistance | ( | const DimensionalChastePoint< DIM > & | rLocation | ) | 
Return the distance to the facet
| rLocation | reference to the location of the point for distance calculation | 
Definition at line 184 of file Facet.cpp.
References DimensionalChastePoint< DIM >::GetLocation(), Facet< DIM >::GetPlane(), and Facet< DIM >::mReferenceLength.
| std::string Facet< DIM >::GetLabel | ( | ) | 
Get the label for boundary conditions
Definition at line 178 of file Facet.cpp.
References Facet< DIM >::mLabel.
| c_vector< double, DIM > Facet< DIM >::GetNormal | ( | ) | 
Return the normal to the facet
Definition at line 202 of file Facet.cpp.
References Facet< DIM >::GetVertices(), and Facet< DIM >::GetVtkVertices().
Referenced by Facet< DIM >::GetPlane().
| vtkSmartPointer< vtkPlane > Facet< DIM >::GetPlane | ( | ) | 
Return the facet's plane
Definition at line 233 of file Facet.cpp.
References Facet< DIM >::GetCentroid(), Facet< DIM >::GetNormal(), and Facet< DIM >::mReferenceLength.
Referenced by Facet< DIM >::GetDistance().
| std::vector< boost::shared_ptr< Polygon< DIM > > > Facet< DIM >::GetPolygons | ( | ) | 
Return the polygons
Definition at line 252 of file Facet.cpp.
References Facet< DIM >::mPolygons.
| std::vector< boost::shared_ptr< DimensionalChastePoint< DIM > > > Facet< DIM >::GetVertices | ( | ) | 
Return the vertices
Definition at line 258 of file Facet.cpp.
References Facet< DIM >::mVertices, Facet< DIM >::mVerticesUpToDate, and Facet< DIM >::UpdateVertices().
Referenced by Facet< DIM >::GetBoundingBox(), Facet< DIM >::GetNormal(), Facet< DIM >::GetVtkVertices(), Facet< DIM >::RotateAboutAxis(), and Facet< DIM >::Translate().
| std::pair< vtkSmartPointer< vtkPoints >, vtkSmartPointer< vtkIdTypeArray > > Facet< DIM >::GetVtkVertices | ( | ) | 
Return the facet vertices as a set of VtkPoints.
Definition at line 268 of file Facet.cpp.
References Facet< DIM >::GetVertices(), and Facet< DIM >::mReferenceLength.
Referenced by Facet< DIM >::GetCentroid(), and Facet< DIM >::GetNormal().
| void Facet< DIM >::RotateAboutAxis | ( | c_vector< double, 3 > | axis, | 
| double | angle | ||
| ) | 
Rotate about the specified axis by the specified angle
| axis | the rotation axis | 
| angle | the rotation angle | 
Definition at line 292 of file Facet.cpp.
References Facet< DIM >::GetVertices().
| void Facet< DIM >::SetLabel | ( | const std::string & | label | ) | 
Set the label for boundary conditions
| label | the boundary condition label | 
Definition at line 302 of file Facet.cpp.
References Facet< DIM >::mLabel.
| void Facet< DIM >::Translate | ( | DimensionalChastePoint< DIM > | translationVector | ) | 
Move the facet along the translation vector
| translationVector | the new location is the original + the translationVector | 
Definition at line 308 of file Facet.cpp.
References Facet< DIM >::GetVertices().
| void Facet< DIM >::UpdateVertices | ( | ) | 
Update the mVertices member
Definition at line 318 of file Facet.cpp.
References Facet< DIM >::mPolygons, Facet< DIM >::mVertices, and Facet< DIM >::mVerticesUpToDate.
Referenced by Facet< DIM >::GetVertices().
      
  | 
  private | 
      
  | 
  private | 
A label for the application of boundary conditions
Definition at line 81 of file Facet.hpp.
Referenced by Facet< DIM >::GetLabel(), and Facet< DIM >::SetLabel().
      
  | 
  private | 
The polygons making up the facet
Definition at line 59 of file Facet.hpp.
Referenced by Facet< DIM >::AddPolygon(), Facet< DIM >::AddPolygons(), Facet< DIM >::ContainsPoint(), Facet< DIM >::Facet(), Facet< DIM >::GetPolygons(), and Facet< DIM >::UpdateVertices().
      
  | 
  private | 
The reference length scale
Definition at line 86 of file Facet.hpp.
Referenced by Facet< DIM >::GetBoundingBox(), Facet< DIM >::GetCentroid(), Facet< DIM >::GetDistance(), Facet< DIM >::GetPlane(), and Facet< DIM >::GetVtkVertices().
      
  | 
  private | 
Unique vertices in the facet. This is not always up-to-date. Use GetVertices() to ensure up-to-date vertices are used.
Definition at line 65 of file Facet.hpp.
Referenced by Facet< DIM >::GetVertices(), and Facet< DIM >::UpdateVertices().
Whether mVertices is up-to-date. This should be set false when new polygons are added.
Definition at line 71 of file Facet.hpp.
Referenced by Facet< DIM >::AddPolygon(), Facet< DIM >::AddPolygons(), Facet< DIM >::GetVertices(), and Facet< DIM >::UpdateVertices().