64 #include <osgview/GUIOSGView.h>
67 #ifdef CHECK_MEMORY_LEAKS
69 #endif // CHECK_MEMORY_LEAKS
99 FXIcon* ic, FXuint opts,
100 FXint x, FXint y, FXint w, FXint h)
102 myParent->addChild(
this,
false);
145 FXFileDialog opendialog(
this,
"Save Snapshot");
147 opendialog.setSelectMode(SELECTFILE_ANY);
148 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"
149 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n"
150 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n"
151 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n"
152 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n"
153 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n"
162 std::string file = opendialog.getFilename().text();
165 FXMessageBox::error(
this, MBOX_OK,
"Saving failed.",
"%s", error.c_str());
174 std::vector<GUIGlID> ids;
177 switch (FXSELID(sel)) {
182 title =
"Junction Chooser";
188 title =
"Edge Chooser";
194 title =
"Vehicle Chooser";
200 title =
"Traffic Lights Chooser";
206 title =
"Additional Objects Chooser";
212 title =
"POI Chooser";
218 title =
"Polygon Chooser";
221 throw ProcessError(
"Unknown Message ID in onCmdLocate");
253 const std::vector<MSLane*>& lanes = edge->
getLanes();
254 for (std::vector<MSLane*>::const_iterator j = lanes.begin(); j != lanes.end(); ++j) {