Momentum Scripting v1
Loading...
Searching...
No Matches
Material.h
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 without having a written signed agreement with Algoryx Simulation AB.
9
10Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
11from using this software, unless otherwise stated in written agreements with
12Algoryx Simulation AB.
13*/
14
15#ifndef MOMENTUM_MATERIAL_H
16#define MOMENTUM_MATERIAL_H
17
18#include "momentum_export.h"
19#include "momentum_namespace.h"
20#include "GranularBodySystem.h"
21
22#include "macros.h"
23
24#include <string>
25
26#ifndef SWIG
28namespace agx
29{
30 class Material;
31}
33#endif
34
35namespace MOMENTUM_NAMESPACE
36{
40 class MOMENTUM_EXPORT Material
41 {
42 public:
43#ifndef SWIG
45
48 Material(const agx::Material* material);
49
53 Material();
55#endif
56
61 std::string getName() const;
62
66 double getDensity() const;
67
69 std::string __str__() const;
70 std::string getUuidString() const;
72
73 bool operator==(const Material& other) const;
74 private:
75#ifndef SWIG
76 friend class GranularBody;
77 friend class GranularBodySystem;
78 friend class Simulation;
79 const agx::Material* m_material;
80#endif
81 };
82
83 V1_DECLARE_CONTAINER_TYPE(Material);
84
85} // namespace momentum
86
87#endif
The GranularBodySystem class acts as a container for all the active GranularBodies in the simulation.
Definition: GranularBodySystem.h:57
A GranularBody class, representing a 6DOF spherical object that interacts with the environment trough...
Definition: GranularBody.h:36
A class describing a Material which is attached to a Geometry.
Definition: Material.h:41
bool operator==(const Material &other) const
std::string getName() const
Get the name of the Material.
This class is used to access an existing simulation with all its contents including joints,...
Definition: Simulation.h:70
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29