mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-22 12:07:45 +00:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QSpinBox>
|
|
#include <QTreeWidgetItem>
|
|
#include <QWidget>
|
|
#include <glm/detail/type_quat.hpp>
|
|
#include <glm/glm.hpp>
|
|
#include <physis.hpp>
|
|
|
|
#include "quaternionedit.h"
|
|
#include "vec3edit.h"
|
|
|
|
class GearView;
|
|
|
|
class BoneEditor : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit BoneEditor(GearView *gearView, QWidget *parent = nullptr);
|
|
|
|
private:
|
|
void treeItemClicked(QTreeWidgetItem *item, int column);
|
|
|
|
GearView *gearView;
|
|
|
|
glm::vec3 currentPosition;
|
|
glm::quat currentRotation;
|
|
glm::vec3 currentScale;
|
|
|
|
glm::vec3 currentRacePosition;
|
|
glm::quat currentRaceRotation;
|
|
glm::vec3 currentRaceScale;
|
|
|
|
physis_Bone *currentEditedBone = nullptr;
|
|
|
|
Vector3Edit *posEdit = nullptr;
|
|
QuaternionEdit *rotationEdit = nullptr;
|
|
Vector3Edit *scaleEdit = nullptr;
|
|
|
|
Vector3Edit *raceDeformPosEdit = nullptr;
|
|
QuaternionEdit *raceDeformRotationEdit = nullptr;
|
|
Vector3Edit *raceDeformScaleEdit = nullptr;
|
|
};
|