CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GifDisplay.cc
Go to the documentation of this file.
2 
4 {
5  std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top();
6 
7  *out << cgicc::div().set("style", position.c_str()) << std::endl;
8 
9  *out << cgicc::iframe()
10  .set("name", name)
11  .set("id", name)
12  .set("src", "")
13  .set("height", height).set("width", width);
14  *out << cgicc::iframe() << std::endl;
15  *out << cgicc::br() << std::endl;
16  *out << cgicc::input().set("type", "button").set("value", "start viewer").set("onclick", "startViewing('" + name + "')");
17  *out << std::endl;
18  *out << cgicc::input().set("type", "button").set("value", "stop viewer").set("onclick", "stopViewing('" + name + "')");
19  *out << std::endl;
20  *out << cgicc::input().set("type", "button").set("value", "make current").set("onclick", "makeCurrent('" + name + "')");
21  *out << std::endl;
22 
23  *out << cgicc::div() << std::endl;
24 }
std::string get_pix_left()
Definition: WebElement.h:38
std::string height
Definition: GifDisplay.h:19
void printHTML(xgi::Output *out)
Definition: GifDisplay.cc:3
std::string name
Definition: GifDisplay.h:21
tuple br
Definition: scaleCards.py:54
tuple out
Definition: dbtoconf.py:99
std::string get_pix_top()
Definition: WebElement.h:37
std::string width
Definition: GifDisplay.h:20
#define Output(cl)
Definition: vmac.h:193
static int position[264][3]
Definition: ReadPGInfo.cc:509