#include <container_2d.h>
Definition at line 42 of file container_2d.h.
◆ CONTAINER_2D_BASE()
◆ ~CONTAINER_2D_BASE()
CONTAINER_2D_BASE::~CONTAINER_2D_BASE |
( |
| ) |
|
|
virtual |
◆ Add()
void CONTAINER_2D_BASE::Add |
( |
OBJECT_2D * |
aObject | ) |
|
|
inline |
Definition at line 49 of file container_2d.h.
50 {
51 if( aObject )
52 {
53 std::lock_guard<std::mutex> lock(
m_lock );
56 }
57 }
const BBOX_2D & GetBBox() const
void Union(const SFVEC2F &aPoint)
Recalculate the bounding box adding a point.
References OBJECT_2D::GetBBox(), m_bbox, m_lock, m_objects, and BBOX_2D::Union().
Referenced by BOARD_ADAPTER::addShape(), BOARD_ADAPTER::addText(), BOARD_ADAPTER::buildPadOutlineAsSegments(), ConvertPolygonToBlocks(), ConvertPolygonToTriangles(), RENDER_3D_RAYTRACE::createItemsFromContainer(), BOARD_ADAPTER::createLayers(), BOARD_ADAPTER::createPadWithMargin(), BOARD_ADAPTER::createTrack(), RENDER_3D_RAYTRACE::insertHole(), RENDER_3D_RAYTRACE::Reload(), and BOARD_ADAPTER::transformArcToSegments().
◆ Clear()
void CONTAINER_2D_BASE::Clear |
( |
| ) |
|
|
virtual |
◆ GetBBox()
const BBOX_2D & CONTAINER_2D_BASE::GetBBox |
( |
| ) |
const |
|
inline |
◆ GetIntersectingObjects()
Get a list of objects that intersects a bounding box.
- Parameters
-
aBBox | The bounding box to test. |
aOutList | The list of objects that intersects the bounding box. |
Implemented in CONTAINER_2D, and BVH_CONTAINER_2D.
◆ GetList()
◆ IntersectAny()
virtual bool CONTAINER_2D_BASE::IntersectAny |
( |
const RAYSEG2D & |
aSegRay | ) |
const |
|
pure virtual |
Intersect and check if a segment ray hits a object or is inside it.
- Parameters
-
aSegRay | The segment to intersect with objects. |
- Returns
- true if it hits any of the objects or is inside any object.
Implemented in CONTAINER_2D, and BVH_CONTAINER_2D.
◆ m_bbox
◆ m_lock
std::mutex CONTAINER_2D_BASE::m_lock |
|
private |
◆ m_objects
The documentation for this class was generated from the following files: