My Project
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
ParaEngine::BMaxNode Struct Reference

base class for a block in bmax model More...

#include <BMaxNode.h>

Inheritance diagram for ParaEngine::BMaxNode:
ParaEngine::CRefCounted ParaEngine::BMaxBlockModelNode ParaEngine::BMaxFrameNode

Public Types

enum  FaceStatus { faceInvisible = 0, faceVisibleNotSign, faceVisibleSigned }
 

Public Member Functions

 BMaxNode (BMaxParser *pParser, int16 x_, int16 y_, int16 z_, int32 template_id_, int32 block_data_)
 
uint64 GetIndex ()
 
virtual DWORD GetColor ()
 
BlockModelGetBlockModel ()
 
void SetBlockModel (BlockModel *pModel)
 set block model weak reference. More...
 
virtual void SetColor (DWORD val)
 
virtual BMaxFrameNodeToBoneNode ()
 get the bone node interface if it is
 
bool HasBoneWeight ()
 if there are any bone associated with this node at the moment. More...
 
virtual int GetBoneIndex ()
 return the index of first bone, return -1 if no bone is binded to this node
 
virtual void SetBoneIndex (int nIndex)
 
BMaxNodeGetNeighbour (BlockDirection::Side nSize)
 get neighbor block by side id More...
 
BMaxNodeGetNeighbourByOffset (Vector3 offset)
 
virtual bool isSolid ()
 
virtual int TessellateBlock (BlockModel *tessellatedModel)
 
void QueryNeighborBlockData (BMaxNode **pBlockData, int nFrom, int nTo)
 
uint32 CalculateCubeAO (BMaxNode **neighborBlocks)
 
int32_t GetAvgVertexLight (int32_t v1, int32_t v2, int32_t v3, int32_t v4)
 
void SetFaceVisible (int nIndex)
 
void SetFaceUsed (int nIndex)
 
bool IsFaceNotUse (int nIndex)
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Public Attributes

int16 x
 
int16 y
 
int16 z
 
int32 template_id
 
int32 block_data
 
int m_nBoneIndex
 

Protected Attributes

BMaxParserm_pParser
 
DWORD m_color
 
BlockModelm_pBlockModel
 
FaceStatus m_facesStatus [6]
 
- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

Detailed Description

base class for a block in bmax model

Member Function Documentation

§ GetNeighbour()

BMaxNode * ParaEngine::BMaxNode::GetNeighbour ( BlockDirection::Side  nSize)

get neighbor block by side id

Parameters
nSize

§ HasBoneWeight()

bool ParaEngine::BMaxNode::HasBoneWeight ( )

if there are any bone associated with this node at the moment.

§ SetBlockModel()

void ParaEngine::BMaxNode::SetBlockModel ( BlockModel pModel)

set block model weak reference.

§ TessellateBlock()

int ParaEngine::BMaxNode::TessellateBlock ( BlockModel tessellatedModel)
virtual
Parameters
tessellatedModelgenerate block model vertices
Returns
vertices count

Reimplemented in ParaEngine::BMaxBlockModelNode.


The documentation for this struct was generated from the following files: