Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CBC_OnedCodaBarWriter Class Referencefinal

#include <BC_OnedCodaBarWriter.h>

Inheritance diagram for CBC_OnedCodaBarWriter:
Collaboration diagram for CBC_OnedCodaBarWriter:

Public Member Functions

 CBC_OnedCodaBarWriter ()
 ~CBC_OnedCodaBarWriter () override
DataVector< uint8_t > Encode (const ByteString &contents) override
bool RenderResult (WideStringView contents, pdfium::span< const uint8_t > code) override
bool CheckContentValidity (WideStringView contents) override
WideString FilterContents (WideStringView contents) override
void SetDataLength (int32_t length) override
void SetTextLocation (BC_TEXT_LOC location) override
bool SetWideNarrowRatio (int8_t ratio) override
bool SetStartChar (char start) override
bool SetEndChar (char end) override
WideString encodedContents (WideStringView contents)
Public Member Functions inherited from CBC_OneDimWriter
 CBC_OneDimWriter ()
 ~CBC_OneDimWriter () override
void SetPrintChecksum (bool checksum)
void SetCalcChecksum (bool state)
void SetFontSize (float size)
void SetFontStyle (int32_t style)
void SetFontColor (FX_ARGB color)
bool RenderDeviceResult (CFX_RenderDevice *device, const CFX_Matrix &matrix, WideStringView contents)
bool SetFont (CFX_Font *cFont)
Public Member Functions inherited from CBC_Writer
 CBC_Writer ()
virtual ~CBC_Writer ()
bool SetModuleHeight (int32_t moduleHeight)
bool SetModuleWidth (int32_t moduleWidth)
void SetHeight (int32_t height)
void SetWidth (int32_t width)
virtual bool SetErrorCorrectionLevel (int32_t level)

Additional Inherited Members

Static Public Member Functions inherited from CBC_OneDimWriter
static constexpr CFX_TextRenderOptions GetTextRenderOptions ()
static bool HasValidContentSize (WideStringView contents)
Protected Member Functions inherited from CBC_OneDimWriter
virtual bool ShowChars (WideStringView contents, CFX_RenderDevice *device, const CFX_Matrix &matrix, int32_t barWidth)
void ShowDeviceChars (CFX_RenderDevice *device, const CFX_Matrix &matrix, const ByteString str, float geWidth, pdfium::span< TextCharPos > pCharPos, float locX, float locY, int32_t barWidth)
void CalcTextInfo (const ByteString &text, pdfium::span< TextCharPos > charPos, CFX_Font *cFont, float geWidth, int32_t fontSize, float &charsLen)
pdfium::span< uint8_t > AppendPattern (pdfium::span< uint8_t > target, pdfium::span< const uint8_t > pattern, bool startColor)
Protected Attributes inherited from CBC_OneDimWriter
bool m_bPrintChecksum = true
bool m_bCalcChecksum = false
bool m_bLeftPadding = false
bool m_bRightPadding = false
UnownedPtr< CFX_Fontm_pFont
float m_fFontSize = 10.0f
int32_t m_iFontStyle = 0
uint32_t m_fontColor = 0xff000000
BC_TEXT_LOC m_locTextLoc = BC_TEXT_LOC::kBelowEmbed
int32_t m_iDataLenth = 0
size_t m_iContentLen = 0
std::vector< CFX_Pathm_output
int32_t m_barWidth
float m_outputHScale
Protected Attributes inherited from CBC_Writer
int32_t m_ModuleHeight = 1
int32_t m_ModuleWidth = 1
int32_t m_Height = 320
int32_t m_Width = 640
Static Protected Attributes inherited from CBC_Writer
static const FX_ARGB kBarColor = 0xff000000
static const FX_ARGB kBackgroundColor = 0xffffffff

Detailed Description

Definition at line 16 of file BC_OnedCodaBarWriter.h.

Constructor & Destructor Documentation

◆ CBC_OnedCodaBarWriter()

CBC_OnedCodaBarWriter::CBC_OnedCodaBarWriter ( )
default

◆ ~CBC_OnedCodaBarWriter()

CBC_OnedCodaBarWriter::~CBC_OnedCodaBarWriter ( )
overridedefault

Member Function Documentation

◆ CheckContentValidity()

bool CBC_OnedCodaBarWriter::CheckContentValidity ( WideStringView contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 99 of file BC_OnedCodaBarWriter.cpp.

References CBC_OneDimWriter::HasValidContentSize().

Referenced by CBC_Codabar::Encode().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Encode()

DataVector< uint8_t > CBC_OnedCodaBarWriter::Encode ( const ByteString & contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 122 of file BC_OnedCodaBarWriter.cpp.

References fxcrt::operator+(), and fxcrt::operator+().

Here is the call graph for this function:

◆ encodedContents()

WideString CBC_OnedCodaBarWriter::encodedContents ( WideStringView contents)

Definition at line 177 of file BC_OnedCodaBarWriter.cpp.

References fxcrt::WideString::WideString().

Here is the call graph for this function:

◆ FilterContents()

WideString CBC_OnedCodaBarWriter::FilterContents ( WideStringView contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 105 of file BC_OnedCodaBarWriter.cpp.

References fxcrt::WideString::operator+=().

Here is the call graph for this function:

◆ RenderResult()

bool CBC_OnedCodaBarWriter::RenderResult ( WideStringView contents,
pdfium::span< const uint8_t > code )
overridevirtual

Reimplemented from CBC_OneDimWriter.

Definition at line 183 of file BC_OnedCodaBarWriter.cpp.

◆ SetDataLength()

void CBC_OnedCodaBarWriter::SetDataLength ( int32_t length)
overridevirtual

Reimplemented from CBC_OneDimWriter.

Definition at line 83 of file BC_OnedCodaBarWriter.cpp.

References CBC_OneDimWriter::m_iDataLenth.

◆ SetEndChar()

bool CBC_OnedCodaBarWriter::SetEndChar ( char end)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 75 of file BC_OnedCodaBarWriter.cpp.

◆ SetStartChar()

bool CBC_OnedCodaBarWriter::SetStartChar ( char start)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 67 of file BC_OnedCodaBarWriter.cpp.

◆ SetTextLocation()

void CBC_OnedCodaBarWriter::SetTextLocation ( BC_TEXT_LOC location)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 87 of file BC_OnedCodaBarWriter.cpp.

References CBC_OneDimWriter::m_locTextLoc.

◆ SetWideNarrowRatio()

bool CBC_OnedCodaBarWriter::SetWideNarrowRatio ( int8_t ratio)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 91 of file BC_OnedCodaBarWriter.cpp.


The documentation for this class was generated from the following files: