![]() |
![]() |
![]() |
WritRecogn Reference Manual | ![]() |
---|---|---|---|---|
writRecognFullCharacterwritRecognFullCharacter — Full character that hold all information about the character. |
void rawWriting_reset (RawWriting *rW); #define WRITRECOGN_FULLCHARACTER_CONST (obj) writRecognFullCharacter; FullCharacter* writrecogn_fullcharacter_new (void); void writrecogn_fullcharacter_reset_fullCharacter_part (writRecognFullCharacter *self); RawWriting* writrecogn_fullcharacter_new_rawWriting (writRecognFullCharacter *self); guint writrecogn_fullcharacter_count_rawWritings (writRecognFullCharacter *self); RawWriting* writrecogn_fullcharacter_get_rawWriting (writRecognFullCharacter *self, guint index); void writrecogn_fullcharacter_remove_rawWriting (writRecognFullCharacter *self, guint index); void writrecogn_fullcharacter_reset_rawWriting (writRecognFullCharacter *self, guint index); guint writrecogn_fullcharacter_count_rawStrokes (writRecognFullCharacter *self, gint rawWritingIndex); RawStroke* writrecogn_fullcharacter_get_rawStroke (writRecognFullCharacter *self, gint rawWritingIndex, guint index); void writrecogn_fullcharacter_add_rawStroke (writRecognFullCharacter *self, gint rawWritingIndex, RawStroke *rStroke); guint writrecogn_fullcharacter_count_geometryModels (writRecognFullCharacter *self); RadicalGM* writrecogn_fullcharacter_new_geometryModel (writRecognFullCharacter *self); void writrecogn_fullcharacter_append_geometryModel (writRecognFullCharacter *self, RadicalGM *gm); RadicalGM* writrecogn_fullcharacter_get_geometryModel (writRecognFullCharacter *self, guint index); RadicalGM* writrecogn_fullcharacter_get_geometryModel_by_modelId (writRecognFullCharacter *self, gint modelId); void writrecogn_fullcharacter_remove_geometryModel (writRecognFullCharacter *self, guint index); void writrecogn_fullcharacter_append_subRadical (writRecognFullCharacter *self, Radical *subRadical, guint index); void writrecogn_fullcharacter_recompute_relativeBoundingBoxes (writRecognFullCharacter *self); #define WRITRECOGN_FULLCHARACTER_PROP_RAWWRITINGARRAY(arg) #define WRITRECOGN_FULLCHARACTER_GET_PROP_RAWWRITINGARRAY(arg) #define WRITRECOGN_FULLCHARACTER_PROP_RADICALGMARRAY(arg) #define WRITRECOGN_FULLCHARACTER_GET_PROP_RADICALGMARRAY(arg)
GObject +----writRecognRadical +----writRecognAbsCharacter +----writRecognFullCharacter
Full character hold all information about the character. Specifically, raw strokes(RawStroke) and radical geometry models(RadicalGM).
writRecognFullCharacter
is GOB long notation, for convenience,
use FullCharacter for declaring and FULLCHARACTER()
for casting.
void rawWriting_reset (RawWriting *rW);
Reset the raw writing by removing its contents.
|
the raw writing. |
#define WRITRECOGN_FULLCHARACTER_CONST(obj) G_TYPE_CHECK_INSTANCE_CAST((obj), writrecogn_fullcharacter_get_type(), writRecognFullCharacter const)
|
FullCharacter* writrecogn_fullcharacter_new (void);
Allocate a new instance of this object.
Returns : |
new instance of this object. |
void writrecogn_fullcharacter_reset_fullCharacter_part (writRecognFullCharacter *self);
Reset the full character part only.
|
the full character. |
RawWriting* writrecogn_fullcharacter_new_rawWriting (writRecognFullCharacter *self);
New a raw writing.
|
the full character. |
Returns : |
guint writrecogn_fullcharacter_count_rawWritings (writRecognFullCharacter *self);
Count the number of raw writing of this full character.
|
the full character. |
Returns : |
RawWriting* writrecogn_fullcharacter_get_rawWriting (writRecognFullCharacter *self, guint index);
Get the raw writing at the given index of full character.
|
the full character. |
|
the index of the raw writing. |
Returns : |
the raw writing at the given index of full character. |
void writrecogn_fullcharacter_remove_rawWriting (writRecognFullCharacter *self, guint index);
Get the raw writing at the given index of full character.
|
the full character. |
|
the index of the raw writing. |
void writrecogn_fullcharacter_reset_rawWriting (writRecognFullCharacter *self, guint index);
Reset the raw writing by removing its all elements.
|
the full character. |
|
the index of the raw writing. |
guint writrecogn_fullcharacter_count_rawStrokes (writRecognFullCharacter *self, gint rawWritingIndex);
|
|
|
|
Returns : |
RawStroke* writrecogn_fullcharacter_get_rawStroke (writRecognFullCharacter *self, gint rawWritingIndex, guint index);
Get a RawStroke by its index.
|
the full character |
|
index of RawWriting |
|
index of RawStroke |
Returns : |
the RawStorke at the index given by index. |
void writrecogn_fullcharacter_add_rawStroke (writRecognFullCharacter *self, gint rawWritingIndex, RawStroke *rStroke);
Add a RawStroke to RawWriting
|
the full character. |
|
index of RawWriting. |
|
guint writrecogn_fullcharacter_count_geometryModels (writRecognFullCharacter *self);
Count the number of radical geometry models of the full character.
|
the full character. |
Returns : |
the number of radical geometry models of the full character. |
RadicalGM* writrecogn_fullcharacter_new_geometryModel (writRecognFullCharacter *self);
Allocate a new instance of radical geometry model for the full character.
|
the full character. |
Returns : |
a new instance of radical geometry model for the full character. |
void writrecogn_fullcharacter_append_geometryModel (writRecognFullCharacter *self, RadicalGM *gm);
Append the radical geometry model to the full character.
|
the full character. |
|
the radical geometry model. |
RadicalGM* writrecogn_fullcharacter_get_geometryModel (writRecognFullCharacter *self, guint index);
Get the radical geometry model at given index.
|
the full character. |
|
the index of radical geometry model. |
Returns : |
the radical geometry model at given index. |
RadicalGM* writrecogn_fullcharacter_get_geometryModel_by_modelId (writRecognFullCharacter *self, gint modelId);
Get the radical geometry model with given id.
|
the full character. |
|
the radical geometry model id. |
Returns : |
the radical geometry model with given id. |
void writrecogn_fullcharacter_remove_geometryModel (writRecognFullCharacter *self, guint index);
Remove the radical geometry model at given index.
|
the full character. |
|
the index of radical geometry model. |
void writrecogn_fullcharacter_append_subRadical (writRecognFullCharacter *self, Radical *subRadical, guint index);
Append a sub radical to the full character.
Note that this function updates the absolute bounding boxes but not relative ones.
Call writrecogn_fullcharacter_recompute_relativeBoundingBoxes()
to generate relative bounding boxes.
|
the full character. |
|
the sub radical to be added to the character. |
|
the index of the geometry model. |
void writrecogn_fullcharacter_recompute_relativeBoundingBoxes (writRecognFullCharacter *self);
Recompute the relative bounding boxes in the radical geometry models.
It is a convenient wrap of writrecogn_radical_geometry_model_recompute_relativeBoundingBoxes()
.
|
the radical geometry model. |
#define WRITRECOGN_FULLCHARACTER_PROP_RAWWRITINGARRAY(arg)
|
#define WRITRECOGN_FULLCHARACTER_GET_PROP_RAWWRITINGARRAY(arg)
|
#define WRITRECOGN_FULLCHARACTER_PROP_RADICALGMARRAY(arg)
|
"radicalGMArray"
property"radicalGMArray" gpointer : Read / Write
An array of radical geometry models.