CMS 3D CMS Logo

OpenBounds.h
Go to the documentation of this file.
1 #ifndef Geom_OpenBounds_H
2 #define Geom_OpenBounds_H
3 
6 
8 
9 class OpenBounds final : public Bounds {
10 public:
11  float length() const override { return 1000000.; }
12  float width() const override { return 1000000.; }
13  float thickness() const override { return 1000000.; }
14 
15  // basic bounds function
16 
17  using Bounds::inside;
18 
19  bool inside(const Local3DPoint& p) const override { return true; }
20 
21  bool inside(const Local3DPoint& p, const LocalError& err, float scale) const override { return true; }
22 
23  bool inside(const Local2DPoint& p, const LocalError& err, float scale) const override { return true; }
24 
25  Bounds* clone() const override { return new OpenBounds(); }
26 };
27 
28 #endif // Geom_OpenBounds_H
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
float thickness() const override
Definition: OpenBounds.h:13
bool inside(const Local2DPoint &p, const LocalError &err, float scale) const override
Determine if a 2D point is inside the bounds, taking error into account.
Definition: OpenBounds.h:23
float width() const override
Definition: OpenBounds.h:12
bool inside(const Local3DPoint &p, const LocalError &err, float scale) const override
Determine if a point is inside the bounds, taking error into account.
Definition: OpenBounds.h:21
Bounds * clone() const override
Definition: OpenBounds.h:25
Unlimited (trivial) bounds.
Definition: OpenBounds.h:9
float length() const override
Definition: OpenBounds.h:11
bool inside(const Local3DPoint &p) const override
Determine if the point is inside the bounds.
Definition: OpenBounds.h:19
Definition: Bounds.h:18