ATLAS Offline Software
Loading...
Searching...
No Matches
VP1MissingEtHandle.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7// //
8// Header file for class VP1MissingEtHandle //
9// //
10// Description: Handle for missing Et. //
11// //
12// Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13// Initial version: July 2008 //
14// Updated: July 2010 by Giorgi Gvaberidze(ggvaberi@cern.ch) //
16
17#ifndef VP1MISSINGETHANDLE_H
18#define VP1MISSINGETHANDLE_H
19
21
22#include <Inventor/nodes/SoGroup.h>
23#include <Inventor/nodes/SoCylinder.h>
24#include <Inventor/nodes/SoLineSet.h>
25#include <Inventor/nodes/SoCoordinate3.h>
26#include <Inventor/nodes/SoDrawStyle.h>
27
28class SoPath;
29class MissingET;
30
31//updated: for prevent loading zero length system
32//must be changed in future, for set more correct value.
33#define MISSINGET_ZERO 0.0001
34#define MISSINGET_ZEROLENGTH(x) (x < MISSINGET_ZERO)?(true):(false)
35
37public:
38
39 static QList<VP1StdCollection*> createCollections(IVP1System*sys);
40
41 VP1MissingEtHandle(IVP1System*sys,const QString& key);
42 virtual ~VP1MissingEtHandle();
43
44 virtual QStringList clicked(SoPath*) const;
45protected:
46 const QString& key() const;
47 virtual QString provideText() const;
48 virtual QString provideSection() const;
49 virtual QString provideSectionToolTip() const;
50 virtual QString checkBoxToolTip() const { return "MissingET object with key "+key(); }
51 void assignDefaultMaterial(SoMaterial*) const;
52 virtual bool load();
53 void addArrowToCollSep(const MissingET*);
54 void truncateToCollSep(SoPath*) const;
55 QStringList baseInfo(const MissingET*) const;
56 virtual QColor baseCol() const;
57 virtual qint32 provideCollTypeID() const { return 2; }
58 virtual QByteArray providePersistifiableID() const;
59
60private:
61 class Imp;
63
64 //updated: added for pivot
65 SoGroup *m_base, *m_arrow, *m_dash;
66 double m_length, m_phi;
67
68public:
69 static double thickness;
70 static double scale;
71 static bool shape;
72
73 static void useThickness(double);
74 static void useScale(double);
75 static void useShape(bool);
76public:
77 void refresh();
78 //-------------------
79};
80
81#endif
virtual qint32 provideCollTypeID() const
const QString & key() const
virtual QColor baseCol() const
virtual QString checkBoxToolTip() const
static void useThickness(double)
QStringList baseInfo(const MissingET *) const
virtual QString provideText() const
virtual QStringList clicked(SoPath *) const
static void useShape(bool)
VP1MissingEtHandle(IVP1System *sys, const QString &key)
virtual QByteArray providePersistifiableID() const
virtual QString provideSection() const
void truncateToCollSep(SoPath *) const
virtual QString provideSectionToolTip() const
void assignDefaultMaterial(SoMaterial *) const
void addArrowToCollSep(const MissingET *)
static void useScale(double)
static QList< VP1StdCollection * > createCollections(IVP1System *sys)
VP1StdCollection(IVP1System *, const QString &helperClassName)