24 #if ! defined (octave_text_renderer_h) 25 #define octave_text_renderer_h 1 27 #include "octave-config.h" 41 class base_text_renderer;
69 void set_color (
const Matrix&
c);
73 int halign,
int valign,
double rotation = 0.0,
75 bool handle_rotation =
true);
82 :
name (), weight (), angle (), size (0)
87 :
name (
nm), weight (wt), angle (ang), size (
sz)
91 :
name (ft.
name), weight (ft.weight), angle (ft.angle),
95 ~
font (
void) =
default;
133 :
str (
s), family (
f.get_name ()), fnt (
f),
x (x0),
y (y0), z (0.0),
144 string& operator = (
const string&
s)
175 double get_size (
void)
const {
return fnt.get_size (); }
181 void set_xdata (
const std::vector<double>& x0) { xdata = x0; }
183 std::vector<double>
get_xdata (
void)
const {
return xdata; }
189 void set_z (
const double z0) { z = z0; }
191 double get_z (
void)
const {
return z; }
199 color(0) =
static_cast<double> (
c(0)) / 255;
200 color(1) =
static_cast<double> (
c(1)) / 255;
201 color(2) =
static_cast<double> (
c(2)) / 255;
219 int halign,
int valign,
double rotation = 0.0,
double get_size(void) const
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
std::string get_name(void) const
void set_z(const double z0)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
void set_string(const std::string &s)
std::string get_weight(void) const
std::vector< double > get_xdata(void) const
string(const std::string &s, font &f, const double x0, const double y0)
void set_color(const uint8NDArray &c)
void set_code(const uint32_t c)
nd deftypefn *std::string name
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
std::string get_angle(void) const
static octave_value box(JNIEnv *jni_env, void *jobj, void *jcls_arg=nullptr)
void set_xdata(const std::vector< double > &x0)
std::string get_weight(void) const
std::vector< double > xdata
std::string get_name(void) const
double get_size(void) const
std::string get_family(void) const
std::string get_angle(void) const
void set_x(const double x0)
font(const std::string &nm, const std::string &wt, const std::string &ang, double sz)
the element is set to zero In other the statement xample y
uint32_t get_code(void) const
Matrix get_color(void) const
void set_y(const double y0)
std::string get_string(void) const
void set_family(const std::string &nm)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x