CViewerVertex class. More...
#include <ViewerMesh.h>


Public Member Functions | |
| CViewerVertex () | |
| CPoint & | rgb () |
| void | _from_string () |
Protected Attributes | |
| CPoint | m_rgb |
CViewerVertex class.
Vertex class for viewer Trait : vertex rgb color
Definition at line 46 of file ViewerMesh.h.
| MeshLib::CViewerVertex::CViewerVertex | ( | ) | [inline] |
CViewerVertex Constructor
Definition at line 54 of file ViewerMesh.h.
{
m_rgb = CPoint(1,1,1); //default color is white
}
| void MeshLib::CViewerVertex::_from_string | ( | ) | [inline] |
read vertex rgb, uv from vertex string
Reimplemented from MeshLib::CVertex.
Definition at line 66 of file ViewerMesh.h.
{
CParser parser( m_string );
for( std::list<CToken*>::iterator iter = parser.tokens().begin() ; iter != parser.tokens().end(); ++ iter )
{
CToken * token = *iter;
if( token->m_key == "uv" )
{
token->m_value >> m_uv;
}
else
if( token->m_key == "rgb" )
{
token->m_value >> m_rgb;
}
}
};

| CPoint& MeshLib::CViewerVertex::rgb | ( | ) | [inline] |
CPoint MeshLib::CViewerVertex::m_rgb [protected] |
vertex rgb color
Definition at line 50 of file ViewerMesh.h.
1.7.1