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);
135 FXFileDialog opendialog(
this,
"Save Snapshot");
137 opendialog.setSelectMode(SELECTFILE_ANY);
138 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"
139 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n"
140 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n"
141 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n"
142 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n"
143 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n"
152 std::string file = opendialog.getFilename().text();
155 FXMessageBox::error(
this, MBOX_OK,
"Saving failed.",
"%s", error.c_str());
164 std::vector<GUIGlID> ids;
167 switch (FXSELID(sel)) {
172 title =
"Junction Chooser";
178 title =
"Edge Chooser";
184 title =
"Vehicle Chooser";
190 title =
"Traffic Lights Chooser";
196 title =
"Additional Objects Chooser";
202 title =
"POI Chooser";
208 title =
"Polygon Chooser";
211 throw ProcessError(
"Unknown Message ID in onCmdLocate");
243 const std::vector<MSLane*>& lanes = edge->
getLanes();
244 for (std::vector<MSLane*>::const_iterator j = lanes.begin(); j != lanes.end(); ++j) {