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 
19 class Disk GCC11_FINAL : public Plane {
20 public:
21 
22  /*
23  template<typename... Args>
24  Disk(Args&& ... args) :
25  Plane(std::forward<Args>(args)...){}
26  */
27 
28  Disk(const PositionType& pos, const RotationType& rot, SimpleDiskBounds * bounds) :
29  Plane(pos,rot, bounds){}
30 
31  Disk(const PositionType& pos, const RotationType& rot, SimpleDiskBounds const & bounds) :
32  Plane(pos,rot, bounds.clone()){}
33 
38 
39  template<typename... Args>
40  static DiskPointer build(Args&& ... args) {
41  return DiskPointer(new Disk(std::forward<Args>(args)...));
42  }
43 
44 
45  virtual ~Disk() {}
46 
47 
48  // -- DEPRECATED CONSTRUCTORS
49 
50 
51 
52  // -- Extension of the Surface interface for disk
53 
55  float innerRadius() const { return static_cast<const SimpleDiskBounds&>(bounds()).innerRadius();}
56 
58  float outerRadius() const { return static_cast<const SimpleDiskBounds&>(bounds()).outerRadius();}
59 
60 
61 };
62 using BoundDisk=Disk;
63 
64 #endif // Geom_BoundDisk_H
ConstReferenceCountingPointer< Disk > ConstBoundDiskPointer
Definition: BoundDisk.h:37
static DiskPointer build(Args &&...args)
Definition: BoundDisk.h:40
ReferenceCountingPointer< Disk > DiskPointer
Definition: BoundDisk.h:34
Disk(const PositionType &pos, const RotationType &rot, SimpleDiskBounds *bounds)
Definition: BoundDisk.h:28
const Bounds & bounds() const
Definition: Surface.h:128
float outerRadius() const
The outer radius of the disk.
Definition: BoundDisk.h:58
ConstReferenceCountingPointer< Disk > ConstDiskPointer
Definition: BoundDisk.h:35
Definition: Plane.h:17
Disk(const PositionType &pos, const RotationType &rot, SimpleDiskBounds const &bounds)
Definition: BoundDisk.h:31
Point3DBase< Scalar, GlobalTag > PositionType
Definition: Definitions.h:30
float innerRadius() const
The inner radius of the disk.
Definition: BoundDisk.h:55
virtual ~Disk()
Definition: BoundDisk.h:45
ReferenceCountingPointer< Disk > BoundDiskPointer
Definition: BoundDisk.h:36
dictionary args
tuple clone
Definition: statics.py:58
Unlimited (trivial) bounds.