QuercusVL Programming Manual
●
NumLights
C++: int get_NumLights ( )
C:
int VL_ConfigurationTrafficLight_get_NumLights ( int h )
Returns the number of lights configured in the traffic lights.
In C, the parameter “h” is a handler of ConfigurationDetector.
●
Lights
C++:
ConfigurationLights get_Lights( )
C:
Does not exist
In C++ returns the collection of lights that form the traffic lights.
In C, there is no representation of “ConfigurationLights” collection, but methods to
directly access to collection properties:
●
int VL_ConfigurationTrafficLight_get_Lights_Count ( int h ): number of
configured lights in the traffic lights.
●
int VL_ConfigurationTrafficLight_get_Lights_Item ( int h, int item ): returns the
light located at the specified position inside the lights collection of the traffic light
(starting from zero).
If there is no ConfigurationLight por the specified position returns null.
●
int VL_ConfigurationTrafficLight_get_Lights_Create ( int h, int x, int y, int radius,
int type ): adds a new light to the traffic light, with the characteristics specified
at function parameters.
Returns true if creation was successful, false otherwise.
●
int VL_ConfigurationTrafficLight_get_Lights_Delete ( int h, int index ): deletes
the light at position “index”, inside the lights collection of the traffic lights
(starting from zero).
Returns true if deletion was successful, false otherwise.
3.48.2. Methods
●
IsValid
C++: bool IsValid()
C:
Does not exist.
Returns true if the object contains valid information, false otherwise.
Quercus Technologies
114