ATLAS Offline Software
VP1Floor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1Floor //
9 // //
10 // Description: Helper class providing a floor. //
11 // //
12 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13 // Initial version: July 2008 //
14 // //
16 
17 #ifndef VP1FLOOR_H
18 #define VP1FLOOR_H
19 
21 #include <QObject>
22 #include <Inventor/C/errors/debugerror.h>
23 #include <Inventor/SbColor4f.h>
24 class SoSeparator;
25 
26 class VP1Floor : public QObject, public VP1HelperClassBase {
27 
28  Q_OBJECT
29 
30 public:
31 
32  //Static methods used in various places. Put it here to avoid copying code:
33  static int nMax() { return 400; }
34  static bool calcParsFromExtentAndSpacing( VP1HelperClassBase*,const double& extent, const double& spacing,
35  const int& nmaxlimit, int& nmax, double& distmax );
36 
37  VP1Floor( SoSeparator * attachsep,//where the floor separator will attach itself when visible
38  IVP1System * sys,QObject * parent = 0);
39  virtual ~VP1Floor();
40 
41 public Q_SLOTS:
42 
43  void setShown(bool);//will attach/detach itself from attachsep depending on this
44  void setColourAndTransp(const SbColor4f&);
45  void setExtent(const double&);//A negative value means that negative parts will be shown as well
46  void setSpacing(const double&);
47  void setVerticalPosition(const double&);
48 
49 private:
50  class Imp;
51  Imp * m_d;
52 
53 };
54 
55 #endif
VP1Floor::m_d
Imp * m_d
Definition: VP1Floor.h:50
VP1Floor::setColourAndTransp
void setColourAndTransp(const SbColor4f &)
Definition: VP1Floor.cxx:182
VP1Floor::Imp
Definition: VP1Floor.cxx:46
VP1Floor::nMax
static int nMax()
Definition: VP1Floor.h:33
VP1Floor::VP1Floor
VP1Floor(SoSeparator *attachsep, IVP1System *sys, QObject *parent=0)
Definition: VP1Floor.cxx:66
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
VP1Floor::setVerticalPosition
void setVerticalPosition(const double &)
Definition: VP1Floor.cxx:215
IVP1System
Definition: IVP1System.h:36
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1Floor::calcParsFromExtentAndSpacing
static bool calcParsFromExtentAndSpacing(VP1HelperClassBase *, const double &extent, const double &spacing, const int &nmaxlimit, int &nmax, double &distmax)
Definition: VP1Floor.cxx:30
VP1Floor
Definition: VP1Floor.h:26
VP1HelperClassBase
Definition: VP1HelperClassBase.h:28
VP1Floor::~VP1Floor
virtual ~VP1Floor()
Definition: VP1Floor.cxx:73
VP1Floor::setSpacing
void setSpacing(const double &)
Definition: VP1Floor.cxx:204
VP1HelperClassBase.h
VP1Floor::setExtent
void setExtent(const double &)
Definition: VP1Floor.cxx:193
VP1Floor::setShown
void setShown(bool)
Definition: VP1Floor.cxx:165
nmax
const int nmax(200)