Blender V2.61 - r43446
Classes | Public Member Functions | Public Attributes | Protected Attributes

RAS_MeshObject Class Reference

#include <RAS_MeshObject.h>

List of all members.

Classes

struct  backtofront
struct  fronttoback
struct  polygonSlot
struct  SharedVertex

Public Member Functions

 RAS_MeshObject (Mesh *mesh)
virtual ~RAS_MeshObject ()
void CheckWeightCache (struct Object *obj)
int NumMaterials ()
const STR_StringGetMaterialName (unsigned int matid)
const STR_StringGetTextureName (unsigned int matid)
RAS_MeshMaterialGetMeshMaterial (unsigned int matid)
RAS_MeshMaterialGetMeshMaterial (RAS_IPolyMaterial *mat)
int GetMaterialId (RAS_IPolyMaterial *mat)
list< RAS_MeshMaterial >::iterator GetFirstMaterial ()
list< RAS_MeshMaterial >::iterator GetLastMaterial ()
void SetName (const char *name)
STR_StringGetName ()
bool MeshModified ()
void SetMeshModified (bool v)
MeshGetMesh ()
virtual RAS_PolygonAddPolygon (RAS_MaterialBucket *bucket, int numverts)
virtual void AddVertex (RAS_Polygon *poly, int i, const MT_Point3 &xyz, const MT_Point2 &uv, const MT_Point2 &uv2, const MT_Vector4 &tangent, const unsigned int rgbacolor, const MT_Vector3 &normal, bool flat, int origindex)
void SchedulePolygons (int drawingmode)
int NumVertices (RAS_IPolyMaterial *mat)
RAS_TexVertGetVertex (unsigned int matid, unsigned int index)
const float * GetVertexLocation (unsigned int orig_index)
int NumPolygons ()
RAS_PolygonGetPolygon (int num) const
virtual void AddMeshUser (void *clientobj, SG_QList *head, RAS_Deformer *deformer)
void RemoveFromBuckets (void *clientobj)
void EndConversion ()
void DebugColor (unsigned int abgr)
void SetVertexColor (RAS_IPolyMaterial *mat, MT_Vector4 rgba)
void SortPolygons (RAS_MeshSlot &ms, const MT_Transform &transform)
bool HasColliderPolygon ()

Public Attributes

vector< vector< SharedVertex > > m_sharedvertex_map

Protected Attributes

vector< int > m_cacheWeightIndex
list< RAS_MeshMaterialm_materials
Meshm_mesh

Detailed Description

Definition at line 57 of file RAS_MeshObject.h.


Constructor & Destructor Documentation

RAS_MeshObject::RAS_MeshObject ( Mesh mesh)
RAS_MeshObject::~RAS_MeshObject ( ) [virtual]

Member Function Documentation

void RAS_MeshObject::AddMeshUser ( void *  clientobj,
SG_QList head,
RAS_Deformer deformer 
) [virtual]
RAS_Polygon * RAS_MeshObject::AddPolygon ( RAS_MaterialBucket bucket,
int  numverts 
) [virtual]
void RAS_MeshObject::AddVertex ( RAS_Polygon poly,
int  i,
const MT_Point3 xyz,
const MT_Point2 uv,
const MT_Point2 uv2,
const MT_Vector4 tangent,
const unsigned int  rgbacolor,
const MT_Vector3 normal,
bool  flat,
int  origindex 
) [virtual]
void RAS_MeshObject::CheckWeightCache ( struct Object obj)
void RAS_MeshObject::DebugColor ( unsigned int  abgr)

Definition at line 299 of file RAS_MeshObject.cpp.

void RAS_MeshObject::EndConversion ( ) [inline]

Definition at line 141 of file RAS_MeshObject.h.

References m_sharedvertex_map.

Referenced by BL_ConvertMesh().

list< RAS_MeshMaterial >::iterator RAS_MeshObject::GetFirstMaterial ( )
list< RAS_MeshMaterial >::iterator RAS_MeshObject::GetLastMaterial ( )
int RAS_MeshObject::GetMaterialId ( RAS_IPolyMaterial mat)

Definition at line 255 of file RAS_MeshObject.cpp.

References m_materials.

const STR_String & RAS_MeshObject::GetMaterialName ( unsigned int  matid)
Mesh* RAS_MeshObject::GetMesh ( void  ) [inline]
RAS_MeshMaterial * RAS_MeshObject::GetMeshMaterial ( unsigned int  matid)
RAS_MeshMaterial * RAS_MeshObject::GetMeshMaterial ( RAS_IPolyMaterial mat)

Definition at line 243 of file RAS_MeshObject.cpp.

References m_materials, and NULL.

STR_String & RAS_MeshObject::GetName ( )
RAS_Polygon * RAS_MeshObject::GetPolygon ( int  num) const
const STR_String & RAS_MeshObject::GetTextureName ( unsigned int  matid)
RAS_TexVert * RAS_MeshObject::GetVertex ( unsigned int  matid,
unsigned int  index 
)
const float * RAS_MeshObject::GetVertexLocation ( unsigned int  orig_index)
bool RAS_MeshObject::HasColliderPolygon ( ) [inline]

Definition at line 157 of file RAS_MeshObject.h.

References NumPolygons(), and p.

Referenced by CcdShapeConstructionInfo::SetMesh().

bool RAS_MeshObject::MeshModified ( )
int RAS_MeshObject::NumMaterials ( )

Definition at line 159 of file RAS_MeshObject.cpp.

References m_materials.

Referenced by BL_SkinDeformer::Apply(), and BL_ModifierDeformer::Apply().

int RAS_MeshObject::NumPolygons ( )
int RAS_MeshObject::NumVertices ( RAS_IPolyMaterial mat)
void RAS_MeshObject::RemoveFromBuckets ( void *  clientobj)
void RAS_MeshObject::SchedulePolygons ( int  drawingmode)

Definition at line 555 of file RAS_MeshObject.cpp.

void RAS_MeshObject::SetMeshModified ( bool  v) [inline]

Definition at line 109 of file RAS_MeshObject.h.

Referenced by RAS_MaterialBucket::RenderMeshSlot().

void RAS_MeshObject::SetName ( const char *  name)

Definition at line 219 of file RAS_MeshObject.cpp.

Referenced by BL_ConvertMesh().

void RAS_MeshObject::SetVertexColor ( RAS_IPolyMaterial mat,
MT_Vector4  rgba 
)
void RAS_MeshObject::SortPolygons ( RAS_MeshSlot ms,
const MT_Transform transform 
)

Member Data Documentation

vector<int> RAS_MeshObject::m_cacheWeightIndex [protected]

Definition at line 73 of file RAS_MeshObject.h.

Referenced by CheckWeightCache(), and RAS_MeshObject().

Definition at line 78 of file RAS_MeshObject.h.

Referenced by CheckWeightCache(), GetMesh(), RAS_MeshObject(), and ~RAS_MeshObject().


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