!B (Sandbox) (CE-21795) Importing models with multisubmaterials via fbx switches...
[CRYENGINE.git] / Code / Sandbox / Plugins / LodGeneratorPlugin / panel / ABFPannel.cpp
blob61f4c01eb672ed997747037744d5e1260a3dcfb9
1 #include "StdAfx.h"
3 #include "ABFPannel.h"
4 #include "../UIs/ui_cabfpannel.h"
6 cABFPannel::cABFPannel(QWidget *parent) :
7 QWidget(parent),
8 ui(new Ui::cABFPannel)
10 ui->setupUi(this);
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()
40 delete ui;
42 // delete textureAtlasGenerator;
45 // void cABFPannel::OnRenderUV(const SRenderContext& rc)
46 // {
47 // // m_pUVPreview->OnRender(rc);
48 // }
50 // void cABFPannel::OnKeyEventUV(const SKeyEvent& sKeyEvent)
51 // {
52 // // m_pUVPreview->OnKeyEvent(sKeyEvent);
53 // }
55 // void cABFPannel::OnMouseEventUV(const SMouseEvent& sMouseEvent)
56 // {
57 // // m_pUVPreview->OnMouseEvent(sMouseEvent);
58 // }
60 // void cABFPannel::OnRender(const SRenderContext& rc)
61 // {
62 // // m_pMeshPreview->OnRender(rc);
63 // }
65 // void cABFPannel::OnKeyEvent(const SKeyEvent& sKeyEvent)
66 // {
67 // // m_pMeshPreview->OnKeyEvent(sKeyEvent);
68 // }
70 // void cABFPannel::OnMouseEvent(const SMouseEvent& sMouseEvent)
71 // {
72 // // m_pMeshPreview->OnMouseEvent(sMouseEvent);
73 // }
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());