Template Class ObjectIntersection¶
Defined in File Intersection.hpp
Class Documentation¶
-
template<typename
object_t
, typenamerepresentation_t
= object_t>
classActs
::
ObjectIntersection
¶ class extensions to return also the object and a representation
Public Functions
-
ObjectIntersection
() = default¶ Default constructor.
-
template<typename
T
= representation_t, std::enable_if_t<std::is_same<T, object_t>::value, int> = 0>ObjectIntersection
(const Intersection3D &sInter, const object_t *sObject)¶ Object intersection - symmetric setup.
- Parameters
sInter
: is the intersectionsObject
: is the object to be instersectedsRepresentation
: is the object represenatation
-
ObjectIntersection
(const Intersection3D &sInter, const object_t *sObject, const representation_t *sRepresentation)¶ Object intersection.
- Parameters
sInter
: is the intersectionsObject
: is the object to be instersectedsRepresentation
: is the object represenatation
-
operator bool
() const¶ Bool() operator for validity checking.
-
bool
operator<
(const ObjectIntersection<object_t, representation_t> &oi) const¶ Smaller operator for ordering & sorting.
This operator will ignore the alternative, but simply order the representing intersection
- Parameters
oi
: is the source intersection for comparison
-
bool
operator>
(const ObjectIntersection<object_t, representation_t> &oi) const¶ Greater operator for ordering & sorting.
This operator will ignore the alternative, but simply order the representing intersection
- Parameters
oi
: is the source intersection for comparison
Public Members
-
Intersection3D
alternative
= {}¶ The alternative intersections.
-
Intersection3D
intersection
= {}¶ The intersection itself.
-
const representation_t *
representation
= {nullptr}¶ The representation of this object.
-