mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 01:53:10 +02:00
CR feedback new class names
This commit is contained in:
parent
a59650beac
commit
70e9781ad9
6 changed files with 19 additions and 19 deletions
|
@ -69,7 +69,7 @@
|
||||||
#include "ui/LodToolsDialog.h"
|
#include "ui/LodToolsDialog.h"
|
||||||
#include "ParticleTreeRenderer.h"
|
#include "ParticleTreeRenderer.h"
|
||||||
#include "ParticleEditHandle.h"
|
#include "ParticleEditHandle.h"
|
||||||
#include "InterfaceControllerScriptingInterface.h"
|
#include "ControllerScriptingInterface.h"
|
||||||
|
|
||||||
|
|
||||||
class QAction;
|
class QAction;
|
||||||
|
@ -506,7 +506,7 @@ private:
|
||||||
std::vector<VoxelFade> _voxelFades;
|
std::vector<VoxelFade> _voxelFades;
|
||||||
std::vector<Avatar*> _avatarFades;
|
std::vector<Avatar*> _avatarFades;
|
||||||
|
|
||||||
InterfaceControllerScriptingInterface _controllerScriptingInterface;
|
ControllerScriptingInterface _controllerScriptingInterface;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined(__interface__Application__) */
|
#endif /* defined(__interface__Application__) */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// InterfaceControllerScriptingInterface.h
|
// ControllerScriptingInterface.h
|
||||||
// hifi
|
// hifi
|
||||||
//
|
//
|
||||||
// Created by Brad Hefta-Gaub on 12/17/13
|
// Created by Brad Hefta-Gaub on 12/17/13
|
||||||
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
#include <HandData.h>
|
#include <HandData.h>
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "InterfaceControllerScriptingInterface.h"
|
#include "ControllerScriptingInterface.h"
|
||||||
|
|
||||||
const PalmData* InterfaceControllerScriptingInterface::getPrimaryPalm() const {
|
const PalmData* ControllerScriptingInterface::getPrimaryPalm() const {
|
||||||
int leftPalmIndex, rightPalmIndex;
|
int leftPalmIndex, rightPalmIndex;
|
||||||
|
|
||||||
const HandData* handData = Application::getInstance()->getAvatar()->getHandData();
|
const HandData* handData = Application::getInstance()->getAvatar()->getHandData();
|
||||||
|
@ -23,7 +23,7 @@ const PalmData* InterfaceControllerScriptingInterface::getPrimaryPalm() const {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InterfaceControllerScriptingInterface::isPrimaryButtonPressed() const {
|
bool ControllerScriptingInterface::isPrimaryButtonPressed() const {
|
||||||
const PalmData* primaryPalm = getPrimaryPalm();
|
const PalmData* primaryPalm = getPrimaryPalm();
|
||||||
if (primaryPalm) {
|
if (primaryPalm) {
|
||||||
if (primaryPalm->getControllerButtons() & BUTTON_FWD) {
|
if (primaryPalm->getControllerButtons() & BUTTON_FWD) {
|
||||||
|
@ -34,7 +34,7 @@ bool InterfaceControllerScriptingInterface::isPrimaryButtonPressed() const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec2 InterfaceControllerScriptingInterface::getPrimaryJoystickPosition() const {
|
glm::vec2 ControllerScriptingInterface::getPrimaryJoystickPosition() const {
|
||||||
const PalmData* primaryPalm = getPrimaryPalm();
|
const PalmData* primaryPalm = getPrimaryPalm();
|
||||||
if (primaryPalm) {
|
if (primaryPalm) {
|
||||||
return glm::vec2(primaryPalm->getJoystickX(), primaryPalm->getJoystickY());
|
return glm::vec2(primaryPalm->getJoystickX(), primaryPalm->getJoystickY());
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// InterfaceControllerScriptingInterface.h
|
// ControllerScriptingInterface.h
|
||||||
// hifi
|
// hifi
|
||||||
//
|
//
|
||||||
// Created by Brad Hefta-Gaub on 12/17/13
|
// Created by Brad Hefta-Gaub on 12/17/13
|
||||||
|
@ -11,10 +11,10 @@
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
|
|
||||||
#include <ControllerScriptingInterface.h>
|
#include <AbstractControllerScriptingInterface.h>
|
||||||
|
|
||||||
/// handles scripting of input controller commands from JS
|
/// handles scripting of input controller commands from JS
|
||||||
class InterfaceControllerScriptingInterface : public ControllerScriptingInterface {
|
class ControllerScriptingInterface : public AbstractControllerScriptingInterface {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public slots:
|
public slots:
|
|
@ -1,19 +1,19 @@
|
||||||
//
|
//
|
||||||
// ControllerScriptingInterface.h
|
// AbstractControllerScriptingInterface.h
|
||||||
// hifi
|
// hifi
|
||||||
//
|
//
|
||||||
// Created by Brad Hefta-Gaub on 12/17/13
|
// Created by Brad Hefta-Gaub on 12/17/13
|
||||||
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef __hifi__ControllerScriptingInterface__
|
#ifndef __hifi__AbstractControllerScriptingInterface__
|
||||||
#define __hifi__ControllerScriptingInterface__
|
#define __hifi__AbstractControllerScriptingInterface__
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
/// handles scripting of input controller commands from JS
|
/// handles scripting of input controller commands from JS
|
||||||
class ControllerScriptingInterface : public QObject {
|
class AbstractControllerScriptingInterface : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -21,4 +21,4 @@ public slots:
|
||||||
virtual glm::vec2 getPrimaryJoystickPosition() const = 0;
|
virtual glm::vec2 getPrimaryJoystickPosition() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined(__hifi__ControllerScriptingInterface__) */
|
#endif /* defined(__hifi__AbstractControllerScriptingInterface__) */
|
|
@ -26,7 +26,7 @@ int ScriptEngine::_scriptNumber = 1;
|
||||||
|
|
||||||
ScriptEngine::ScriptEngine(const QString& scriptContents, bool wantMenuItems,
|
ScriptEngine::ScriptEngine(const QString& scriptContents, bool wantMenuItems,
|
||||||
const char* scriptMenuName, AbstractMenuInterface* menu,
|
const char* scriptMenuName, AbstractMenuInterface* menu,
|
||||||
ControllerScriptingInterface* controllerScriptingInterface) {
|
AbstractControllerScriptingInterface* controllerScriptingInterface) {
|
||||||
_scriptContents = scriptContents;
|
_scriptContents = scriptContents;
|
||||||
_isFinished = false;
|
_isFinished = false;
|
||||||
_isRunning = false;
|
_isRunning = false;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#include <AbstractMenuInterface.h>
|
#include <AbstractMenuInterface.h>
|
||||||
#include <ParticleScriptingInterface.h>
|
#include <ParticleScriptingInterface.h>
|
||||||
#include <VoxelScriptingInterface.h>
|
#include <VoxelScriptingInterface.h>
|
||||||
#include "ControllerScriptingInterface.h"
|
#include "AbstractControllerScriptingInterface.h"
|
||||||
|
|
||||||
const QString NO_SCRIPT("");
|
const QString NO_SCRIPT("");
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class ScriptEngine : public QObject {
|
||||||
public:
|
public:
|
||||||
ScriptEngine(const QString& scriptContents = NO_SCRIPT, bool wantMenuItems = false,
|
ScriptEngine(const QString& scriptContents = NO_SCRIPT, bool wantMenuItems = false,
|
||||||
const char* scriptMenuName = NULL, AbstractMenuInterface* menu = NULL,
|
const char* scriptMenuName = NULL, AbstractMenuInterface* menu = NULL,
|
||||||
ControllerScriptingInterface* controllerScriptingInterface = NULL);
|
AbstractControllerScriptingInterface* controllerScriptingInterface = NULL);
|
||||||
|
|
||||||
~ScriptEngine();
|
~ScriptEngine();
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ protected:
|
||||||
private:
|
private:
|
||||||
VoxelScriptingInterface _voxelScriptingInterface;
|
VoxelScriptingInterface _voxelScriptingInterface;
|
||||||
ParticleScriptingInterface _particleScriptingInterface;
|
ParticleScriptingInterface _particleScriptingInterface;
|
||||||
ControllerScriptingInterface* _controllerScriptingInterface;
|
AbstractControllerScriptingInterface* _controllerScriptingInterface;
|
||||||
bool _wantMenuItems;
|
bool _wantMenuItems;
|
||||||
QString _scriptMenuName;
|
QString _scriptMenuName;
|
||||||
AbstractMenuInterface* _menu;
|
AbstractMenuInterface* _menu;
|
||||||
|
|
Loading…
Reference in a new issue