DataCode
Description
Holds information about data code: its position and text which is encoded.Structure fields and default values (if defined) are described below:
- Path Outline
- Polarity Polarity = Any
- String Text
- int RowCount
- int ColumnCount
- float MinModuleSize
- float MaxModuleSize
- Point2D Center
- Point2D Grid
struct DataCode
{
Path Outline;
Polarity Polarity;
String Text;
int RowCount;
int ColumnCount;
float MinModuleSize;
float MaxModuleSize;
Point2D Center;
atl::Array<Point2D> Grid;
explicit DataCode
(
Polarity Polarity_ = Any
) :
Polarity(Polarity_)
{}
Path Outline() const { return Outline; };
Polarity Polarity() const { return Polarity; };
String Text() const { return Text; };
int RowCount() const { return RowCount; };
int ColumnCount() const { return ColumnCount; };
float MinModuleSize() const { return MinModuleSize; };
float MaxModuleSize() const { return MaxModuleSize; };
Point2D Center() const { return Center; };
const atl::Array<Point2D>& Grid() const { return Grid; };
bool operator == ( const avl::DataCode& rhs ) const
{
return Outline == rhs.Outline &&
Polarity == rhs.Polarity &&
Text == rhs.Text &&
RowCount == rhs.RowCount &&
ColumnCount == rhs.ColumnCount &&
MinModuleSize == rhs.MinModuleSize &&
MaxModuleSize == rhs.MaxModuleSize &&
Center == rhs.Center &&
Grid == rhs.Grid;
}
bool operator != ( const avl::DataCode& rhs ) const
{
return !(operator==(rhs));
}
};
