63 #include <osgview/GUIOSGView.h>
66 #ifdef CHECK_MEMORY_LEAKS
68 #endif // CHECK_MEMORY_LEAKS
97 FXIcon* ic, FXuint opts,
98 FXint x, FXint y, FXint w, FXint h)
100 myParent->addChild(
this,
false);
133 FXFileDialog opendialog(
this,
"Save Snapshot");
135 opendialog.setSelectMode(SELECTFILE_ANY);
136 opendialog.setPatternList(
"All Image Files (*.gif, *.bmp, *.xpm, *.pcx, *.ico, *.rgb, *.xbm, *.tga, *.png, *.jpg, *.jpeg, *.tif, *.tiff, *.ps, *.eps, *.pdf, *.svg, *.tex, *.pgf)\n"
137 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n"
138 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n"
139 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n"
140 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n"
141 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n"
150 std::string file = opendialog.getFilename().text();
153 FXMessageBox::error(
this, MBOX_OK,
"Saving failed.",
"%s", error.c_str());
162 std::vector<GUIGlID> ids;
165 switch (FXSELID(sel)) {
170 title =
"Junction Chooser";
176 title =
"Edge Chooser";
182 title =
"Vehicle Chooser";
188 title =
"Traffic Lights Chooser";
194 title =
"Additional Objects Chooser";
200 title =
"Shape Chooser";
203 throw ProcessError(
"Unknown Message ID in onCmdLocate");
232 size_t noLanes = edge->
getLanes().size();
233 for (
size_t j = 0; j < noLanes; ++j) {