setVec<T extends CvVec<Struct>> method
void
setVec<
T extends CvVec<Struct>>( - int row,
- int col,
- T val
)
Implementation
void setVec<T extends CvVec>(int row, int col, T val) {
switch (val) {
// Vec2b, Vec3b, Vec4b
case Vec2b():
ccore.cv_Mat_set_Vec2b(ref, row, col, val.ref);
case Vec3b():
ccore.cv_Mat_set_Vec3b(ref, row, col, val.ref);
case Vec4b():
ccore.cv_Mat_set_Vec4b(ref, row, col, val.ref);
// Vec2w, Vec3w, Vec4w
case Vec2w():
ccore.cv_Mat_set_Vec2w(ref, row, col, val.ref);
case Vec3w():
ccore.cv_Mat_set_Vec3w(ref, row, col, val.ref);
case Vec4w():
ccore.cv_Mat_set_Vec4w(ref, row, col, val.ref);
// Vec2s, Vec3s, Vec4s
case Vec2s():
ccore.cv_Mat_set_Vec2s(ref, row, col, val.ref);
case Vec3s():
ccore.cv_Mat_set_Vec3s(ref, row, col, val.ref);
case Vec4s():
ccore.cv_Mat_set_Vec4s(ref, row, col, val.ref);
// Vec2i, Vec3i, Vec4i, Vec6i, Vec8i
case Vec2i():
ccore.cv_Mat_set_Vec2i(ref, row, col, val.ref);
case Vec3i():
ccore.cv_Mat_set_Vec3i(ref, row, col, val.ref);
case Vec4i():
ccore.cv_Mat_set_Vec4i(ref, row, col, val.ref);
case Vec6i():
ccore.cv_Mat_set_Vec6i(ref, row, col, val.ref);
case Vec8i():
ccore.cv_Mat_set_Vec8i(ref, row, col, val.ref);
// Vec2f, Vec3f, Vec4f, Vec6f
case Vec2f():
ccore.cv_Mat_set_Vec2f(ref, row, col, val.ref);
case Vec3f():
ccore.cv_Mat_set_Vec3f(ref, row, col, val.ref);
case Vec4f():
ccore.cv_Mat_set_Vec4f(ref, row, col, val.ref);
case Vec6f():
ccore.cv_Mat_set_Vec6f(ref, row, col, val.ref);
// Vec2d, Vec3d, Vec4d, Vec6d
case Vec2d():
ccore.cv_Mat_set_Vec2d(ref, row, col, val.ref);
case Vec3d():
ccore.cv_Mat_set_Vec3d(ref, row, col, val.ref);
case Vec4d():
ccore.cv_Mat_set_Vec4d(ref, row, col, val.ref);
case Vec6d():
ccore.cv_Mat_set_Vec6d(ref, row, col, val.ref);
default:
throw UnsupportedError("setVec<$T>() for ${type.asString()} is not supported!");
}
}