3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 04:55:32 +02:00

Nitpicking on the correct name maybe...

This commit is contained in:
samcake 2017-04-06 10:30:24 -07:00
parent 3de760abcb
commit b8cb79113e
3 changed files with 16 additions and 26 deletions
libraries/render/src/render

View file

@ -14,7 +14,7 @@
#include "Item.h"
#include "SpatialTree.h"
#include "Tag.h"
#include "Selection.h"
namespace render {
@ -116,9 +116,9 @@ protected:
void updateItems(const ItemIDs& ids, UpdateFunctors& functors);
// The Tag map
std::mutex _tagsMutex;
TagMap _tags;
// The Selection map
std::mutex _selectionsMutex;
SelectionMap _selections;
friend class Engine;
};

View file

@ -1,5 +1,5 @@
//
// Tag.cpp
// Selection.cpp
// render/src/render
//
// Created by Sam Gateau on 4/4/2017.
@ -8,20 +8,20 @@
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Tag.h"
#include "Selection.h"
#include "Logging.h"
using namespace render;
Tag::Tag(const std::string& name, const ItemIDs items) :
Selection::Selection(const std::string& name, const ItemIDs items) :
_name(name),
_items(items)
{
}
Tag::~Tag() {
Selection::~Selection() {
}

View file

@ -1,5 +1,5 @@
//
// Tag.h
// Selection.h
// render/src/render
//
// Created by Sam Gateau on 4/4/2017.
@ -9,18 +9,18 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_render_Tag_h
#define hifi_render_Tag_h
#ifndef hifi_render_Selection_h
#define hifi_render_Selection_h
#include "Item.h"
namespace render {
class Tag {
class Selection {
public:
Tag(const std::string& name, const ItemIDs items);
~Tag();
Selection(const std::string& name, const ItemIDs items);
~Selection();
const std::string& getName() const { return _name; }
@ -30,20 +30,10 @@ namespace render {
const std::string _name;
ItemIDs _items;
};
using Tags = std::vector<Tag>;
using Selections = std::vector<Selection>;
class TagMap {
public:
using NameMap = std::map<std::string, uint32_t>;
using SelectionMap = std::map<std::string, Selection>;
TagMap() {}
~TagMap() {}
protected:
NameMap _names;
Tags _values;
};
}
#endif