AGXDynamics  2.31.1.0
agxTerrain/export.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. 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 #if AGX_DYNAMIC() && defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) || defined( __BCPLUSPLUS__) || defined( __MWERKS__)
48 # if defined( AGX_LIBRARY_STATIC )
49 # define AGXTERRAIN_PLUGIN_EXPORT
50 # elif defined(GRID_IMPLEMENTATION_PROVIDER) && GRID_IMPLEMENTATION_PROVIDER
51 # define AGXTERRAIN_PLUGIN_EXPORT __declspec(dllexport)
52 # elif defined(AGXTERRAIN_LIBRARY)
53 # define AGXTERRAIN_PLUGIN_EXPORT __declspec(dllexport)
54 # else
55 # define AGXTERRAIN_PLUGIN_EXPORT __declspec(dllimport)
56 # endif
57 #else
58  #if !defined(_MSC_VER)
59  // Non Win32
60  #if __GNUC__ >= 4
61  #define AGXTERRAIN_PLUGIN_EXPORT __attribute__ ((visibility("default")))
62  #else
63  #define AGXTERRAIN_PLUGIN_EXPORT
64  #endif
65  #else
66  #define AGXTERRAIN_PLUGIN_EXPORT
67  #endif
68 #endif
69 
70 
71 
72 #define AGX_VEC3_TO_OPENVDB_VEC3D(v) openvdb::Vec3d(v.x(), v.y(), v.z())
73 #define AGX_VEC3_TO_OPENVDB_VEC3R(v) openvdb::Vec3R(v.x(), v.y(), v.z())
74 #define AGX_VEC3_TO_OPENVDB_VEC3F(v) openvdb::Vec3f((float)v.x(), (float)v.y(), (float)v.z())
75 #define AGX_VEC3_TO_OPENVDB_VEC3I(v) openvdb::Vec3i(v.x(), v.y(), v.z())
76 #define AGX_VEC3_TO_OPENVDB_COORD(v) openvdb::Coord((int)v.x(), (int)v.y(), (int)v.z())
77 
78 #define OPENVDB_VEC3_TO_AGX_VEC3I(v) agx::Vec3i(v.x(), v.y(), v.z())
79 #define OPENVDB_VEC3_TO_AGX(v) agx::Vec3(v.x(), v.y(), v.z())
80 #define OPENVDB_VEC3_TO_AGX_VEC3F(v) agx::Vec3f((float)v.x(), (float)v.y(), (float)v.z())
81 
82 namespace agxStream
83 {
84  class OutputArchive;
85  class InputArchive;
86 }
87 
88 #define AGXTERRAIN_STORE_RESTORE_INTERFACE \
89  virtual void store( const class Terrain* terrain, agxStream::OutputArchive& out ) const; \
90  virtual void restore( class Terrain* terrain, agxStream::InputArchive& in )
91 
92 namespace agxTerrain
93 {
94 
95 }
96 
97 #endif
Copyright 2007 - 2018.
Definition: Geometry.h:56
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...