SFCGAL
|
#include <Triangle.h>
Public Member Functions | |
Triangle () | |
empty Triangle constructor More... | |
Triangle (const Kernel::Triangle_2 &triangle) | |
Constructor with a CGAL triangle. More... | |
Triangle (const Kernel::Triangle_3 &triangle) | |
Constructor with a CGAL triangle. More... | |
Triangle (const Point &p, const Point &q, const Point &r) | |
constructor with 3 points More... | |
Triangle (const Triangle &other) | |
copy constructor More... | |
Triangle & | operator= (const Triangle &other) |
assign operator More... | |
~Triangle () | |
destructor More... | |
virtual Triangle * | clone () const |
Get a deep copy of the geometry. More... | |
virtual std::string | geometryType () const |
[OGC/SFA]returns the geometry type More... | |
virtual GeometryType | geometryTypeId () const |
Returns a code corresponding to the type. More... | |
virtual int | coordinateDimension () const |
[OGC/SFA]returns the dimension of the coordinates More... | |
virtual bool | isEmpty () const |
[OGC/SFA]test if geometry is empty More... | |
virtual bool | is3D () const |
[OGC/SFA]test if geometry is 3d More... | |
virtual bool | isMeasured () const |
[OGC/SFA]test if geometry is measured (has an m) More... | |
void | reverse () |
reverse Triangle orientation More... | |
Polygon | toPolygon () const |
convert a triangle to a polygon More... | |
const Point & | vertex (const int &i) const |
returns the i-th vertex More... | |
Point & | vertex (const int &i) |
returns the i-th vertex More... | |
Kernel::Triangle_2 | toTriangle_2 () const |
Convert to CGAL::Triangle_2. More... | |
Kernel::Triangle_3 | toTriangle_3 () const |
Convert to CGAL::Triangle_3. More... | |
template<int D> | |
detail::TypeForDimension< D >::Triangle | toTriangle_d () const |
Convert to CGAL::Triangle_2 or CGAL::Triangle_2. More... | |
virtual void | accept (GeometryVisitor &visitor) |
[visitor]dispatch visitor More... | |
virtual void | accept (ConstGeometryVisitor &visitor) const |
[visitor]dispatch visitor More... | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Serializer. More... | |
![]() | |
virtual | ~Surface () |
destructor More... | |
virtual int | dimension () const |
[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...) More... | |
![]() | |
Geometry () | |
Default constructor. More... | |
Geometry (const Geometry &)=default | |
Copy constructor. More... | |
Geometry & | operator= (const Geometry &other)=default |
Copy assignemnt operator. More... | |
virtual | ~Geometry ()=default |
Destructor. More... | |
virtual Geometry * | clone () const =0 |
Get a deep copy of the geometry. More... | |
virtual std::string | geometryType () const =0 |
[OGC/SFA]returns the geometry type More... | |
virtual GeometryType | geometryTypeId () const =0 |
Returns a code corresponding to the type. More... | |
virtual int | dimension () const =0 |
[OGC/SFA]Dimension of the Geometry ( 0 : punctual, 1 : curve, ...) More... | |
virtual int | coordinateDimension () const =0 |
[OGC/SFA]returns the dimension of the coordinates More... | |
virtual bool | isEmpty () const =0 |
[OGC/SFA]test if geometry is empty More... | |
virtual bool | is3D () const =0 |
[OGC/SFA]test if geometry is 3d More... | |
virtual bool | isMeasured () const =0 |
[OGC/SFA]test if geometry is measured (has an m) More... | |
void | forceValidityFlag (bool validity) |
Force the state of the validity flag. More... | |
bool | hasValidityFlag () const |
Returns the validity flag. More... | |
std::string | asText (const int &numDecimals=-1) const |
[OGC/SFA]returns the WKT string More... | |
Envelope | envelope () const |
[OGC/SFA]Returns a polygon representing the BBOX of the geometry More... | |
virtual std::unique_ptr< Geometry > | boundary () const |
[OGC/SFA]Returns the boundary of the geometry More... | |
double | distance (const Geometry &other) const |
Computes the distance to an other geometry. More... | |
double | distance3D (const Geometry &other) const |
Computes the 3D distance to an other geometry. More... | |
void | round (const long &scale=1) |
round the geometry with a corresponding scale factor More... | |
auto | almostEqual (const Geometry &, const double tolerance) const -> bool |
Equality operator. More... | |
virtual size_t | numGeometries () const |
[OGC/SFA]Gets the number of geometries in a collection of geometries More... | |
virtual const Geometry & | geometryN (size_t const &n) const |
[OGC/SFA]Returns the n-th geometry More... | |
virtual Geometry & | geometryN (size_t const &n) |
[OGC/SFA]Returns the n-th geometry More... | |
template<typename Derived > | |
bool | is () const |
Tests if geometry is of "Derived" type given as template parameter. More... | |
template<typename Derived > | |
const Derived & | as () const |
Downcast to a "Derived" class. More... | |
template<typename Derived > | |
Derived & | as () |
Downcast to a "Derived" class. More... | |
virtual void | accept (GeometryVisitor &visitor)=0 |
[visitor]dispatch visitor More... | |
virtual void | accept (ConstGeometryVisitor &visitor) const =0 |
[visitor]dispatch visitor More... | |
template<class Archive > | |
void | serialize (Archive &, const unsigned int) |
Serializer. More... | |
Additional Inherited Members | |
![]() | |
Surface () | |
[OGC/SFS]"The area of this Surface, as measured in the spatial reference
system of this Surface" More... | |
Surface (Surface const &other) | |
no copy constructor More... | |
![]() | |
bool | validityFlag_ |
[OGC/SFA]Triangle
SFCGAL::Triangle::Triangle | ( | ) |
empty Triangle constructor
SFCGAL::Triangle::Triangle | ( | const Kernel::Triangle_2 & | triangle | ) |
Constructor with a CGAL triangle.
SFCGAL::Triangle::Triangle | ( | const Kernel::Triangle_3 & | triangle | ) |
Constructor with a CGAL triangle.
constructor with 3 points
SFCGAL::Triangle::Triangle | ( | const Triangle & | other | ) |
copy constructor
|
default |
destructor
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
|
virtual |
[visitor]dispatch visitor
Implements SFCGAL::Geometry.
|
virtual |
Get a deep copy of the geometry.
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]returns the dimension of the coordinates
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]returns the geometry type
Implements SFCGAL::Geometry.
|
virtual |
|
virtual |
[OGC/SFA]test if geometry is 3d
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]test if geometry is empty
Implements SFCGAL::Geometry.
|
virtual |
[OGC/SFA]test if geometry is measured (has an m)
Implements SFCGAL::Geometry.
auto SFCGAL::Triangle::operator= | ( | const Triangle & | other | ) |
assign operator
void SFCGAL::Triangle::reverse | ( | ) |
reverse Triangle orientation
|
inline |
Serializer.
auto SFCGAL::Triangle::toPolygon | ( | ) | const |
convert a triangle to a polygon
|
inline |
Convert to CGAL::Triangle_2.
|
inline |
Convert to CGAL::Triangle_3.
|
inline |
Convert to CGAL::Triangle_2 or CGAL::Triangle_2.
|
inline |
returns the i-th vertex
|
inline |
returns the i-th vertex