15#include <vsg/maths/sphere.h>
16#include <vsg/nodes/Node.h>
35 Bin(int32_t in_binNumber, SortOrder in_sortOrder);
37 int32_t binNumber = 0;
38 SortOrder sortOrder = NO_SORT;
42 void add(
State* state,
double value,
const Node* node);
50 void read(
Input& input)
override;
51 void write(
Output& output)
const override;
56 std::vector<dmat4> _matrices;
57 std::vector<const StateCommand*> _stateCommands;
61 uint32_t matrixIndex = 0;
62 uint32_t stateCommandIndex = 0;
63 uint32_t stateCommandCount = 0;
64 const Node* child =
nullptr;
67 std::vector<Element> _elements;
69 using KeyIndex = std::pair<float, uint32_t>;
70 mutable std::vector<KeyIndex> _binElements;
int compare(const Object &rhs) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
ref_ptr< Object > clone(const CopyOp ©op={}) const override
Definition Bin.h:45
RecordTraversal traverses a scene graph doing view frustum culling and invoking state/commands to rec...
Definition RecordTraversal.h:69
vsg::State is used by vsg::RecordTraversal to manage state stacks, projection and modelview matrices ...
Definition State.h:228