DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
CFrame Class Reference
Inheritance diagram for CFrame:
CFrameVu1

Public Member Functions

float(* GetInverseMatrix ())[4]
 
CFrame & operator= (CFrame &other)
 
void SetPosition (float x, float y, float z)
 
void SetPosition (float *position)
 
void SetScale (float x, float y, float z)
 
void SetScale (float *scale)
 
int GetFrameNum ()
 
void SetParent (CFrame *parent)
 
void SetBrother (CFrame *brother)
 
void SetChild (CFrame *child)
 
void SetReference (CFrame *reference)
 
void DeleteReference ()
 
void GetLWMatrix (sceVu0FMATRIX matrix)
 
void SetTransMatrix (sceVu0FMATRIX matrix)
 
void SetTransMatrix (float *quaternion)
 
CFrame * SearchFrame (char *name)
 
void GetBoundBox (CBoxVu0 *box, int children)
 
void ScaleBoundBox (float *scale)
 
void SetAttr (CFrameAttr &attr, int children, int mask)
 
void GetWorldPosition (float *world_point, float *local_point)
 
void SetRotation (float x, float y, float z)
 
void GetRotation (float *rotation)
 
void SetRotType (int type)
 
void SetCollision (CCollision *collision)
 
int PickUpNearPoly (CCPoly *poly, const CBoxVu0 &box)
 
virtual int DrawVu1 (unsigned int *packet, RenderInfo *info)
 
virtual int DrawVu1 (sceVif1Packet *packet, RenderInfo *info)
 
virtual void Initialize ()
 

Public Attributes

int flags
 
CCollision * collision
 
sceVu0FVECTOR max
 
sceVu0FVECTOR min
 
sceVu0FVECTOR corner [8]
 
CFrameAttr attr
 
CFrame * parent
 
int reference
 
char name [32]
 
CFrame * child
 
CFrame * brother
 
CFrame * elder
 
sceVu0FMATRIX world
 
sceVu0FMATRIX inverse
 
sceVu0FMATRIX local
 
sceVu0FVECTOR scale
 
sceVu0FVECTOR position
 
sceVu0FVECTOR rotation
 
int world_valid
 
int no_rotation
 
int rot_type
 
int srt
 

Detailed Description

Definition at line 58 of file frame.hpp.

Constructor & Destructor Documentation

◆ CFrame()

CFrame::CFrame ( )

Definition at line 1329 of file frame.cpp.

Member Function Documentation

◆ GetInverseMatrix()

float(* CFrame::GetInverseMatrix ( ) )[4]

Definition at line 541 of file frame.cpp.

◆ operator=()

CFrame & CFrame::operator= ( CFrame &  other)

Definition at line 861 of file frame.cpp.

◆ SetPosition() [1/2]

void CFrame::SetPosition ( float  x,
float  y,
float  z 
)

Definition at line 320 of file frame.cpp.

◆ SetPosition() [2/2]

void CFrame::SetPosition ( float *  position)

Definition at line 333 of file frame.cpp.

◆ SetScale() [1/2]

void CFrame::SetScale ( float  x,
float  y,
float  z 
)

Definition at line 346 of file frame.cpp.

◆ SetScale() [2/2]

void CFrame::SetScale ( float *  scale)

Definition at line 357 of file frame.cpp.

◆ GetFrameNum()

int CFrame::GetFrameNum ( )

Definition at line 368 of file frame.cpp.

◆ SetParent()

void CFrame::SetParent ( CFrame *  parent)

Definition at line 381 of file frame.cpp.

◆ SetBrother()

void CFrame::SetBrother ( CFrame *  brother)

Definition at line 395 of file frame.cpp.

◆ SetChild()

void CFrame::SetChild ( CFrame *  child)

Definition at line 409 of file frame.cpp.

◆ SetReference()

void CFrame::SetReference ( CFrame *  reference)

Definition at line 424 of file frame.cpp.

◆ DeleteReference()

void CFrame::DeleteReference ( )

Definition at line 433 of file frame.cpp.

◆ GetLWMatrix()

void CFrame::GetLWMatrix ( sceVu0FMATRIX  matrix)

Definition at line 441 of file frame.cpp.

◆ SetTransMatrix() [1/2]

void CFrame::SetTransMatrix ( sceVu0FMATRIX  matrix)

Definition at line 550 of file frame.cpp.

◆ SetTransMatrix() [2/2]

void CFrame::SetTransMatrix ( float *  quaternion)

Definition at line 557 of file frame.cpp.

◆ SearchFrame()

CFrame * CFrame::SearchFrame ( char *  name)

Definition at line 619 of file frame.cpp.

◆ GetBoundBox()

void CFrame::GetBoundBox ( CBoxVu0 *  box,
int  children 
)

Definition at line 640 of file frame.cpp.

◆ ScaleBoundBox()

void CFrame::ScaleBoundBox ( float *  scale)

Definition at line 682 of file frame.cpp.

