Qt 4.8
Public Functions | Properties | List of all members
QTriangulator< T >::SimpleToMonotone::CompareVertices Class Reference

Public Functions

 CompareVertices (SimpleToMonotone *parent)
 
bool operator() (int i, int j) const
 

Properties

SimpleToMonotonem_parent
 

Detailed Description

template<typename T>
class QTriangulator< T >::SimpleToMonotone::CompareVertices

Definition at line 1459 of file qtriangulator.cpp.

Constructors and Destructors

◆ CompareVertices()

template<typename T>
QTriangulator< T >::SimpleToMonotone::CompareVertices::CompareVertices ( SimpleToMonotone parent)
inline

Definition at line 1462 of file qtriangulator.cpp.

1462 : m_parent(parent) { }

Functions

◆ operator()()

template<typename T >
bool QTriangulator< T >::SimpleToMonotone::CompareVertices::operator() ( int  i,
int  j 
) const

Definition at line 2909 of file qtriangulator.cpp.

2910 {
2911  if (m_parent->m_edges.at(i).from == m_parent->m_edges.at(j).from)
2912  return m_parent->m_edges.at(i).type > m_parent->m_edges.at(j).type;
2913  return m_parent->m_parent->m_vertices.at(m_parent->m_edges.at(i).from) >
2914  m_parent->m_parent->m_vertices.at(m_parent->m_edges.at(j).from);
2915 }
Type & at(int i)
Definition: qdatabuffer_p.h:86
QDataBuffer< QPodPoint > m_vertices

Properties

◆ m_parent

template<typename T>
SimpleToMonotone* QTriangulator< T >::SimpleToMonotone::CompareVertices::m_parent
private

Definition at line 1465 of file qtriangulator.cpp.


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