test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual float length() const { return 1000000.; }
14  virtual float width() const { return 1000000.; }
15  virtual float thickness() const { return 1000000.; }
16 
17  // basic bounds function
18 
19  using Bounds::inside;
20 
21  virtual bool inside( const Local3DPoint& p ) const { return true;}
22 
23  virtual bool inside( const Local3DPoint& p,
24  const LocalError& err, float scale) const { return true;}
25 
26  virtual bool inside( const Local2DPoint& p,
27  const LocalError& err, float scale) const { return true;}
28 
29  virtual Bounds* clone() const { 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 
virtual float length() const
Definition: OpenBounds.h:13
virtual bool inside(const Local3DPoint &p) const
Determine if the point is inside the bounds.
Definition: OpenBounds.h:21
virtual bool inside(const Local3DPoint &p, const LocalError &err, float scale) const
Determine if a point is inside the bounds, taking error into account.
Definition: OpenBounds.h:23
virtual bool inside(const Local3DPoint &) const =0
Determine if the point is inside the bounds.
virtual Bounds * clone() const
Definition: OpenBounds.h:29
virtual bool inside(const Local2DPoint &p, const LocalError &err, float scale) const
Determine if a 2D point is inside the bounds, taking error into account.
Definition: OpenBounds.h:26
virtual float width() const
Definition: OpenBounds.h:14
virtual float thickness() const
Definition: OpenBounds.h:15
Unlimited (trivial) bounds.
Definition: OpenBounds.h:10
Definition: Bounds.h:22