w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

graphite2::ShiftCollider Class Reference

#include <Collider.h>

Collaboration diagram for graphite2::ShiftCollider:
[legend]

Public Types

typedef std::pair< float, float > fpair
 
typedef Vector< fpairvfpairs
 
typedef vfpairs::iterator ivfpairs
 
typedef std::pair< float, float > fpair
 
typedef Vector< fpairvfpairs
 
typedef vfpairs::iterator ivfpairs
 

Public Member Functions

 ShiftCollider (json *dbgout)
 
 ~ShiftCollider () throw ()
 
bool initSlot (Segment *seg, Slot *aSlot, const Rect &constraint, float margin, float marginMin, const Position &currShift, const Position &currOffset, int dir, GR_MAYBE_UNUSED json *const dbgout)
 
bool mergeSlot (Segment *seg, Slot *slot, const SlotCollision *cinfo, const Position &currShift, bool isAfter, bool sameCluster, bool &hasCol, bool isExclusion, GR_MAYBE_UNUSED json *const dbgout)
 
Position resolve (Segment *seg, bool &isCol, GR_MAYBE_UNUSED json *const dbgout)
 
void addBox_slope (bool isx, const Rect &box, const BBox &bb, const SlantBox &sb, const Position &org, float weight, float m, bool minright, int mode)
 
void removeBox (const Rect &box, const BBox &bb, const SlantBox &sb, const Position &org, int mode)
 
const Positionorigin () const
 
void outputJsonDbg (json *const dbgout, Segment *seg, int axis)
 
void outputJsonDbgStartSlot (json *const dbgout, Segment *seg)
 
void outputJsonDbgEndSlot (json *const dbgout, Position resultPos, int bestAxis, bool isCol)
 
void outputJsonDbgOneVector (json *const dbgout, Segment *seg, int axis, float tleft, float bestCost, float bestVal)
 
void outputJsonDbgRawRanges (json *const dbgout, int axis)
 
void outputJsonDbgRemovals (json *const dbgout, int axis, Segment *seg)
 
 ShiftCollider (json *dbgout)
 
 ~ShiftCollider () throw ()
 
bool initSlot (Segment *seg, Slot *aSlot, const Rect &constraint, float margin, float marginMin, const Position &currShift, const Position &currOffset, int dir, GR_MAYBE_UNUSED json *const dbgout)
 
bool mergeSlot (Segment *seg, Slot *slot, const SlotCollision *cinfo, const Position &currShift, bool isAfter, bool sameCluster, bool &hasCol, bool isExclusion, GR_MAYBE_UNUSED json *const dbgout)
 
Position resolve (Segment *seg, bool &isCol, GR_MAYBE_UNUSED json *const dbgout)
 
void addBox_slope (bool isx, const Rect &box, const BBox &bb, const SlantBox &sb, const Position &org, float weight, float m, bool minright, int mode)
 
void removeBox (const Rect &box, const BBox &bb, const SlantBox &sb, const Position &org, int mode)
 
const Positionorigin () const
 
void outputJsonDbg (json *const dbgout, Segment *seg, int axis)
 
void outputJsonDbgStartSlot (json *const dbgout, Segment *seg)
 
void outputJsonDbgEndSlot (json *const dbgout, Position resultPos, int bestAxis, bool isCol)
 
void outputJsonDbgOneVector (json *const dbgout, Segment *seg, int axis, float tleft, float bestCost, float bestVal)
 
void outputJsonDbgRawRanges (json *const dbgout, int axis)
 
void outputJsonDbgRemovals (json *const dbgout, int axis, Segment *seg)
 

Public Attributes

 CLASS_NEW_DELETE
 

Protected Attributes

Zones _ranges [4]
 
Slot_target
 
Rect _limit
 
Position _currShift
 
Position _currOffset
 
Position _origin
 
float _margin
 
float _marginWt
 
float _len [4]
 
uint16 _seqClass
 
uint16 _seqProxClass
 
uint16 _seqOrder
 

Detailed Description

Definition at line 123 of file Collider.h.

Member Typedef Documentation

◆ fpair [1/2]

typedef std::pair<float, float> graphite2::ShiftCollider::fpair

Definition at line 126 of file Collider.h.

◆ fpair [2/2]

typedef std::pair<float, float> graphite2::ShiftCollider::fpair

Definition at line 126 of file Collider.h.

◆ ivfpairs [1/2]

◆ ivfpairs [2/2]

◆ vfpairs [1/2]

Definition at line 127 of file Collider.h.

◆ vfpairs [2/2]

Definition at line 127 of file Collider.h.

Constructor & Destructor Documentation

◆ ShiftCollider() [1/2]

graphite2::ShiftCollider::ShiftCollider ( json dbgout)

◆ ~ShiftCollider() [1/2]

graphite2::ShiftCollider::~ShiftCollider ( )
throw (
)
inline

Definition at line 131 of file Collider.h.

◆ ShiftCollider() [2/2]

graphite2::ShiftCollider::ShiftCollider ( json dbgout)

◆ ~ShiftCollider() [2/2]

graphite2::ShiftCollider::~ShiftCollider ( )
throw (
)
inline

Definition at line 131 of file Collider.h.

Member Function Documentation

◆ addBox_slope() [1/2]

◆ addBox_slope() [2/2]

void graphite2::ShiftCollider::addBox_slope ( bool  isx,
const Rect box,
const BBox bb,
const SlantBox sb,
const Position org,
float  weight,
float  m,
bool  minright,
int  mode 
)

◆ initSlot() [1/2]

◆ initSlot() [2/2]

bool graphite2::ShiftCollider::initSlot ( Segment seg,
Slot aSlot,
const Rect constraint,
float  margin,
float  marginMin,
const Position currShift,
const Position currOffset,
int  dir,
GR_MAYBE_UNUSED json *const  dbgout 
)

◆ mergeSlot() [1/2]

bool ShiftCollider::mergeSlot ( Segment seg,
Slot slot,
const SlotCollision cinfo,
const Position currShift,
bool  isAfter,
bool  sameCluster,
bool hasCol,
bool  isExclusion,
GR_MAYBE_UNUSED json *const  dbgout 
)

◆ mergeSlot() [2/2]

bool graphite2::ShiftCollider::mergeSlot ( Segment seg,
Slot slot,
const SlotCollision cinfo,
const Position currShift,
bool  isAfter,
bool  sameCluster,
bool hasCol,
bool  isExclusion,
GR_MAYBE_UNUSED json *const  dbgout 
)

◆ origin() [1/2]

const Position& graphite2::ShiftCollider::origin ( ) const
inline

Definition at line 141 of file Collider.h.

◆ origin() [2/2]

const Position& graphite2::ShiftCollider::origin ( ) const
inline

Definition at line 141 of file Collider.h.

◆ outputJsonDbg() [1/2]

◆ outputJsonDbg() [2/2]

void graphite2::ShiftCollider::outputJsonDbg ( json *const  dbgout,
Segment seg,
int  axis 
)

◆ outputJsonDbgEndSlot() [1/2]

void graphite2::ShiftCollider::outputJsonDbgEndSlot ( json *const  dbgout,
Position  resultPos,
int  bestAxis,
bool  isCol 
)

◆ outputJsonDbgEndSlot() [2/2]

void graphite2::ShiftCollider::outputJsonDbgEndSlot ( json *const  dbgout,
Position  resultPos,
int  bestAxis,
bool  isCol 
)

◆ outputJsonDbgOneVector() [1/2]

void ShiftCollider::outputJsonDbgOneVector ( json *const  dbgout,
Segment seg,
int  axis,
float  tleft,
float  bestCost,
float  bestVal 
)

◆ outputJsonDbgOneVector() [2/2]

void graphite2::ShiftCollider::outputJsonDbgOneVector ( json *const  dbgout,
Segment seg,
int  axis,
float  tleft,
float  bestCost,
float  bestVal 
)

