AGX Dynamics 2.42.2.1
Loading...
Searching...
No Matches
agxTerrain/export.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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
58namespace 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#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)
71
72namespace agxTerrain
73{
74
75}
76
77#endif
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.
Definition: Geometry.h:59