Go to the documentation of this file.
4 #ifndef tools_sg_cloud2plot
5 #define tools_sg_cloud2plot
12 #include "../histo/c2d"
32 virtual void infos(
const std::string& a_opts,std::string& a_sinfos)
const {
34 std::string f_lf(
"\n");
35 std::vector<std::string> ws;
36 words(a_opts,
" ",
false,ws);
37 std::vector<std::string>::const_iterator it;
39 for(it=ws.begin();it!=ws.end();++it) {
40 if(((*it)==
"name") &&
m_name.size()) {
41 if(a_sinfos.size()) a_sinfos += f_lf;
45 }
else if((*it)==
"entries") {
46 if(a_sinfos.size()) a_sinfos += f_lf;
47 a_sinfos +=
"Entries\n";
50 }
else if((*it)==
"mean") {
51 if(a_sinfos.size()) a_sinfos += f_lf;
52 a_sinfos +=
"MeanX\n";
55 a_sinfos +=
"MeanY\n";
58 }
else if((*it)==
"rms") {
59 if(a_sinfos.size()) a_sinfos += f_lf;
60 a_sinfos +=
"RMS X\n";
63 a_sinfos +=
"RMS Y\n";
76 virtual bool ith_point(
unsigned int a_index,
float& a_x,
float& a_y)
const {
88 mem::increment(s_class().c_str());
93 mem::decrement(s_class().c_str());
105 mem::increment(s_class().c_str());
121 #include "../histo/c3d"
137 virtual void infos(
const std::string& a_opts,std::string& a_sinfos)
const {
139 std::string f_lf(
"\n");
140 std::vector<std::string> ws;
141 words(a_opts,
" ",
false,ws);
142 std::vector<std::string>::const_iterator it;
144 for(it=ws.begin();it!=ws.end();++it) {
145 if(((*it)==
"name") &&
m_name.size()) {
146 if(a_sinfos.size()) a_sinfos += f_lf;
147 a_sinfos +=
"Name\n";
150 }
else if((*it)==
"entries") {
151 if(a_sinfos.size()) a_sinfos += f_lf;
152 a_sinfos +=
"Entries\n";
155 }
else if((*it)==
"mean") {
156 if(a_sinfos.size()) a_sinfos += f_lf;
157 a_sinfos +=
"MeanX\n";
160 a_sinfos +=
"MeanY\n";
163 a_sinfos +=
"MeanZ\n";
166 }
else if((*it)==
"rms") {
167 if(a_sinfos.size()) a_sinfos += f_lf;
168 a_sinfos +=
"RMS X\n";
171 a_sinfos +=
"RMS Y\n";
174 a_sinfos +=
"RMS Z\n";
189 virtual bool ith_point(
unsigned int a_index,
float& a_x,
float& a_y,
float& a_z)
const {
190 if(a_index>=
m_data.
entries()) {a_x = 0;a_y = 0;a_z = 0;
return false;}
191 if(a_index>=
m_data.
entries()) {a_x = 0;a_y = 0;a_z = 0;
return false;}
202 mem::increment(s_class().c_str());
207 mem::decrement(s_class().c_str());
219 mem::increment(s_class().c_str());
#define TOOLS_SCLASS(a_name)