QuercusVL Programming Manual
Returns true if action was successful, false otherwise.
In C the parameter “h” is a handler of
Configuration
and hDetector a handler of
ConfigurationDetector.
●
NewTrafficLight
C++: ConfigurationTrafficLight NewTrafficLight()
C:
int VL_Configuration_New_TrafficLight( int h )
Creates an empty traffic light. (default values).
To add a new traffic light to the unit, this function must be used, to later on modify the
traffic light and add it to the system with the function ApplyTrafficLight of Configuration
class.
In C the parameter “h” is a handler of
Configuration.
●
GetTrafficLightsCount
C++: int GetTrafficLightsCount()
C:
int VL_Configuration_Get_TrafficLightsCount ( int h )
Returns the number of configured traffic lights.
In C the parameter “h” is a handler of
Configuration.
●
GetTrafficLight
C++: ConfigurationTrafficLight GetTrafficLight( int index, int id )
C:
int VL_Configuration_Get_TrafficLight( int h, int index, int id )
Returns a traffic light from the unit's traffic light list, which is specified by one of the
following two parameters:
○
Index: position of the traffic light the list of traffic lights of the unit.
○
Id: traffic light's identifier.
Only one of them can be used; in the parameter not used, -1 must be indicated.
In C++, if there is no ConfigurationTrafficLight with the specified index/position, returns
an invalid one; in C returns null.
In C, when the object is needed no more, the function
VL_ConfigurationTrafficLight_Release must be called (see Release method from
ConfigurationTrafficLight class)
In C the parameter “h” is a handler of
Configuration.
Quercus Technologies
90