Annotations

Synopsis

@StartRule

@Hidden

@Hidden(attr_1,...,attr_n)

@Group("level_1-group", ..., "level_n-group")

@Group("level_1-group", ..., "level_n-group", order)

@Range(min, max)

@Range(value1, value2, value3, ...)

@Color

@File

@File("ext_1", ..., "ext_n")

@Directory

@Order(order)

@Description("description")

@Handle(handle_params)

@InMesh

@InPolygon

@InEdge

@InPoint

@InPointCloud

@Out(granularity=separatedShapes|combinedShape)

Annotations are used to add additional information to a rule or an attribute. Annotations are optional and do not affect the semantics of a rule and thus have no influence on the model generation. Annotations are mostly used to give additional hints for user interface elements such as the Inspector on how to present attributes or rules.

Example

Adding annotations

@StartRule
Start-->NIL

@Hidden
attr hide_me = 0

@Hidden
import hide_all_attrs: "imported.cga"

@Hidden(some_attr, another_attr)
import hide_some_attrs: "imported.cga"

@Group("First", "Second", "Third")
attr grouped = 0

@Group

@Range(5, 50)
attr height = 20

@Range(0, 1, 2)
attr lod = 0

@Range("#ff0000", "#00ff00", "#0000ff")
attr color = "#000000"

@Color
attr userColor = "#000000"

@File
attr asset = "myfile.obj"

@File("tif", "tiff")
attr texture = "tex0.tiff"

@Directory
attr assets = "/assets/lod" + lod

@Order(1)
attr i_m_1st = 0
@Order(2)
attr i_m_2nd = 0
@Order(3)
attr i_m_3rd = 0

@Description("The building width")
attr width = 40

@Handle(shape=Solid, align=right)


Annotated attributes displayed in the Inspector.

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.