Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
voxeltreequery.h
1 #pragma once
2 
3 #include <unordered_set>
4 #include <functional>
5 
6 class Voxel;
7 class VoxelTree;
8 class VoxelTreeNode;
9 class AbstractShape;
10 
12 public:
13  VoxelTreeQuery(VoxelTree* voxelTree, const AbstractShape* shape);
14 
15  bool areVoxelsIntersecting();
16  std::unordered_set<Voxel*> intersectingVoxels();
17 
18 
19 protected:
20  VoxelTree* m_voxelTree;
21  const AbstractShape* m_shape;
22  bool m_queryInterrupted;
23 
24  void query(VoxelTreeNode* node, std::function<void(Voxel*)> onVoxelIntersection);
25 };
26 
Definition: voxeltreenode.h:15
Definition: voxel.h:15
Definition: voxeltree.h:9
Definition: voxeltreequery.h:11
Definition: abstractshape.h:7