Eclipse SUMO - Simulation of Urban MObility
GUIGlChildWindow Class Reference

#include <GUIGlChildWindow.h>

Inheritance diagram for GUIGlChildWindow:
Collaboration diagram for GUIGlChildWindow:

Public Member Functions

virtual void create ()
 create GUIGlChildWindow More...
 
virtual FXGLCanvas * getBuildGLCanvas () const
 get build GL Canvas More...
 
FXComboBox * getColoringSchemesCombo ()
 return combobox with the current coloring schemes (standard, fastest standard, real world...) More...
 
FXPopup * getLocatorPopup ()
 @ brief return a pointer to locator popup More...
 
FXToolBar * getNavigationToolBar (GUISUMOAbstractView &v)
 return a reference to navigation toolbar More...
 
GUIMainWindowgetParent ()
 Returns the main window. More...
 
GUISUMOAbstractViewgetView () const
 return GUISUMOAbstractView More...
 
 GUIGlChildWindow (FXMDIClient *p, GUIMainWindow *parentWindow, FXMDIMenu *mdimenu, const FXString &name, FXMenuBar *gripNavigationToolbar, FXIcon *ic=NULL, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 constructor More...
 
virtual bool isSelected (GUIGlObject *o) const
 true if the object is selected (may include extra logic besides calling gSelected) More...
 
void setView (GUIGlID id)
 Centers the view onto the given artifact. More...
 
virtual ~GUIGlChildWindow ()
 destructor More...
 
buttons call backs
long onCmdRecenterView (FXObject *, FXSelector, void *)
 
long onCmdEditViewport (FXObject *, FXSelector, void *)
 
long onCmdEditViewScheme (FXObject *, FXSelector, void *)
 
long onCmdShowToolTips (FXObject *sender, FXSelector, void *)
 
long onCmdZoomStyle (FXObject *sender, FXSelector, void *)
 
long onCmdChangeColorScheme (FXObject *, FXSelector sel, void *)
 

Protected Member Functions

void buildColoringToolBar ()
 build coloring toolbar More...
 
void buildNavigationToolBar ()
 build navigation toolbar More...
 
void buildScreenshotToolBar ()
 build screenshot toolbar More...
 

Protected Attributes

FXComboBox * myColoringSchemes
 The coloring schemes. More...
 
FXVerticalFrame * myContentFrame
 The contents frame. More...
 
FXMenuBar * myGripNavigationToolbar
 The grip navigation tool bar. More...
 
FXMenuButton * myLocatorButton
 The locator button. More...
 
FXPopup * myLocatorPopup
 The locator menu. More...
 
GUIMainWindowmyParent
 The parent window. More...
 
FXToolBar * myStaticNavigationToolBar
 The static navigation tool bar. More...
 
GUISUMOAbstractViewmyView
 The view. More...
 

Private Member Functions

 GUIGlChildWindow (const GUIGlChildWindow &)=delete
 Invalidated copy constructor. More...
 
GUIGlChildWindowoperator= (const GUIGlChildWindow &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Definition at line 40 of file GUIGlChildWindow.h.

Constructor & Destructor Documentation

◆ GUIGlChildWindow() [1/2]

GUIGlChildWindow::GUIGlChildWindow ( FXMDIClient *  p,
GUIMainWindow parentWindow,
FXMDIMenu *  mdimenu,
const FXString &  name,
FXMenuBar *  gripNavigationToolbar,
FXIcon *  ic = NULL,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0 
)

constructor

Definition at line 53 of file GUIGlChildWindow.cpp.

References GUIDesignFrameArea, and GUIDesignToolbarMenuBar.

◆ ~GUIGlChildWindow()

GUIGlChildWindow::~GUIGlChildWindow ( )
virtual

destructor

Definition at line 75 of file GUIGlChildWindow.cpp.

References myLocatorPopup, and myStaticNavigationToolBar.

◆ GUIGlChildWindow() [2/2]

GUIGlChildWindow::GUIGlChildWindow ( const GUIGlChildWindow )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ buildColoringToolBar()

◆ buildNavigationToolBar()

◆ buildScreenshotToolBar()

void GUIGlChildWindow::buildScreenshotToolBar ( )
protected

◆ create()

void GUIGlChildWindow::create ( )
virtual

◆ getBuildGLCanvas()

FXGLCanvas * GUIGlChildWindow::getBuildGLCanvas ( ) const
virtual

get build GL Canvas

Definition at line 165 of file GUIGlChildWindow.cpp.

References myView.

Referenced by GUIApplicationWindow::getBuildGLCanvas().

◆ getColoringSchemesCombo()

FXComboBox * GUIGlChildWindow::getColoringSchemesCombo ( )

return combobox with the current coloring schemes (standard, fastest standard, real world...)

Definition at line 183 of file GUIGlChildWindow.cpp.

References myColoringSchemes.

Referenced by GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), and GUISUMOAbstractView::getColoringSchemesCombo().

◆ getLocatorPopup()

FXPopup * GUIGlChildWindow::getLocatorPopup ( )

@ brief return a pointer to locator popup

Definition at line 177 of file GUIGlChildWindow.cpp.

References myLocatorPopup.

Referenced by GUIViewTraffic::buildViewToolBars(), and GNEViewNet::buildViewToolBars().

◆ getNavigationToolBar()

FXToolBar * GUIGlChildWindow::getNavigationToolBar ( GUISUMOAbstractView v)

return a reference to navigation toolbar

Definition at line 171 of file GUIGlChildWindow.cpp.

References myGripNavigationToolbar, and myStaticNavigationToolBar.

◆ getParent()

GUIMainWindow * GUIGlChildWindow::getParent ( )

Returns the main window.

Returns
This view's parent

Definition at line 105 of file GUIGlChildWindow.cpp.

References myParent.

Referenced by GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser().

◆ getView()

◆ isSelected()

bool GUIGlChildWindow::isSelected ( GUIGlObject o) const
virtual

true if the object is selected (may include extra logic besides calling gSelected)

Reimplemented in GUISUMOViewParent.

Definition at line 254 of file GUIGlChildWindow.cpp.

References GUIGlObject::getGlID(), GUIGlObject::getType(), gSelected, and GUISelectedStorage::isSelected().

Referenced by GUIDialog_GLObjChooser::refreshList().

◆ onCmdChangeColorScheme()

long GUIGlChildWindow::onCmdChangeColorScheme ( FXObject *  ,
FXSelector  sel,
void *  data 
)

Definition at line 239 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::setColorScheme().

◆ onCmdEditViewport()

long GUIGlChildWindow::onCmdEditViewport ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 197 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewportEditor().

◆ onCmdEditViewScheme()

long GUIGlChildWindow::onCmdEditViewScheme ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 204 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewschemeEditor().

◆ onCmdRecenterView()

long GUIGlChildWindow::onCmdRecenterView ( FXObject *  ,
FXSelector  ,
void *   
)

Definition at line 189 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::recenterView().

◆ onCmdShowToolTips()

long GUIGlChildWindow::onCmdShowToolTips ( FXObject *  sender,
FXSelector  ,
void *   
)

◆ onCmdZoomStyle()

long GUIGlChildWindow::onCmdZoomStyle ( FXObject *  sender,
FXSelector  ,
void *   
)

◆ operator=()

GUIGlChildWindow& GUIGlChildWindow::operator= ( const GUIGlChildWindow )
privatedelete

Invalidated assignment operator.

◆ setView()

void GUIGlChildWindow::setView ( GUIGlID  id)

Centers the view onto the given artifact.

Parameters
[in]idThe id of the object to center the view on

Definition at line 246 of file GUIGlChildWindow.cpp.

References GUISUMOAbstractView::centerTo(), and myView.

Referenced by GUIDialog_GLObjChooser::onCmdCenter(), GUIDialog_GLObjChooser::onCmdText(), GUIDialog_GLObjChooser::onCmdTrack(), and GUIMessageWindow::setCursorPos().

Field Documentation

◆ myColoringSchemes

FXComboBox* GUIGlChildWindow::myColoringSchemes
protected

The coloring schemes.

Definition at line 117 of file GUIGlChildWindow.h.

Referenced by buildColoringToolBar(), and getColoringSchemesCombo().

◆ myContentFrame

FXVerticalFrame* GUIGlChildWindow::myContentFrame
protected

The contents frame.

Definition at line 114 of file GUIGlChildWindow.h.

Referenced by GUISUMOViewParent::init().

◆ myGripNavigationToolbar

FXMenuBar* GUIGlChildWindow::myGripNavigationToolbar
protected

◆ myLocatorButton

FXMenuButton* GUIGlChildWindow::myLocatorButton
protected

The locator button.

Definition at line 111 of file GUIGlChildWindow.h.

Referenced by buildNavigationToolBar(), GUISUMOViewParent::onCmdLocate(), and GNEViewParent::onCmdLocate().

◆ myLocatorPopup

FXPopup* GUIGlChildWindow::myLocatorPopup
protected

◆ myParent

◆ myStaticNavigationToolBar

◆ myView


The documentation for this class was generated from the following files: