Public Member Functions | Protected Attributes

MeshLib::CViewerVertex Class Reference

CViewerVertex class. More...

#include <ViewerMesh.h>

Inheritance diagram for MeshLib::CViewerVertex:
Inheritance graph
[legend]
Collaboration diagram for MeshLib::CViewerVertex:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CViewerVertex ()
CPointrgb ()
void _from_string ()

Protected Attributes

CPoint m_rgb

Detailed Description

CViewerVertex class.

Vertex class for viewer Trait : vertex rgb color

Definition at line 46 of file ViewerMesh.h.


Constructor & Destructor Documentation

MeshLib::CViewerVertex::CViewerVertex (  )  [inline]

CViewerVertex Constructor

Definition at line 54 of file ViewerMesh.h.

          {
                  m_rgb = CPoint(1,1,1); //default color is white
          }


Member Function Documentation

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;
                          }
                  }
  };

Here is the call graph for this function:

CPoint& MeshLib::CViewerVertex::rgb (  )  [inline]

vertex rgb color

Definition at line 59 of file ViewerMesh.h.

{ return m_rgb;    };


Member Data Documentation

vertex rgb color

Definition at line 50 of file ViewerMesh.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines