ATLAS Offline Software
Loading...
Searching...
No Matches
ProjectionSurfacesHelper Class Reference

#include <ProjectionSurfacesHelper.h>

Inheritance diagram for ProjectionSurfacesHelper:
Collaboration diagram for ProjectionSurfacesHelper:

Classes

class  Imp

Public Slots

void setSurfaces (InDetProjFlags::InDetProjPartsFlags)

Public Member Functions

virtual ~ProjectionSurfacesHelper ()
InDetProjFlags::InDetProjPartsFlags shownParts () const
SoMaterial * material ()
void setSystemBasePointer (IVP1System *sys)
void message (const QString &) const
void message (const QStringList &, const QString &addtoend="") const
void message (const QString &addtostart, const QStringList &, const QString &addtoend="") const
void messageDebug (const QString &) const
void messageDebug (const QStringList &, const QString &addtoend="") const
void messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const
void messageVerbose (const QString &) const
void messageVerbose (const QStringList &, const QString &addtoend="") const
void messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const
IVP1SystemsystemBase () const
const QString & helperClassName () const

Static Public Member Functions

static ProjectionSurfacesHelpercreatePixelHelper (SoMaterial *, SoSeparator *attachsep, QObject *parent=0, IVP1System *sys=0)
static ProjectionSurfacesHelpercreateSCTHelper (SoMaterial *, SoSeparator *attachsep, QObject *parent=0, IVP1System *sys=0)
static ProjectionSurfacesHelpercreateTRTHelper (SoMaterial *, SoSeparator *attachsep, QObject *parent=0, IVP1System *sys=0)
static bool verbose ()
static void warnUndeletedInstances ()
static QString str (const QString &s)
static QString str (const char *c)
static QString str (const bool b)
static QString str (const QColor &)
static QString str (const SbColor &)
static QString str (const VP1Interval &)
static QString str (const SbVec2d &)
static QString str (const SbVec2f &)
static QString str (const SbVec2s &)
static QString str (const SbVec3d &)
static QString str (const SbVec3f &)
static QString str (const SbVec3s &)
static QString str (const SbVec4d &)
static QString str (const SbVec4f &)
static QString str (short int n)
static QString str (unsigned short int n)
static QString str (long n)
static QString str (ulong n)
static QString str (int n)
static QString str (uint n)
static QString str (qlonglong n)
static QString str (qulonglong n)
static QString str (const double &d)
static QString str (const float &f)
static QString str (const void *)
template<class T>
static QString str (const T *t)
template<class T>
static QString str (const QFlags< T > &f)
template<class T>
static QString str (const HepGeom::BasicVector3D< T > &t)
static QString str (const Amg::Vector3D &t)
template<class T>
static QString str (const QList< T > &t)

Protected Member Functions

void setHelperClassName (const QString &n)

Private Member Functions

 ProjectionSurfacesHelper (double surfacethickness, double barrel_inner_radius, double barrel_outer_radius, double barrel_posneg_z, double endcap_surface_z, double endcap_surface_length, double endcap_inner_radius, double endcap_outer_radius, double endcap_zasr_disttobarrelcyl, double endcap_zasr_squeezefact, SoMaterial *, SoSeparator *attachsep, QObject *parent, IVP1System *sys)

Private Attributes

Impm_d
QString m_helpername
IVP1Systemm_system

Static Private Attributes

static const bool s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")

Detailed Description

Definition at line 28 of file ProjectionSurfacesHelper.h.

Constructor & Destructor Documentation

◆ ~ProjectionSurfacesHelper()

ProjectionSurfacesHelper::~ProjectionSurfacesHelper ( )
virtual

Definition at line 200 of file ProjectionSurfacesHelper.cxx.

