osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{MeshConsolidator.cpp}::Collector< T > Struct Template Reference

List of all members.

Public Member Functions

 Collector ()
void operator() (unsigned i0, unsigned i1, unsigned i2)

Public Attributes

osg::Geometry::PrimitiveSetList * _newPrimSets
unsigned _maxSize
T * _current

Detailed Description

template<typename T>
struct anonymous_namespace{MeshConsolidator.cpp}::Collector< T >

Definition at line 37 of file MeshConsolidator.cpp.


Constructor & Destructor Documentation

template<typename T >
anonymous_namespace{MeshConsolidator.cpp}::Collector< T >::Collector ( ) [inline]

Definition at line 43 of file MeshConsolidator.cpp.

: _current(0L) { }

Member Function Documentation

template<typename T >
void anonymous_namespace{MeshConsolidator.cpp}::Collector< T >::operator() ( unsigned  i0,
unsigned  i1,
unsigned  i2 
) [inline]

Definition at line 45 of file MeshConsolidator.cpp.

        {
            if ( _current == 0L || _current->size() > _maxSize-3 )
            {
                _current = new T (GL_TRIANGLES);
                _newPrimSets->push_back( _current );
            }

            _current->push_back( i0 );
            _current->push_back( i1 );
            _current->push_back( i2 );
        }

Member Data Documentation

template<typename T >
T* anonymous_namespace{MeshConsolidator.cpp}::Collector< T >::_current

Definition at line 41 of file MeshConsolidator.cpp.

template<typename T >
unsigned anonymous_namespace{MeshConsolidator.cpp}::Collector< T >::_maxSize

Definition at line 40 of file MeshConsolidator.cpp.

template<typename T >
osg::Geometry::PrimitiveSetList* anonymous_namespace{MeshConsolidator.cpp}::Collector< T >::_newPrimSets

Definition at line 39 of file MeshConsolidator.cpp.


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