From 16d535c4959f7a7cfa056f93e18c7f555cc604bd Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Wed, 21 Sep 2016 09:30:14 -0700 Subject: [PATCH] Move EntityTree RayArgs back to header --- libraries/entities/src/EntityTree.cpp | 22 ++++++++++++++++++++++ libraries/entities/src/EntityTree.h | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/libraries/entities/src/EntityTree.cpp b/libraries/entities/src/EntityTree.cpp index 4cbfb4f5dc..ffb6ec31e2 100644 --- a/libraries/entities/src/EntityTree.cpp +++ b/libraries/entities/src/EntityTree.cpp @@ -29,6 +29,28 @@ static const quint64 DELETED_ENTITIES_EXTRA_USECS_TO_CONSIDER = USECS_PER_MSEC * const float EntityTree::DEFAULT_MAX_TMP_ENTITY_LIFETIME = 60 * 60; // 1 hour +// combines the ray cast arguments into a single object +class RayArgs { +public: + // Inputs + glm::vec3 origin; + glm::vec3 direction; + const QVector& entityIdsToInclude; + const QVector& entityIdsToDiscard; + bool visibleOnly; + bool collidableOnly; + bool precisionPicking; + + // Outputs + OctreeElementPointer& element; + float& distance; + BoxFace& face; + glm::vec3& surfaceNormal; + void** intersectedObject; + bool found; +}; + + EntityTree::EntityTree(bool shouldReaverage) : Octree(shouldReaverage), _fbxService(NULL), diff --git a/libraries/entities/src/EntityTree.h b/libraries/entities/src/EntityTree.h index 80169492f7..68c8618482 100644 --- a/libraries/entities/src/EntityTree.h +++ b/libraries/entities/src/EntityTree.h @@ -32,28 +32,6 @@ using ModelWeakPointer = std::weak_ptr; class EntitySimulation; -// combines the ray cast arguments into a single object -class RayArgs { -public: - // Inputs - glm::vec3 origin; - glm::vec3 direction; - const QVector& entityIdsToInclude; - const QVector& entityIdsToDiscard; - bool visibleOnly; - bool collidableOnly; - bool precisionPicking; - - // Outputs - OctreeElementPointer& element; - float& distance; - BoxFace& face; - glm::vec3& surfaceNormal; - void** intersectedObject; - bool found; -}; - - class NewlyCreatedEntityHook { public: virtual void entityCreated(const EntityItem& newEntity, const SharedNodePointer& senderNode) = 0;