20 #ifndef GNEConnectorFrame_h 21 #define GNEConnectorFrame_h 78 long onCmdOK(FXObject*, FXSelector,
void*);
static RGBColor targetColor
color for the to-lane of a connection
long onCmdSelectDeadStarts(FXObject *, FXSelector, void *)
long onCmdSelectPass(FXObject *, FXSelector, void *)
This object is responsible for drawing a shape and for supplying a a popup menu. Messages are routete...
std::set< GNELane * > myPotentialTargets
the set of lanes to which the current lane may be connected
long onCmdClearSelectedConnections(FXObject *, FXSelector, void *)
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
LaneStatus getLaneStatus(const std::vector< NBEdge::Connection > &connections, GNELane *targetLane)
return the status of toLane
static RGBColor potentialTargetColor
color for potential to-lane targets (currently unconnected)
void handleLaneClick(GNELane *lane, bool mayDefinitelyPass, bool allowConflict, bool toggle)
either sets the current lane or toggles the connection of the current lane to this lane (if they shar...
long onCmdSelectConflicts(FXObject *, FXSelector, void *)
int myNumChanges
number of changes
void initTargets()
init targets
GNEConnectorFrame()
FOX needs this.
void removeConnections(GNELane *lane)
remove connections
static RGBColor sourceColor
color for the from-lane of a connection
static RGBColor targetPassColor
color for the to-lane of a connection with pass attribute
long onCmdOK(FXObject *, FXSelector, void *)
static RGBColor conflictColor
color for a to-lane that cannot be used because another connection conflicts
std::map< int, GNEInternalLane * > myInternalLanes
the internal lanes belonging the the current junction indexed by their tl-index
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any connection modifications.
FXLabel * myDescription
the label that shows the current editing state
LaneStatus
the status of a target lane
long onCmdSelectDeadEnds(FXObject *, FXSelector, void *)
Called when the user presses the Corresponding-button.
GNELane * myCurrentLane
the lane of which connections are to be modified
~GNEConnectorFrame()
Destructor.
void cleanup()
clean up when deselecting current lane
void updateDescription() const
update description
long onCmdResetSelectedConnections(FXObject *, FXSelector, void *)