ReactOS 0.4.15-dev-7842-g558ab78
Jarcloc Class Reference

#include <jarcloc.h>

Collaboration diagram for Jarcloc:

Public Member Functions

void init (Arc_ptr a, long first, long last)
 
TrimVertexgetnextpt (void)
 
TrimVertexgetprevpt (void)
 
void reverse ()
 

Private Attributes

Arc_ptr arc
 
TrimVertexp
 
TrimVertexplast
 

Detailed Description

Definition at line 41 of file jarcloc.h.

Member Function Documentation

◆ getnextpt()

TrimVertex * Jarcloc::getnextpt ( void  )
inline

Definition at line 63 of file jarcloc.h.

64{
65 assert( p <= plast );
66 if( p == plast ) {
67 arc = arc->next;
68 p = &arc->pwlArc->pts[0];
69 plast = &arc->pwlArc->pts[arc->pwlArc->npts - 1];
70 assert( p < plast );
71 }
72 return p++;
73}
Arc_ptr arc
Definition: jarcloc.h:43
TrimVertex * plast
Definition: jarcloc.h:45
#define assert(x)
Definition: debug.h:53
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by Trimline::getNextPt(), Trimline::getNextPts(), and Trimline::getPrevPts().

◆ getprevpt()

TrimVertex * Jarcloc::getprevpt ( void  )
inline

Definition at line 76 of file jarcloc.h.

77{
78 assert( p >= plast );
79 if( p == plast ) {
80 arc = arc->prev;
81 p = &arc->pwlArc->pts[arc->pwlArc->npts - 1];
82 plast = &arc->pwlArc->pts[0];
83 assert( p > plast );
84 }
85 return p--;
86}

Referenced by Trimline::getNextPts(), Trimline::getPrevPt(), and Trimline::getPrevPts().

◆ init()

void Jarcloc::init ( Arc_ptr  a,
long  first,
long  last 
)
inline

Definition at line 47 of file jarcloc.h.

47{ arc = a; p=&a->pwlArc->pts[first]; plast = &a->pwlArc->pts[last]; }
const GLint * first
Definition: glext.h:5794
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define a
Definition: ke_i.h:78
static UINT UINT last
Definition: font.c:45

Referenced by Trimline::init().

◆ reverse()

void Jarcloc::reverse ( )
inline

Definition at line 54 of file jarcloc.h.

55{
56 if( plast == &arc->pwlArc->pts[0] )
57 plast = &arc->pwlArc->pts[arc->pwlArc->npts - 1];
58 else
59 plast = &arc->pwlArc->pts[0];
60}

Referenced by Trimline::getNextPts(), and Trimline::getPrevPts().

Member Data Documentation

◆ arc

Arc_ptr Jarcloc::arc
private

Definition at line 43 of file jarcloc.h.

Referenced by getnextpt(), getprevpt(), init(), and reverse().

◆ p

TrimVertex* Jarcloc::p
private

Definition at line 44 of file jarcloc.h.

◆ plast

TrimVertex* Jarcloc::plast
private

Definition at line 45 of file jarcloc.h.

Referenced by getnextpt(), getprevpt(), init(), and reverse().


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