NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::lyt::Pane Class Reference
Inheritance diagram for nw4r::lyt::Pane:
[legend]

Description

Definition at line 77 of file lyt_pane.h.

Public Member Functions

 NW4R_UT_RTTI_DECL (Pane)
 
 Pane (const res::Pane *pRes)
 
virtual void CalculateMtx (const DrawInfo &rInfo)
 
void CalculateMtxChild (const DrawInfo &rInfo)
 
virtual void Draw (const DrawInfo &rInfo)
 
virtual void DrawSelf (const DrawInfo &rInfo)
 
virtual void Animate (ulong option)
 
virtual void AnimateSelf (ulong option)
 
virtual ut::Color GetVtxColor (ulong idx) const
 
virtual void SetVtxColor (ulong idx, ut::Color color)
 
virtual u8 GetColorElement (ulong idx) const
 
virtual void SetColorElement (ulong idx, u8 value)
 
virtual u8 GetVtxColorElement (ulong idx) const
 
virtual void SetVtxColorElement (ulong idx, u8 value)
 
virtual PaneFindPaneByName (const char *pName, bool recursive)
 
virtual MaterialFindMaterialByName (const char *pName, bool recursive)
 
virtual void BindAnimation (AnimTransform *pAnimTrans, bool recursive)
 
virtual void UnbindAnimation (AnimTransform *pAnimTrans, bool recursive)
 
virtual void UnbindAllAnimation (bool recursive)
 
virtual void UnbindAnimationSelf (AnimTransform *pAnimTrans)
 
virtual AnimationLinkFindAnimationLinkSelf (AnimTransform *pAnimTrans)
 
virtual AnimationLinkFindAnimationLinkSelf (const AnimResource &)
 
virtual void SetAnimationEnable (AnimTransform *pAnimTrans, bool enable, bool recursive)
 
virtual void SetAnimationEnable (const AnimResource &, bool enable, bool recursive)
 
virtual bool GetMaterialNum () const
 
virtual MaterialGetMaterial () const
 
virtual MaterialGetMaterial (ulong) const
 
virtual void LoadMtx (const DrawInfo &rInfo)
 
void AppendChild (Pane *pChild)
 
void RemoveChild (Pane *pChild)
 
ut::Rect GetPaneRect (const DrawInfo &rInfo) const
 
void AddAnimationLink (AnimationLink *pAnimLink)
 
math::VEC2 GetVtxPos () const
 
PaneGetParent () const
 
PaneListGetChildList ()
 
void SetSRTElement (ulong idx, f32 value)
 
const math::VEC3GetTranslate () const
 
void SetTranslate (const math::VEC2 &rTransXY)
 
void SetTranslate (const math::VEC3 &rTrans)
 
const math::VEC3GetRotate () const
 
void SetRotate (const math::VEC3 &rRotate)
 
const math::VEC2GetScale () const
 
void SetScale (const math::VEC2 &rScale)
 
const SizeGetSize () const
 
void SetSize (const Size &rSize)
 
const math::MTX34GetMtx () const
 
void SetMtx (const math::MTX34 &rMtx)
 
const math::MTX34GetGlobalMtx () const
 
void SetGlobalMtx (const math::MTX34 &rGlbMtx)
 
u8 GetAlpha () const
 
void SetAlpha (u8 alpha)
 
u8 GetGlbAlpha () const
 
void SetGlbAlpha (u8 alpha)
 
u8 GetBasePositionH () const
 
void SetBasePositionH (u8 position)
 
u8 GetBasePositionV () const
 
void SetBasePositionV (u8 position)
 
bool IsVisible () const
 
void SetVisible (bool visible)
 
bool IsInfluencedAlpha () const
 
void SetInfluencedAlpha (bool influenced)
 
bool IsLocationAdjust () const
 
void SetLocationAdjust (bool adjust)
 
const char * GetName () const
 
void SetName (const char *pName)
 
const char * GetUserData () const
 
void SetUserData (const char *pUserData)
 
bool IsUserAllocated () const
 
- Public Member Functions inherited from nw4r::lyt::detail::PaneBase
 NW4R_UT_LINKLIST_NODE_DECL ()
 

Protected Member Functions

void InsertChild (PaneList::Iterator next, Pane *pChild)
 

Protected Attributes

PanempParent
 
PaneList mChildList
 
AnimationLinkList mAnimList
 
MaterialmpMaterial
 
math::VEC3 mTranslate
 
math::VEC3 mRotate
 
math::VEC2 mScale
 
Size mSize
 
math::MTX34 mMtx
 
math::MTX34 mGlbMtx
 
ulong mExtUserDataNum
 
