4 #include <zerobuf/ConstAllocator.h> 5 #include <zerobuf/Vector.h> 6 #include <zerobuf/Zerobuf.h> 16 typedef std::unique_ptr< const LookupTable1D > ConstLookupTable1DPtr;
28 const uint8_t*
getLut()
const;
29 std::vector< uint8_t > getLutVector()
const;
36 void setLut( uint8_t value[ 1024 ] );
43 void setLut(
const std::vector< uint8_t >& value );
44 size_t getLutSize()
const;
57 std::string getSchema()
const final;
58 static std::string ZEROBUF_SCHEMA();
59 std::string getTypeName()
const final {
return "lexis::render::LookupTable1D"; }
60 static std::string ZEROBUF_TYPE_NAME() {
return "lexis::render::LookupTable1D"; }
61 ::zerobuf::uint128_t getTypeIdentifier()
const final { return ::zerobuf::uint128_t( 0x0d848e1f0b99a24cull, 0x14547a5e16fd7c04ull ); }
62 static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x0d848e1f0b99a24cull, 0x14547a5e16fd7c04ull ); }
63 size_t getZerobufStaticSize()
const final {
return 1028; }
64 static size_t ZEROBUF_STATIC_SIZE() {
return 1028; }
65 size_t getZerobufNumDynamics()
const final {
return 0; }
66 static size_t ZEROBUF_NUM_DYNAMICS() {
return 0; }
67 static ConstLookupTable1DPtr create(
const void* data,
const size_t size ) {
return ConstLookupTable1DPtr(
new LookupTable1D( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
69 void _parseJSON(
const Json::Value& json )
final;
70 void _createJSON( Json::Value& json )
const final;
uint8_t * getLut()
Get a pointer to the uint8_t fixed size array object.
void setLut(uint8_t value[1024])
Set the value of the uint8_t fixed size array object from a uint8_t*.