eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EasyDeepOCR::ETextDrawingParameters Class Reference

Represents the drawing parameters needed by ETextLine::Draw and EText::Draw. More...

#include <eVision/EasyOcr/EasyDeepOCR/ETextDrawingParameters.h>

Collaboration diagram for eVision::EasyDeepOCR::ETextDrawingParameters:

Public Member Functions

 ETextDrawingParameters ()
 Constructs a ETextDrawingParameters.
 ETextDrawingParameters (const eVision::EasyDeepOCR::ETextDrawingParameters &other)
 Constructs a ETextDrawingParameters.
virtual ~ETextDrawingParameters () throw ()
eVision::EasyDeepOCR::ETextDrawingParameters & operator= (const eVision::EasyDeepOCR::ETextDrawingParameters &other)
 Assignment operator.
bool operator== (const eVision::EasyDeepOCR::ETextDrawingParameters &other) const
 The comparison operator.
void Load (const std::string &path)
 Loads the ETextDrawingParameters.
void Load (eVision::ESerializer *serializer)
 Loads the ETextDrawingParameters.
void Save (const std::string &path)
 Saves the ETextDrawingParameters.
void Save (eVision::ESerializer *serializer)
 Saves the ETextDrawingParameters.
void SetDrawTextBox (bool draw)
 Specifies whether the position, i.e the box enclosing all the lines, should be drawn.
bool GetDrawTextBox () const
 Specifies whether the position, i.e the box enclosing all the lines, should be drawn.
void SetDrawTextLineBoxes (bool draw)
 Specifies whether the lineboxes should be drawn.
bool GetDrawTextLineBoxes () const
 Specifies whether the lineboxes should be drawn.
void SetDrawStrings (bool draw)
 Specifies whether the strings should be drawn.
bool GetDrawStrings () const
 Specifies whether the strings should be drawn.
void SetDrawDirections (bool draw)
 Specifies whether arrows that indicate the reading direction should be drawn.
bool GetDrawDirections () const
 Specifies whether arrows that indicate the reading direction should be drawn.
void SetArrowLength (float length)
 Specifies the length of the arrows when drawing the directions.
float GetArrowLength () const
 Specifies the length of the arrows when drawing the directions.
 ETextDrawingParameters (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Represents the drawing parameters needed by ETextLine::Draw and EText::Draw.

License(s): EasyDeepOCR

Constructor & Destructor Documentation

◆ ETextDrawingParameters() [1/3]

eVision::EasyDeepOCR::ETextDrawingParameters::ETextDrawingParameters ( )

Constructs a ETextDrawingParameters.

◆ ETextDrawingParameters() [2/3]

eVision::EasyDeepOCR::ETextDrawingParameters::ETextDrawingParameters ( const eVision::EasyDeepOCR::ETextDrawingParameters & other)

Constructs a ETextDrawingParameters.

Parameters
otherETextDrawingParameters to be copied.

◆ ~ETextDrawingParameters()

eVision::EasyDeepOCR::ETextDrawingParameters::~ETextDrawingParameters ( )
throw ( )
virtual

◆ ETextDrawingParameters() [3/3]

eVision::EasyDeepOCR::ETextDrawingParameters::ETextDrawingParameters ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ GetArrowLength()

float eVision::EasyDeepOCR::ETextDrawingParameters::GetArrowLength ( ) const

Specifies the length of the arrows when drawing the directions.

When this parameter is null or negative, the height of the line boxes is used instead as the line arrow length.

◆ GetDrawDirections()

bool eVision::EasyDeepOCR::ETextDrawingParameters::GetDrawDirections ( ) const

Specifies whether arrows that indicate the reading direction should be drawn.

◆ GetDrawStrings()

bool eVision::EasyDeepOCR::ETextDrawingParameters::GetDrawStrings ( ) const

Specifies whether the strings should be drawn.

◆ GetDrawTextBox()

bool eVision::EasyDeepOCR::ETextDrawingParameters::GetDrawTextBox ( ) const

Specifies whether the position, i.e the box enclosing all the lines, should be drawn.

◆ GetDrawTextLineBoxes()

bool eVision::EasyDeepOCR::ETextDrawingParameters::GetDrawTextLineBoxes ( ) const

Specifies whether the lineboxes should be drawn.

◆ Load() [1/2]

void eVision::EasyDeepOCR::ETextDrawingParameters::Load ( const std::string & path)

Loads the ETextDrawingParameters.

Parameters
pathPath where to save the ETextDrawingParameters.

◆ Load() [2/2]

void eVision::EasyDeepOCR::ETextDrawingParameters::Load ( eVision::ESerializer * serializer)

Loads the ETextDrawingParameters.

Parameters
serializer

◆ operator=()

eVision::EasyDeepOCR::ETextDrawingParameters & eVision::EasyDeepOCR::ETextDrawingParameters::operator= ( const eVision::EasyDeepOCR::ETextDrawingParameters & other)

Assignment operator.

Parameters
otherAnother ETextDrawingParameters to be assigned in the new ETextDrawingParameters.

◆ operator==()

bool eVision::EasyDeepOCR::ETextDrawingParameters::operator== ( const eVision::EasyDeepOCR::ETextDrawingParameters & other) const

The comparison operator.

Parameters
otherThe ETextDrawingParameters to be compared to.

◆ Save() [1/2]

void eVision::EasyDeepOCR::ETextDrawingParameters::Save ( const std::string & path)

Saves the ETextDrawingParameters.

Parameters
pathPath where to save the ETextDrawingParameters.

◆ Save() [2/2]

void eVision::EasyDeepOCR::ETextDrawingParameters::Save ( eVision::ESerializer * serializer)

Saves the ETextDrawingParameters.

Parameters
serializer

◆ SetArrowLength()

void eVision::EasyDeepOCR::ETextDrawingParameters::SetArrowLength ( float length)

Specifies the length of the arrows when drawing the directions.

When this parameter is null or negative, the height of the line boxes is used instead as the line arrow length.

◆ SetDrawDirections()

void eVision::EasyDeepOCR::ETextDrawingParameters::SetDrawDirections ( bool draw)

Specifies whether arrows that indicate the reading direction should be drawn.

◆ SetDrawStrings()

void eVision::EasyDeepOCR::ETextDrawingParameters::SetDrawStrings ( bool draw)

Specifies whether the strings should be drawn.

◆ SetDrawTextBox()

void eVision::EasyDeepOCR::ETextDrawingParameters::SetDrawTextBox ( bool draw)

Specifies whether the position, i.e the box enclosing all the lines, should be drawn.

◆ SetDrawTextLineBoxes()

void eVision::EasyDeepOCR::ETextDrawingParameters::SetDrawTextLineBoxes ( bool draw)

Specifies whether the lineboxes should be drawn.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EasyDeepOCR::ETextDrawingParameters::wrappedClass_