PCB Environment 2
Loading...
Searching...
No Matches
TriangleEx Class Reference
Inheritance diagram for TriangleEx:
AShape

Public Member Functions

 TriangleEx (const Triangle_2 &base)
 TriangleEx (Triangle_2 &&base)
AShapeclone () const override
uint vertexCount () const override
Real unsignedArea () const override
Bbox_2 bbox () const override
void transform (const CGAL::Aff_transformation_2< Kernel > &) override
void translate (const ::Vector_2 &) override
bool contains (const ::Point_2 &) const override
Real squared_distance (const AShape &S) const override
Real squared_distance (const ::Point_2 &) const override
Real squared_distance (const Segment_2 &) const override
Real squared_distance (const Circle_2 &C) const override
Real squared_distance (const Iso_rectangle_2 &) const override
Real squared_distance (const Triangle_2 &) const override
Real squared_distance (const Polygon_2 &) const override
Real squared_distance (const WideSegment_25 &) const override
bool intersects (const AShape &S) const override
bool intersects (const Circle_2 &) const override
bool intersects (const Iso_rectangle_2 &) const override
bool intersects (const Triangle_2 &) const override
bool intersects (const Polygon_2 &) const override
bool intersects (const WideSegment_25 &) const override
::Point_2 centroid () const override
std::string str () const override
PyObject * getPy () const override
Public Member Functions inherited from AShape
template<typename T>
T * as ()
template<typename T>
const T * as () const
virtual uint indexCountWithRestart () const
virtual bool canDrawAsTriFan () const
virtual bool isRound () const
Real boundingRadius () const
virtual bool transformPreservesType (const CGAL::Aff_transformation_2< Kernel > &) const
virtual void translate (const Vector_2 &)=0
virtual AShapetransformType (const CGAL::Aff_transformation_2< Kernel > &)
virtual bool contains (const Point_2 &) const =0
Real squared_distance (const Bbox_2 &) const
bool intersects (const Bbox_2 &) const

Member Function Documentation

◆ bbox()

Bbox_2 TriangleEx::bbox ( ) const
inlineoverridevirtual

Implements AShape.

◆ centroid()

::Point_2 TriangleEx::centroid ( ) const
overridevirtual

Implements AShape.

◆ clone()

AShape * TriangleEx::clone ( ) const
inlineoverridevirtual

Implements AShape.

◆ getPy()

PyObject * TriangleEx::getPy ( ) const
overridevirtual

Return a Python representation of this object. Formats:

  • ('circle', radius, x, y)
  • ('triangle', v0, v1, v2) where v is (x,y,z)
  • ('rect_iso', xmin, ymin, xmax, ymax)
  • ('wide_segment', x0, y0, x1, y1, z, width)
  • ('polygon', [v0, v1, v2, v3, ...]) where v is (x,y,z)

Implements AShape.

◆ intersects() [1/6]

bool TriangleEx::intersects ( const AShape & S) const
inlineoverridevirtual

Implements AShape.

◆ intersects() [2/6]

bool TriangleEx::intersects ( const Circle_2 & ) const
overridevirtual

Implements AShape.

◆ intersects() [3/6]

bool TriangleEx::intersects ( const Iso_rectangle_2 & ) const
overridevirtual

Implements AShape.

◆ intersects() [4/6]

bool TriangleEx::intersects ( const Polygon_2 & ) const
overridevirtual

Implements AShape.

◆ intersects() [5/6]

bool TriangleEx::intersects ( const Triangle_2 & ) const
overridevirtual

Implements AShape.

◆ intersects() [6/6]

bool TriangleEx::intersects ( const WideSegment_25 & ) const
overridevirtual

Implements AShape.

◆ squared_distance() [1/8]

Real TriangleEx::squared_distance ( const ::Point_2 & ) const
overridevirtual

Implements AShape.

◆ squared_distance() [2/8]

Real TriangleEx::squared_distance ( const AShape & S) const
inlineoverridevirtual

Implements AShape.

◆ squared_distance() [3/8]

Real TriangleEx::squared_distance ( const Circle_2 & C) const
overridevirtual

Implements AShape.

◆ squared_distance() [4/8]

Real TriangleEx::squared_distance ( const Iso_rectangle_2 & ) const
overridevirtual

Implements AShape.

◆ squared_distance() [5/8]

Real TriangleEx::squared_distance ( const Polygon_2 & ) const
overridevirtual

Implements AShape.

◆ squared_distance() [6/8]

Real TriangleEx::squared_distance ( const Segment_2 & ) const
overridevirtual

Implements AShape.

◆ squared_distance() [7/8]

Real TriangleEx::squared_distance ( const Triangle_2 & ) const
overridevirtual

Implements AShape.

◆ squared_distance() [8/8]

Real TriangleEx::squared_distance ( const WideSegment_25 & ) const
overridevirtual

Implements AShape.

◆ str()

std::string TriangleEx::str ( ) const
overridevirtual

Implements AShape.

◆ transform()

void TriangleEx::transform ( const CGAL::Aff_transformation_2< Kernel > & )
overridevirtual

Use transformType() if you are not sure whether the transformation preserves the shape type.

Implements AShape.

◆ unsignedArea()

Real TriangleEx::unsignedArea ( ) const
inlineoverridevirtual

Implements AShape.

◆ vertexCount()

uint TriangleEx::vertexCount ( ) const
inlineoverridevirtual

For rendering:

Implements AShape.


The documentation for this class was generated from the following file: