Read@CVL
rdf::AssociationGraphNode Class Reference

#include <FormAnalysis.h>

Collaboration diagram for rdf::AssociationGraphNode:

Public Types

enum  LinePosition { pos_left = 0, pos_right, pos_top, pos_bottom }
 

Public Member Functions

 AssociationGraphNode ()
 
void setLinePos (const AssociationGraphNode::LinePosition &type)
 
AssociationGraphNode::LinePosition linePosition () const
 
void setReferenceLine (Line l)
 
Line referenceLine () const
 
int getRowIdx () const
 
int getColIdx () const
 
void setLineCell (int rowIdx, int colIdx)
 
int rowSpan () const
 
int colSpan () const
 
void setSpan (int rowSpan, int colSpan)
 
void setMatchedLine (Line l)
 
void setMatchedLine (Line l, double overlap, double distance)
 
Line matchedLine () const
 
double overlap () const
 
double distance () const
 
void addBrokenLine (Line l, int lineIdx)
 
bool brokenLinesPresent () const
 
QVector< LinebrokenLines () const
 
QVector< int > brokenLinesIdx () const
 
void setMatchedLineIdx (int idx)
 
int matchedLineIdx () const
 
void setCellIdx (int idx)
 
int cellIdx () const
 
void setNeighbourCellIdx (QVector< int > n)
 
QVector< int > neighbourCellIDx ()
 
double weight ()
 
QVector< int > adjacencyNodes () const
 
void addAdjacencyNode (int idx)
 
bool testAdjacency (QSharedPointer< AssociationGraphNode > neighbour, double distThreshold=20, double variationThrLower=0.2, double variationThrUpper=0.2)
 
void clearAdjacencyList ()
 
int degree () const
 
bool operator< (const AssociationGraphNode &node) const
 

Static Public Member Functions

static bool compareNodes (const QSharedPointer< rdf::AssociationGraphNode > n1, const QSharedPointer< rdf::AssociationGraphNode > n2)
 

Protected Attributes

int mCellIdx = 1
 
QVector< int > mMergedNeighbourCells
 
Line mReferenceLine
 
LinePosition mLinePos
 
int mRefRowIdx = -1
 
int mRefColIdx = -1
 
int mRowSpan = 0
 
int mColSpan = 0
 
Line mMatchedLine
 
int mMatchedLineIdx
 
QVector< LinemBrokenLines
 
QVector< int > mBrokenLinesIdx
 
double mOverlap = -1
 
double mDistance = -1
 
QVector< int > mAdjacencyNodesIdx
 
QSet< int > mAn
 

Member Enumeration Documentation

Enumerator
pos_left 
pos_right 
pos_top 
pos_bottom 

Constructor & Destructor Documentation

rdf::AssociationGraphNode::AssociationGraphNode ( )

Member Function Documentation

void rdf::AssociationGraphNode::addAdjacencyNode ( int  idx)
void rdf::AssociationGraphNode::addBrokenLine ( Line  l,
int  lineIdx 
)
QVector< int > rdf::AssociationGraphNode::adjacencyNodes ( ) const
QVector< Line > rdf::AssociationGraphNode::brokenLines ( ) const
QVector< int > rdf::AssociationGraphNode::brokenLinesIdx ( ) const
bool rdf::AssociationGraphNode::brokenLinesPresent ( ) const
int rdf::AssociationGraphNode::cellIdx ( ) const
void rdf::AssociationGraphNode::clearAdjacencyList ( )
int rdf::AssociationGraphNode::colSpan ( ) const
bool rdf::AssociationGraphNode::compareNodes ( const QSharedPointer< rdf::AssociationGraphNode n1,
const QSharedPointer< rdf::AssociationGraphNode n2 
)
static
int rdf::AssociationGraphNode::degree ( ) const
double rdf::AssociationGraphNode::distance ( ) const
int rdf::AssociationGraphNode::getColIdx ( ) const
int rdf::AssociationGraphNode::getRowIdx ( ) const
AssociationGraphNode::LinePosition rdf::AssociationGraphNode::linePosition ( ) const
Line rdf::AssociationGraphNode::matchedLine ( ) const
int rdf::AssociationGraphNode::matchedLineIdx ( ) const
QVector< int > rdf::AssociationGraphNode::neighbourCellIDx ( )
bool rdf::AssociationGraphNode::operator< ( const AssociationGraphNode node) const
double rdf::AssociationGraphNode::overlap ( ) const
Line rdf::AssociationGraphNode::referenceLine ( ) const
int rdf::AssociationGraphNode::rowSpan ( ) const
void rdf::AssociationGraphNode::setCellIdx ( int  idx)
void rdf::AssociationGraphNode::setLineCell ( int  rowIdx,
int  colIdx 
)
void rdf::AssociationGraphNode::setLinePos ( const AssociationGraphNode::LinePosition type)
void rdf::AssociationGraphNode::setMatchedLine ( Line  l)
void rdf::AssociationGraphNode::setMatchedLine ( Line  l,
double  overlap,
double  distance 
)
void rdf::AssociationGraphNode::setMatchedLineIdx ( int  idx)
void rdf::AssociationGraphNode::setNeighbourCellIdx ( QVector< int >  n)
void rdf::AssociationGraphNode::setReferenceLine ( Line  l)
void rdf::AssociationGraphNode::setSpan ( int  rowSpan,
int  colSpan 
)
bool rdf::AssociationGraphNode::testAdjacency ( QSharedPointer< AssociationGraphNode neighbour,
double  distThreshold = 20,
double  variationThrLower = 0.2,
double  variationThrUpper = 0.2 
)
double rdf::AssociationGraphNode::weight ( )

Member Data Documentation

QVector<int> rdf::AssociationGraphNode::mAdjacencyNodesIdx
protected
QSet<int> rdf::AssociationGraphNode::mAn
protected
QVector<Line> rdf::AssociationGraphNode::mBrokenLines
protected
QVector<int> rdf::AssociationGraphNode::mBrokenLinesIdx
protected
int rdf::AssociationGraphNode::mCellIdx = 1
protected
int rdf::AssociationGraphNode::mColSpan = 0
protected
double rdf::AssociationGraphNode::mDistance = -1
protected
LinePosition rdf::AssociationGraphNode::mLinePos
protected
Line rdf::AssociationGraphNode::mMatchedLine
protected
int rdf::AssociationGraphNode::mMatchedLineIdx
protected
QVector<int> rdf::AssociationGraphNode::mMergedNeighbourCells
protected
double rdf::AssociationGraphNode::mOverlap = -1
protected
int rdf::AssociationGraphNode::mRefColIdx = -1
protected
Line rdf::AssociationGraphNode::mReferenceLine
protected
int rdf::AssociationGraphNode::mRefRowIdx = -1
protected
int rdf::AssociationGraphNode::mRowSpan = 0
protected

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