44 lines
895 B
C++
44 lines
895 B
C++
#pragma once
|
|
|
|
/**
|
|
* @file LinkUI.h
|
|
*
|
|
* @brief User interface for armature links.
|
|
*
|
|
*/
|
|
|
|
#include <nanogui/window.h>
|
|
#include <nanogui/textbox.h>
|
|
#include <nanogui/label.h>
|
|
#include <nanogui/layout.h>
|
|
#include <nanogui/slider.h>
|
|
#include <nanogui/screen.h>
|
|
#include <nanogui/vscrollpanel.h>
|
|
|
|
#include "Armature.h"
|
|
#include "Math3D.h"
|
|
|
|
// Link UI
|
|
//
|
|
class LinkUI
|
|
{
|
|
public:
|
|
|
|
LinkUI(gti320::Link* _link, int _id, nanogui::Widget* _parent);
|
|
|
|
void onArmatureChanged();
|
|
|
|
private:
|
|
|
|
void init();
|
|
|
|
void onSlidersChanged();
|
|
|
|
gti320::Link* link;
|
|
int id;
|
|
nanogui::ref<nanogui::Widget> panel, panelRotateX, panelRotateY, panelRotateZ;
|
|
nanogui::ref<nanogui::TextBox> textboxRotateX, textboxRotateY, textboxRotateZ;
|
|
nanogui::ref<nanogui::Label> labelRotateX, labelRotateY, labelRotateZ;
|
|
nanogui::ref<nanogui::Slider> sliderRotateX, sliderRotateY, sliderRotateZ;
|
|
};
|