Open
Graph Drawing
Framework

 v.2012.05
 

ogdf::ELabelPos< coordType > Class Template Reference

#include <ogdf/labeling/EdgeLabel.h>

List of all members.

Classes

class  FeatureComparer
struct  FeatureInfo
struct  FeatureLink
struct  LabelInfo
struct  PosInfo
struct  SegmentInfo

Public Member Functions

 ELabelPos ()
 ~ELabelPos ()
virtual void call (PlanRepUML &pru, GridLayoutMapped &L, ELabelInterface< coordType > &eli)
virtual void call (GraphAttributes &ug, ELabelInterface< coordType > &eli)
void setDefaultDistance (coordType dist)
void setDistance (edge e, eLabelTyp elt, coordType dist)
void setEndLabelPlacement (bool b)
void writeGML (const char *filename="labelgraph.gml", OutputParameter sectOmit=opStandard)
void writeUMLGML (const char *filename="labelgraphUML.gml", OutputParameter sectOmit=opStandard)

Protected Member Functions

double costFI ()
double costLI ()
double costEI ()
double costPos ()
double costSym ()
coordType segmentMargin ()
bool usePosCost ()
bool useSymCost ()
void initSegments ()
void initUMLSegments ()
void initFeatureRectangles ()
void initUMLFeatureRectangles ()
void computeCandidates ()
void computeUMLCandidates ()
void initStructure ()
void testFeatureIntersect ()
void testUMLFeatureIntersect ()
void saveRecovery (EdgeArray< GenericPoint< coordType > >(&saveCandidate)[labelNum])
void saveUMLRecovery (EdgeArray< GenericPoint< coordType > >(&saveCandidate)[labelNum])
void testAllIntersect ()
void testUMLAllIntersect ()
List< GenericPoint< coordType > > & posList (edge e, int lnum)
List< PosInfo > & candList (edge e, int lnum)
int segNumber (edge e)
OrthoDir segDir (edge e, int segNum)

Private Member Functions

void init (PlanRepUML &pru, GridLayoutMapped &L, ELabelInterface< coordType > &eli)
void initUML (GraphAttributes &ug, ELabelInterface< coordType > &eli)

Private Attributes

int m_numAssignment
int m_candStyle
int m_placeHeuristic
bool m_endInsertion
bool m_endLabelPlacement
bool m_posCost
bool m_symCost
int m_posNum
bool m_countFeatureIntersect
coordType m_segMargin
PlanRepUMLm_prup
GridLayoutMappedm_gl
GraphAttributesm_ug
ELabelInterface< coordType > * m_eli
EdgeArray< List< GenericPoint
< coordType > > > 
m_candPosList [labelNum]
EdgeArray< List< PosInfo > > m_candList [labelNum]
List< PosInfo * > m_freeLabels
List< PosInfo * > m_sectLabels
BinaryHeap2< double, PosInfo * > m_candidateHeap
EdgeArray< List< GenericPoint
< coordType > > > 
m_poly
EdgeArray< List< SegmentInfo > > m_segInfo
EdgeArray< coordType > m_edgeLength
NodeArray< FeatureInfom_featureInfo
EdgeArray< List< List
< LabelInfo > > > 
m_intersect [labelNum]
EdgeArray< bool > m_assigned [labelNum]
EdgeArray< coordType > m_distance [labelNum]
coordType m_defaultDistance
Graph m_intersectGraph

Friends

class FeatureComparer

Detailed Description

template<class coordType>
class ogdf::ELabelPos< coordType >

Definition at line 118 of file EdgeLabel.h.


Constructor & Destructor Documentation

template<class coordType >
ogdf::ELabelPos< coordType >::ELabelPos ( )
template<class coordType >
ogdf::ELabelPos< coordType >::~ELabelPos ( ) [inline]

Definition at line 124 of file EdgeLabel.h.


Member Function Documentation

template<class coordType >
virtual void ogdf::ELabelPos< coordType >::call ( PlanRepUML pru,
GridLayoutMapped L,
ELabelInterface< coordType > &  eli 
) [virtual]
template<class coordType >
virtual void ogdf::ELabelPos< coordType >::call ( GraphAttributes ug,
ELabelInterface< coordType > &  eli 
) [virtual]
template<class coordType >
List< PosInfo >& ogdf::ELabelPos< coordType >::candList ( edge  e,
int  lnum 
) [inline, protected]

