Lexis  1.0.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 
15 class Plane;
16 typedef std::unique_ptr< const Plane > ConstPlanePtr;
17 
18 class Plane : public ::zerobuf::Zerobuf
19 {
20 public:
27  float* getNormal();
28  const float* getNormal() const;
29  std::vector< float > getNormalVector() const;
36  void setNormal( float value[ 3 ] );
43  void setNormal( const std::vector< float >& value );
44  size_t getNormalSize() const;
45 
46  float getD() const;
53  void setD( float value );
54 
55  Plane();
56  Plane( const std::vector< float >& normalValue, const float& dValue );
57  Plane( const Plane& rhs );
58  Plane( Plane&& rhs ) noexcept;
59  Plane( const ::zerobuf::Zerobuf& rhs );
60  explicit Plane( ::zerobuf::AllocatorPtr allocator );
61  virtual ~Plane();
62  Plane& operator = ( const Plane& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
63  Plane& operator = ( Plane&& rhs );
64 
65  // Introspection
66  std::string getSchema() const final;
67  static std::string ZEROBUF_SCHEMA();
68  std::string getTypeName() const final { return "lexis::render::Plane"; }
69  static std::string ZEROBUF_TYPE_NAME() { return "lexis::render::Plane"; }
70  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0x1dfece2d590fc834ull, 0xdec19a9ee62854bbull ); }
71  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x1dfece2d590fc834ull, 0xdec19a9ee62854bbull ); }
72  size_t getZerobufStaticSize() const final { return 20; }
73  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
74  size_t getZerobufNumDynamics() const final { return 0; }
75  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
76  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 )))); }
77 
78  void _parseJSON( const Json::Value& json ) final;
79  void _createJSON( Json::Value& json ) const final;
80 };
81 
82 class ClipPlanes;
83 typedef std::unique_ptr< const ClipPlanes > ConstClipPlanesPtr;
84 
85 class ClipPlanes : public ::zerobuf::Zerobuf
86 {
87 public:
88  typedef ::zerobuf::Vector< Plane > Planes;
95  ClipPlanes::Planes& getPlanes();
96  const ClipPlanes::Planes& getPlanes() const;
97  std::vector< Plane > getPlanesVector() const;
104  void setPlanes( const std::vector< Plane >& value );
105 
106  void compact( float threshold = 0.1f ) final;
107  ClipPlanes();
108  ClipPlanes( const std::vector< Plane >& planesValue );
109  ClipPlanes( const ClipPlanes& rhs );
110  ClipPlanes( ClipPlanes&& rhs ) noexcept;
111  ClipPlanes( const ::zerobuf::Zerobuf& rhs );
112  explicit ClipPlanes( ::zerobuf::AllocatorPtr allocator );
113  virtual ~ClipPlanes();
114  ClipPlanes& operator = ( const ClipPlanes& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
115  ClipPlanes& operator = ( ClipPlanes&& rhs );
116 
117  // Introspection
118  std::string getSchema() const final;
119  static std::string ZEROBUF_SCHEMA();
120  std::string getTypeName() const final { return "lexis::render::ClipPlanes"; }
121  static std::string ZEROBUF_TYPE_NAME() { return "lexis::render::ClipPlanes"; }
122  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0xd6213c14174f268dull, 0x92dcad32c4fe5f29ull ); }
123  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0xd6213c14174f268dull, 0x92dcad32c4fe5f29ull ); }
124  size_t getZerobufStaticSize() const final { return 20; }
125  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
126  size_t getZerobufNumDynamics() const final { return 1; }
127  static size_t ZEROBUF_NUM_DYNAMICS() { return 1; }
128  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 )))); }
129 
130  void _parseJSON( const Json::Value& json ) final;
131  void _createJSON( Json::Value& json ) const final;
132 
133 private:
134  Planes _planes;
135 };
136 
137 }
138 }
float * getNormal()
Get a pointer to the float fixed size array object.
void setNormal(float value[3])
Set the value of the float fixed size array object from a float*.
void setD(float value)
Set the value of the float fixed size member.