CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DQM/TrackerCommon/src/GifDisplay.cc

Go to the documentation of this file.
00001 #include "DQM/TrackerCommon/interface/GifDisplay.h"
00002 
00003 void GifDisplay::printHTML(xgi::Output *out)
00004 {
00005   std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top();
00006 
00007   *out << cgicc::div().set("style", position.c_str()) << std::endl;
00008 
00009   *out << cgicc::iframe()
00010     .set("name", name)
00011     .set("id", name)
00012     .set("src", "")
00013     .set("height", height).set("width", width);
00014   *out << cgicc::iframe() << std::endl;
00015   *out << cgicc::br() << std::endl;
00016   *out << cgicc::input().set("type", "button").set("value", "start viewer").set("onclick", "startViewing('" + name + "')");
00017   *out << std::endl;
00018   *out << cgicc::input().set("type", "button").set("value", "stop viewer").set("onclick", "stopViewing('" + name + "')");
00019   *out << std::endl;
00020   *out << cgicc::input().set("type", "button").set("value", "make current").set("onclick", "makeCurrent('" + name + "')");
00021   *out << std::endl;
00022 
00023   *out << cgicc::div() << std::endl;
00024 }