ATLAS Offline Software
Loading...
Searching...
No Matches
VP1Floor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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>
24class SoSeparator;
25
26class VP1Floor : public QObject, public VP1HelperClassBase {
27
28 Q_OBJECT
29
30public:
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( const 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
41public 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
49private:
50 class Imp;
52
53};
54
55#endif
const int nmax(200)
void setVerticalPosition(const double &)
Definition VP1Floor.cxx:215
VP1Floor(SoSeparator *attachsep, IVP1System *sys, QObject *parent=0)
Definition VP1Floor.cxx:66
void setExtent(const double &)
Definition VP1Floor.cxx:193
static bool calcParsFromExtentAndSpacing(const VP1HelperClassBase *, const double &extent, const double &spacing, const int &nmaxlimit, int &nmax, double &distmax)
Definition VP1Floor.cxx:30
virtual ~VP1Floor()
Definition VP1Floor.cxx:73
void setShown(bool)
Definition VP1Floor.cxx:165
static int nMax()
Definition VP1Floor.h:33
void setSpacing(const double &)
Definition VP1Floor.cxx:204
void setColourAndTransp(const SbColor4f &)
Definition VP1Floor.cxx:182
Imp * m_d
Definition VP1Floor.h:51
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")