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

#include "text-renderer.h"

Collaboration diagram for octave::text_renderer::string:

Public Member Functions

 string (const std::string &s, font &f, const double x0, const double y0)
 
 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_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 c)
 
void set_color (const uint8NDArray &c)
 
void set_family (const std::string &nm)
 
void set_string (const std::string &s)
 
void set_x (const double x0)
 
void set_xdata (const std::vector< double > &x0)
 
void set_y (const double y0)
 
void set_z (const double z0)
 

Private Attributes

uint32_t code
 
Matrix color
 
std::string family
 
font fnt
 
std::string str
 
double x
 
std::vector< double > xdata
 
double y
 
double z
 

Detailed Description

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

Constructor & Destructor Documentation

◆ string() [1/2]

octave::text_renderer::string::string ( const std::string &  s,
font f,
const double  x0,
const double  y0 
)
inline

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

◆ string() [2/2]

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

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

◆ ~string()

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

Member Function Documentation

◆ get_angle()

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

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

◆ get_code()

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

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

Referenced by octave::ft_text_renderer::visit().

◆ get_color()

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

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

◆ get_family()

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

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

◆ get_name()

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

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

◆ get_size()

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

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

◆ get_string()

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

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

Referenced by octave::ft_text_renderer::visit().

◆ get_weight()

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

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

◆ get_x()

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

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

References x.

◆ get_xdata()

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

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

◆ get_y()

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

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

◆ get_z()

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

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

◆ operator=()

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

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

References code, color, family, fnt, str, x, x, xdata, y, and z.

◆ set_code()

void octave::text_renderer::string::set_code ( const uint32_t  c)
inline

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

Referenced by octave::ft_text_renderer::visit().

◆ set_color()

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

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

Referenced by octave::ft_text_renderer::visit().

◆ set_family()

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

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

Referenced by octave::ft_text_renderer::visit().

◆ set_string()

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

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

Referenced by octave::ft_text_renderer::visit().

◆ set_x()

void octave::text_renderer::string::set_x ( const double  x0)
inline

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

References x.

◆ set_xdata()

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

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

Referenced by octave::ft_text_renderer::visit().

◆ set_y()

void octave::text_renderer::string::set_y ( const double  y0)
inline

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

Referenced by octave::ft_text_renderer::visit().

◆ set_z()

void octave::text_renderer::string::set_z ( const double  z0)
inline

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

Member Data Documentation

◆ code

uint32_t octave::text_renderer::string::code
private

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

Referenced by operator=().

◆ color

Matrix octave::text_renderer::string::color
private

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

Referenced by operator=().

◆ family

std::string octave::text_renderer::string::family
private

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

Referenced by operator=().

◆ fnt

font octave::text_renderer::string::fnt
private

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

Referenced by operator=().

◆ str

std::string octave::text_renderer::string::str
private

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

Referenced by operator=().

◆ x

double octave::text_renderer::string::x
private

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

Referenced by operator=().

◆ xdata

std::vector<double> octave::text_renderer::string::xdata
private

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

Referenced by operator=().

◆ y

double octave::text_renderer::string::y
private

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

Referenced by operator=().

◆ z

double octave::text_renderer::string::z
private

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

Referenced by operator=().


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