63 #include <osgview/GUIOSGView.h>
66 #ifdef CHECK_MEMORY_LEAKS
68 #endif // CHECK_MEMORY_LEAKS
98 FXIcon* ic, FXuint opts,
99 FXint x, FXint y, FXint w, FXint h)
101 myParent->addChild(
this,
false);
134 FXFileDialog opendialog(
this,
"Save Snapshot");
136 opendialog.setSelectMode(SELECTFILE_ANY);
137 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"
138 "GIF Image (*.gif)\nBMP Image (*.bmp)\nXPM Image (*.xpm)\nPCX Image (*.pcx)\nICO Image (*.ico)\n"
139 "RGB Image (*.rgb)\nXBM Image (*.xbm)\nTARGA Image (*.tga)\nPNG Image (*.png)\n"
140 "JPEG Image (*.jpg, *.jpeg)\nTIFF Image (*.tif, *.tiff)\n"
141 "Postscript (*.ps)\nEncapsulated Postscript (*.eps)\nPortable Document Format (*.pdf)\n"
142 "Scalable Vector Graphics (*.svg)\nLATEX text strings (*.tex)\nPortable LaTeX Graphics (*.pgf)\n"
151 std::string file = opendialog.getFilename().text();
154 FXMessageBox::error(
this, MBOX_OK,
"Saving failed.",
"%s", error.c_str());
163 std::vector<GUIGlID> ids;
166 switch (FXSELID(sel)) {
171 title =
"Junction Chooser";
177 title =
"Edge Chooser";
183 title =
"Vehicle Chooser";
189 title =
"Traffic Lights Chooser";
195 title =
"Additional Objects Chooser";
201 title =
"POI Chooser";
207 title =
"Polygon Chooser";
210 throw ProcessError(
"Unknown Message ID in onCmdLocate");
242 size_t noLanes = edge->
getLanes().size();
243 for (
size_t j = 0; j < noLanes; ++j) {