Definition at line 316 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::computeCandidates ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::computeUMLCandidates ( ) [protected]
template<class coordType >
double ogdf::ELabelPos< coordType >::costEI ( ) [inline, protected]

Definition at line 270 of file EdgeLabel.h.

template<class coordType >
double ogdf::ELabelPos< coordType >::costFI ( ) [inline, protected]

Definition at line 266 of file EdgeLabel.h.

template<class coordType >
double ogdf::ELabelPos< coordType >::costLI ( ) [inline, protected]

Definition at line 268 of file EdgeLabel.h.

template<class coordType >
double ogdf::ELabelPos< coordType >::costPos ( ) [inline, protected]

Definition at line 272 of file EdgeLabel.h.

template<class coordType >
double ogdf::ELabelPos< coordType >::costSym ( ) [inline, protected]

Definition at line 274 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::init ( PlanRepUML pru,
GridLayoutMapped L,
ELabelInterface< coordType > &  eli 
) [private]
template<class coordType >
void ogdf::ELabelPos< coordType >::initFeatureRectangles ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::initSegments ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::initStructure ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::initUML ( GraphAttributes ug,
ELabelInterface< coordType > &  eli 
) [private]
template<class coordType >
void ogdf::ELabelPos< coordType >::initUMLFeatureRectangles ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::initUMLSegments ( ) [protected]
template<class coordType >
List< GenericPoint<coordType> >& ogdf::ELabelPos< coordType >::posList ( edge  e,
int  lnum 
) [inline, protected]

Definition at line 314 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::saveRecovery ( EdgeArray< GenericPoint< coordType > >(&)  saveCandidate[labelNum]) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::saveUMLRecovery ( EdgeArray< GenericPoint< coordType > >(&)  saveCandidate[labelNum]) [protected]
template<class coordType >
OrthoDir ogdf::ELabelPos< coordType >::segDir ( edge  e,
int  segNum 
) [inline, protected]

Definition at line 325 of file EdgeLabel.h.

template<class coordType >
coordType ogdf::ELabelPos< coordType >::segmentMargin ( ) [inline, protected]

Definition at line 276 of file EdgeLabel.h.

template<class coordType >
int ogdf::ELabelPos< coordType >::segNumber ( edge  e) [inline, protected]

Definition at line 322 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::setDefaultDistance ( coordType  dist) [inline]

Definition at line 133 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::setDistance ( edge  e,
eLabelTyp  elt,
coordType  dist 
) [inline]

Definition at line 136 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::setEndLabelPlacement ( bool  b) [inline]

Definition at line 140 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::testAllIntersect ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::testFeatureIntersect ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::testUMLAllIntersect ( ) [protected]
template<class coordType >
void ogdf::ELabelPos< coordType >::testUMLFeatureIntersect ( ) [protected]
template<class coordType >
bool ogdf::ELabelPos< coordType >::usePosCost ( ) [inline, protected]

Definition at line 279 of file EdgeLabel.h.

template<class coordType >
bool ogdf::ELabelPos< coordType >::useSymCost ( ) [inline, protected]

Definition at line 280 of file EdgeLabel.h.

template<class coordType >
void ogdf::ELabelPos< coordType >::writeGML ( const char *  filename = "labelgraph.gml",
OutputParameter  sectOmit = opStandard 
)
template<class coordType >
void ogdf::ELabelPos< coordType >::writeUMLGML ( const char *  filename = "labelgraphUML.gml",
OutputParameter  sectOmit = opStandard 
)

Friends And Related Function Documentation

template<class coordType >
friend class FeatureComparer [friend]

Definition at line 424 of file EdgeLabel.h.


Member Data Documentation

template<class coordType >
EdgeArray<bool> ogdf::ELabelPos< coordType >::m_assigned[labelNum] [private]

Definition at line 410 of file EdgeLabel.h.

template<class coordType >
BinaryHeap2<double, PosInfo*> ogdf::ELabelPos< coordType >::m_candidateHeap [private]

Definition at line 395 of file EdgeLabel.h.

