CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RectangularPlaneBounds.h
Go to the documentation of this file.
1 #ifndef Geom_RectangularPlaneBounds_H
2 #define Geom_RectangularPlaneBounds_H
3 
4 
7 
8 
15 public:
16 
19  RectangularPlaneBounds( float w, float h, float t);
20 
22  virtual float length() const { return 2*halfLength;}
24  virtual float width() const { return 2*halfWidth;}
26  virtual float thickness() const { return 2*halfThickness;}
27 
28  // basic bounds function
29  virtual bool inside( const Local2DPoint& p) const;
30 
31  virtual bool inside( const Local3DPoint& p) const;
32 
33  virtual bool inside(const Local2DPoint& p, float tollerance) const;
34 
35 
36  virtual bool inside( const Local3DPoint& p, const LocalError& err,
37  float scale=1.) const;
38 
39  virtual bool inside( const Local2DPoint& p, const LocalError& err, float scale=1.) const;
40 
41  virtual Bounds* clone() const;
42 
43 private:
44  float halfWidth;
45  float halfLength;
47 
48 };
49 
50 #endif
virtual float thickness() const
Thickness of the volume in local Z.
virtual Bounds * clone() const
RectangularPlaneBounds(float w, float h, float t)
virtual float width() const
Width along local X.
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
virtual bool inside(const Local2DPoint &p) const
virtual float length() const
Lenght along local Y.
Definition: Bounds.h:18
T w() const