Isle
Loading...
Searching...
No Matches
viewroi.cpp
Go to the documentation of this file.
1#include "viewroi.h"
2
3#include "decomp.h"
4
5#include <vec.h>
6
8
9// GLOBAL: LEGO1 0x101013d8
11
12// FUNCTION: LEGO1 0x100a9eb0
13float ViewROI::IntrinsicImportance() const
14{
15 return .5;
16} // for now
17
18// FUNCTION: LEGO1 0x100a9ec0
20{
21 return geometry;
22}
23
24// FUNCTION: LEGO1 0x100a9ed0
26{
27 return geometry;
28}
29
30// FUNCTION: LEGO1 0x100a9ee0
31void ViewROI::UpdateWorldData(const Matrix4& parent2world)
32{
34
35 if (geometry) {
36 Tgl::FloatMatrix4 matrix;
37 Matrix4 in(matrix);
39 Tgl::Result result = geometry->SetTransformation(matrix);
40 // assert(Tgl::Succeeded(result));
41 }
42}
43
44// FUNCTION: LEGO1 0x100a9fc0
45void ViewROI::VTable0x24(const Matrix4& p_transform)
46{
47 OrientableROI::VTable0x24(p_transform);
48 if (geometry) {
49 Tgl::FloatMatrix4 matrix;
50 Matrix4 in(matrix);
53 }
54}
55
56// FUNCTION: LEGO1 0x100aa0a0
57void ViewROI::SetLocalTransform(const Matrix4& p_transform)
58{
60 if (geometry) {
61 Tgl::FloatMatrix4 matrix;
62 Matrix4 in(matrix);
65 }
66}
67
68// FUNCTION: LEGO1 0x100aa180
70{
72 if (geometry) {
73 Tgl::FloatMatrix4 matrix;
74 Matrix4 in(matrix);
77 }
78}
79
80// FUNCTION: LEGO1 0x100aa500
82{
83 undefined oldFlag = g_unk101013d8;
84 g_unk101013d8 = p_flag;
85 return oldFlag;
86}
4x4 Matrix class with virtual interface for manipulation and transformation.
Definition: matrix.h:24
virtual void SetLocalTransform(const Matrix4 &p_transform)
Sets the local-to-world transformation matrix directly.
virtual void VTable0x1c()
[AI] Concrete subclass implementation should implement this to perform post-bounding-volume-change lo...
MxMatrix m_local2world
The transform from local to world space; 4x4 transformation matrix.
virtual void VTable0x24(const Matrix4 &p_transform)
Post-multiplies the current local-to-world matrix by p_transform.
virtual void UpdateWorldData(const Matrix4 &p_transform)
Applies p_transform in (presumably) parent coordinates and updates world data for self and children.
[AI] Scene graph node for parental transforms/color/material/texture; can hold meshes or other groups...
Definition: tgl.h:669
virtual Result SetTransformation(FloatMatrix4 &)=0
[AI] Sets the group's transformation matrix.
[AI] ViewROI objects represent viewable and placeable objects in the scene, each holding their own tr...
Definition: viewroi.h:13
void SetLocalTransform(const Matrix4 &p_transform) override
[AI] Sets the local transformation; propagates to the underlying geometry group.
Definition: viewroi.cpp:57
static undefined SetUnk101013d8(undefined p_flag)
[AI] Sets the global flag g_unk101013d8 and returns its previous value.
Definition: viewroi.cpp:81
void VTable0x24(const Matrix4 &p_transform) override
[AI] Updates an internal transformation, synchronizing ROI and geometry.
Definition: viewroi.cpp:45
virtual Tgl::Group * GetGeometry()
[AI] Returns a pointer to this ROI's Tgl::Group geometry for rendering and manipulation.
Definition: viewroi.cpp:19
void VTable0x1c() override
[AI] Updates internal state, potentially related to animation or LOD switching (exact purpose unclear...
Definition: viewroi.cpp:69
void UpdateWorldData(const Matrix4 &parent2world) override
[AI] Updates object's and geometry's world transformation based on parent's world matrix.
Definition: viewroi.cpp:31
Tgl::Group * geometry
[AI] Root group for all geometry/renderable objects for this ROI.
Definition: viewroi.h:135
#define DECOMP_SIZE_ASSERT(T, S)
Definition: decomp.h:19
unsigned char undefined
Definition: decomp.h:26
Result
[AI] Result type used throughout the Tgl API to report operation success or failure.
Definition: tgl.h:126
float FloatMatrix4[4][4]
[AI] Represents a 4x4 matrix of single-precision floating point values.
Definition: tglvector.h:53
#define SETMAT4(to, from)
Definition: vec.h:547
undefined g_unk101013d8
Definition: viewroi.cpp:10