Qt 4.8
Public Types | Public Functions | Public Variables | Properties | List of all members
QPathEdge Class Reference

#include <qpathclipper_p.h>

Public Types

enum  Direction { Forward, Backward }
 
enum  Traversal { RightTraversal, LeftTraversal }
 
enum  Type { Line, Curve }
 

Public Functions

Direction directionTo (int vertex) const
 
int next (Traversal traversal, Direction direction) const
 
 QPathEdge (int a=-1, int b=-1)
 
void setNext (Traversal traversal, Direction direction, int next)
 
void setNext (Direction direction, int next)
 
int vertex (Direction direction) const
 

Public Variables

double angle
 
int first
 
int flag
 
double invAngle
 
int second
 
int windingA
 
int windingB
 

Properties

int m_next [2][2]
 

Detailed Description

Definition at line 123 of file qpathclipper_p.h.

Enumerations

◆ Direction

Enumerator
Forward 
Backward 

Definition at line 131 of file qpathclipper_p.h.

◆ Traversal

Enumerator
RightTraversal 
LeftTraversal 

Definition at line 126 of file qpathclipper_p.h.

◆ Type

Enumerator
Line 
Curve 

Definition at line 136 of file qpathclipper_p.h.

136  {
137  Line,
138  Curve
139  };

Constructors and Destructors

◆ QPathEdge()

QPathEdge::QPathEdge ( int  a = -1,
int  b = -1 
)
inline

Definition at line 295 of file qpathclipper_p.h.

296  : flag(0)
297  , windingA(0)
298  , windingB(0)
299  , first(a)
300  , second(b)
301  , angle(0)
302  , invAngle(0)
303 {
304  m_next[0][0] = -1;
305  m_next[1][0] = -1;
306  m_next[0][0] = -1;
307  m_next[1][0] = -1;
308 }
long ASN1_INTEGER_get ASN1_INTEGER * a
int m_next[2][2]
double invAngle
double angle

Functions

◆ directionTo()

QPathEdge::Direction QPathEdge::directionTo ( int  vertex) const
inline

Definition at line 326 of file qpathclipper_p.h.

Referenced by commonEdge(), and QWingedEdge::findInsertStatus().

327 {
328  return first == vertex ? Backward : Forward;
329 }
int vertex(Direction direction) const

◆ next()

int QPathEdge::next ( Traversal  traversal,
Direction  direction 
) const
inline

Definition at line 310 of file qpathclipper_p.h.

Referenced by QWingedEdge::addEdge(), QWingedEdge::next(), and setNext().

311 {
312  return m_next[int(traversal)][int(direction)];
313 }
int m_next[2][2]
Qt::LayoutDirection direction

◆ setNext() [1/2]

void QPathEdge::setNext ( Traversal  traversal,
Direction  direction,
int  next 
)
inline

Definition at line 315 of file qpathclipper_p.h.

Referenced by QWingedEdge::addEdge(), and QWingedEdge::removeEdge().

316 {
317  m_next[int(traversal)][int(direction)] = next;
318 }
int m_next[2][2]
int next(Traversal traversal, Direction direction) const
Qt::LayoutDirection direction

◆ setNext() [2/2]

void QPathEdge::setNext ( Direction  direction,
int  next 
)
inline

Definition at line 320 of file qpathclipper_p.h.

321 {
322  m_next[0][int(direction)] = next;
323  m_next[1][int(direction)] = next;
324 }
int m_next[2][2]
int next(Traversal traversal, Direction direction) const
Qt::LayoutDirection direction

◆ vertex()

int QPathEdge::vertex ( Direction  direction) const
inline

Definition at line 331 of file qpathclipper_p.h.

Referenced by add(), QWingedEdge::addEdge(), QWingedEdge::findInsertStatus(), and QWingedEdge::next().

332 {
333  return direction == Backward ? first : second;
334 }
Qt::LayoutDirection direction

Properties

◆ angle

double QPathEdge::angle

◆ first

int QPathEdge::first

◆ flag

int QPathEdge::flag
mutable

◆ invAngle

double QPathEdge::invAngle

◆ m_next

int QPathEdge::m_next[2][2]
private

Definition at line 163 of file qpathclipper_p.h.

Referenced by next(), QPathEdge(), and setNext().

◆ second

int QPathEdge::second

◆ windingA

int QPathEdge::windingA

◆ windingB

int QPathEdge::windingB

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