29 :
ImageTile(image_type,
x,
y, width, height, source) {
38 return &std::static_pointer_cast<VectorImage<T>>(
m_tile_image)->getData()[0];
44 auto image = std::static_pointer_cast<VectorImage<T>>(
m_tile_image);
45 value = image->getValue(
x-
m_x,
y-
m_y);
51 auto image = std::static_pointer_cast<VectorImage<T>>(
m_tile_image);
52 image->setValue(
x-
m_x,
y-
m_y, value);
55 virtual void getValue(
int x,
int y,
float& value)
const {
59 virtual void getValue(
int x,
int y,
double& value)
const {
67 virtual void getValue(
int x,
int y,
unsigned int& value)
const {
87 virtual void setValue(
int x,
int y,
unsigned int value) {
100 return std::make_shared<ImageTileImpl<float>>(image_type,
x,
y, width, height, source);
102 return std::make_shared<ImageTileImpl<double>>(image_type,
x,
y, width, height, source);
104 return std::make_shared<ImageTileImpl<int>>(image_type,
x,
y, width, height, source);
106 return std::make_shared<ImageTileImpl<unsigned int>>(image_type,
x,
y, width, height, source);
108 return std::make_shared<ImageTileImpl<std::int64_t>>(image_type,
x,
y, width, height, source);