VISR  0.12.0
Versatile Interactive Scene Renderer
point_source_extent.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
3 #ifndef VISR_OBJECTMODEL_POINT_SOURCE_EXTENT_HPP_INCLUDED
4 #define VISR_OBJECTMODEL_POINT_SOURCE_EXTENT_HPP_INCLUDED
5 
7 
8 #include "export_symbols.hpp"
9 
10 namespace visr
11 {
12 namespace objectmodel
13 {
14 
18 class VISR_OBJECTMODEL_LIBRARY_SYMBOL PointSourceExtent: public PointSourceWithDiffuseness
19 {
20 public:
21 
22  PointSourceExtent( ) = delete;
23 
24  explicit PointSourceExtent( ObjectId id );
25 
26  virtual ~PointSourceExtent();
27 
28  /*virtual*/ ObjectTypeId type() const override;
29 
30  /*virtual*/ std::unique_ptr<Object> clone() const override;
31 
35  Coordinate width() const { return mWidth; }
36 
37  Coordinate height( ) const { return mHeight; }
38 
39  Coordinate depth( ) const { return mDepth; }
40 
41  void setWidth( Coordinate newWidth );
42 
43  void setHeight( Coordinate newHeight );
44 
45  void setDepth( Coordinate newDepth );
46 protected:
47 
48 private:
49  Coordinate mWidth;
50 
51  Coordinate mHeight;
52 
53  Coordinate mDepth;
54 };
55 
56 } // namespace objectmodel
57 } // namespace visr
58 
59 #endif // VISR_OBJECTMODEL_POINT_SOURCE_EXTENT_HPP_INCLUDED
Coordinate height() const
Definition: point_source_extent.hpp:37
Coordinate depth() const
Definition: point_source_extent.hpp:39
unsigned int ObjectId
Definition: object.hpp:23
ObjectTypeId
Definition: object_type.hpp:26
Definition: options.cpp:10
Definition: point_source_extent.hpp:18
Coordinate width() const
Definition: point_source_extent.hpp:35
Definition: point_source_with_diffuseness.hpp:18