VISR  0.11.1
Versatile Interactive Scene Renderer
object_type.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
7 #ifndef VISR_OBJECTMODEL_OBJECT_TYPE_HPP_INCLUDED
8 #define VISR_OBJECTMODEL_OBJECT_TYPE_HPP_INCLUDED
9 
10 #include "export_symbols.hpp"
11 
12 #include <cstdint>
13 #include <string>
14 
15 
16 namespace visr
17 {
18 namespace objectmodel
19 {
20 
21 using ObjectTypeIntegerRepresentation = std::uint8_t;
22 
27 {
28  PointSource = 0,
29  PlaneWave = 1,
30  DiffuseSource = 2,
33  ExtendedSource = 4,
35  PointSourceExtent = 6,
36  HoaSource = 7,
37  ChannelObject = 8,
38  // to be continued.
39 };
40 
47 VISR_OBJECTMODEL_LIBRARY_SYMBOL std::string const & objectTypeToString( ObjectTypeId type );
48 
54 VISR_OBJECTMODEL_LIBRARY_SYMBOL ObjectTypeId stringToObjectType( std::string const & typeString );
55 
56 } // namespace objectmodel
57 } // namespace visr
58 
59 #endif // VISR_OBJECTMODEL_OBJECT_TYPE_HPP_INCLUDED
Definition: channel_object.hpp:20
Definition: diffuse_source.hpp:18
Definition: point_source.hpp:18
ObjectTypeId
Definition: object_type.hpp:26
const std::string & objectTypeToString(ObjectTypeId type)
Definition: object_type.cpp:55
Definition: options.cpp:10
ObjectTypeId stringToObjectType(std::string const &typeString)
Definition: object_type.cpp:65
Definition: point_source_extent.hpp:18
Definition: point_source_with_reverb.hpp:31
Definition: point_source_with_diffuseness.hpp:18
Definition: hoa_source.hpp:18
std::uint8_t ObjectTypeIntegerRepresentation
Definition: object_type.hpp:21
Definition: plane_wave.hpp:18