201{
202 messageVerbose("destructor begin");
203 QList<SoNode*> l;
204
205 l << m_d->attachsep
206 << m_d->material
207 << m_d->sep
208 << m_d->barrelcylshape
209 << m_d->endcapinnershape
210 << m_d->endcapoutershape
211 << m_d->endcapzasrcylshape
212 << m_d->sep_barrel_central
213 << m_d->sep_barrel_pos
214 << m_d->sep_barrel_neg
215 << m_d->sep_endcap_inner_pos
216 << m_d->sep_endcap_outer_pos
217 << m_d->sep_endcap_inner_neg
218 << m_d->sep_endcap_outer_neg
219 << m_d->sep_endcap_zasr_central
220 << m_d->sep_endcap_zasr_pos
221 << m_d->sep_endcap_zasr_neg;
222
223 for(SoNode* n : l)
224 if (n)
225 n->unref();
226
227 delete m_d;
228 messageVerbose("destructor end");
229}
void messageVerbose(const QString &) const
l
Printing final latex table to .tex output file.

◆ ProjectionSurfacesHelper()

ProjectionSurfacesHelper::ProjectionSurfacesHelper ( double surfacethickness,
double barrel_inner_radius,
double barrel_outer_radius,
double barrel_posneg_z,
double endcap_surface_z,
double endcap_surface_length,
double endcap_inner_radius,
double endcap_outer_radius,
double endcap_zasr_disttobarrelcyl,
double endcap_zasr_squeezefact,
SoMaterial * mat,
SoSeparator * attachsep,
QObject * parent,
IVP1System * sys )
private

Definition at line 155 of file ProjectionSurfacesHelper.cxx.

166 : QObject(parent), VP1HelperClassBase(sys,"ProjectionSurfacesHelper"), m_d(new Imp(this,attachsep))
167{
168 m_d->material = mat;
169 if (m_d->material)
170 m_d->material->ref();
171 m_d->sep = 0;
172 m_d->barrelcylshape = 0;
173 m_d->endcapinnershape = 0;
174 m_d->endcapoutershape = 0;
175 m_d->endcapzasrcylshape = 0;
176 m_d->sep_barrel_central = 0;
177 m_d->sep_barrel_pos = 0;
178 m_d->sep_barrel_neg = 0;
179 m_d->sep_endcap_inner_pos = 0;
180 m_d->sep_endcap_outer_pos = 0;
181 m_d->sep_endcap_inner_neg = 0;
182 m_d->sep_endcap_outer_neg = 0;
183 m_d->sep_endcap_zasr_central = 0;
184 m_d->sep_endcap_zasr_pos = 0;
185 m_d->sep_endcap_zasr_neg = 0;
186
187 m_d->surfacethickness = surfacethickness;
188 m_d->barrel_inner_radius = barrel_inner_radius;
189 m_d->barrel_outer_radius = barrel_outer_radius;
190 m_d->barrel_posneg_z = barrel_posneg_z;
191 m_d->endcap_surface_z = endcap_surface_z;
192 m_d->endcap_surface_length = endcap_surface_length;
193 m_d->endcap_inner_radius = endcap_inner_radius;
194 m_d->endcap_outer_radius = endcap_outer_radius;
195 m_d->endcap_zasr_disttobarrelcyl = endcap_zasr_disttobarrelcyl;
196 m_d->endcap_zasr_squeezefact = endcap_zasr_squeezefact;
197}
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")

Member Function Documentation

◆ createPixelHelper()

ProjectionSurfacesHelper * ProjectionSurfacesHelper::createPixelHelper ( SoMaterial * mat,
SoSeparator * attachsep,
QObject * parent = 0,
IVP1System * sys = 0 )
static

Definition at line 16 of file ProjectionSurfacesHelper.cxx.

20{
31 mat, attachsep, parent,sys );
32}
static double pixel_endcap_outer_radius()
static double pixel_barrel_outer_radius()
static double pixel_endcap_zasr_disttobarrelcyl()
static double surfacethickness()
static double pixel_barrel_posneg_z()
static double pixel_endcap_inner_radius()
static double pixel_endcap_zasr_squeezefact()
static double pixel_barrel_inner_radius()
static double pixel_endcap_surface_length()
static double pixel_endcap_surface_z()
ProjectionSurfacesHelper(double surfacethickness, double barrel_inner_radius, double barrel_outer_radius, double barrel_posneg_z, double endcap_surface_z, double endcap_surface_length, double endcap_inner_radius, double endcap_outer_radius, double endcap_zasr_disttobarrelcyl, double endcap_zasr_squeezefact, SoMaterial *, SoSeparator *attachsep, QObject *parent, IVP1System *sys)

