Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
categorization_type [2013/02/02 01:54]
admin created
categorization_type [2013/08/08 03:33]
admin
Line 9: Line 9:
 ===== EGO Script ===== ===== EGO Script =====
  
-A constant representing a set of categories can be defined in a [[EGO Script]] ​using the following syntax:+A constant representing a set of categories can be defined in a [[EGO Script]] ​uses the following syntax:
  
 <code cpp> <code cpp>
Line 33: Line 33:
 The category color is represented by a three element tuple enclosed by parentheses. A color is represented using the [[wp>​RGB_color_model|(R,​ G, B) notation]]. Each one of the tuple elements corresponds to one of the color components. The first element represents the red component, the second component represents the green component and the third and last one represents blue component. Each color component must be in the range [0, 255]. Ex: (255, 0, 0), (128, 128, 128) etc. The color (0, 0, 0) is black and the color (255, 255, 255) is white. The category color is represented by a three element tuple enclosed by parentheses. A color is represented using the [[wp>​RGB_color_model|(R,​ G, B) notation]]. Each one of the tuple elements corresponds to one of the color components. The first element represents the red component, the second component represents the green component and the third and last one represents blue component. Each color component must be in the range [0, 255]. Ex: (255, 0, 0), (128, 128, 128) etc. The color (0, 0, 0) is black and the color (255, 255, 255) is white.
  
-Optionally, ​commas ​(','​) ​can be used to separate elements in a categorization.+Optional ​commas can be used to separate elements in a categorization.
  
 It is worth noting that categories do not need to be contiguous. It is worth noting that categories do not need to be contiguous.
 +
 +===== Automatic Conversions =====
 +
 +  * **Converted from**: [[Table Type]]: the table must have columns "​*#​real"​ (category value), "#​string"​ (category name), "#​real"​ (category red color in the range [0, 255]), "#​real"​ (category green color in the range [0, 255]) and "#​real"​ (category blue color in the range [0, 255]).
 +
 +  * **Converted to**: [[Table Type]].