35 myViewParent(viewParent),
38 myLocateTLS(title.find(
"TLS") != std::string::npos) {
41 std::vector<GUIGlID> ids;
42 for (
const auto& AC : ACs) {
43 ids.push_back(AC->getGUIGlObject()->getGlID());
74 for (
const auto& AC :
myACs) {
76 if (std::find(GLIDs.begin(), GLIDs.end(), AC->getGUIGlObject()->getGlID()) != GLIDs.end()) {
91 if (junction ==
nullptr) {
101 const std::string& tlDefID = (*defs.begin())->getID();
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
void unselectAttributeCarrier(const bool changeFlag=true)
unselect attribute carrier using GUIGlobalSelection
void selectAttributeCarrier(const bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
std::vector< GNEAttributeCarrier * > myACs
list of displayed ACs
bool myLocateTLS
whether the current locator is for TLS
~GNEDialogACChooser()
Destructor.
void filterACs(const std::vector< GUIGlID > &GLIDs) override
filter ACs
GNEViewParent * myViewParent
pointer to view parent
GNEDialogACChooser(GNEViewParent *viewParent, FXIcon *icon, const std::string &title, const std::vector< GNEAttributeCarrier * > &ACs)
Constructor.
void toggleSelection(int listIndex) override
toogle selection
std::string getObjectName(GUIGlObject *o) const override
@bbrief retrieve name for the given object (special case for TLS)
std::vector< GNEAttributeCarrier * > myFilteredACs
list of filtered ACs
NBNode * getNBNode() const
Return net build node.
A single child window which contains a view of the simulation area.
void eraseACChooserDialog(GNEDialogACChooser *chooserDialog)
remove created chooser dialog
void refreshList(const std::vector< GUIGlID > &ids)
update the list with the given ids
virtual std::string getObjectName(GUIGlObject *o) const
@bbrief retrieve name for the given object
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
A storage for of displayed objects via their numerical id.
const std::set< NBTrafficLightDefinition * > & getControllingTLS() const
Returns the traffic lights that were assigned to this node (The set of tls that control this node)