u8 mAlpha
 
u8 mGlbAlpha
 
u8 mBasePosition
 
u8 mFlag
 
char mName [NW4R_LYT_RES_NAME_LEN+1]
 
char mUserData [NW4R_LYT_PANE_USERDATA_LEN+1]
 
bool mbUserAllocated
 
u8 PADDING_0xD3
 

Private Types

enum  {
  BIT_VISIBLE ,
  BIT_INFLUENCED_ALPHA ,
  BIT_LOCATION_ADJUST
}
 
typedef ut::LinkList< Pane, offsetof(PaneBase, node)> PaneList
 

Private Member Functions

void Init ()
 

Member Typedef Documentation

◆ PaneList

typedef ut::LinkList<Pane, offsetof(PaneBase, node)> nw4r::lyt::Pane::PaneList
private

Definition at line 89 of file lyt_pane.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private

Definition at line 82 of file lyt_pane.h.

Member Function Documentation

◆ GetParent()

Pane * nw4r::lyt::Pane::GetParent ( ) const
inline

Definition at line 147 of file lyt_pane.h.

◆ GetChildList()

PaneList & nw4r::lyt::Pane::GetChildList ( )
inline

Definition at line 151 of file lyt_pane.h.

◆ SetSRTElement()

void nw4r::lyt::Pane::SetSRTElement ( ulong idx,
f32 value )
inline

Definition at line 155 of file lyt_pane.h.

◆ GetTranslate()

const math::VEC3 & nw4r::lyt::Pane::GetTranslate ( ) const
inline

Definition at line 159 of file lyt_pane.h.

◆ SetTranslate() [1/2]

void nw4r::lyt::Pane::SetTranslate ( const math::VEC2 & rTransXY)
inline

Definition at line 162 of file lyt_pane.h.

◆ SetTranslate() [2/2]

void nw4r::lyt::Pane::SetTranslate ( const math::VEC3 & rTrans)
inline

Definition at line 166 of file lyt_pane.h.

◆ GetRotate()

const math::VEC3 & nw4r::lyt::Pane::GetRotate ( ) const
inline

Definition at line 170 of file lyt_pane.h.

◆ SetRotate()

void nw4r::lyt::Pane::SetRotate ( const math::VEC3 & rRotate)
inline

Definition at line 173 of file lyt_pane.h.

◆ GetScale()

const math::VEC2 & nw4r::lyt::Pane::GetScale ( ) const
inline

Definition at line 177 of file lyt_pane.h.

◆ SetScale()

void nw4r::lyt::Pane::SetScale ( const math::VEC2 & rScale)
inline

Definition at line 180 of file lyt_pane.h.

◆ GetSize()

const Size & nw4r::lyt::Pane::GetSize ( ) const
inline

Definition at line 184 of file lyt_pane.h.

◆ SetSize()

void nw4r::lyt::Pane::SetSize ( const Size & rSize)
inline

Definition at line 187 of file lyt_pane.h.

◆ GetMtx()

const math::MTX34 & nw4r::lyt::Pane::GetMtx ( ) const
inline

Definition at line 191 of file lyt_pane.h.

◆ SetMtx()

void nw4r::lyt::Pane::SetMtx ( const math::MTX34 & rMtx)
inline

Definition at line 194 of file lyt_pane.h.

◆ GetGlobalMtx()

const math::MTX34 & nw4r::lyt::Pane::GetGlobalMtx ( ) const
inline

Definition at line 198 of file lyt_pane.h.

◆ SetGlobalMtx()

void nw4r::lyt::Pane::SetGlobalMtx ( const math::MTX34 & rGlbMtx)
inline

Definition at line 201 of file lyt_pane.h.

◆ GetAlpha()

u8 nw4r::lyt::Pane::GetAlpha ( ) const
inline

Definition at line 205 of file lyt_pane.h.

◆ SetAlpha()

void nw4r::lyt::Pane::SetAlpha ( u8 alpha)
inline

Definition at line 208 of file lyt_pane.h.

◆ GetGlbAlpha()

u8 nw4r::lyt::Pane::GetGlbAlpha ( ) const
inline

Definition at line 212 of file lyt_pane.h.

◆ SetGlbAlpha()

void nw4r::lyt::Pane::SetGlbAlpha ( u8 alpha)
inline

Definition at line 215 of file lyt_pane.h.

◆ GetBasePositionH()

u8 nw4r::lyt::Pane::GetBasePositionH ( ) const
inline

Definition at line 219 of file lyt_pane.h.

◆ SetBasePositionH()

void nw4r::lyt::Pane::SetBasePositionH ( u8 position)
inline

