#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/SpatIndex.hpp>
◆ Slic3r::sla::BoxIndex::Impl
| class Slic3r::sla::BoxIndex::Impl |
| Class Members |
|
typedef rtree< BoxIndexEl, rstar< 16, 4 > > |
BoostIndex |
|
◆ QueryType
| Enumerator |
|---|
| qtIntersects | |
| qtWithin | |
@ qtWithin
Definition SpatIndex.hpp:86
@ qtIntersects
Definition SpatIndex.hpp:86
◆ BoxIndex() [1/3]
| Slic3r::sla::BoxIndex::BoxIndex |
( |
| ) |
|
◆ ~BoxIndex()
| Slic3r::sla::BoxIndex::~BoxIndex |
( |
| ) |
|
◆ BoxIndex() [2/3]
| Slic3r::sla::BoxIndex::BoxIndex |
( |
const BoxIndex & | cpy | ) |
|
◆ BoxIndex() [3/3]
| Slic3r::sla::BoxIndex::BoxIndex |
( |
BoxIndex && | cpy | ) |
|
◆ empty()
| bool Slic3r::sla::BoxIndex::empty |
( |
| ) |
const |
|
inline |
92{
return size() == 0; }
size_t size() const
Definition SpatIndex.cpp:159
References size().
◆ foreach()
| void Slic3r::sla::BoxIndex::foreach |
( |
std::function< void(const BoxIndexEl &el)> | fn | ) |
|
165{
166 for(
auto& el :
m_impl->m_store) fn(el);
167}
References m_impl.
◆ insert() [1/2]
| void Slic3r::sla::BoxIndex::insert |
( |
const BoundingBox & | bb, |
|
|
unsigned | idx ) |
|
inline |
80 {
81 insert(std::make_pair(bb,
unsigned(idx)));
82 }
void insert(const BoxIndexEl &)
Definition SpatIndex.cpp:131
References insert().
◆ insert() [2/2]
| void Slic3r::sla::BoxIndex::insert |
( |
const BoxIndexEl & | el | ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ query()
143{
144 namespace bgi = boost::geometry::index;
145
146 std::vector<BoxIndexEl> ret; ret.reserve(
m_impl->m_store.size());
147
148 switch (qt) {
150 m_impl->m_store.query(bgi::intersects(qrbb), std::back_inserter(ret));
151 break;
153 m_impl->m_store.query(bgi::within(qrbb), std::back_inserter(ret));
154 }
155
156 return ret;
157}
References m_impl, qtIntersects, and qtWithin.
◆ remove()
| bool Slic3r::sla::BoxIndex::remove |
( |
const BoxIndexEl & | el | ) |
|
137{
138 return m_impl->m_store.remove(el) == 1;
139}
References m_impl.
◆ size()
| size_t Slic3r::sla::BoxIndex::size |
( |
| ) |
const |
◆ m_impl
| std::unique_ptr<Impl> Slic3r::sla::BoxIndex::m_impl |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/SpatIndex.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/SpatIndex.cpp