File: MaterialType.hh

package info (click to toggle)
ignition-math 6.7.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,396 kB
  • sloc: cpp: 22,476; python: 2,730; ansic: 1,152; ruby: 844; sh: 168; makefile: 14
file content (99 lines) | stat: -rw-r--r-- 2,819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
 * Copyright (C) 2018 Open Source Robotics Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/
#ifndef IGNITION_MATH_MATERIALTYPES_HH_
#define IGNITION_MATH_MATERIALTYPES_HH_

#include <ignition/math/Export.hh>
#include <ignition/math/config.hh>

namespace ignition
{
  namespace math
  {
    // Inline bracket to help doxygen filtering.
    inline namespace IGNITION_MATH_VERSION_NAMESPACE {
    //
    /// \enum MaterialType
    /// \brief This enum lists the supported material types. A value can be
    /// used to create a Material instance.
    /// Source: https://en.wikipedia.org/wiki/Density
    /// \sa Material
    // Developer Note: When modifying this enum, make sure to also modify
    // the kMaterials map in src/MaterialTypes.hh.
    enum class MaterialType
    {
      /// \brief Styrofoam, density = 75.0 kg/m^3
      /// String name = "styrofoam"
      STYROFOAM = 0,

      /// \brief Pine, density = 373.0 kg/m^3
      /// String name = "pine"
      PINE,

      /// \brief Wood, density = 700.0 kg/m^3
      /// String name = "wood"
      WOOD,

      /// \brief Oak, density = 710.0 kg/m^3
      /// String name = "oak"
      OAK,

      /// \brief Plastic, density = 1175.0 kg/m^3
      /// String name = "plastic"
      PLASTIC,

      /// \brief Concrete, density = 2000.0 kg/m^3
      /// String name = "concrete"
      CONCRETE,

      /// \brief Aluminum, density = 2700.0 kg/m^3
      /// String name = "aluminum"
      ALUMINUM,

      /// \brief Steel alloy, density = 7600.0 kg/m^3
      /// String name = "steel_alloy"
      STEEL_ALLOY,

      /// \brief Stainless steel, density = 7800.0 kg/m^3
      /// String name = "steel_stainless"
      STEEL_STAINLESS,

      /// \brief Iron, density = 7870.0 kg/m^3
      /// String name = "iron"
      IRON,

      /// \brief Brass, density = 8600.0 kg/m^3
      /// String name = "brass"
      BRASS,

      /// \brief Copper, density = 8940.0 kg/m^3
      /// String name = "copper"
      COPPER,

      /// \brief Tungsten, density = 19300.0 kg/m^3
      /// String name = "tungsten"
      TUNGSTEN,

      /// \brief Represents an invalid or unknown material.
      // This value should always be last in the enum; it is used in
      // MaterialDensity_TEST.
      UNKNOWN_MATERIAL
    };
    }
  }
}
#endif