AGX Dynamics  2.37.2.0
agxTerrain/export.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXTERRAIN_EXPORT_H
18 #define AGXTERRAIN_EXPORT_H
19 
20 #include <agx/config.h>
21 
22 #ifdef _WIN32
23 
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)
29 # else
30 # define AGXTERRAIN_EXPORT __declspec(dllimport)
31 # endif
32 #else
33 # define AGXTERRAIN_EXPORT
34 #endif
35 
36 #else
37  // Non Win32
38  #if __GNUC__ >= 4
39  #define AGXTERRAIN_EXPORT __attribute__ ((visibility("default")))
40  #else
41  #define AGXTERRAIN_EXPORT
42  #endif
43 #endif
44 
45 
46 
47 
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())
53 
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())
57 
58 namespace agxStream
59 {
60  class OutputArchive;
61  class InputArchive;
62 }
63 
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 )
67 
68 namespace agxTerrain
69 {
70 
71 }
72 
73 #endif
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes...
Definition: Geometry.h:59
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...