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)
|
|
|
|
|
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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-06 07:10:45 -05:00
|
|
|
// SYNTHETIC: LEGO1 0x100aa250
|
2023-11-19 09:38:07 -05:00
|
|
|
// ViewROI::`scalar deleting destructor'
|
|
|
|
inline ViewROI::~ViewROI()
|
|
|
|
{
|
|
|
|
// SetLODList() will decrease refCount of LODList
|
|
|
|
SetLODList(0);
|
|
|
|
delete geometry;
|
|
|
|
}
|