◆ createSCTHelper()

ProjectionSurfacesHelper * ProjectionSurfacesHelper::createSCTHelper ( SoMaterial * mat,
SoSeparator * attachsep,
QObject * parent = 0,
IVP1System * sys = 0 )
static

Definition at line 35 of file ProjectionSurfacesHelper.cxx.

39{
50 mat, attachsep, parent,sys );
51}
static double sct_barrel_inner_radius()
static double sct_endcap_zasr_squeezefact()
static double sct_endcap_surface_z()
static double sct_endcap_surface_length()
static double sct_endcap_outer_radius()
static double sct_endcap_zasr_disttobarrelcyl()
static double sct_barrel_posneg_z()
static double sct_endcap_inner_radius()
static double sct_barrel_outer_radius()

◆ createTRTHelper()

ProjectionSurfacesHelper * ProjectionSurfacesHelper::createTRTHelper ( SoMaterial * mat,
SoSeparator * attachsep,
QObject * parent = 0,
IVP1System * sys = 0 )
static

Definition at line 54 of file ProjectionSurfacesHelper.cxx.

58{
69 mat, attachsep, parent,sys );
70}
static double trt_endcap_surface_z()
static double trt_barrel_posneg_z()
static double trt_endcap_inner_radius()
static double trt_endcap_surface_length()
static double trt_endcap_zasr_squeezefact()
static double trt_barrel_outer_radius()
static double trt_endcap_zasr_disttobarrelcyl()
static double trt_endcap_outer_radius()
static double trt_barrel_inner_radius()

◆ helperClassName()

const QString & VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51{ return m_helpername; }

◆ material()

SoMaterial * ProjectionSurfacesHelper::material ( )

Definition at line 366 of file ProjectionSurfacesHelper.cxx.

367{
368 if (VP1Msg::verbose())
369 messageVerbose("material");
370 return m_d->material;
371}
static bool verbose()
Definition VP1Msg.h:31

◆ message() [1/3]

void VP1HelperClassBase::message ( const QString & str) const
inherited

Definition at line 49 of file VP1HelperClassBase.cxx.

50{
51 if (m_helpername.isEmpty()) {
52 if (m_system)
53 m_system->message(str);
54 else
55 std::cout<<VP1Msg::prefix_msg()<<" [nameless helper class]: "<<str.toStdString()<<std::endl;
56 } else {
57 if (m_system)
58 m_system->message("["+m_helpername+"] " + str);
59 else
60 std::cout<<VP1Msg::prefix_msg()<<" ["<<m_helpername.toStdString()<<"]: "<<str.toStdString()<<std::endl;
61 }
62}
static const char * prefix_msg()
Definition VP1Msg.h:56
static QString str(const QString &s)
Definition VP1String.h:49

◆ message() [2/3]

void VP1HelperClassBase::message ( const QString & addtostart,
const QStringList & l,
const QString & addtoend = "" ) const
inherited

Definition at line 131 of file VP1HelperClassBase.cxx.

132{
133 if (addtostart.isEmpty()) {
134 message(l,addtoend);
135 return;
136 }
137 if (addtoend.isEmpty()) {
138 for (const QString& s : l)
139 message(addtostart+s);
140 } else {
141 for (const QString& s : l)
142 message(addtostart+s+addtoend);
143 }
144}
void message(const QString &) const

◆ message() [3/3]

void VP1HelperClassBase::message ( const QStringList & l,
const QString & addtoend = "" ) const
inherited

Definition at line 91 of file VP1HelperClassBase.cxx.

92{
93 if (addtoend.isEmpty()) {
94 for (const QString& s : l)
95 message(s);
96 } else {
97 for (const QString& s : l)
98 message(s+addtoend);
99 }
100}

◆ messageDebug() [1/3]

void VP1HelperClassBase::messageDebug ( const QString & str) const
inherited

Definition at line 65 of file VP1HelperClassBase.cxx.

66{
67 if (!VP1Msg::debug())
68 return;
69 std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
70 if (m_helpername.isEmpty()) {
71 std::cout<<VP1Msg::prefix_debug()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
72 } else {
73 std::cout<<VP1Msg::prefix_debug()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
74 }
75}
static bool debug()
Definition VP1Msg.h:32
static const char * prefix_debug()
Definition VP1Msg.h:57

