QuercusVL Programming Manual
Returns true if the object contains valid information about a coordinates, and false if
invalid. Some methods, may sometimes, return void coordinates. In C, this behaviour is
detected as its value will be “0”. In C++, however, this method is necessary because
the object, as it is not a pointer, would always be valid.
3.23. Lights Class
Collection of lights that form a traffic light.
3.23.1. Properties
●
Count
C++:
int Count ( )
C:
Does not exist, check VL_TrafficLight_get_Lights_Count(int h) of
TrafficLight.
Number of lights in the traffic light.
●
Item
C++:
Light Item ( int item )
C:
Does not exist, check VL_TrafficLight_get_Lights_Item(int h, int item) of
TrafficLight.
Returns the light in the indicated position inside the lights collection of a traffic light.
The location of a light inside the collection follows the configuration order.
In C++, the parameter “item” must specify the position (starting from zero).
If there is no Light at the specified position, it returns an invalid one (see IsValid
method from Light class).
3.24. Light Class
Logic representation of a traffic light's light.
3.24.1. Properties
●
Type
C++:
VLLightType get_Type()
C:
int VL_Light_get_Type(int h)
Returns the light type (VLLightType).
Quercus Technologies
62