KiCad PCB EDA Suite
Loading...
Searching...
No Matches
CONTAINER_3D_BASE Class Referenceabstract

#include <container_3d.h>

Inheritance diagram for CONTAINER_3D_BASE:
CONTAINER_3D

Public Member Functions

 CONTAINER_3D_BASE ()
 
virtual ~CONTAINER_3D_BASE ()
 
void Add (OBJECT_3D *aObject)
 
void Clear ()
 
const LIST_OBJECTGetList () const
 
void ConvertTo (CONST_VECTOR_OBJECT &aOutVector) const
 
const BBOX_3DGetBBox () const
 
virtual bool Intersect (const RAY &aRay, HITINFO &aHitInfo) const =0
 
virtual bool IntersectP (const RAY &aRay, float aMaxDistance) const =0
 

Protected Attributes

BBOX_3D m_bbox
 
LIST_OBJECT m_objects
 

Detailed Description

Definition at line 41 of file container_3d.h.

Constructor & Destructor Documentation

◆ CONTAINER_3D_BASE()

CONTAINER_3D_BASE::CONTAINER_3D_BASE ( )

Definition at line 32 of file container_3d.cpp.

References m_bbox, m_objects, and BBOX_3D::Reset().

◆ ~CONTAINER_3D_BASE()

CONTAINER_3D_BASE::~CONTAINER_3D_BASE ( )
virtual

Definition at line 56 of file container_3d.cpp.

References Clear().

Member Function Documentation

◆ Add()

◆ Clear()

void CONTAINER_3D_BASE::Clear ( )

Definition at line 39 of file container_3d.cpp.

References m_bbox, m_objects, and BBOX_3D::Reset().

Referenced by RENDER_3D_RAYTRACE_BASE::Reload(), and ~CONTAINER_3D_BASE().

◆ ConvertTo()

void CONTAINER_3D_BASE::ConvertTo ( CONST_VECTOR_OBJECT aOutVector) const

Definition at line 62 of file container_3d.cpp.

References m_objects.

Referenced by BVH_PBRT::BVH_PBRT().

◆ GetBBox()

const BBOX_3D & CONTAINER_3D_BASE::GetBBox ( ) const
inline

Definition at line 63 of file container_3d.h.

References m_bbox.

Referenced by RENDER_3D_RAYTRACE_BASE::Reload().

◆ GetList()

const LIST_OBJECT & CONTAINER_3D_BASE::GetList ( ) const
inline

Definition at line 59 of file container_3d.h.

References m_objects.

Referenced by BVH_PBRT::BVH_PBRT(), and RENDER_3D_RAYTRACE_BASE::Reload().

◆ Intersect()

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

Implemented in CONTAINER_3D.

◆ IntersectP()

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

Implemented in CONTAINER_3D.

Member Data Documentation

◆ m_bbox

BBOX_3D CONTAINER_3D_BASE::m_bbox
protected

Definition at line 69 of file container_3d.h.

Referenced by Add(), Clear(), CONTAINER_3D_BASE(), GetBBox(), and CONTAINER_3D::Intersect().

◆ m_objects

LIST_OBJECT CONTAINER_3D_BASE::m_objects
protected

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