mirror of
https://github.com/lubosz/overte.git
synced 2025-08-10 05:09:46 +02:00
32 lines
741 B
C++
32 lines
741 B
C++
//
|
|
// Created by Sabrina Shanman 2018/08/22
|
|
// Copyright 2018 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
|
|
//
|
|
|
|
#include "PickTransformNode.h"
|
|
|
|
#include "DependencyManager.h"
|
|
#include "PickManager.h"
|
|
|
|
PickTransformNode::PickTransformNode(unsigned int uid) :
|
|
_uid(uid)
|
|
{
|
|
}
|
|
|
|
Transform PickTransformNode::getTransform() {
|
|
auto pickManager = DependencyManager::get<PickManager>();
|
|
if (!pickManager) {
|
|
return Transform();
|
|
}
|
|
|
|
return pickManager->getResultTransform(_uid);
|
|
}
|
|
|
|
QVariantMap PickTransformNode::toVariantMap() const {
|
|
QVariantMap map;
|
|
map["parentID"] = _uid;
|
|
return map;
|
|
}
|