Lexis  1.2.0
Vocabulary of events and shared objects for BBP and HBP software
clipPlanes.h
1 // Generated by zerobufCxx.py
2 
3 #pragma once
4 #include <zerobuf/ConstAllocator.h> // static create
5 #include <zerobuf/Vector.h> // member
6 #include <zerobuf/Zerobuf.h> // base class
7 #include <array> // member
8 #include <memory> // std::unique_ptr
9 
10 namespace lexis
11 {
12 namespace render
13 {
14 namespace detail
15 {
16 
17 class Plane;
18 typedef std::unique_ptr< const Plane > ConstPlanePtr;
19 
20 class Plane : public ::zerobuf::Zerobuf
21 {
22 public:
29  float* getNormal();
30  const float* getNormal() const;
31  std::vector< float > getNormalVector() const;
38  void setNormal( float value[ 3 ] );
45  void setNormal( const std::vector< float >& value );
46  size_t getNormalSize() const;
47 
48  float getD() const;
55  void setD( float value );
56 
57  Plane();
58  Plane( const std::vector< float >& normalValue, const float& dValue );
59  Plane( const Plane& rhs );
60  Plane( Plane&& rhs ) noexcept;
61  Plane( const ::zerobuf::Zerobuf& rhs );
62  explicit Plane( ::zerobuf::AllocatorPtr allocator );
63  virtual ~Plane();
64  Plane& operator = ( const Plane& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
65  Plane& operator = ( Plane&& rhs );
66 
67  // Introspection
68  std::string getSchema() const final;
69  static std::string ZEROBUF_SCHEMA();
70  std::string getTypeName() const final { return "lexis::render::detail::Plane"; }
71  static std::string ZEROBUF_TYPE_NAME() { return "lexis::render::detail::Plane"; }
72  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0xc3abd51a5b96213eull, 0x22e87411a3d83d55ull ); }
73  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0xc3abd51a5b96213eull, 0x22e87411a3d83d55ull ); }
74  size_t getZerobufStaticSize() const final { return 20; }
75  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
76  size_t getZerobufNumDynamics() const final { return 0; }
77  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
78  static ConstPlanePtr create( const void* data, const size_t size ) { return ConstPlanePtr( new Plane( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
79 
80  void _parseJSON( const Json::Value& json ) final;
81  void _createJSON( Json::Value& json ) const final;
82 };
83 
84 class ClipPlanes;
85 typedef std::unique_ptr< const ClipPlanes > ConstClipPlanesPtr;
86 
87 class ClipPlanes : public ::zerobuf::Zerobuf
88 {
89 public:
90  typedef ::zerobuf::Vector< Plane > Planes;
97  ClipPlanes::Planes& getPlanes();
98  const ClipPlanes::Planes& getPlanes() const;
99  std::vector< Plane > getPlanesVector() const;
106  void setPlanes( const std::vector< Plane >& value );
107 
108  void compact( float threshold = 0.1f ) final;
109  ClipPlanes();
110  ClipPlanes( const std::vector< Plane >& planesValue );
111  ClipPlanes( const ClipPlanes& rhs );
112  ClipPlanes( ClipPlanes&& rhs ) noexcept;
113  ClipPlanes( const ::zerobuf::Zerobuf& rhs );
114  explicit ClipPlanes( ::zerobuf::AllocatorPtr allocator );
115  virtual ~ClipPlanes();
116  ClipPlanes& operator = ( const ClipPlanes& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
117  ClipPlanes& operator = ( ClipPlanes&& rhs );
118 
119  // Introspection
120  std::string getSchema() const final;
121  static std::string ZEROBUF_SCHEMA();
122  std::string getTypeName() const final { return "lexis::render::detail::ClipPlanes"; }
123  static std::string ZEROBUF_TYPE_NAME() { return "lexis::render::detail::ClipPlanes"; }
124  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0xb8a9ca3c07385602ull, 0x5106497766ff020bull ); }
125  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0xb8a9ca3c07385602ull, 0x5106497766ff020bull ); }
126  size_t getZerobufStaticSize() const final { return 20; }
127  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
128  size_t getZerobufNumDynamics() const final { return 1; }
129  static size_t ZEROBUF_NUM_DYNAMICS() { return 1; }
130  static ConstClipPlanesPtr create( const void* data, const size_t size ) { return ConstClipPlanesPtr( new ClipPlanes( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
131 
132  void _parseJSON( const Json::Value& json ) final;
133  void _createJSON( Json::Value& json ) const final;
134 
135 private:
136  Planes _planes;
137 };
138 
139 }
140 }
141 }
142 namespace zerobuf
143 {
144 }
145 
float * getNormal()
Get a pointer to the Normal fixed size array.
void setD(float value)
Set the D value.
void setNormal(float value[3])
Set the value of the Normal fixed size array from a float*.