◆ outputJsonDbgRawRanges() [1/2]

void graphite2::ShiftCollider::outputJsonDbgRawRanges ( json *const  dbgout,
int  axis 
)

◆ outputJsonDbgRawRanges() [2/2]

void graphite2::ShiftCollider::outputJsonDbgRawRanges ( json *const  dbgout,
int  axis 
)

◆ outputJsonDbgRemovals() [1/2]

void ShiftCollider::outputJsonDbgRemovals ( json *const  dbgout,
int  axis,
Segment seg 
)

◆ outputJsonDbgRemovals() [2/2]

void graphite2::ShiftCollider::outputJsonDbgRemovals ( json *const  dbgout,
int  axis,
Segment seg 
)

◆ outputJsonDbgStartSlot() [1/2]

void ShiftCollider::outputJsonDbgStartSlot ( json *const  dbgout,
Segment seg 
)

◆ outputJsonDbgStartSlot() [2/2]

void graphite2::ShiftCollider::outputJsonDbgStartSlot ( json *const  dbgout,
Segment seg 
)

◆ removeBox() [1/2]

◆ removeBox() [2/2]

void graphite2::ShiftCollider::removeBox ( const Rect box,
const BBox bb,
const SlantBox sb,
const Position org,
int  mode 
)

◆ resolve() [1/2]

Position graphite2::ShiftCollider::resolve ( Segment seg,
bool isCol,
GR_MAYBE_UNUSED json *const  dbgout 
)

◆ resolve() [2/2]

Position graphite2::ShiftCollider::resolve ( Segment seg,
bool isCol,
GR_MAYBE_UNUSED json *const  dbgout 
)

Member Data Documentation

◆ _currOffset

Position graphite2::ShiftCollider::_currOffset
protected

Definition at line 159 of file Collider.h.

Referenced by initSlot(), and mergeSlot().

◆ _currShift

Position graphite2::ShiftCollider::_currShift
protected

Definition at line 158 of file Collider.h.

Referenced by initSlot(), mergeSlot(), and outputJsonDbgStartSlot().

◆ _len

float graphite2::ShiftCollider::_len
protected

Definition at line 163 of file Collider.h.

Referenced by initSlot().

◆ _limit

Rect graphite2::ShiftCollider::_limit
protected

Definition at line 157 of file Collider.h.

Referenced by initSlot(), mergeSlot(), outputJsonDbg(), and outputJsonDbgStartSlot().

◆ _margin

float graphite2::ShiftCollider::_margin
protected

Definition at line 161 of file Collider.h.

Referenced by initSlot(), mergeSlot(), and outputJsonDbg().

◆ _marginWt

float graphite2::ShiftCollider::_marginWt
protected

Definition at line 162 of file Collider.h.

Referenced by initSlot(), and mergeSlot().

◆ _origin

Position graphite2::ShiftCollider::_origin
protected

Definition at line 160 of file Collider.h.

Referenced by initSlot(), mergeSlot(), and outputJsonDbgStartSlot().

◆ _ranges

Zones graphite2::ShiftCollider::_ranges
protected

◆ _seqClass

uint16 graphite2::ShiftCollider::_seqClass
protected

Definition at line 164 of file Collider.h.

Referenced by initSlot(), and mergeSlot().

◆ _seqOrder

uint16 graphite2::ShiftCollider::_seqOrder
protected

Definition at line 166 of file Collider.h.

Referenced by initSlot(), and mergeSlot().

◆ _seqProxClass

uint16 graphite2::ShiftCollider::_seqProxClass
protected

Definition at line 165 of file Collider.h.

Referenced by initSlot(), and mergeSlot().

◆ _target

Slot * graphite2::ShiftCollider::_target
protected

Definition at line 156 of file Collider.h.

Referenced by initSlot(), mergeSlot(), outputJsonDbg(), and outputJsonDbgStartSlot().

◆ CLASS_NEW_DELETE

graphite2::ShiftCollider::CLASS_NEW_DELETE

Definition at line 152 of file Collider.h.


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