34 myViewParent(viewParent),
37 myLocateTLS(title.find(
"TLS") !=
std::string::npos) {
40 std::vector<GUIGlID> ids;
41 for (
const auto& AC : ACs) {
42 ids.push_back(AC->getGUIGlObject()->getGlID());
93 for (
const auto& AC :
myACs) {
95 if (std::find(GLIDs.begin(), GLIDs.end(), AC->getGUIGlObject()->getGlID()) != GLIDs.end()) {
110 if (junction ==
nullptr) {
120 const std::string& tlDefID = (*defs.begin())->getID();
bool isAttributeCarrierSelected() const
check if attribute carrier is selected
void selectAttributeCarrier()
select attribute carrier using GUIGlobalSelection
void unselectAttributeCarrier()
unselect attribute carrier using GUIGlobalSelection
GNEDialogACChooser(GNEViewParent *viewParent, int messageId, FXIcon *icon, const std::string &title, const std::vector< GNEAttributeCarrier * > &ACs)
Constructor.
std::vector< GNEAttributeCarrier * > myACs
list of displayed ACs
void select(int listIndex) override
set selection (handled differently in netedit)
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
void toggleSelection(int listIndex) override
toggle selection
std::string getObjectName(GUIGlObject *o) const override
retrieve name for the given object (special case for TLS)
std::vector< GNEAttributeCarrier * > myFilteredACs
list of filtered ACs
void deselect(int listIndex) override
unset selection (handled differently in netedit)
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
retrieve name for the given object
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)