[原][译][osgearth]样式表style中参数总结(OE官方文档翻译)
几何Geometry
高度Altitude
挤压Extrusion
图标Icon
模型Model
渲染Render
皮肤Skin
文本Text
覆盖Coverage
提示: 在SDK中,样式表的命名空间是osgEarth::Symbology
每个符号类是在AltitudeSymbol中,属性通过LineSymbol::strokeWidth()
访问器可用
值类型
float: |
实数 |
---|---|
float with units: |
有单位的实数, e.g. 20px (20 pixels) or 10m (10 meters) |
HTML_Color: |
颜色以十六进制格式字符串,用于HTML;# RRGGBB或# RRGGBBAA的格式。(例如:# FFCC007F) |
integer: |
整数 |
numeric_expr: |
表达式(简单或JavaScript)解决一个数字 |
string: |
字符串 |
string_expr: |
表达式(简单或JavaScript)解决一个文本字符串 |
uri_string: |
表示(如URL资源位置的字符串或文件路径)。 |
几何Geometry
基本几何符号(SDK:LineSymbol、PolygonSymbol PointSymbol)控制矢量数据的颜色和风格
Property | Description | Value(s) |
---|---|---|
fill | Fill color for a polygon. | HTML color |
stroke | Line color (or polygon outline color, if fill is present) |
HTML color |
stroke-width | Line width | float with units |
stroke-min-pixels | Minimum rendering width; Prevents a line from getting thinner than this value in pixels. Only applies when the stroke-width is NOT in pixels |
float (pixels) |
stroke-tessellation | Number of times to subdivide a line | integer |
stroke-linejoin | Join style for polygonized lines. Only applies with stroke-width is in world units (and not pixels) |
miter, round |
stroke-linecap | Cap style for polygonized lines. Only applies with stroke-width is in world units (and not pixels) |
square, flat, round |
stroke-rounding-ratio | For joins and caps that are set to round , the resolution of the rounded corner. Value is the ratio of line width to corner segment length. |
float (0.4) |
stroke-stipple-pattern | Stippling pattern bitmask. Each set bit represents an “on” pixel in the pattern. | integer (65535) |
stroke-stipple-factor | Stipple factor for pixel-width lines. Number of times to repeat each bit in the stippling pattern | integer (1) |
stroke-crease-angle | When outlining extruded polygons, only draw a post outline if the angle between the adjoining faces exceeds this value. This has the effect of only outlining corners that are sufficiently “sharp”. | float degrees (0.0) |
point-fill | Fill color for a point. | HTML color |
point-size | Size for a GL point geometry |
高度Altitude
高度的符号(SDK:AltitudeSymbol)控制功能与地形的交互在它的位置。
Property | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
altitude-clamping |
|
||||||||
altitude-technique |
当
|
||||||||
altitude-binding |
当
|
||||||||
altitude-resolution | 当“altitude-technique”选择“map”,高程使用和样例地形高度一样的分辨率数据 | ||||||||
altitude-offset | 垂直偏移 | ||||||||
altitude-scale | 缩放 |
挤压Extrusion
挤压符号(SDK:ExtrusionSymbol)指导osgEarth创建挤压几何从源矢量数据;挤压一个2 d向量转化为3 d形状。注意:简单的anextrusion属性将使挤压。
Property | Description |
---|---|
extrusion-height | How far to extrude the vector data (numeric-expr) |
extrusion-flatten | Whether to force all extruded vertices to the same Z value (bool). For example, if you are extruding polygons to make 3D buildings, setting this to true will force the rooftops to be flat even if the underlying terrain is not. (boolean) |
extrusion-wall-gradient | Factor by which to multiply the fill color of the extruded geometry at the base of the 3D shape. This results in the 3D shape being darker at the bottom than at the top, a nice effect. (float [0..1]; try 0.75) |
extrusion-wall-style | Name of another style in the same stylesheet that osgEarth should apply to the walls of the extruded shape. (string) |
extrusion-roof-style | Name of another style in the same stylesheet that osgEarth should apply to the roof of the extruded shape. (string) |
图标Icon
图标符号(SDK:IconSymbol)描述二维图标的外观。图标是用于不同的东西,最常见的是:
点替换,用图标代替几何模型
注释的地方
Property | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
icon | URI of the icon image. (uri-string) | ||||||||
icon-library | Name of a resource library containing the icon (optional) | ||||||||
icon-placement |
For model substitution, describes how osgEarth should replace geometry with icons:
|
||||||||
icon-density | For icon-placement settings of interval or random , this property is hint as to how many instances osgEarth should place. The unit is approximately “units per km” (for linear data) or “units per square km” for polygon data. (float) |
||||||||
icon-scale | Scales the icon by this amount (float) | ||||||||
icon-heading | Rotates the icon along its central axis (float, degrees) | ||||||||
icon-declutter | Activate decluttering for this icon. osgEarth will attempt to automatically show or hide things so they don’t overlap on the screen. (boolean) | ||||||||
icon-align |
Sets the icon’s location relative to its anchor point. The valid values are in the form “horizontal-vertical”, and are:
|
||||||||
icon-random-seed | For random placement operations, set this seed so that the randomization is repeatable each time you run the app. (integer) | ||||||||
icon-occlusion-cull | Whether to occlusion cull the text so they do not display when line of sight is obstructed by terrain | ||||||||
icon-occlusion-cull-altitude | The viewer altitude (MSL) to start occlusion culling when line of sight is obstructed by terrain |
模型Model
模型符号(SDK:ModelSymbol)描述了外部的3 d模型。如图标,模型通常用于:
点替换,用3 d模型代替几何模型
模型的注释
Property | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
model | URI of the 3D model (uri-string). Use this OR the model-library property, but not both. |
||||||||
model-library | Name of a resource library containing the model. Use this OR the model property, but not both. |
||||||||
model-placement |
For model substitution, describes how osgEarth should replace geometry with models:
|
||||||||
model-density | For model-placement settings of interval or random , this property is hint as to how many instances osgEarth should place. The unit is approximately “units per km” (for linear data) or “units per square km” for polygon data. (float) |
||||||||
model-scale | Scales the model by this amount along all axes (float) | ||||||||
model-heading | Rotates the about its +Z axis (float, degrees) | ||||||||
icon-random-seed | For random placement operations, set this seed so that the randomization is repeatable each time you run the app. (integer) |
渲染Render
渲染符号(SDK:RenderSymbol)适用于一般OpenGL渲染设置以及一些osgEarth-specific设置并非特定于任何其他符号类型。
Property | Description |
---|---|
render-depth-test | Enable or disable GL depth testing. (boolean) |
render-lighting | Enable or disable GL lighting. (boolean) |
render-transparent | hint to render in the transparent (depth-sorted) bin (boolean) |
render-bin | render bin to use for sorting (string) |
render-depth-offset | Enable or disable Depth Offseting. Depth offsetting is a GPU technique that modifies a fragment’s depth value, simulating the rendering of that object closer or farther from the viewer than it actually is. It is a mechanism for mitigating z-fighting. (boolean) |
render-depth-offset-min-bias | Sets the minimum bias (distance-to-viewer offset) for depth offsetting. If is usually sufficient to set this property; all the others will be set automatically. (float, meters) |
render-depth-offset-max-bias | Sets the minimum bias (distance-to-viewer offset) for depth offsetting. |
render-depth-offset-min-range | Sets the range (distance from viewer) at which to apply the minimum depth offsetting bias. The bias graduates between its min and max values over the specified range. |
render-depth-offset-max-range | Sets the range (distance from viewer) at which to apply the maximum depth offsetting bias. The bias graduates between its min and max values over the specified range. |
皮肤Skin
皮肤象征(SDK:SkinSymbol)纹理映射适用于几何形状,当适用。(目前只适用于挤压几何)。
Property | Description |
---|---|
skin-library | Name of the resource library containing the skin(s) |
skin-tags | Set of strings (separated by whitespace containing one or more resource tags. When selecting a texture skin to apply, osgEarth will limit the selection to skins with one of these tags. If you omit this property, all skins are considered. For example, if you are extruding buildings, you may only want to consider textures with the building tag. (string) |
skin-tiled | When set to true , osgEarth will only consider selecting a skin that has its tiled attribute set to true . The tiled attribute indicates that the skin may be used as a repeating texture. (boolean) |
skin-object-height | Numeric expression resolving to the feature’s real-world height (in meters). osgEarth will use this value to narrow down the selection to skins appropriate to that height (i.e., skins for which the value falls between the skin’s min/max object height range. (numeric-expr) |
skin-min-object-height | Tells osgEarth to only consider skins whose minimum object height is greater than or equal to this value. (numeric-expr) |
skin-max-object-height | Tells osgEarth to only consider skins whose maximum object height is less than or equal to this value. (numeric-expr) |
skin-random-seed | Once the filtering is done (according to the properties above, osgEarth determines the minimal set of appropriate skins from which to choose and chooses one at random. By setting this seed value you can ensure that the same “random” selection happens each time you run the appplication. (integer) |
文本Text
文字符号(SDK:TextSymbol)控制文本标签的存在和外观。
Property | Description |
---|---|
text-fill | Foreground color of the text (HTML color) |
text-size | Size of the text (float, pixels) |
text-font | Name of the font to use (system-dependent). For example, use “arialbd” on Windows for Arial Bold. |
text-halo | Outline color of the text; Omit this propery altogether for no outline. (HTML Color) |
text-halo-offset | Outline thickness (float, pixels) |
text-offset-x | The x offset of the text in pixels |
text-offset-y | The y offset of the text in pixels |
text-align |
|
text-layout |
|
text-content | The actual text string to display (string-expr) |
text-encoding |
|
text-declutter | Activate decluttering for this icon. osgEarth will attempt to automatically show or hide things so they don’t overlap on the screen. (boolean) |
text-occlusion-cull | Whether to occlusion cull the text so they do not display when line of sight is obstructed by terrain |
text-occlusion-cull-altitude | The viewer altitude (MSL) to start occlusion culling when line of sight is obstructed by terrain |
覆盖Coverage
覆盖符号(SDK:CoverageSymbol)控制功能是光栅为覆盖率数据的离散值。
PropertyDescriptioncoverage-valueExpression resolving to the floating-point value to encode.
[原][译][osgearth]样式表style中参数总结(OE官方文档翻译)的更多相关文章
- [原][译][osgearth]Model Source Drivers模型驱动源(OE官方文档翻译)
ModelSource 是一个能生成OpenSceneGraph节点的驱动(driver) osgEarth使用ModelSources显示矢量特征(feature)数据和加载和显示外部3d模型 Fe ...
- [原][译][osgearth]关于Features & Symbology (特征与符号)(OE绘制矢量几何与特殊字符)讲解(OE官方文档翻译)
原文参考:http://docs.osgearth.org/en/latest/user/features.html 自己翻译的,本人英文水平有限,有问题看原链接,原文 20170802重置修改部分翻 ...
- [原][译][osgearth][EarthFile]关于EarthFile 的Model Layer 讲解(通过earth文件加载模型层)(OE官方文档翻译)
原文参考:http://docs.osgearth.org/en/latest/references/earthfile.html#model-layer 本人翻译能有限.... 模型层 模型层渲染“ ...
- [原][译][osgearth]API加载地球(OE官方文档翻译)
原文参考:http://docs.osgearth.org/en/latest/developer/maps.html#programmatic-map-creation 本人翻译水平有限... 加载 ...
- Spring Boot中文文档(官方文档翻译 基于1.5.2.RELEASE)
作者:Phillip Webb, Dave Syer, Josh Long, Stéphane Nicoll, Rob Winch, Andy Wilkinson, Marcel Overdijk, ...
- css样式表中的样式覆盖顺序
刚才写zenktodo的时候,通过动态添加class的方式修改一个div的样式,总是不起作用. #navigator { height: 100%; width: 200; position: abs ...
- css样式表中的样式覆盖顺序(转)
有时候在写CSS的过程中,某些限制总是不起作用,这就涉及了CSS样式覆盖的问题,如下 Css代码 #navigator { height: 100%; width: 200; position: ...
- 微软BI 之SSIS 系列 - XML Task 中XSLT 样式表转换错误记录
开篇介绍 此文章专门记录 XSLT 样式表转换过程中的语法问题 错误一 值与属性的倒置 修改了几次样式表,但还是一如既往的报错,报错信息如下: [XML Task] Error: An error o ...
- CSS 层叠及样式表来源
Web标准化运动的口号——分离.分离.分离. 在2003年的 SXSW 会议中, Steve Champeon 和 Nick Finck 做了一个名为“面向未来的全方位 Web 设计”的演讲,揭示了这 ...
随机推荐
- PHP 的“魔术常量”
名称 说明 __LINE__ 文件中的当前行号. __FILE__ 文件的完整路径和文件名.如果用在被包含文件中,则返回被包含的文件名.自 PHP 4.0.2 起,__FILE__ 总是包含一个绝对路 ...
- Ora-1157 ora-1110错误解决案例一枚
1.数据库打开报错如下: SQL> alter database open; alter database open * ERROR at line 1: ORA-01157: cannot i ...
- ping 10.13.5.233
3. 环境 URL选择器 tableView ping 10.13.5.233
- 前端~HTML~CSS~JavaScript~JQuery~Vue
HTML CSS JavaScript DOM文档操作 jQuery实例 Vue
- HTTP返回码中301与302的区别(转)
add by zhj: 区别 1.使用效果不同 302跳转是暂时的跳转,搜索引擎会抓取新的内容而保留旧的网址.因为服务器返回302代码,搜索引擎认为新的网址只是暂时的. 301重定向是永久的重定向, ...
- 商铺项目(Logback配置与使用)
<?xml version="1.0" encoding="utf-8"?> <configuration debug="false ...
- Linux下如何执行Shell脚本
Linux下你可以有两种方式执行Shell脚本: 1.用shell程序执行脚本:根据你的shell脚本的类型,选择shell程序,常用的有sh,bash,tcsh等(一般来说第一行#!/bin/bas ...
- 数据网格和树-EasyUI Datagrid 数据网格、EasyUI Propertygrid 属性网格、EasyUI Tree 树、EasyUI Treegrid 树形网格
EasyUI Datagrid 数据网格 扩展自 $.fn.panel.defaults.通过 $.fn.datagrid.defaults 重写默认的 defaults. 数据网格(datagrid ...
- 【开发者笔记】C#连接mysql问题记录
1.概述:C#在调用mysql.data.dll连接本地数据库时报错,连接远程Linux服务器上的mysql服务器正常 2.报错记录,当前连接字符串 <add key="dbStrin ...
- Openstack架构简介(一)
1.1.1openstack介绍: openstack是(infrastructure as a service,基础设置即服务)IAAS架构的实现,OpenStack是一个由NASA(美国国家航空航 ...