4 #include "../UIs/ui_cabfpannel.h"
6 cABFPannel::cABFPannel(QWidget
*parent
) :
12 // connect(ui->TestABFButton, SIGNAL(clicked()), this, SLOT(TestABF_Slot()));
14 // m_pUVPreview = new CMeshBakerUVPreview(ui->UVViwer);
15 // m_pUVPreview->SetRenderMesh(false);
17 // connect(ui->UVViwer, SIGNAL(SignalRender(const SRenderContext&)), this, SLOT(OnRenderUV(const SRenderContext&)));
18 // connect(ui->UVViwer, SIGNAL(SignalMouse(const SMouseEvent&)), this, SLOT(OnMouseEventUV(const SMouseEvent&)));
19 // connect(ui->UVViwer, SIGNAL(SignalKey(const SKeyEvent&)), this, SLOT(OnKeyEventUV(const SKeyEvent&)));
22 // m_pMeshPreview = new CMeshBakerUVPreview(ui->MeshViwer);
24 // connect(ui->MeshViwer, SIGNAL(SignalRender(const SRenderContext&)), this, SLOT(OnRender(const SRenderContext&)));
25 // connect(ui->MeshViwer, SIGNAL(SignalMouse(const SMouseEvent&)), this, SLOT(OnMouseEvent(const SMouseEvent&)));
26 // connect(ui->MeshViwer, SIGNAL(SignalKey(const SKeyEvent&)), this, SLOT(OnKeyEvent(const SKeyEvent&)));
29 // textureAtlasGenerator = new LODGenerator::TextureAtlasGenerator();
32 void cABFPannel::OnIdle()
34 ui
->UVViwer
->Update();
35 ui
->MeshViwer
->Update();
38 cABFPannel::~cABFPannel()
42 // delete textureAtlasGenerator;
45 // void cABFPannel::OnRenderUV(const SRenderContext& rc)
47 // // m_pUVPreview->OnRender(rc);
50 // void cABFPannel::OnKeyEventUV(const SKeyEvent& sKeyEvent)
52 // // m_pUVPreview->OnKeyEvent(sKeyEvent);
55 // void cABFPannel::OnMouseEventUV(const SMouseEvent& sMouseEvent)
57 // // m_pUVPreview->OnMouseEvent(sMouseEvent);
60 // void cABFPannel::OnRender(const SRenderContext& rc)
62 // // m_pMeshPreview->OnRender(rc);
65 // void cABFPannel::OnKeyEvent(const SKeyEvent& sKeyEvent)
67 // // m_pMeshPreview->OnKeyEvent(sKeyEvent);
70 // void cABFPannel::OnMouseEvent(const SMouseEvent& sMouseEvent)
72 // // m_pMeshPreview->OnMouseEvent(sMouseEvent);
75 void cABFPannel::TestABF_Slot()
77 // textureAtlasGenerator->testGenerate_texture_atlas();
78 // //OGF::AutoSeam::prepare(textureAtlasGenerator->surface());
79 // m_pMeshPreview->UpdateMeshMap();
82 void cABFPannel::UpdateObj(IStatObj
* pObj
)
84 // textureAtlasGenerator->setSurface(pObj);
85 // //OGF::AutoSeam::prepare(textureAtlasGenerator->surface());
86 // m_pUVPreview->SetMeshMap(textureAtlasGenerator->surface());
87 // m_pMeshPreview->SetMeshMap(textureAtlasGenerator->surface());