17#ifndef AGXTERRAIN_EXPORT_H
18#define AGXTERRAIN_EXPORT_H
24#if AGX_DYNAMIC() && defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
25# if defined( AGX_LIBRARY_STATIC )
26# define AGXTERRAIN_EXPORT
27# elif defined( AGXTERRAIN_LIBRARY )
28# define AGXTERRAIN_EXPORT __declspec(dllexport)
30# define AGXTERRAIN_EXPORT __declspec(dllimport)
33# define AGXTERRAIN_EXPORT
39 #define AGXTERRAIN_EXPORT __attribute__ ((visibility("default")))
41 #define AGXTERRAIN_EXPORT
48#define AGX_VEC3_TO_OPENVDB_VEC3D(v) openvdb::Vec3d(v.x(), v.y(), v.z())
49#define AGX_VEC3_TO_OPENVDB_VEC3R(v) openvdb::Vec3R(v.x(), v.y(), v.z())
50#define AGX_VEC3_TO_OPENVDB_VEC3F(v) openvdb::Vec3f((float)v.x(), (float)v.y(), (float)v.z())
51#define AGX_VEC3_TO_OPENVDB_VEC3I(v) openvdb::Vec3i(v.x(), v.y(), v.z())
52#define AGX_VEC3_TO_OPENVDB_COORD(v) openvdb::Coord((int)v.x(), (int)v.y(), (int)v.z())
54#define OPENVDB_VEC3_TO_AGX_VEC3I(v) agx::Vec3i(v.x(), v.y(), v.z())
55#define OPENVDB_VEC3_TO_AGX(v) agx::Vec3(v.x(), v.y(), v.z())
56#define OPENVDB_VEC3_TO_AGX_VEC3F(v) agx::Vec3f((float)v.x(), (float)v.y(), (float)v.z())
64#define AGXTERRAIN_STORE_RESTORE_INTERFACE \
65 virtual void store( const class Terrain* terrain, agxStream::OutputArchive& out ) const; \
66 virtual void restore( class Terrain* terrain, agxStream::InputArchive& in )
68#define AGXTERRAIN_TERRAINWHEEL_STORE_RESTORE_INTERFACE \
69 virtual void store(const class TerrainWheel* wheel, agxStream::OutputArchive& out) const; \
70 virtual void restore(class TerrainWheel* wheel, agxStream::InputArchive& in)
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.