template<class coordType >
EdgeArray< List < PosInfo > > ogdf::ELabelPos< coordType >::m_candList[labelNum] [private]

Definition at line 389 of file EdgeLabel.h.

template<class coordType >
EdgeArray< List<GenericPoint<coordType> > > ogdf::ELabelPos< coordType >::m_candPosList[labelNum] [private]

Definition at line 387 of file EdgeLabel.h.

template<class coordType >
int ogdf::ELabelPos< coordType >::m_candStyle [private]

Definition at line 355 of file EdgeLabel.h.

template<class coordType >
bool ogdf::ELabelPos< coordType >::m_countFeatureIntersect [private]

Definition at line 371 of file EdgeLabel.h.

template<class coordType >
coordType ogdf::ELabelPos< coordType >::m_defaultDistance [private]

Definition at line 414 of file EdgeLabel.h.

template<class coordType >
EdgeArray<coordType> ogdf::ELabelPos< coordType >::m_distance[labelNum] [private]

Definition at line 413 of file EdgeLabel.h.

template<class coordType >
EdgeArray<coordType> ogdf::ELabelPos< coordType >::m_edgeLength [private]

Definition at line 402 of file EdgeLabel.h.

template<class coordType >
ELabelInterface<coordType>* ogdf::ELabelPos< coordType >::m_eli [private]

Definition at line 383 of file EdgeLabel.h.

template<class coordType >
bool ogdf::ELabelPos< coordType >::m_endInsertion [private]

Definition at line 357 of file EdgeLabel.h.

template<class coordType >
bool ogdf::ELabelPos< coordType >::m_endLabelPlacement [private]

Definition at line 359 of file EdgeLabel.h.

template<class coordType >
NodeArray<FeatureInfo> ogdf::ELabelPos< coordType >::m_featureInfo [private]

Definition at line 405 of file EdgeLabel.h.

template<class coordType >
List< PosInfo* > ogdf::ELabelPos< coordType >::m_freeLabels [private]

Definition at line 391 of file EdgeLabel.h.

template<class coordType >
GridLayoutMapped* ogdf::ELabelPos< coordType >::m_gl [private]

Definition at line 377 of file EdgeLabel.h.

template<class coordType >
EdgeArray< List< List<LabelInfo> > > ogdf::ELabelPos< coordType >::m_intersect[labelNum] [private]

Definition at line 408 of file EdgeLabel.h.

template<class coordType >
Graph ogdf::ELabelPos< coordType >::m_intersectGraph [private]

Definition at line 416 of file EdgeLabel.h.

template<class coordType >
int ogdf::ELabelPos< coordType >::m_numAssignment [private]

Definition at line 353 of file EdgeLabel.h.

template<class coordType >
int ogdf::ELabelPos< coordType >::m_placeHeuristic [private]

Definition at line 356 of file EdgeLabel.h.

template<class coordType >
EdgeArray< List<GenericPoint<coordType> > > ogdf::ELabelPos< coordType >::m_poly [private]

Definition at line 398 of file EdgeLabel.h.

template<class coordType >
bool ogdf::ELabelPos< coordType >::m_posCost [private]

Definition at line 361 of file EdgeLabel.h.

template<class coordType >
int ogdf::ELabelPos< coordType >::m_posNum [private]

Definition at line 367 of file EdgeLabel.h.

template<class coordType >
PlanRepUML* ogdf::ELabelPos< coordType >::m_prup [private]

Definition at line 376 of file EdgeLabel.h.

template<class coordType >
List< PosInfo* > ogdf::ELabelPos< coordType >::m_sectLabels [private]

Definition at line 393 of file EdgeLabel.h.

template<class coordType >
EdgeArray< List<SegmentInfo> > ogdf::ELabelPos< coordType >::m_segInfo [private]

Definition at line 401 of file EdgeLabel.h.

template<class coordType >
coordType ogdf::ELabelPos< coordType >::m_segMargin [private]

Definition at line 373 of file EdgeLabel.h.

template<class coordType >
bool ogdf::ELabelPos< coordType >::m_symCost [private]

Definition at line 362 of file EdgeLabel.h.

template<class coordType >
GraphAttributes* ogdf::ELabelPos< coordType >::m_ug [private]

Definition at line 380 of file EdgeLabel.h.


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