◆ messageDebug() [2/3]

void VP1HelperClassBase::messageDebug ( const QString & addtostart,
const QStringList & l,
const QString & addtoend = "" ) const
inherited

Definition at line 147 of file VP1HelperClassBase.cxx.

148{
149 if (!VP1Msg::debug())
150 return;
151 if (addtostart.isEmpty()) {
152 messageDebug(l,addtoend);
153 return;
154 }
155 if (addtoend.isEmpty()) {
156 for (const QString& s : l)
157 messageDebug(addtostart+s);
158 } else {
159 for (const QString& s : l)
160 messageDebug(addtostart+s+addtoend);
161 }
162}
void messageDebug(const QString &) const

◆ messageDebug() [3/3]

void VP1HelperClassBase::messageDebug ( const QStringList & l,
const QString & addtoend = "" ) const
inherited

Definition at line 103 of file VP1HelperClassBase.cxx.

104{
105 if (!VP1Msg::debug())
106 return;
107 if (addtoend.isEmpty()) {
108 for (const QString& s : l)
109 messageDebug(s);
110 } else {
111 for (const QString& s : l)
112 messageDebug(s+addtoend);
113 }
114}

◆ messageVerbose() [1/3]

void VP1HelperClassBase::messageVerbose ( const QString & str) const
inherited

Definition at line 78 of file VP1HelperClassBase.cxx.

79{
80 if (!VP1Msg::verbose())
81 return;
82 std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
83 if (m_helpername.isEmpty()) {
84 std::cout<<VP1Msg::prefix_verbose()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
85 } else {
86 std::cout<<VP1Msg::prefix_verbose()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
87 }
88}
static const char * prefix_verbose()
Definition VP1Msg.h:59

◆ messageVerbose() [2/3]

void VP1HelperClassBase::messageVerbose ( const QString & addtostart,
const QStringList & l,
const QString & addtoend = "" ) const
inherited

Definition at line 165 of file VP1HelperClassBase.cxx.

166{
167 if (!VP1Msg::verbose())
168 return;
169 if (addtostart.isEmpty()) {
170 messageVerbose(l,addtoend);
171 return;
172 }
173 if (addtoend.isEmpty()) {
174 for (const QString& s : l)
175 messageVerbose(addtostart+s);
176 } else {
177 for (const QString& s : l)
178 messageVerbose(addtostart+s+addtoend);
179 }
180}

◆ messageVerbose() [3/3]

void VP1HelperClassBase::messageVerbose ( const QStringList & l,
const QString & addtoend = "" ) const
inherited

Definition at line 117 of file VP1HelperClassBase.cxx.

118{
119 if (!VP1Msg::verbose())
120 return;
121 if (addtoend.isEmpty()) {
122 for (const QString& s : l)
124 } else {
125 for (const QString& s : l)
126 messageVerbose(s+addtoend);
127 }
128}

◆ setHelperClassName()

void VP1HelperClassBase::setHelperClassName ( const QString & n)
inlineprotectedinherited

Definition at line 59 of file VP1HelperClassBase.h.

59{ m_helpername = n; }

◆ setSurfaces

void ProjectionSurfacesHelper::setSurfaces ( InDetProjFlags::InDetProjPartsFlags newparts)
slot

Definition at line 240 of file ProjectionSurfacesHelper.cxx.

