osgEarth 2.1.1
Public Types | Public Member Functions | Public Attributes

anonymous_namespace{MeshSubdivider.cpp}::LineData Struct Reference

List of all members.

Public Types

typedef std::map< osg::Vec3,
GLuint > 
VertMap

Public Member Functions

 LineData ()
GLuint record (const osg::Vec3 &v)
void operator() (const osg::Vec3 &v0, const osg::Vec3 &v1, bool temp)

Public Attributes

VertMap _vertMap
osg::Vec3Array * _verts
LineQueue _lines

Detailed Description

Definition at line 270 of file MeshSubdivider.cpp.


Member Typedef Documentation

typedef std::map<osg::Vec3,GLuint> anonymous_namespace{MeshSubdivider.cpp}::LineData::VertMap

Definition at line 272 of file MeshSubdivider.cpp.


Constructor & Destructor Documentation

anonymous_namespace{MeshSubdivider.cpp}::LineData::LineData ( ) [inline]

Definition at line 277 of file MeshSubdivider.cpp.

        {
            _verts = new osg::Vec3Array();
        }

Member Function Documentation

void anonymous_namespace{MeshSubdivider.cpp}::LineData::operator() ( const osg::Vec3 &  v0,
const osg::Vec3 &  v1,
bool  temp 
) [inline]

Definition at line 298 of file MeshSubdivider.cpp.

        {
            _lines.push( Line( record(v0), record(v1) ) );
        }
GLuint anonymous_namespace{MeshSubdivider.cpp}::LineData::record ( const osg::Vec3 &  v) [inline]

Definition at line 282 of file MeshSubdivider.cpp.

        {
            VertMap::iterator i = _vertMap.find(v);
            if ( i == _vertMap.end() )
            {
                GLuint index = _verts->size();
                _verts->push_back(v);
                _vertMap[v] = index;
                return index;
            }
            else
            {
                return i->second;
            }
        }

Member Data Documentation

LineQueue anonymous_namespace{MeshSubdivider.cpp}::LineData::_lines

Definition at line 275 of file MeshSubdivider.cpp.

VertMap anonymous_namespace{MeshSubdivider.cpp}::LineData::_vertMap

Definition at line 273 of file MeshSubdivider.cpp.

osg::Vec3Array* anonymous_namespace{MeshSubdivider.cpp}::LineData::_verts

Definition at line 274 of file MeshSubdivider.cpp.


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