56 :
Data(
source, type, width, height, 1, shared) {};
62 this->height = height;
66 this->shared = shared;
70 this->data =
reinterpret_cast<uint8_t*
>(
const_cast<void*
>(
source));
75 this->data =
new uint8_t[size];
76 memcpy(this->data,
source, size);
100 Object* obj =
reinterpret_cast<Object**
>(this->data)[i];
118 return this->width * this->height * this->depth;
148 return reinterpret_cast<void*
>(this->data);
158 bool d = this->dirty;
164 size_t width = 0, height = 1, depth = 1;
166 size_t elementSize = 0;
167 uint8_t* data =
nullptr;
size_t GetNumElements() const
static size_t GetElementSize(RTWDataType type)
Data(const void *source, RTWDataType type, size_t width, bool shared=false)
RTWDataType GetElementDataType() const
Data(const void *source, RTWDataType type, size_t width, size_t height, bool shared=false)
size_t GetElementSize() const
Data(const void *source, RTWDataType type, size_t width, size_t height, size_t depth, bool shared=false)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)