Helios++
Helios software for LiDAR simulations
IntersectionHandlingResult Class Reference

Output class for intersection handling methods. More...

#include <IntersectionHandlingResult.h>

Public Member Functions

 IntersectionHandlingResult (glm::dvec3 intersectionPoint=glm::dvec3(0, 0, 0), bool canContinue=false)
 Build an IntersectionHandlingResult. More...
 
bool canRayContinue ()
 Check whether the ray can continue after intersection or not. More...
 
glm::dvec3 getIntersectionPoint ()
 Obtain the intersection point. More...
 

Protected Attributes

glm::dvec3 intersectionPoint
 True if the ray can continue after intersection, False otherwise.
 
bool canContinue
 

Private Member Functions

template<typename Archive >
void serialize (Archive &ar, const unsigned int version)
 Serialize an IntersectionHandlingResult to a stream of bytes. More...
 

Friends

class boost::serialization::access
 
std::ostream & operator<< (std::ostream &out, IntersectionHandlingResult const &ihr)
 

Detailed Description

Output class for intersection handling methods.

Author
Alberto M. Esmoris Pena
Version
1.0

Constructor & Destructor Documentation

◆ IntersectionHandlingResult()

IntersectionHandlingResult::IntersectionHandlingResult ( glm::dvec3  intersectionPoint = glm::dvec3(0,0,0),
bool  canContinue = false 
)
inline

Build an IntersectionHandlingResult.

Parameters
intersectionPointSpecify the intersection point
canContinueSpecify if the ray can continue after intersection or not

Member Function Documentation

◆ canRayContinue()

bool IntersectionHandlingResult::canRayContinue ( )
inline

Check whether the ray can continue after intersection or not.

Returns
True if the ray can continue after intersection, False if not

◆ getIntersectionPoint()

glm::dvec3 IntersectionHandlingResult::getIntersectionPoint ( )
inline

Obtain the intersection point.

Returns
Intersection point

◆ serialize()

template<typename Archive >
void IntersectionHandlingResult::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

Serialize an IntersectionHandlingResult to a stream of bytes.

Template Parameters
ArchiveType of rendering
Parameters
arSpecific rendering for the stream of bytes
versionVersion number for the intersection handling result

The documentation for this class was generated from the following file: