KiCad PCB EDA Suite
ACCELERATOR_3D Class Referenceabstract

#include <accelerator_3d.h>

Inheritance diagram for ACCELERATOR_3D:
BVH_PBRT

Public Member Functions

 ACCELERATOR_3D ()
 
virtual ~ACCELERATOR_3D ()
 
virtual bool Intersect (const RAY &aRay, HITINFO &aHitInfo) const =0
 
virtual bool Intersect (const RAY &aRay, HITINFO &aHitInfo, unsigned int aAccNodeInfo) const =0
 
virtual bool Intersect (const RAYPACKET &aRayPacket, HITINFO_PACKET *aHitInfoPacket) const =0
 
virtual bool IntersectP (const RAY &aRay, float aMaxDistance) const =0
 

Protected Attributes

BBOX_3D m_bbox
 

Detailed Description

Definition at line 36 of file accelerator_3d.h.

Constructor & Destructor Documentation

◆ ACCELERATOR_3D()

ACCELERATOR_3D::ACCELERATOR_3D ( )

Definition at line 32 of file accelerator_3d.cpp.

33 {
34  m_bbox.Reset();
35 }
void Reset()
Reset the bounding box to zero and de-initialize it.
Definition: bbox_3d.cpp:95

References m_bbox, and BBOX_3D::Reset().

◆ ~ACCELERATOR_3D()

ACCELERATOR_3D::~ACCELERATOR_3D ( )
virtual

Definition at line 38 of file accelerator_3d.cpp.

39 {
40 }

Member Function Documentation

◆ Intersect() [1/3]

virtual bool ACCELERATOR_3D::Intersect ( const RAY aRay,
HITINFO aHitInfo 
) const
pure virtual

◆ Intersect() [2/3]

virtual bool ACCELERATOR_3D::Intersect ( const RAY aRay,
HITINFO aHitInfo,
unsigned int  aAccNodeInfo 
) const
pure virtual

Implemented in BVH_PBRT.

◆ Intersect() [3/3]

virtual bool ACCELERATOR_3D::Intersect ( const RAYPACKET aRayPacket,
HITINFO_PACKET aHitInfoPacket 
) const
pure virtual

Implemented in BVH_PBRT.

◆ IntersectP()

virtual bool ACCELERATOR_3D::IntersectP ( const RAY aRay,
float  aMaxDistance 
) const
pure virtual

Implemented in BVH_PBRT.

Referenced by RENDER_3D_RAYTRACE::shadeHit().

Member Data Documentation

◆ m_bbox

BBOX_3D ACCELERATOR_3D::m_bbox
protected

Definition at line 53 of file accelerator_3d.h.

Referenced by ACCELERATOR_3D().


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