11VTK_ABI_NAMESPACE_BEGIN
59 :
Data(
source, type, width, height, 1, shared) {};
65 this->height = height;
69 this->shared = shared;
73 this->data =
reinterpret_cast<uint8_t*
>(
const_cast<void*
>(
source));
78 this->data =
new uint8_t[size];
79 memcpy(this->data,
source, size);
103 Object* obj =
reinterpret_cast<Object**
>(this->data)[i];
121 return this->width * this->height * this->depth;
151 return reinterpret_cast<void*
>(this->data);
161 bool d = this->dirty;
167 size_t width = 0, height = 1, depth = 1;
169 size_t elementSize = 0;
170 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 *)