mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-16 14:46:17 +02:00
32 lines
937 B
C++
32 lines
937 B
C++
//
|
|
// AddEntityOperator.h
|
|
// libraries/entities/src
|
|
//
|
|
// Created by Brad Hefta-Gaub on 8/11/2014.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AddEntityOperator_h
|
|
#define hifi_AddEntityOperator_h
|
|
|
|
class AddEntityOperator : public RecurseOctreeOperator {
|
|
public:
|
|
AddEntityOperator(EntityTreePointer tree, EntityItemPointer newEntity);
|
|
|
|
virtual bool preRecursion(OctreeElementPointer element);
|
|
virtual bool postRecursion(OctreeElementPointer element);
|
|
virtual OctreeElementPointer possiblyCreateChildAt(OctreeElementPointer element, int childIndex);
|
|
private:
|
|
EntityTreePointer _tree;
|
|
EntityItemPointer _newEntity;
|
|
bool _foundNew;
|
|
quint64 _changeTime;
|
|
|
|
AABox _newEntityBox;
|
|
};
|
|
|
|
|
|
#endif // hifi_AddEntityOperator_h
|