KiCad PCB EDA Suite
|
#include <container_3d.h>
Public Member Functions | |
CONTAINER_3D_BASE () | |
virtual | ~CONTAINER_3D_BASE () |
void | Add (OBJECT_3D *aObject) |
void | Clear () |
const LIST_OBJECT & | GetList () const |
void | ConvertTo (CONST_VECTOR_OBJECT &aOutVector) const |
const BBOX_3D & | GetBBox () 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 |
Definition at line 41 of file container_3d.h.
CONTAINER_3D_BASE::CONTAINER_3D_BASE | ( | ) |
Definition at line 32 of file container_3d.cpp.
References m_bbox, m_objects, and BBOX_3D::Reset().
|
virtual |
Definition at line 56 of file container_3d.cpp.
References Clear().
|
inline |
Definition at line 48 of file container_3d.h.
References OBJECT_3D::GetBBox(), m_bbox, m_objects, and BBOX_3D::Union().
Referenced by RENDER_3D_RAYTRACE_BASE::addModels(), RENDER_3D_RAYTRACE_BASE::createItemsFromContainer(), RENDER_3D_RAYTRACE_BASE::createObject(), RENDER_3D_RAYTRACE_BASE::insertHole(), and RENDER_3D_RAYTRACE_BASE::Reload().
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().
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().
|
inline |
Definition at line 63 of file container_3d.h.
References m_bbox.
Referenced by RENDER_3D_RAYTRACE_BASE::Reload().
|
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().
|
pure virtual |
Implemented in CONTAINER_3D.
|
pure virtual |
Implemented in CONTAINER_3D.
|
protected |
Definition at line 69 of file container_3d.h.
Referenced by Add(), Clear(), CONTAINER_3D_BASE(), GetBBox(), and CONTAINER_3D::Intersect().
|
protected |
Definition at line 70 of file container_3d.h.
Referenced by Add(), Clear(), CONTAINER_3D_BASE(), ConvertTo(), GetList(), CONTAINER_3D::Intersect(), and CONTAINER_3D::IntersectP().