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_OnedCode128Writer Class Referencefinal

#include <BC_OnedCode128Writer.h>

+ Inheritance diagram for CBC_OnedCode128Writer:
+ Collaboration diagram for CBC_OnedCode128Writer:

Public Member Functions

 CBC_OnedCode128Writer (BC_TYPE type)
 
 ~CBC_OnedCode128Writer () override
 
DataVector< uint8_t > Encode (const ByteString &contents) override
 
bool CheckContentValidity (WideStringView contents) override
 
WideString FilterContents (WideStringView contents) override
 
void SetTextLocation (BC_TEXT_LOC location) override
 
BC_TYPE GetType () const
 
- Public Member Functions inherited from CBC_OneDimWriter
 CBC_OneDimWriter ()
 
 ~CBC_OneDimWriter () override
 
virtual bool RenderResult (WideStringView contents, pdfium::span< const uint8_t > code)
 
virtual void SetDataLength (int32_t length)
 
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 ()
 
void SetCharEncoding (BC_CHAR_ENCODING encoding)
 
bool SetModuleHeight (int32_t moduleHeight)
 
bool SetModuleWidth (int32_t moduleWidth)
 
void SetHeight (int32_t height)
 
void SetWidth (int32_t width)
 
virtual bool SetWideNarrowRatio (int8_t ratio)
 
virtual bool SetStartChar (char start)
 
virtual bool SetEndChar (char end)
 
virtual bool SetErrorCorrectionLevel (int32_t level)
 

Static Public Member Functions

static int32_t Encode128B (const ByteString &contents, std::vector< int32_t > *patterns)
 
static int32_t Encode128C (const ByteString &contents, std::vector< int32_t > *patterns)
 
- Static Public Member Functions inherited from CBC_OneDimWriter
static constexpr CFX_TextRenderOptions GetTextRenderOptions ()
 
static bool HasValidContentSize (WideStringView contents)
 

Additional Inherited Members

- 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, TextCharPos *pCharPos, float locX, float locY, int32_t barWidth)
 
void CalcTextInfo (const ByteString &text, 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
 
FXDIB_Format m_colorSpace = FXDIB_Format::kArgb
 
BC_CHAR_ENCODING m_CharEncoding = BC_CHAR_ENCODING::kUTF8
 
- Static Protected Attributes inherited from CBC_Writer
static const FX_ARGB kBarColor = 0xff000000
 
static const FX_ARGB kBackgroundColor = 0xffffffff
 

Detailed Description

Definition at line 18 of file BC_OnedCode128Writer.h.

Constructor & Destructor Documentation

◆ CBC_OnedCode128Writer()

CBC_OnedCode128Writer::CBC_OnedCode128Writer ( BC_TYPE type)
explicit

Definition at line 87 of file BC_OnedCode128Writer.cpp.

◆ ~CBC_OnedCode128Writer()

CBC_OnedCode128Writer::~CBC_OnedCode128Writer ( )
overridedefault

Member Function Documentation

◆ CheckContentValidity()

bool CBC_OnedCode128Writer::CheckContentValidity ( WideStringView contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 95 of file BC_OnedCode128Writer.cpp.

References CBC_OneDimWriter::HasValidContentSize().

Referenced by CBC_Code128::Encode().

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

◆ Encode()

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

Implements CBC_OneDimWriter.

Definition at line 121 of file BC_OnedCode128Writer.cpp.

References kCode128B.

◆ Encode128B()

int32_t CBC_OnedCode128Writer::Encode128B ( const ByteString & contents,
std::vector< int32_t > * patterns )
static

Definition at line 152 of file BC_OnedCode128Writer.cpp.

◆ Encode128C()

int32_t CBC_OnedCode128Writer::Encode128C ( const ByteString & contents,
std::vector< int32_t > * patterns )
static

Definition at line 166 of file BC_OnedCode128Writer.cpp.

◆ FilterContents()

WideString CBC_OnedCode128Writer::FilterContents ( WideStringView contents)
overridevirtual

Implements CBC_OneDimWriter.

Definition at line 100 of file BC_OnedCode128Writer.cpp.

References kCode128B, and fxcrt::WideString::operator+=().

+ Here is the call graph for this function:

◆ GetType()

BC_TYPE CBC_OnedCode128Writer::GetType ( ) const
inline

Definition at line 35 of file BC_OnedCode128Writer.h.

Referenced by CBC_Code128::Encode().

+ Here is the caller graph for this function:

◆ SetTextLocation()

void CBC_OnedCode128Writer::SetTextLocation ( BC_TEXT_LOC location)
overridevirtual

Reimplemented from CBC_Writer.

Definition at line 117 of file BC_OnedCode128Writer.cpp.

References CBC_OneDimWriter::m_locTextLoc.


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