Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
gamp::graph::Triangle Class Reference

#include <PrimTypes.hpp>

Collaboration diagram for gamp::graph::Triangle:

Public Types

typedef jau::bitfield< 3 > tribit_t
 
typedef std::array< Vertex, 3 > trivert_t
 

Public Member Functions

 Triangle (Private, const Vertex &v1, const Vertex &v2, const Vertex &v3, const tribit_t &boundaryVertices) noexcept
 
 Triangle (Private, uint32_t id, const tribit_t &boundaryEdges, const tribit_t &boundaryVertices) noexcept
 
constexpr const tribit_tboundaryEdges () const noexcept
 
constexpr tribit_tboundaryEdges () noexcept
 
constexpr const tribit_tboundaryVertices () const noexcept
 
constexpr tribit_tboundaryVertices () noexcept
 
constexpr uint32_t id () const noexcept
 
constexpr uint32_t & id () noexcept
 
constexpr bool isEdgesBoundary () const noexcept
 
bool isLine () const noexcept
 Returns true if all vertices are lines, i.e. zero tex-coord, otherwise false.
 
constexpr bool isVerticesBoundary () const noexcept
 
constexpr bool onCurve () const noexcept
 Returns true if all vertices are on-curve, otherwise false.
 
std::string toString () const noexcept
 
TriangleRef transform (const AffineTransform &t) const
 Returns a transformed copy of this instance using the given AffineTransform.
 
constexpr const trivert_tvertices () const noexcept
 Returns array of 3 vertices, denominating the triangle.
 
constexpr trivert_tvertices () noexcept
 Returns array of 3 vertices, denominating the triangle.
 

Static Public Member Functions

static TriangleRef create (const Vertex &v1, const Vertex &v2, const Vertex &v3, const tribit_t &boundaryVertices) noexcept
 

Detailed Description

Definition at line 130 of file PrimTypes.hpp.

Member Typedef Documentation

◆ trivert_t

typedef std::array<Vertex, 3> gamp::graph::Triangle::trivert_t

Definition at line 132 of file PrimTypes.hpp.

◆ tribit_t

Definition at line 133 of file PrimTypes.hpp.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

gamp::graph::Triangle::Triangle ( Private ,
const Vertex & v1,
const Vertex & v2,
const Vertex & v3,
const tribit_t & boundaryVertices )
inlinenoexcept

Definition at line 144 of file PrimTypes.hpp.

◆ Triangle() [2/2]

gamp::graph::Triangle::Triangle ( Private ,
uint32_t id,
const tribit_t & boundaryEdges,
const tribit_t & boundaryVertices )
inlinenoexcept

Definition at line 150 of file PrimTypes.hpp.

Member Function Documentation

◆ create()

static TriangleRef gamp::graph::Triangle::create ( const Vertex & v1,
const Vertex & v2,
const Vertex & v3,
const tribit_t & boundaryVertices )
inlinestaticnoexcept

Definition at line 156 of file PrimTypes.hpp.

Here is the caller graph for this function:

◆ transform()

TriangleRef gamp::graph::Triangle::transform ( const AffineTransform & t) const
inline

Returns a transformed copy of this instance using the given AffineTransform.

Definition at line 161 of file PrimTypes.hpp.

◆ onCurve()

bool gamp::graph::Triangle::onCurve ( ) const
inlineconstexprnoexcept

Returns true if all vertices are on-curve, otherwise false.

Definition at line 170 of file PrimTypes.hpp.

Here is the caller graph for this function:

◆ isLine()

bool gamp::graph::Triangle::isLine ( ) const
inlinenoexcept

Returns true if all vertices are lines, i.e. zero tex-coord, otherwise false.

Definition at line 175 of file PrimTypes.hpp.

◆ id() [1/2]

uint32_t gamp::graph::Triangle::id ( ) const
inlineconstexprnoexcept

Definition at line 181 of file PrimTypes.hpp.

◆ id() [2/2]

uint32_t & gamp::graph::Triangle::id ( )
inlineconstexprnoexcept

Definition at line 182 of file PrimTypes.hpp.

◆ vertices() [1/2]

const trivert_t & gamp::graph::Triangle::vertices ( ) const
inlineconstexprnoexcept

Returns array of 3 vertices, denominating the triangle.

Definition at line 185 of file PrimTypes.hpp.

Here is the caller graph for this function:

◆ vertices() [2/2]

trivert_t & gamp::graph::Triangle::vertices ( )
inlineconstexprnoexcept

Returns array of 3 vertices, denominating the triangle.

Definition at line 187 of file PrimTypes.hpp.

◆ boundaryEdges() [1/2]

const tribit_t & gamp::graph::Triangle::boundaryEdges ( ) const
inlineconstexprnoexcept

Definition at line 189 of file PrimTypes.hpp.

Here is the caller graph for this function:

◆ boundaryEdges() [2/2]

tribit_t & gamp::graph::Triangle::boundaryEdges ( )
inlineconstexprnoexcept

Definition at line 190 of file PrimTypes.hpp.

◆ boundaryVertices() [1/2]

const tribit_t & gamp::graph::Triangle::boundaryVertices ( ) const
inlineconstexprnoexcept

Definition at line 192 of file PrimTypes.hpp.

Here is the caller graph for this function:

◆ boundaryVertices() [2/2]

tribit_t & gamp::graph::Triangle::boundaryVertices ( )
inlineconstexprnoexcept

Definition at line 193 of file PrimTypes.hpp.

◆ isEdgesBoundary()

bool gamp::graph::Triangle::isEdgesBoundary ( ) const
inlineconstexprnoexcept

Definition at line 195 of file PrimTypes.hpp.

◆ isVerticesBoundary()

bool gamp::graph::Triangle::isVerticesBoundary ( ) const
inlineconstexprnoexcept

Definition at line 199 of file PrimTypes.hpp.

◆ toString()

std::string gamp::graph::Triangle::toString ( ) const
inlinenoexcept

Definition at line 203 of file PrimTypes.hpp.

Here is the caller graph for this function:

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