Definition at line 222 of file lyt_pane.h.

◆ GetBasePositionV()

u8 nw4r::lyt::Pane::GetBasePositionV ( ) const
inline

Definition at line 226 of file lyt_pane.h.

◆ SetBasePositionV()

void nw4r::lyt::Pane::SetBasePositionV ( u8 position)
inline

Definition at line 229 of file lyt_pane.h.

◆ IsVisible()

bool nw4r::lyt::Pane::IsVisible ( ) const
inline

Definition at line 233 of file lyt_pane.h.

◆ SetVisible()

void nw4r::lyt::Pane::SetVisible ( bool visible)
inline

Definition at line 236 of file lyt_pane.h.

◆ IsInfluencedAlpha()

bool nw4r::lyt::Pane::IsInfluencedAlpha ( ) const
inline

Definition at line 240 of file lyt_pane.h.

◆ SetInfluencedAlpha()

void nw4r::lyt::Pane::SetInfluencedAlpha ( bool influenced)
inline

Definition at line 243 of file lyt_pane.h.

◆ IsLocationAdjust()

bool nw4r::lyt::Pane::IsLocationAdjust ( ) const
inline

Definition at line 247 of file lyt_pane.h.

◆ SetLocationAdjust()

void nw4r::lyt::Pane::SetLocationAdjust ( bool adjust)
inline

Definition at line 250 of file lyt_pane.h.

◆ GetName()

const char * nw4r::lyt::Pane::GetName ( ) const
inline

Definition at line 254 of file lyt_pane.h.

◆ GetUserData()

const char * nw4r::lyt::Pane::GetUserData ( ) const
inline

Definition at line 259 of file lyt_pane.h.

◆ IsUserAllocated()

bool nw4r::lyt::Pane::IsUserAllocated ( ) const
inline

Definition at line 264 of file lyt_pane.h.

Member Data Documentation

◆ mpParent

Pane* nw4r::lyt::Pane::mpParent
protected

Definition at line 269 of file lyt_pane.h.

◆ mChildList

PaneList nw4r::lyt::Pane::mChildList
protected

Definition at line 270 of file lyt_pane.h.

◆ mAnimList

AnimationLinkList nw4r::lyt::Pane::mAnimList
protected

Definition at line 271 of file lyt_pane.h.

◆ mpMaterial

Material* nw4r::lyt::Pane::mpMaterial
protected

Definition at line 272 of file lyt_pane.h.

◆ mTranslate

math::VEC3 nw4r::lyt::Pane::mTranslate
protected

Definition at line 274 of file lyt_pane.h.

◆ mRotate

math::VEC3 nw4r::lyt::Pane::mRotate
protected

Definition at line 275 of file lyt_pane.h.

◆ mScale

math::VEC2 nw4r::lyt::Pane::mScale
protected

Definition at line 276 of file lyt_pane.h.

◆ mSize

Size nw4r::lyt::Pane::mSize
protected

Definition at line 277 of file lyt_pane.h.

◆ mMtx

math::MTX34 nw4r::lyt::Pane::mMtx
protected

Definition at line 279 of file lyt_pane.h.

◆ mGlbMtx

math::MTX34 nw4r::lyt::Pane::mGlbMtx
protected

Definition at line 280 of file lyt_pane.h.

◆ mExtUserDataNum

ulong nw4r::lyt::Pane::mExtUserDataNum
protected

Definition at line 282 of file lyt_pane.h.

◆ mAlpha

u8 nw4r::lyt::Pane::mAlpha
protected

Definition at line 284 of file lyt_pane.h.

◆ mGlbAlpha

u8 nw4r::lyt::Pane::mGlbAlpha
protected

Definition at line 285 of file lyt_pane.h.

◆ mBasePosition

u8 nw4r::lyt::Pane::mBasePosition
protected

Definition at line 286 of file lyt_pane.h.

◆ mFlag

u8 nw4r::lyt::Pane::mFlag
protected

Definition at line 287 of file lyt_pane.h.

◆ mName

char nw4r::lyt::Pane::mName[NW4R_LYT_RES_NAME_LEN+1]
protected

Definition at line 289 of file lyt_pane.h.

◆ mUserData

char nw4r::lyt::Pane::mUserData[NW4R_LYT_PANE_USERDATA_LEN+1]
protected

Definition at line 290 of file lyt_pane.h.

◆ mbUserAllocated

bool nw4r::lyt::Pane::mbUserAllocated
protected

Definition at line 292 of file lyt_pane.h.

◆ PADDING_0xD3

u8 nw4r::lyt::Pane::PADDING_0xD3
protected

Definition at line 293 of file lyt_pane.h.