CMS 3D CMS Logo

OpenBounds.h
Go to the documentation of this file.
1 #ifndef Geom_OpenBounds_H
2 #define Geom_OpenBounds_H
3 
4 
7 
9 
10 class OpenBounds final : public Bounds {
11 public:
12 
13  float length() const override { return 1000000.; }
14  float width() const override { return 1000000.; }
15  float thickness() const override { return 1000000.; }
16 
17  // basic bounds function
18 
19  using Bounds::inside;
20 
21  bool inside( const Local3DPoint& p ) const override { return true;}
22 
23  bool inside( const Local3DPoint& p,
24  const LocalError& err, float scale) const override { return true;}
25 
26  bool inside( const Local2DPoint& p,
27  const LocalError& err, float scale) const override { return true;}
28 
29  Bounds* clone() const override { return new OpenBounds();}
30 
31 };
32 
33 
34 #endif // Geom_OpenBounds_H
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
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:26
float thickness() const override
Definition: OpenBounds.h:15
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:23
float width() const override
Definition: OpenBounds.h:14
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
Bounds * clone() const override
Definition: OpenBounds.h:29
bool inside(const Local3DPoint &p) const override
Determine if the point is inside the bounds.
Definition: OpenBounds.h:21
Unlimited (trivial) bounds.
Definition: OpenBounds.h:10
Definition: Bounds.h:22
float length() const override
Definition: OpenBounds.h:13