Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGGeometry.cpp File Reference

#include <stdlib.h>
#include <stdio.h>
#include "OSGConfig.h"
#include <OSGGL.h>
#include <OSGAction.h>
#include <OSGDrawAction.h>
#include <OSGRenderAction.h>
#include <OSGIntersectAction.h>
#include <OSGMaterial.h>
#include <OSGChunkMaterial.h>
#include <OSGSimpleMaterial.h>
#include <OSGSimpleTexturedMaterial.h>
#include "OSGDrawable.h"
#include "OSGGeometry.h"
#include "OSGGeoFunctions.h"
#include "OSGGeoPumpFactory.h"
#include <OSGIntersectActor.h>
#include "OSGPrimitiveIterator.h"
#include "OSGTriangleIterator.h"
#include "OSGFaceIterator.h"
#include "OSGLineIterator.h"
#include "OSGEdgeIterator.h"
#include "OSGGeoPropPtrs.h"

Go to the source code of this file.

Namespaces

namespace  osg

Defines

#define copyAttrib(NAME, APTR, GETFUNC)
#define copyAllAttrib

Variables

static Char8 cvsid_cpp [] = "@(#)$Id: $"
static Char8 cvsid_hpp [] = OSGGEOMETRY_HEADER_CVSID
static Char8 cvsid_inl [] = OSGGEOMETRY_INLINE_CVSID


Define Documentation

#define copyAttrib NAME,
APTR,
GETFUNC   ) 
 

Value:

{                                                                   \
    APTR NAME    =        GETFUNC();                                \
    APTR o##NAME = other->GETFUNC();                                \
                                                                    \
    if ( NAME != NullFC && o##NAME !=NullFC )                       \
    {                                                               \
        beginEditCP( NAME );                                        \
        NAME##Base = NAME->getSize();                               \
        NAME->resize( NAME##Base + o##NAME->getSize() );            \
                                                                    \
        for ( i = 0; i < o##NAME->getSize(); i++ )                  \
        NAME->setValue( o##NAME->getValue( i ), NAME##Base + i );   \
                                                                    \
        endEditCP( NAME );                                          \
    }                                                               \
}

Definition at line 1565 of file OSGGeometry.cpp.

#define copyAllAttrib
 

Value:

{                                                                   \
    copyAttrib( pos,    GeoPositionsPtr, getPositions );            \
    copyAttrib( type,   GeoPTypesPtr,    getTypes     );            \
    copyAttrib( length, GeoPLengthsPtr,  getLengths   );            \
    copyAttrib( normal, GeoNormalsPtr, getNormals );                \
    copyAttrib( color, GeoColorsPtr, getColors );                   \
    copyAttrib( seccolor, GeoColorsPtr, getSecondaryColors );       \
    copyAttrib( texcoord, GeoTexCoordsPtr, getTexCoords );          \
    copyAttrib( texcoord1, GeoTexCoordsPtr, getTexCoords1 );        \
    copyAttrib( texcoord2, GeoTexCoordsPtr, getTexCoords2 );        \
    copyAttrib( texcoord3, GeoTexCoordsPtr, getTexCoords3 );        \
    beginEditCP((GeometryPtr)this);                                 \
    setDlistCache(other->getDlistCache());                          \
    endEditCP((GeometryPtr)this);                                   \
}

Definition at line 1584 of file OSGGeometry.cpp.

Referenced by osg::Geometry::merge0(), osg::Geometry::merge1(), osg::Geometry::merge2(), osg::Geometry::merge3(), osg::Geometry::merge4(), osg::Geometry::merge5(), and osg::Geometry::merge6().


Variable Documentation

Char8 cvsid_cpp[] = "@(#)$Id: $" [static]
 

Definition at line 1971 of file OSGGeometry.cpp.

Char8 cvsid_hpp[] = OSGGEOMETRY_HEADER_CVSID [static]
 

Definition at line 1972 of file OSGGeometry.cpp.

Char8 cvsid_inl[] = OSGGEOMETRY_INLINE_CVSID [static]
 

Definition at line 1973 of file OSGGeometry.cpp.


Generated on Thu Aug 25 04:12:21 2005 for OpenSG by  doxygen 1.4.3