#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "CRC.hpp"
#include "FEC.hpp"
#include "String.hpp"
#include "SVG.hpp"
Go to the source code of this file.
Functions |
int | main (int arguments_size, char *arguments[]) |
void | SVG__tag_bit (SVG *svg, double cell_width, unsigned int row, unsigned int column, bool border) |
| Draw a bit at *row* and *column*.
|
void | SVG__tag_bits (SVG *svg, double cell_width, unsigned int first_column, unsigned int first_row, unsigned int last_column, unsigned int last_row, bool border) |
| Draw a rectangular section of bits:
|
void | SVG__tag_write (unsigned int tag_id, unsigned int tag_size, bool border) |
Function Documentation
int main |
( |
int |
arguments_size, |
|
|
char * |
arguments[] |
|
) |
| |
void SVG__tag_bit |
( |
SVG * |
svg, |
|
|
double |
cell_width, |
|
|
unsigned int |
row, |
|
|
unsigned int |
column, |
|
|
bool |
border |
|
) |
| |
Draw a bit at *row* and *column*.
- Parameters:
-
svg | is the *SVG* object to use. |
cell_width | is the cell width and height. |
row | is the row to draw the bit at. |
column | is the column to draw the bit at. |
border | is true if the tag has a border. |
SVG__tag_bit* draw a black bit at *row* and *column* in the 12 x 12 matrix that makes up a tag and output it to *svg*. If *border* is *false* the matrix is offset to the left by one.
Definition at line 101 of file Tags.cpp.
void SVG__tag_bits |
( |
SVG * |
svg, |
|
|
double |
cell_width, |
|
|
unsigned int |
first_column, |
|
|
unsigned int |
first_row, |
|
|
unsigned int |
last_column, |
|
|
unsigned int |
last_row, |
|
|
bool |
border |
|
) |
| |
Draw a rectangular section of bits:
- Parameters:
-
svg | is the *SVG* object to use. |
cell_width | is the cell width and height. |
first_column | is the first column of rectantle. |
first_row | is the first column of rectantle. |
last_column | is the last row to draw the bit at. |
last_row | is the last column to draw the bit at. |
border | is true if the tag has a border. |
SVG__tag_bits*() will draw a row or column of black bits from (*first_column*, *first_row*) to (*last_column*, *last_row*) the 12 x 12 matrix that makes up a tag to *svg*. If *border* false*, the matrix is offset by the left by one.
Definition at line 52 of file Tags.cpp.
void SVG__tag_write |
( |
unsigned int |
tag_id, |
|
|
unsigned int |
tag_size, |
|
|
bool |
border |
|
) |
| |