Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RasterSpecialist::LinePair Struct Reference

This struct represents a line on the image. More...

#include <RasterSpecialist.h>

Inheritance diagram for RasterSpecialist::LinePair:

Inheritance graph
[legend]
Collaboration diagram for RasterSpecialist::LinePair:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LinePair ()
 Constructor.

 LinePair (Vector2< int > vec1, Vector2< int > vec2)
 Constructor.

 LinePair (Vector2< int > vec1, Vector2< int > vec2, colorClass c)
 Constructor.

bool operator< (const LinePair &other)
 Defines the default order for LinePairs.


Public Attributes

Vector2< int > v1
 The first point.

Vector2< int > v2
 The second point.

int segment
 The number of segment.

colorClass color
 The color.


Detailed Description

This struct represents a line on the image.

It holds also informations about the color and the number of segment it belongs to. The segment number is needed for the segmentation algorithms.

Definition at line 49 of file RasterSpecialist.h.


Constructor & Destructor Documentation

RasterSpecialist::LinePair::LinePair  ) 
 

Constructor.

Definition at line 31 of file RasterSpecialist.cpp.

References noColor.

RasterSpecialist::LinePair::LinePair Vector2< int >  vec1,
Vector2< int >  vec2
 

Constructor.

Parameters:
vec1 The start point.
vec2 The end point.

Definition at line 37 of file RasterSpecialist.cpp.

References noColor.

RasterSpecialist::LinePair::LinePair Vector2< int >  vec1,
Vector2< int >  vec2,
colorClass  c
 

Constructor.

Parameters:
vec1 The start point.
vec2 The end point.
c The color class.

Definition at line 43 of file RasterSpecialist.cpp.


Member Function Documentation

bool RasterSpecialist::LinePair::operator< const LinePair other  )  [inline]
 

Defines the default order for LinePairs.

order is lexigographical in v1 (v1.y,v1.x).

Parameters:
other The LinePair to be compared.
Returns:
True if other is greater.

Definition at line 79 of file RasterSpecialist.h.

References v1, Vector2< int >::x, and Vector2< int >::y.


Member Data Documentation

Vector2<int> RasterSpecialist::LinePair::v1
 

The first point.

Definition at line 66 of file RasterSpecialist.h.

Referenced by RasterSpecialist::createSegmentsFromLines(), RasterSpecialist::linePairsFit(), RasterSpecialist::linesFit(), RasterSpecialist::LineCompare::operator()(), and operator<().

Vector2<int> RasterSpecialist::LinePair::v2
 

The second point.

Definition at line 68 of file RasterSpecialist.h.

Referenced by RasterSpecialist::linePairsFit(), RasterSpecialist::linesFit(), and RasterSpecialist::LineCompare::operator()().

int RasterSpecialist::LinePair::segment
 

The number of segment.

Definition at line 70 of file RasterSpecialist.h.

Referenced by RasterSpecialist::SegmentNumberOrder::operator()().

colorClass RasterSpecialist::LinePair::color
 

The color.

Definition at line 72 of file RasterSpecialist.h.

Referenced by RasterSpecialist::linesFit().


The documentation for this struct was generated from the following files:
Generated on Thu Sep 23 20:11:02 2004 for GT2004 by doxygen 1.3.6