![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
Representation of a 3D Cylinder volume. A Cylinder object inherits from a geoalgo::Line. More...
#include "GeoCylinder.h"
Public Member Functions | |
Cylinder () | |
Default constructor. More... | |
virtual | ~Cylinder () |
Default destructor. More... | |
Cylinder (double const x_min, double const y_min, double const z_min, double const x_max, double const y_max, double const z_max, double const radius) | |
Alternative ctor (0) More... | |
Cylinder (Point_t const &min, Vector_t const &max, double const radius) | |
Altenartive ctor (1) More... | |
bool | Contain (Point_t const &pt) const |
Containment evaluation. More... | |
double | GetRadius () |
Getters. More... | |
void | SetRadius (double r) |
Setters. More... | |
Point_t const & | Pt1 () const |
Start getter. More... | |
void | Pt1 (double const x, double const y, double const z) |
Pt1 setter. More... | |
template<class T > | |
void | Pt1 (T const &pt1) |
Pt1 setter template. More... | |
Point_t const & | Pt2 () const |
Direction getter. More... | |
void | Pt2 (double const x, double const y, double const z) |
Pt2 setter. More... | |
template<class T > | |
void | Pt2 (T const &pt2) |
Pt2 setter template. More... | |
Protected Member Functions | |
void | check_and_raise (Point_t const &p1, Point_t const &p2) const |
Compatibility check. More... | |
Protected Attributes | |
double | _radius |
Radius of the cylinder. More... | |
GeoAlgo | _geoAlgo |
Point_t | _pt1 |
First point denoting infinite line. More... | |
Vector_t | _pt2 |
Second point denoting infinite line. More... | |
Representation of a 3D Cylinder volume. A Cylinder object inherits from a geoalgo::Line.
Definition at line 31 of file GeoCylinder.h.
geoalgo::Cylinder::Cylinder | ( | ) |
|
inlinevirtual |
Default destructor.
Definition at line 38 of file GeoCylinder.h.
References Contain(), Cylinder(), pt, radius, x_max, and x_min.
geoalgo::Cylinder::Cylinder | ( | double const | x_min, |
double const | y_min, | ||
double const | z_min, | ||
double const | x_max, | ||
double const | y_max, | ||
double const | z_max, | ||
double const | radius | ||
) |
|
protectedinherited |
Compatibility check.
Definition at line 49 of file GeoLine.cxx.
Referenced by geoalgo::DirectedLine::DirectedLine(), geoalgo::Line::Line(), geoalgo::Line::Pt1(), geoalgo::Line::Pt2(), and geoalgo::Line::~Line().
bool geoalgo::Cylinder::Contain | ( | Point_t const & | pt | ) | const |
Containment evaluation.
Test if a point is contained within the box
Definition at line 25 of file GeoCylinder.cxx.
References _geoAlgo, geoalgo::Line::_pt1, geoalgo::Line::_pt2, _radius, geoalgo::Vector::Angle(), and geoalgo::GeoAlgo::SqDist().
Referenced by ~Cylinder().
|
inline |
|
inherited |
Start getter.
Definition at line 24 of file GeoLine.cxx.
References geoalgo::Line::_pt1.
Referenced by geoalgo::GeoAlgo::_ClosestPt_(), geoalgo::GeoAlgo::_commonOrigin_(), geoalgo::GeoAlgo::_SqDist_(), geoalgo::GeoAlgo::ClosestPt(), geoalgo::GeoAlgo::commonOrigin(), geoalgo::GeoAlgo::SqDist(), and geoalgo::Line::~Line().
|
inherited |
Pt1 setter.
Definition at line 33 of file GeoLine.cxx.
References geoalgo::Line::_pt1, geoalgo::Line::_pt2, geoalgo::Line::check_and_raise(), x, y, and z.
|
inlineinherited |
Pt1 setter template.
Definition at line 77 of file GeoLine.h.
References geoalgo::Line::check_and_raise().
|
inherited |
Direction getter.
Definition at line 28 of file GeoLine.cxx.
References geoalgo::Line::_pt2.
Referenced by geoalgo::GeoAlgo::_ClosestPt_(), geoalgo::GeoAlgo::_commonOrigin_(), geoalgo::GeoAlgo::_SqDist_(), and geoalgo::Line::~Line().
|
inherited |
Pt2 setter.
Definition at line 41 of file GeoLine.cxx.
References geoalgo::Line::_pt1, geoalgo::Line::_pt2, geoalgo::Line::check_and_raise(), x, y, and z.
|
inlineinherited |
Pt2 setter template.
Definition at line 85 of file GeoLine.h.
References geoalgo::Line::check_and_raise().
|
inline |
|
protected |
Definition at line 64 of file GeoCylinder.h.
Referenced by Contain().
|
protectedinherited |
First point denoting infinite line.
Definition at line 63 of file GeoLine.h.
Referenced by Contain(), geoalgo::DirectedLine::Dir(), geoalgo::DirectedLine::DirectedLine(), geoalgo::Line::Line(), geoalgo::Line::Pt1(), and geoalgo::Line::Pt2().
|
protectedinherited |
Second point denoting infinite line.
Definition at line 64 of file GeoLine.h.
Referenced by Contain(), geoalgo::DirectedLine::Dir(), geoalgo::DirectedLine::DirectedLine(), geoalgo::Line::Line(), geoalgo::Line::Pt1(), and geoalgo::Line::Pt2().
|
protected |
Radius of the cylinder.
Definition at line 61 of file GeoCylinder.h.
Referenced by Contain(), GetRadius(), and SetRadius().