241{
242 messageVerbose("setSurfaces");
243 if (m_d->parts==newparts)
244 return;
245 messageVerbose("setSurfaces - changed");
246 InDetProjFlags::InDetProjPartsFlags changedparts(m_d->parts ^ newparts);
247 m_d->parts = newparts;
248 bool save = m_d->attachsep->enableNotify(false);
249
251
252 if (changedparts&InDetProjFlags::BarrelPositive) {
253 if (newparts&InDetProjFlags::BarrelPositive) {
254 if (!m_d->sep_barrel_pos)
255 m_d->initPartsSep(m_d->barrel_posneg_z,m_d->sep_barrel_pos,m_d->barrelCylShape());
256 m_d->ensureAttached(m_d->sep_barrel_pos);
257 } else {
258 m_d->ensureDetached(m_d->sep_barrel_pos);
259 }
260 }
261 if (changedparts&InDetProjFlags::BarrelNegative) {
262 if (newparts&InDetProjFlags::BarrelNegative) {
263 if (!m_d->sep_barrel_neg)
264 m_d->initPartsSep(-m_d->barrel_posneg_z,m_d->sep_barrel_neg,m_d->barrelCylShape());
265 m_d->ensureAttached(m_d->sep_barrel_neg);
266 } else {
267 m_d->ensureDetached(m_d->sep_barrel_neg);
268 }
269 }
270 if (changedparts&InDetProjFlags::BarrelCentral) {
271 if (newparts&InDetProjFlags::BarrelCentral) {
272 if (!m_d->sep_barrel_central)
273 m_d->initPartsSep(0.0,m_d->sep_barrel_central,m_d->barrelCylShape());
274 m_d->ensureAttached(m_d->sep_barrel_central);
275 } else {
276 m_d->ensureDetached(m_d->sep_barrel_central);
277 }
278 }
279 if (changedparts&InDetProjFlags::EndCapInnerPositive) {
281 if (!m_d->sep_endcap_inner_pos)
282 m_d->initPartsSep(m_d->endcap_surface_z,m_d->sep_endcap_inner_pos,m_d->endcapInnerShape());
283 m_d->ensureAttached(m_d->sep_endcap_inner_pos);
284 } else {
285 m_d->ensureDetached(m_d->sep_endcap_inner_pos);
286 }
287 }
288 if (changedparts&InDetProjFlags::EndCapOuterPositive) {
290 if (!m_d->sep_endcap_outer_pos)
291 m_d->initPartsSep(m_d->endcap_surface_z,m_d->sep_endcap_outer_pos,m_d->endcapOuterShape());
292 m_d->ensureAttached(m_d->sep_endcap_outer_pos);
293 } else {
294 m_d->ensureDetached(m_d->sep_endcap_outer_pos);
295 }
296 }
297 if (changedparts&InDetProjFlags::EndCapInnerNegative) {
299 if (!m_d->sep_endcap_inner_neg)
300 m_d->initPartsSep(-m_d->endcap_surface_z,m_d->sep_endcap_inner_neg,m_d->endcapInnerShape());
301 m_d->ensureAttached(m_d->sep_endcap_inner_neg);
302 } else {
303 m_d->ensureDetached(m_d->sep_endcap_inner_neg);
304 }
305 }
306 if (changedparts&InDetProjFlags::EndCapOuterNegative) {
308 if (!m_d->sep_endcap_outer_neg)
309 m_d->initPartsSep(-m_d->endcap_surface_z,m_d->sep_endcap_outer_neg,m_d->endcapOuterShape());
310 m_d->ensureAttached(m_d->sep_endcap_outer_neg);
311 } else {
312 m_d->ensureDetached(m_d->sep_endcap_outer_neg);
313 }
314 }
315 if (changedparts&InDetProjFlags::TRT_EndCapZToRCentral) {
317 if (!m_d->sep_endcap_zasr_central)
318 m_d->initPartsSep(0.0,m_d->sep_endcap_zasr_central,m_d->endcapZAsRCylShape());
319 m_d->ensureAttached(m_d->sep_endcap_zasr_central);
320 } else {
321 m_d->ensureDetached(m_d->sep_endcap_zasr_central);
322 }
323 }
326 if (!m_d->sep_endcap_zasr_pos)
327 m_d->initPartsSep(m_d->barrel_posneg_z,m_d->sep_endcap_zasr_pos,m_d->endcapZAsRCylShape());
328 m_d->ensureAttached(m_d->sep_endcap_zasr_pos);
329 } else {
330 m_d->ensureDetached(m_d->sep_endcap_zasr_pos);
331 }
332 }
335 if (!m_d->sep_endcap_zasr_neg)
336 m_d->initPartsSep(-m_d->barrel_posneg_z,m_d->sep_endcap_zasr_neg,m_d->endcapZAsRCylShape());
337 m_d->ensureAttached(m_d->sep_endcap_zasr_neg);
338 } else {
339 m_d->ensureDetached(m_d->sep_endcap_zasr_neg);
340 }
341 }
342
344 m_d->attachsep->enableNotify(save);
345 if (save)
346 m_d->attachsep->touch();
347 messageVerbose("setSurfaces - changed end");
348}

