Go to the documentation of this file.
4 #ifndef tools_sg_f2plot
5 #define tools_sg_f2plot
14 #include "../S_STRING"
28 virtual
void*
cast(const std::
string& a_class)
const {
29 if(
void* p = cmp_cast<f1d2plot>(
this,a_class)) {
return p;}
41 virtual void infos(
const std::string& a_opts,std::string& a_sinfos)
const {
43 std::string f_lf(
"\n");
44 std::vector<std::string> _words;
45 words(a_opts,
" ",
false,_words);
47 if(((*it)==
"name") &&
m_name.size()) {
48 if(a_sinfos.size()) a_sinfos += f_lf;
55 virtual bool value(
float a_x,
float& a_v)
const {
56 if(!
m_data.in_domain(a_x)) {a_v = 0;
return false;}
57 a_v = (float)
m_data.value(a_x);
61 virtual unsigned int x_steps()
const {
return m_data.xdomain_number_of_steps();}
62 virtual float x_min()
const {
return (
float)
m_data.xdomain_min();}
63 virtual float x_max()
const {
return (
float)
m_data.xdomain_max();}
68 mem::increment(s_class().c_str());
73 mem::decrement(s_class().c_str());
85 mem::increment(s_class().c_str());
107 virtual
void*
cast(const std::
string& a_class)
const {
108 if(
void* p = cmp_cast<f1d2plot_cp>(
this,a_class)) {
return p;}
137 virtual
void*
cast(const std::
string& a_class)
const {
138 if(
void* p = cmp_cast<f2d2plot>(
this,a_class)) {
return p;}
150 virtual void infos(
const std::string& a_opts,std::string& a_sinfos)
const {
152 std::string f_lf(
"\n");
153 std::vector<std::string> _words;
154 words(a_opts,
" ",
false,_words);
156 if(((*it)==
"name") &&
m_name.size()) {
157 if(a_sinfos.size()) a_sinfos += f_lf;
158 a_sinfos +=
"Name\n";
164 virtual bool value(
float a_x,
float a_y,
float& a_v)
const {
165 if(!
m_data.in_domain(a_x,a_y)) {a_v = 0;
return false;}
166 a_v = (float)
m_data.value(a_x,a_y);
170 virtual unsigned int x_steps()
const {
return m_data.xdomain_number_of_steps();}
173 virtual unsigned int y_steps()
const {
return m_data.ydomain_number_of_steps();}
179 mem::increment(s_class().c_str());
184 mem::decrement(s_class().c_str());
196 mem::increment(s_class().c_str());
218 virtual
void*
cast(const std::
string& a_class)
const {
219 if(
void* p = cmp_cast<f2d2plot_cp>(
this,a_class)) {
return p;}
#define TOOLS_T_SCLASS(a_T, a_name)
#define tools_vforcit(a__T, a__v, a__it)