17 #ifndef GNEConnectorFrame_h 18 #define GNEConnectorFrame_h 77 long onCmdSaveModifications(FXObject*, FXSelector,
void*);
80 long onCmdCancelModifications(FXObject*, FXSelector,
void*);
117 long onCmdSelectDeadEnds(FXObject*, FXSelector,
void*);
120 long onCmdSelectDeadStarts(FXObject*, FXSelector,
void*);
123 long onCmdSelectConflicts(FXObject*, FXSelector,
void*);
126 long onCmdSelectPass(FXObject*, FXSelector,
void*);
129 long onCmdClearSelectedConnections(FXObject*, FXSelector,
void*);
132 long onCmdResetSelectedConnections(FXObject*, FXSelector,
void*);
197 const RGBColor &getSourceColor()
const;
200 const RGBColor &getTargetColor()
const;
203 const RGBColor &getPotentialTargetColor()
const;
206 const RGBColor &getTargetPassColor()
const;
209 const RGBColor &getConflictColor()
const;
ConnectionModifications * getConnectionModifications() const
get pointer to ConnectionModifications modul
FXLabel * myTargetPassLabel
target pass label
GNEConnectorFrame * myConnectorFrameParent
pointer to connectorFrame parent
FXButton * mySelectDeadStartsButton
"Select Dead Starts" button
FXButton * myClearSelectedButton
"Clear Selected"
RGBColor myConflictColor
color for a to-lane that cannot be used because another connection conflicts
ConnectionLegend * myConnectionLegend
ConnectionLegend modul.
std::set< GNELane * > myPotentialTargets
the set of lanes to which the current lane may be connected
FXButton * mySelectPassingButton
"Select Edges which may always pass"
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
FXLabel * myHoldControlLabel
hold control label
RGBColor myTargetPassColor
color for the to-lane of a connection with pass attribute
FXButton * myResetSelectedButton
"Reset Selected"
void handleLaneClick(const GNEViewNet::ObjectsUnderCursor &objectsUnderCursor)
either sets the current lane or toggles the connection of the
FXButton * myCancelButton
"Cancel" button
RGBColor myPotentialTargetColor
color for potential to-lane targets (currently unconnected)
FXLabel * myCurrentLaneLabel
Label for current Lane.
GNEConnectorFrame * myConnectorFrameParent
pointer to connectorFrame parent
LaneStatus getLaneStatus(const std::vector< NBEdge::Connection > &connections, GNELane *targetLane)
return the status of toLane
FXLabel * myConflictLabel
conflict label
RGBColor myTargetColor
color for the to-lane of a connection
int myNumChanges
number of changes
void initTargets()
init targets
RGBColor mySourceColor
color for the from-lane of a connection
FXLabel * myPossibleTargetLabel
possible target label
void removeConnections(GNELane *lane)
remove connections
FXLabel * mySourceLabel
source label
FXLabel * myTargetLabel
target label
FXButton * mySelectConflictsButton
"Select Conflicts" button
ConnectionModifications * myConnectionModifications
ConnectionModifications modul.
FXLabel * myHoldShiftLabel
Selection Hint.
ConnectionOperations()
FOX needs this.
std::vector< NBEdge::Connection > myDeletedConnections
vector of connections deleted in the current editing step
ConnectionSelection * myConnectionSelection
ConnectionSelection modul.
ConnectionModifications()
FOX needs this.
void buildConnection(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...
CurrentLane(GNEConnectorFrame *connectorFrameParent)
constructor
std::map< int, GNEInternalLane * > myInternalLanes
the internal lanes belonging the the current junction indexed by their tl-index
FXButton * mySelectDeadEndsButton
"Select Dead Ends" button
LaneStatus
the status of a target lane
ConnectionOperations * myConnectionOperations
ConnectionOperations modul.
~GNEConnectorFrame()
Destructor.
void updateCurrentLaneLabel(const std::string &laneID)
set current junction label
FXButton * mySaveButton
"OK" button
GNEConnectorFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
void cleanup()
clean up when deselecting current lane
GNELane * myCurrentEditedLane
the lane of which connections are to be modified
CurrentLane * myCurrentLane
CurrentLane modul.