SUMO - Simulation of Urban MObility
GUIGlChildWindow Class Reference

#include <GUIGlChildWindow.h>

Inheritance diagram for GUIGlChildWindow:
Inheritance graph
Collaboration diagram for GUIGlChildWindow:
Collaboration graph

Public Member Functions

void buildColoringToolBar ()
 
void buildNavigationToolBar ()
 
void buildScreenshotToolBar ()
 
virtual void create ()
 
virtual FXGLCanvas * getBuildGLCanvas () const
 
FXComboBox & getColoringSchemesCombo ()
 
FXPopup * getLocatorPopup ()
 
FXToolBar & getNavigationToolBar (GUISUMOAbstractView &v)
 
GUIMainWindowgetParent ()
 Returns the main window. More...
 
GUISUMOAbstractViewgetView () const
 
 GUIGlChildWindow (FXMDIClient *p, GUIMainWindow *parentWindow, FXMDIMenu *mdimenu, const FXString &name, FXIcon *ic=NULL, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 
virtual bool isSelected (GUIGlObject *o) const
 true if the object is selected (may include extra logic besides calling gSelected) More...
 
long onCmdChangeColorScheme (FXObject *, FXSelector sel, void *)
 
long onCmdEditViewport (FXObject *, FXSelector, void *)
 
long onCmdEditViewScheme (FXObject *, FXSelector, void *)
 
long onCmdRecenterView (FXObject *, FXSelector, void *)
 
long onCmdShowToolTips (FXObject *sender, FXSelector, void *)
 
long onCmdZoomStyle (FXObject *sender, FXSelector, void *)
 
void setView (GUIGlID id)
 Centers the view onto the given artifact. More...
 
virtual ~GUIGlChildWindow ()
 

Protected Member Functions

 GUIGlChildWindow ()
 

Protected Attributes

FXComboBox * myColoringSchemes
 
FXVerticalFrame * myContentFrame
 
FXMenuButton * myLocatorButton
 
FXPopup * myLocatorPopup
 The locator menu. More...
 
FXToolBar * myNavigationToolBar
 The tool bar. More...
 
GUIMainWindowmyParent
 The parent window. More...
 
GUISUMOAbstractViewmyView
 the view More...
 

Detailed Description

Definition at line 47 of file GUIGlChildWindow.h.

Constructor & Destructor Documentation

◆ GUIGlChildWindow() [1/2]

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

Definition at line 58 of file GUIGlChildWindow.cpp.

References GUIDesignFrameArea.

◆ ~GUIGlChildWindow()

GUIGlChildWindow::~GUIGlChildWindow ( )
virtual

Definition at line 77 of file GUIGlChildWindow.cpp.

References myLocatorPopup, and myNavigationToolBar.

◆ GUIGlChildWindow() [2/2]

GUIGlChildWindow::GUIGlChildWindow ( )
inlineprotected

Definition at line 117 of file GUIGlChildWindow.h.

Member Function Documentation

◆ buildColoringToolBar()

◆ buildNavigationToolBar()

◆ buildScreenshotToolBar()

void GUIGlChildWindow::buildScreenshotToolBar ( )

◆ create()

void GUIGlChildWindow::create ( )
virtual

◆ getBuildGLCanvas()

FXGLCanvas * GUIGlChildWindow::getBuildGLCanvas ( ) const
virtual

◆ getColoringSchemesCombo()

FXComboBox & GUIGlChildWindow::getColoringSchemesCombo ( )

◆ getLocatorPopup()

FXPopup * GUIGlChildWindow::getLocatorPopup ( )

◆ getNavigationToolBar()

FXToolBar & GUIGlChildWindow::getNavigationToolBar ( GUISUMOAbstractView v)

Definition at line 158 of file GUIGlChildWindow.cpp.

References myNavigationToolBar.

Referenced by getView().

◆ getParent()

GUIMainWindow* GUIGlChildWindow::getParent ( )
inline

Returns the main window.

Returns
This view's parent

Definition at line 88 of file GUIGlChildWindow.h.

References isSelected(), and 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 GNEViewParent, and GUISUMOViewParent.

Definition at line 236 of file GUIGlChildWindow.cpp.

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

Referenced by getParent().

◆ onCmdChangeColorScheme()

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

Definition at line 221 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::setColorScheme().

Referenced by getView().

◆ onCmdEditViewport()

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

Definition at line 184 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewportEditor().

Referenced by getView().

◆ onCmdEditViewScheme()

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

Definition at line 191 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::showViewschemeEditor().

Referenced by getView().

◆ onCmdRecenterView()

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

Definition at line 176 of file GUIGlChildWindow.cpp.

References myView, and GUISUMOAbstractView::recenterView().

Referenced by getView().

◆ onCmdShowToolTips()

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

◆ onCmdZoomStyle()

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

Definition at line 209 of file GUIGlChildWindow.cpp.

References MFXCheckableButton::amChecked(), myView, and MFXCheckableButton::setChecked().

Referenced by getView().

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

References GUISUMOAbstractView::centerTo(), and myView.

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

Field Documentation

◆ myColoringSchemes

FXComboBox* GUIGlChildWindow::myColoringSchemes
protected

Definition at line 110 of file GUIGlChildWindow.h.

Referenced by buildColoringToolBar(), and getColoringSchemesCombo().

◆ myContentFrame

FXVerticalFrame* GUIGlChildWindow::myContentFrame
protected

Definition at line 108 of file GUIGlChildWindow.h.

Referenced by buildNavigationToolBar(), and GUISUMOViewParent::init().

◆ myLocatorButton

FXMenuButton* GUIGlChildWindow::myLocatorButton
protected

◆ myLocatorPopup

FXPopup* GUIGlChildWindow::myLocatorPopup
protected

◆ myNavigationToolBar

FXToolBar* GUIGlChildWindow::myNavigationToolBar
protected

◆ myParent

◆ myView


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