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...
 
 GUIGlChildWindow ()
 fox need this 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 41 of file GUIGlChildWindow.h.

Constructor & Destructor Documentation

◆ GUIGlChildWindow() [1/3]

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 54 of file GUIGlChildWindow.cpp.

References GUIDesignFrameArea, and GUIDesignToolbarMenuBar.

◆ ~GUIGlChildWindow()

GUIGlChildWindow::~GUIGlChildWindow ( )
virtual

destructor

Definition at line 76 of file GUIGlChildWindow.cpp.

References myLocatorPopup, and myStaticNavigationToolBar.

◆ GUIGlChildWindow() [2/3]

GUIGlChildWindow::GUIGlChildWindow ( )
inlineprotected

fox need this

Definition at line 95 of file GUIGlChildWindow.h.

◆ GUIGlChildWindow() [3/3]

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 166 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 184 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 178 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 172 of file GUIGlChildWindow.cpp.

References myGripNavigationToolbar, and myStaticNavigationToolBar.

◆ getParent()

GUIMainWindow * GUIGlChildWindow::getParent ( )

Returns the main window.

Returns
This view's parent

Definition at line 106 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 255 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 240 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::setColorScheme().

◆ onCmdEditViewport()

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

Definition at line 198 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewportEditor().

◆ onCmdEditViewScheme()

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

Definition at line 205 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewschemeEditor().

◆ onCmdRecenterView()

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

Definition at line 190 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 247 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 119 of file GUIGlChildWindow.h.

Referenced by buildColoringToolBar(), and getColoringSchemesCombo().

◆ myContentFrame

FXVerticalFrame* GUIGlChildWindow::myContentFrame
protected

The contents frame.

Definition at line 116 of file GUIGlChildWindow.h.

Referenced by GUISUMOViewParent::init().

◆ myGripNavigationToolbar

FXMenuBar* GUIGlChildWindow::myGripNavigationToolbar
protected

The grip navigation tool bar.

Definition at line 101 of file GUIGlChildWindow.h.

Referenced by buildColoringToolBar(), buildNavigationToolBar(), buildScreenshotToolBar(), create(), and getNavigationToolBar().

◆ myLocatorButton

FXMenuButton* GUIGlChildWindow::myLocatorButton
protected

The locator button.

Definition at line 113 of file GUIGlChildWindow.h.

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

◆ myLocatorPopup

FXPopup* GUIGlChildWindow::myLocatorPopup
protected

◆ myParent

◆ myStaticNavigationToolBar

FXToolBar* GUIGlChildWindow::myStaticNavigationToolBar
protected

◆ myView


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