Adapt the visibility settings for all properties

This commit is contained in:
Alexander Bock
2023-04-15 09:33:31 +02:00
committed by GitHub
parent 1ef6cb0c02
commit ca916877b2
152 changed files with 2098 additions and 894 deletions

View File

@@ -50,7 +50,8 @@ namespace {
constexpr openspace::properties::Property::PropertyInfo EnabledInfo = {
"Enabled",
"Is Enabled",
"This setting determines whether this sceen space plane will be visible or not"
"This setting determines whether this sceen space plane will be visible or not",
openspace::properties::Property::Visibility::NoviceUser
};
constexpr openspace::properties::Property::PropertyInfo
@@ -63,21 +64,25 @@ namespace {
"using cartesian coordinates. By switching this value, the correct property will "
"be shown or hidden. The Cartesian coordinate system is useful if a regular "
"rendering is applied, whereas the radius azimuth elevation are most useful in a "
"planetarium environment"
"planetarium environment",
openspace::properties::Property::Visibility::NoviceUser
};
constexpr openspace::properties::Property::PropertyInfo UsePerspectiveProjectionInfo =
{
"UsePerspectiveProjection",
"Use Perspective Projection",
"Determines whetether the z/radius values affects the size of the plane or not"
"Determines whetether the z/radius values affects the size of the plane or not",
// @VISIBILITY(3.25)
openspace::properties::Property::Visibility::AdvancedUser
};
constexpr openspace::properties::Property::PropertyInfo CartesianPositionInfo = {
"CartesianPosition",
"Cartesian Coordinates",
"This value determines the position of this screen space plane in Cartesian "
"three-dimensional coordinates (meters)"
"three-dimensional coordinates (meters)",
openspace::properties::Property::Visibility::NoviceUser
};
constexpr openspace::properties::Property::PropertyInfo RadiusAzimuthElevationInfo = {
@@ -85,7 +90,8 @@ namespace {
"Radius Azimuth Elevation",
"This value determines the position of this screen space plane in a "
"coordinate system based on radius (meters), azimuth (radians) and elevation "
"(radians)"
"(radians)",
openspace::properties::Property::Visibility::NoviceUser
};
constexpr openspace::properties::Property::PropertyInfo ScaleInfo = {
@@ -93,20 +99,24 @@ namespace {
"Scale Value",
"This value determines a scale factor for the plane. The default size of a plane "
"is determined by the concrete instance and reflects, for example, the size of "
"the image being displayed"
"the image being displayed",
// @VISIBILITY(1.6)
openspace::properties::Property::Visibility::NoviceUser
};
constexpr openspace::properties::Property::PropertyInfo LocalRotationInfo = {
"Rotation",
"Local Rotation",
"An euler rotation (x, y, z) to apply to the plane"
"An euler rotation (x, y, z) to apply to the plane",
openspace::properties::Property::Visibility::User
};
constexpr openspace::properties::Property::PropertyInfo MultiplyColorInfo = {
"MultiplyColor",
"Multiply Color",
"If set, the plane's texture is multiplied with this color. Useful for applying "
"a color grayscale images"
"a color grayscale images",
openspace::properties::Property::Visibility::User
};
constexpr openspace::properties::Property::PropertyInfo BackgroundColorInfo = {
@@ -114,34 +124,39 @@ namespace {
"Background Color",
"The fixed color that is combined with the screen space renderable to create the "
"final color. The actual color of the screen space renderable is alpha-blended "
"with the background color to produce the final result"
"with the background color to produce the final result",
openspace::properties::Property::Visibility::User
};
constexpr openspace::properties::Property::PropertyInfo DeleteInfo = {
"Delete",
"Delete",
"If this property is triggered, this screen space plane is removed from the "
"scene"
"scene",
// @VISIBILITY(2.25)
openspace::properties::Property::Visibility::User
};
constexpr openspace::properties::Property::PropertyInfo FaceCameraInfo = {
"FaceCamera",
"Face Camera",
"If enabled, the local rotation is applied after the plane is rotated to face "
"the camera"
"the camera",
// @VISIBILITY(1.25)
openspace::properties::Property::Visibility::NoviceUser
};
constexpr openspace::properties::Property::PropertyInfo GammaInfo = {
"Gamma",
"Gamma Correction",
"Sets the gamma correction of the texture"
"Sets the gamma correction of the texture",
openspace::properties::Property::Visibility::AdvancedUser
};
float wrap(float value, float min, float max) {
return glm::mod(value - min, max - min) + min;
}
struct [[codegen::Dictionary(ScreenSpaceRenderable)]] Parameters {
// The type of the Screenspace renderable that is to be created. The available
// types of Screenspace renderable depend on the configuration of the application