◆ setSystemBasePointer()

void VP1HelperClassBase::setSystemBasePointer ( IVP1System * sys)
inherited

Definition at line 197 of file VP1HelperClassBase.cxx.

198{
199 m_system = sys;
200 if (VP1Msg::verbose()){
201 vp1helperclassbase_instanceMap[this] = (m_system?m_system->name():QString(""));
202 }
203}
static std::map< VP1HelperClassBase *, QString > vp1helperclassbase_instanceMap

◆ shownParts()

InDetProjFlags::InDetProjPartsFlags ProjectionSurfacesHelper::shownParts ( ) const

Definition at line 232 of file ProjectionSurfacesHelper.cxx.

233{
234 if (VP1Msg::verbose())
235 messageVerbose("shownParts");
236 return m_d->parts;
237}

◆ str() [1/30]

QString VP1String::str ( const Amg::Vector3D & t)
inlinestaticinherited

Definition at line 98 of file VP1String.h.

98{ return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [2/30]

QString VP1String::str ( const bool b)
inlinestaticinherited

Definition at line 53 of file VP1String.h.

53{ return b?"True":"False"; }

◆ str() [3/30]

QString VP1String::str ( const char * c)
inlinestaticinherited

Definition at line 50 of file VP1String.h.

50{ return c; }

◆ str() [4/30]

QString VP1String::str ( const double & d)
inlinestaticinherited

Definition at line 81 of file VP1String.h.

81{ return QString::number(d); }

◆ str() [5/30]

QString VP1String::str ( const float & f)
inlinestaticinherited

Definition at line 82 of file VP1String.h.

82{ return QString::number(f); }

◆ str() [6/30]

template<class T>
QString VP1String::str ( const HepGeom::BasicVector3D< T > & t)
inlinestaticinherited

Definition at line 95 of file VP1String.h.

95{ return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [7/30]

QString VP1String::str ( const QColor & c)
staticinherited

Definition at line 30 of file VP1String.cxx.

31{
32 return c.isValid() ? c.name() : "Invalid";
33}

◆ str() [8/30]

template<class T>
QString VP1String::str ( const QFlags< T > & f)
inlinestaticinherited

Definition at line 91 of file VP1String.h.

91{ return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }

◆ str() [9/30]

template<class T>
QString VP1String::str ( const QList< T > & t)
inlinestaticinherited

Definition at line 102 of file VP1String.h.

102{ return "QList of size"+QString::number(t.size()); }

◆ str() [10/30]

QString VP1String::str ( const QString & s)
inlinestaticinherited

Definition at line 49 of file VP1String.h.

49{ return s; }

◆ str() [11/30]

QString VP1String::str ( const SbColor & c)
staticinherited

Definition at line 36 of file VP1String.cxx.

37{
39}
static QColor sbcol2qcol(const SbColor &)

◆ str() [12/30]

QString VP1String::str ( const SbVec2d & v)
staticinherited

Definition at line 61 of file VP1String.cxx.

61{ double x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }
#define y
#define x

◆ str() [13/30]

QString VP1String::str ( const SbVec2f & v)
staticinherited

Definition at line 62 of file VP1String.cxx.

62{ float x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [14/30]

QString VP1String::str ( const SbVec2s & v)
staticinherited

Definition at line 63 of file VP1String.cxx.

63{ short x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [15/30]

QString VP1String::str ( const SbVec3d & v)
staticinherited

Definition at line 64 of file VP1String.cxx.

64{ double x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }
#define z

◆ str() [16/30]

QString VP1String::str ( const SbVec3f & v)
staticinherited

Definition at line 65 of file VP1String.cxx.

65{ float x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [17/30]

QString VP1String::str ( const SbVec3s & v)
staticinherited

Definition at line 66 of file VP1String.cxx.

66{ short x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [18/30]

QString VP1String::str ( const SbVec4d & v)
staticinherited

Definition at line 67 of file VP1String.cxx.

67{ double x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [19/30]

QString VP1String::str ( const SbVec4f & v)
staticinherited

Definition at line 68 of file VP1String.cxx.

68{ float x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [20/30]

template<class T>
QString VP1String::str ( const T * t)
inlinestaticinherited

Definition at line 87 of file VP1String.h.

87{ return str(static_cast<const void* >(t)); }

◆ str() [21/30]

QString VP1String::str ( const void * p)
staticinherited

Definition at line 48 of file VP1String.cxx.

49{
50 if (p) {
51 std::ostringstream s;
52 s << p;
53 // Explicitly naming QString here avoids a cppcheck warning.
54 return QString (s.str().c_str());
55 } else {
56 return "NULL";
57 }
58}

◆ str() [22/30]

QString VP1String::str ( const VP1Interval & i)
staticinherited

Definition at line 42 of file VP1String.cxx.

43{
44 return i.toString();
45}

◆ str() [23/30]

QString VP1String::str ( int n)
inlinestaticinherited

Definition at line 77 of file VP1String.h.

77{ return QString::number(n); }

◆ str() [24/30]

QString VP1String::str ( long n)
inlinestaticinherited

Definition at line 75 of file VP1String.h.

75{ return QString::number(n); }

◆ str() [25/30]

QString VP1String::str ( qlonglong n)
inlinestaticinherited

Definition at line 79 of file VP1String.h.

79{ return QString::number(n); }

◆ str() [26/30]

QString VP1String::str ( qulonglong n)
inlinestaticinherited

Definition at line 80 of file VP1String.h.

80{ return QString::number(n); }

◆ str() [27/30]

QString VP1String::str ( short int n)
inlinestaticinherited

Definition at line 73 of file VP1String.h.

73{ return QString::number(n); }

◆ str() [28/30]

QString VP1String::str ( uint n)
inlinestaticinherited

Definition at line 78 of file VP1String.h.

78{ return QString::number(n); }

◆ str() [29/30]

QString VP1String::str ( ulong n)
inlinestaticinherited

Definition at line 76 of file VP1String.h.

76{ return QString::number(n); }

◆ str() [30/30]

QString VP1String::str ( unsigned short int n)
inlinestaticinherited

Definition at line 74 of file VP1String.h.

74{ return QString::number(n); }

◆ systemBase()

IVP1System * VP1HelperClassBase::systemBase ( ) const
inlineinherited

Definition at line 50 of file VP1HelperClassBase.h.

50{ return m_system; }

◆ verbose()

bool VP1HelperClassBase::verbose ( )
inlinestaticinherited

Definition at line 32 of file VP1HelperClassBase.h.

32{ return s_vp1verbose; } // Returns true if env var VP1_VERBOSE_OUTPUT=1
static const bool s_vp1verbose

◆ warnUndeletedInstances()

void VP1HelperClassBase::warnUndeletedInstances ( )
staticinherited

Definition at line 183 of file VP1HelperClassBase.cxx.

184{
186 return;
187 std::cout << "WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<" undeleted helper class instances:"<<std::endl;
188
189 std::map<VP1HelperClassBase*,QString>::iterator it,itE(vp1helperclassbase_instanceMap.end());
190 for (it = vp1helperclassbase_instanceMap.begin();it!=itE;++it) {
191 std::cout << " ==> "<<it->first<<": "<<it->first->m_helpername.toStdString()
192 << (it->second.isEmpty()?QString(""):" (in system "+it->second+")").toStdString()<<std::endl;
193 }
194}

Member Data Documentation

◆ m_d

Imp* ProjectionSurfacesHelper::m_d
private

Definition at line 69 of file ProjectionSurfacesHelper.h.

◆ m_helpername

QString VP1HelperClassBase::m_helpername
privateinherited

Definition at line 67 of file VP1HelperClassBase.h.

◆ m_system

IVP1System* VP1HelperClassBase::m_system
privateinherited

Definition at line 68 of file VP1HelperClassBase.h.

◆ s_vp1verbose

const bool VP1HelperClassBase::s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
staticprivateinherited

Definition at line 69 of file VP1HelperClassBase.h.


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