◆ SetAttr()

void CFrame::SetAttr ( CFrameAttr &  attr,
int  children,
int  mask 
)

Definition at line 734 of file frame.cpp.

◆ GetWorldPosition()

void CFrame::GetWorldPosition ( float *  world_point,
float *  local_point 
)

Definition at line 818 of file frame.cpp.

◆ SetRotation()

void CFrame::SetRotation ( float  x,
float  y,
float  z 
)

Definition at line 826 of file frame.cpp.

◆ GetRotation()

void CFrame::GetRotation ( float *  rotation)

Definition at line 842 of file frame.cpp.

◆ SetRotType()

void CFrame::SetRotType ( int  type)

Definition at line 851 of file frame.cpp.

◆ SetCollision()

void CFrame::SetCollision ( CCollision *  collision)

Definition at line 1317 of file frame.cpp.

◆ PickUpNearPoly()

int CFrame::PickUpNearPoly ( CCPoly *  poly,
const CBoxVu0 &  box 
)

Definition at line 1414 of file frame.cpp.

◆ DrawVu1() [1/2]

int CFrame::DrawVu1 ( unsigned int *  packet,
RenderInfo *  info 
)
virtual

Reimplemented in CFrameVu1.

Definition at line 1321 of file frame.cpp.

◆ DrawVu1() [2/2]

int CFrame::DrawVu1 ( sceVif1Packet *  packet,
RenderInfo *  info 
)
virtual

Reimplemented in CFrameVu1.

Definition at line 1325 of file frame.cpp.

◆ Initialize()

void CFrame::Initialize ( )
virtual

Reimplemented in CFrameVu1.

Definition at line 284 of file frame.cpp.

Member Data Documentation

◆ flags

int CFrame::flags

Collision search bits: 1 searches this frame's collision, 2 skips its children, 4 alone excludes the frame.

Definition at line 60 of file frame.hpp.

◆ collision

CCollision* CFrame::collision

Collision polygons attached to the frame, or null.

Definition at line 61 of file frame.hpp.

◆ max

sceVu0FVECTOR CFrame::max

Maximum corner of the frame's bound in local space.

Definition at line 62 of file frame.hpp.

◆ min

sceVu0FVECTOR CFrame::min

Minimum corner of the frame's bound in local space.

Definition at line 63 of file frame.hpp.

◆ corner

sceVu0FVECTOR CFrame::corner[8]

Eight corners of the bound, kept for transforming it.

Definition at line 64 of file frame.hpp.

◆ attr

CFrameAttr CFrame::attr

Drawing attributes of the frame.

Definition at line 65 of file frame.hpp.

◆ parent

CFrame* CFrame::parent

Parent frame, or the referenced frame while reference is set.

Definition at line 66 of file frame.hpp.

◆ reference

int CFrame::reference

Whether parent is a followed frame rather than a true parent.

Definition at line 67 of file frame.hpp.

◆ name

char CFrame::name[32]

Frame name, whose part after "__" carries attribute flags.

Definition at line 68 of file frame.hpp.

◆ child

CFrame* CFrame::child

First child frame, or null.

Definition at line 69 of file frame.hpp.

◆ brother

CFrame* CFrame::brother

Next sibling frame, or null.

Definition at line 70 of file frame.hpp.

◆ elder

CFrame* CFrame::elder

Previous sibling frame, or null.

Definition at line 71 of file frame.hpp.

◆ world

sceVu0FMATRIX CFrame::world

Cached local-to-world matrix.

Definition at line 72 of file frame.hpp.

◆ inverse

sceVu0FMATRIX CFrame::inverse

Inverse of the world matrix, as GetInverseMatrix last built it.

Definition at line 73 of file frame.hpp.

◆ local

sceVu0FMATRIX CFrame::local

Local transform relative to the parent.

Definition at line 74 of file frame.hpp.

◆ scale

sceVu0FVECTOR CFrame::scale

Scale applied when the local matrix is built from its parts.

Definition at line 75 of file frame.hpp.

◆ position

sceVu0FVECTOR CFrame::position

Translation applied when the local matrix is built from its parts.

Definition at line 76 of file frame.hpp.

◆ rotation

sceVu0FVECTOR CFrame::rotation

Euler rotation in radians applied when rot_type bit 0 is set.

Definition at line 77 of file frame.hpp.

◆ world_valid

int CFrame::world_valid

Whether the cached world matrix is current.

Definition at line 78 of file frame.hpp.

◆ no_rotation

int CFrame::no_rotation

Whether no rotation has been set, so GetRotation reports zero.

Definition at line 79 of file frame.hpp.

◆ rot_type

int CFrame::rot_type

Rotation bits: 1 applies rotation, 2 rotates about the frame's own origin.

Definition at line 80 of file frame.hpp.

◆ srt

int CFrame::srt

Whether the local matrix is rebuilt from scale, rotation and position instead of taken as set.

Definition at line 81 of file frame.hpp.