Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::TContour Class Reference

#include <Contour.h>

Inheritance diagram for sf::TContour:
[legend]
Collaboration diagram for sf::TContour:
[legend]

Public Member Functions

bool Connect (unsigned index, int mode)
bool GetInfo (double distance, TContourInfo &info) const
double GetLength () const
double GetLength (unsigned from, unsigned to) const
bool GetIntersection (const TContourInfo &info, TContourInfo &intersect) const
Rectangle2D GetExtend () const
Public Member Functions inherited from sf::TVector< TContourItem >
 TVector ()=default
 Default constructor.
TVector & operator= (const TVector &v) noexcept
 Assignment operator.
size_type add (const TContourItem &t)
 Adds item at the end of the vector.
TVector & append (const TContourItem &t)
 Appends an entry to the vectors items at the end of the vector.
TVector & prepend (const TContourItem &t)
 Prepends an entry to the vectors items at the beginning of the vector.
bool addAt (const TContourItem &t, size_type index)
 Adds an item at index position.
bool detach (const TContourItem &t)
 Removes specific item from the list by instance. Uses the compare operator from type T to find it.
bool detachAt (size_type index)
 Removes specific item from the list by index.
bool isEmpty () const
 Returns true when empty false otherwise.
void flush ()
 Removes all entries from the vector.
size_type find (const TContourItem &) const
 Finds an entry by instance in the vector.
size_type count () const
 Returns the amount of entries in the vector.
TContourItem & first ()
 Gets the first element of the vector.
TContourItem & last ()
 Gets the last element of the vector.
bool startsWith (TContourItem t) const
 Checks if the first element is of the passed value.
bool endsWith (TContourItem t) const
 Checks if the last element is of the passed value.
TContourItem & get (size_type i)
 Gets entry from index position.
base_type getBase ()
 Returns the base type to access it methods explicitly.
TContourItem & operator[] (size_type i)
 Reimplemented array operator. Array operator needs reimplementation using std::vector::at() which does a range check in contrast to the std::vector::operator[] functions.
std::ostream & write (std::ostream &os, bool inc_hex) const

Additional Inherited Members

Public Types inherited from sf::TVector< TContourItem >
typedef std::vector< TContourItem > base_type
 Base type of this template .
typedef base_type::size_type size_type
 Size type of this template.
typedef base_type::value_type value_type
 Value type contained by this vector template.
typedef TIterator< value_type > iter_type
 Iteration type of the template.
typedef const iter_type const_iter_type
 Iteration const type of the template.
Static Public Attributes inherited from sf::TVector< TContourItem >
static const size_t npos
 Value returned by various member functions when they fail.

Member Function Documentation

◆ Connect()

bool sf::TContour::Connect ( unsigned index,
int mode )

◆ GetExtend()

Rectangle2D sf::TContour::GetExtend ( ) const

◆ GetInfo()

bool sf::TContour::GetInfo ( double distance,
TContourInfo & info ) const

◆ GetIntersection()

bool sf::TContour::GetIntersection ( const TContourInfo & info,
TContourInfo & intersect ) const

◆ GetLength() [1/2]

double sf::TContour::GetLength ( ) const

◆ GetLength() [2/2]

double sf::TContour::GetLength ( unsigned from,
unsigned to ) const

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