2023-11-19 09:38:07 -05:00
|
|
|
#include "viewroi.h"
|
|
|
|
|
2023-12-11 16:33:46 -05:00
|
|
|
#include "decomp.h"
|
2023-11-19 09:38:07 -05:00
|
|
|
|
|
|
|
DECOMP_SIZE_ASSERT(ViewROI, 0xe0)
|
|
|
|
|
2024-01-01 19:17:38 -05:00
|
|
|
// GLOBAL: LEGO1 0x101013d8
|
|
|
|
undefined g_unk101013d8 = 0;
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100a9eb0
|
2023-11-19 09:38:07 -05:00
|
|
|
float ViewROI::IntrinsicImportance() const
|
|
|
|
{
|
|
|
|
return .5;
|
|
|
|
} // for now
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100a9ec0
|
2023-11-19 09:38:07 -05:00
|
|
|
const Tgl::Group* ViewROI::GetGeometry() const
|
|
|
|
{
|
|
|
|
return geometry;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100a9ed0
|
2023-11-19 09:38:07 -05:00
|
|
|
Tgl::Group* ViewROI::GetGeometry()
|
|
|
|
{
|
|
|
|
return geometry;
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// FUNCTION: LEGO1 0x100a9ee0
|
2023-11-19 09:38:07 -05:00
|
|
|
void ViewROI::UpdateWorldData(const Matrix4Data& parent2world)
|
|
|
|
{
|
|
|
|
OrientableROI::UpdateWorldData(parent2world);
|
|
|
|
if (geometry) {
|
2023-12-07 07:10:42 -05:00
|
|
|
Tgl::FloatMatrix4 mat;
|
2023-11-19 09:38:07 -05:00
|
|
|
SETMAT4(mat, m_local2world.GetMatrix());
|
|
|
|
Tgl::Result result = geometry->SetTransformation(mat);
|
|
|
|
// assert(Tgl::Succeeded(result));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-01 19:17:38 -05:00
|
|
|
// FUNCTION: LEGO1 0x100aa500
|
|
|
|
undefined ViewROI::SetUnk101013d8(undefined p_flag)
|
2023-11-19 09:38:07 -05:00
|
|
|
{
|
2024-01-01 19:17:38 -05:00
|
|
|
undefined oldFlag = g_unk101013d8;
|
|
|
|
g_unk101013d8 = p_flag;
|
|
|
|
return oldFlag;
|
2023-11-19 09:38:07 -05:00
|
|
|
}
|