CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BoundDisk.h
Go to the documentation of this file.
1 #ifndef Geom_BoundDisk_H
2 #define Geom_BoundDisk_H
3 
6 
21 class Disk GCC11_FINAL : public Plane {
22 public:
23 
24  /*
25  template<typename... Args>
26  Disk(Args&& ... args) :
27  Plane(std::forward<Args>(args)...){}
28  */
29 
30  Disk(const PositionType& pos, const RotationType& rot, SimpleDiskBounds * bounds) :
31  Plane(pos,rot, bounds){}
32 
33  Disk(const PositionType& pos, const RotationType& rot, SimpleDiskBounds const & bounds) :
34  Plane(pos,rot, bounds.clone()){}
35 
40 
41  template<typename... Args>
42  static DiskPointer build(Args&& ... args) {
43  return DiskPointer(new Disk(std::forward<Args>(args)...));
44  }
45 
46 
47  virtual ~Disk() {}
48 
49 
50  // -- DEPRECATED CONSTRUCTORS
51 
52 
53 
54  // -- Extension of the Surface interface for disk
55 
57  float innerRadius() const { return static_cast<const SimpleDiskBounds&>(bounds()).innerRadius();}
58 
60  float outerRadius() const { return static_cast<const SimpleDiskBounds&>(bounds()).outerRadius();}
61 
62 
63 };
64 using BoundDisk=Disk;
65 
66 #endif // Geom_BoundDisk_H
ConstReferenceCountingPointer< Disk > ConstBoundDiskPointer
Definition: BoundDisk.h:39
static DiskPointer build(Args &&...args)
Definition: BoundDisk.h:42
ReferenceCountingPointer< Disk > DiskPointer
Definition: BoundDisk.h:36
Disk(const PositionType &pos, const RotationType &rot, SimpleDiskBounds *bounds)
Definition: BoundDisk.h:30
const Bounds & bounds() const
Definition: Surface.h:128
float outerRadius() const
The outer radius of the disk.
Definition: BoundDisk.h:60
ConstReferenceCountingPointer< Disk > ConstDiskPointer
Definition: BoundDisk.h:37
Definition: Plane.h:17
Disk(const PositionType &pos, const RotationType &rot, SimpleDiskBounds const &bounds)
Definition: BoundDisk.h:33
Point3DBase< Scalar, GlobalTag > PositionType
Definition: Definitions.h:30
float innerRadius() const
The inner radius of the disk.
Definition: BoundDisk.h:57
virtual ~Disk()
Definition: BoundDisk.h:47
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
ReferenceCountingPointer< Disk > BoundDiskPointer
Definition: BoundDisk.h:38
dictionary args
Unlimited (trivial) bounds.