[core] Add static getters for property default values (#6124)
This commit is contained in:
@@ -44,6 +44,10 @@ const std::string& RasterLayer::getSourceID() const {
|
||||
|
||||
// Paint properties
|
||||
|
||||
PropertyValue<float> RasterLayer::getDefaultRasterOpacity() {
|
||||
return { 1 };
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getRasterOpacity() const {
|
||||
return impl->paint.rasterOpacity.get();
|
||||
}
|
||||
@@ -52,6 +56,10 @@ void RasterLayer::setRasterOpacity(PropertyValue<float> value, const optional<st
|
||||
impl->paint.rasterOpacity.set(value, klass);
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getDefaultRasterHueRotate() {
|
||||
return { 0 };
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getRasterHueRotate() const {
|
||||
return impl->paint.rasterHueRotate.get();
|
||||
}
|
||||
@@ -60,6 +68,10 @@ void RasterLayer::setRasterHueRotate(PropertyValue<float> value, const optional<
|
||||
impl->paint.rasterHueRotate.set(value, klass);
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getDefaultRasterBrightnessMin() {
|
||||
return { 0 };
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getRasterBrightnessMin() const {
|
||||
return impl->paint.rasterBrightnessMin.get();
|
||||
}
|
||||
@@ -68,6 +80,10 @@ void RasterLayer::setRasterBrightnessMin(PropertyValue<float> value, const optio
|
||||
impl->paint.rasterBrightnessMin.set(value, klass);
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getDefaultRasterBrightnessMax() {
|
||||
return { 1 };
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getRasterBrightnessMax() const {
|
||||
return impl->paint.rasterBrightnessMax.get();
|
||||
}
|
||||
@@ -76,6 +92,10 @@ void RasterLayer::setRasterBrightnessMax(PropertyValue<float> value, const optio
|
||||
impl->paint.rasterBrightnessMax.set(value, klass);
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getDefaultRasterSaturation() {
|
||||
return { 0 };
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getRasterSaturation() const {
|
||||
return impl->paint.rasterSaturation.get();
|
||||
}
|
||||
@@ -84,6 +104,10 @@ void RasterLayer::setRasterSaturation(PropertyValue<float> value, const optional
|
||||
impl->paint.rasterSaturation.set(value, klass);
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getDefaultRasterContrast() {
|
||||
return { 0 };
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getRasterContrast() const {
|
||||
return impl->paint.rasterContrast.get();
|
||||
}
|
||||
@@ -92,6 +116,10 @@ void RasterLayer::setRasterContrast(PropertyValue<float> value, const optional<s
|
||||
impl->paint.rasterContrast.set(value, klass);
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getDefaultRasterFadeDuration() {
|
||||
return { 300 };
|
||||
}
|
||||
|
||||
PropertyValue<float> RasterLayer::getRasterFadeDuration() const {
|
||||
return impl->paint.rasterFadeDuration.get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user