4. Definitions of properties

The definition of properties is the following:

Syntax

(property cluster_id property_type "property_name"
  (default "default_node_value" "default_edge_value" )
  (node id value)
  ...
  (edge id value)
  ...
)        

Sample

(property  0 bool "viewSelection"
  (default "false" "false" )
  (node 1 "true")
  (node 2 "true")
  (node 3 "true")
  (edge 2 "true")
  (edge 8 "true")
)

Property Type

  • layout : This type enables to store nodes position in 3D. The position of nodes is defined by a set of 3 doubles (x_coord,y_coord,z_coord). The position of edges is a list of 3D points. These points are the bends of edges. ((x_coord1,y_coord1,z_coord1)(x_coord2,y_coord2,z_coord2))

  • size : This type enables to store the size of elements. The size is defined with a sequence of three double. (width,heigth,depth)

  • color : This type enables to store the color of elements. The color is defined with a sequence of four integer from 0 to 255. (red,green,blue,alpha)

  • string : This enables to store text on elements.

  • metric : This enables to store real on elements.

  • bool : This type enables to store boolean on elements.

  • int : This type enables to store integers on elements.