AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HeightFieldGenerator.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 AGXUTIL_HEIGHTFIELDGENERATOR_H
18 #define AGXUTIL_HEIGHTFIELDGENERATOR_H
19 
20 #include <agx/agxPhysics_export.h>
21 #include <agx/Referenced.h>
22 #include <agx/String.h>
23 
24 namespace agxCollide {
25  class HeightField;
26 }
27 
28 namespace agxIO {
29  class Image;
30 }
31 
32 namespace agxUtil {
33 
37 
38  public:
39 
41  HeightFieldGenerator() : Referenced() {}
42 
52  static agxCollide::HeightField* createHeightFieldFromImage( agxIO::Image* image,
53  agx::Real sizeX, agx::Real sizeY,
54  agx::Real low, agx::Real high,
55  agx::Real bottomMargin=agx::Real(1));
56 
66  static agxCollide::HeightField* createHeightFieldFromFile( const agx::String& filename,
67  agx::Real sizeX, agx::Real sizeY,
68  agx::Real low, agx::Real high,
69  agx::Real bottomMargin=agx::Real(1));
70 
71  protected:
72  virtual ~HeightFieldGenerator();
73 
74  };
75 
76 }
77 
78 
79 #endif
80 
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
Base class providing referencing counted objects.
Definition: Referenced.h:113
double Real
Definition: Real.h:42
Class to represent Images.
Definition: Image.h:32
HeightFieldGenerator()
Default constructor.
A HeightField is a collision shape that can be created from a grid structure, like an image...