GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
text_renderer::string Class Reference

#include "text-renderer.h"

Collaboration diagram for text_renderer::string:

Public Member Functions

 string (const std::string &s, font &f, const double x, const double y)
 
 string (const string &s)
 
 ~string (void)=default
 
std::string get_angle (void) const
 
uint32_t get_code (void) const
 
Matrix get_color (void) const
 
std::string get_family (void) const
 
std::string get_name (void) const
 
double get_size (void) const
 
std::string get_string (void) const
 
std::string get_svg_element (void) const
 
std::string get_weight (void) const
 
double get_x (void) const
 
std::vector< double > get_xdata (void) const
 
double get_y (void) const
 
double get_z (void) const
 
stringoperator= (const string &s)
 
void set_code (const uint32_t code)
 
void set_color (const uint8NDArray &c)
 
void set_family (const std::string &nm)
 
void set_string (const std::string &s)
 
void set_svg_element (const std::string &svg)
 
void set_x (const double x)
 
void set_xdata (const std::vector< double > &x)
 
void set_y (const double y)
 
void set_z (const double z)
 

Private Attributes

uint32_t m_code
 
Matrix m_color
 
std::string m_family
 
font m_fnt
 
std::string m_str
 
std::string m_svg_element
 
double m_x
 
std::vector< double > m_xdata
 
double m_y
 
double m_z
 

Detailed Description

Definition at line 133 of file text-renderer.h.

Constructor & Destructor Documentation

◆ string() [1/2]

text_renderer::string::string ( const std::string &  s,
font f,
const double  x,
const double  y 
)
inline

Definition at line 137 of file text-renderer.h.

◆ string() [2/2]

text_renderer::string::string ( const string s)
inline

Definition at line 143 of file text-renderer.h.

◆ ~string()

text_renderer::string::~string ( void  )
default

Member Function Documentation

◆ get_angle()

std::string text_renderer::string::get_angle ( void  ) const
inline

Definition at line 181 of file text-renderer.h.

◆ get_code()

uint32_t text_renderer::string::get_code ( void  ) const
inline

Definition at line 203 of file text-renderer.h.

Referenced by ft_text_renderer::visit().

◆ get_color()

Matrix text_renderer::string::get_color ( void  ) const
inline

Definition at line 216 of file text-renderer.h.

◆ get_family()

std::string text_renderer::string::get_family ( void  ) const
inline

Definition at line 175 of file text-renderer.h.

Referenced by ft_text_renderer::visit().

◆ get_name()

std::string text_renderer::string::get_name ( void  ) const
inline

Definition at line 173 of file text-renderer.h.

◆ get_size()

double text_renderer::string::get_size ( void  ) const
inline

Definition at line 183 of file text-renderer.h.

◆ get_string()

std::string text_renderer::string::get_string ( void  ) const
inline

Definition at line 171 of file text-renderer.h.

Referenced by ft_text_renderer::visit().

◆ get_svg_element()

std::string text_renderer::string::get_svg_element ( void  ) const
inline

Definition at line 207 of file text-renderer.h.

◆ get_weight()

std::string text_renderer::string::get_weight ( void  ) const
inline

Definition at line 179 of file text-renderer.h.

◆ get_x()

double text_renderer::string::get_x ( void  ) const
inline

Definition at line 187 of file text-renderer.h.

◆ get_xdata()

std::vector<double> text_renderer::string::get_xdata ( void  ) const
inline

Definition at line 191 of file text-renderer.h.

◆ get_y()

double text_renderer::string::get_y ( void  ) const
inline

Definition at line 195 of file text-renderer.h.

◆ get_z()

double text_renderer::string::get_z ( void  ) const
inline

Definition at line 199 of file text-renderer.h.

◆ operator=()

string& text_renderer::string::operator= ( const string s)
inline

Definition at line 151 of file text-renderer.h.

References m_code, m_color, m_family, m_fnt, m_str, m_x, m_xdata, m_y, and m_z.

◆ set_code()

void text_renderer::string::set_code ( const uint32_t  code)
inline

Definition at line 201 of file text-renderer.h.

Referenced by ft_text_renderer::visit().

◆ set_color()

void text_renderer::string::set_color ( const uint8NDArray c)
inline

Definition at line 209 of file text-renderer.h.

Referenced by latex_renderer::text_to_strlist(), and ft_text_renderer::visit().

◆ set_family()

void text_renderer::string::set_family ( const std::string &  nm)
inline

Definition at line 177 of file text-renderer.h.

Referenced by ft_text_renderer::visit().

◆ set_string()

void text_renderer::string::set_string ( const std::string &  s)
inline

Definition at line 169 of file text-renderer.h.

Referenced by ft_text_renderer::visit().

◆ set_svg_element()

void text_renderer::string::set_svg_element ( const std::string &  svg)
inline

Definition at line 205 of file text-renderer.h.

Referenced by latex_renderer::text_to_strlist().

◆ set_x()

void text_renderer::string::set_x ( const double  x)
inline

Definition at line 185 of file text-renderer.h.

References x.

◆ set_xdata()

void text_renderer::string::set_xdata ( const std::vector< double > &  x)
inline

Definition at line 189 of file text-renderer.h.

References x.

Referenced by ft_text_renderer::visit().

◆ set_y()

void text_renderer::string::set_y ( const double  y)
inline

Definition at line 193 of file text-renderer.h.

Referenced by ft_text_renderer::visit().

◆ set_z()

void text_renderer::string::set_z ( const double  z)
inline

Definition at line 197 of file text-renderer.h.

Member Data Documentation

◆ m_code

uint32_t text_renderer::string::m_code
private

Definition at line 225 of file text-renderer.h.

Referenced by operator=().

◆ m_color

Matrix text_renderer::string::m_color
private

Definition at line 226 of file text-renderer.h.

Referenced by operator=().

◆ m_family

std::string text_renderer::string::m_family
private

Definition at line 221 of file text-renderer.h.

Referenced by operator=().

◆ m_fnt

font text_renderer::string::m_fnt
private

Definition at line 222 of file text-renderer.h.

Referenced by operator=().

◆ m_str

std::string text_renderer::string::m_str
private

Definition at line 220 of file text-renderer.h.

Referenced by operator=().

◆ m_svg_element

std::string text_renderer::string::m_svg_element
private

Definition at line 227 of file text-renderer.h.

◆ m_x

double text_renderer::string::m_x
private

Definition at line 223 of file text-renderer.h.

Referenced by operator=().

◆ m_xdata

std::vector<double> text_renderer::string::m_xdata
private

Definition at line 224 of file text-renderer.h.

Referenced by operator=().

◆ m_y

double text_renderer::string::m_y
private

Definition at line 223 of file text-renderer.h.

Referenced by operator=().

◆ m_z

double text_renderer::string::m_z
private

Definition at line 223 of file text-renderer.h.

Referenced by operator=().


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