CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
GifDisplay Class Reference

#include <GifDisplay.h>

Inheritance diagram for GifDisplay:
WebElement

Public Member Functions

 GifDisplay (std::string the_url, std::string top, std::string left, std::string the_height, std::string the_width, std::string the_name)
 
void printHTML (xgi::Output *out)
 
 ~GifDisplay ()
 
- Public Member Functions inherited from WebElement
std::string get_pix_left ()
 
std::string get_pix_top ()
 
std::string get_url ()
 
 WebElement (std::string the_url, std::string top, std::string left)
 
virtual ~WebElement ()
 

Private Attributes

std::string height
 
std::string name
 
std::string width
 

Detailed Description

This is the class that should be instantiated and added to the web page in order to present a display for the histograms on the browser screen

Definition at line 15 of file GifDisplay.h.

Constructor & Destructor Documentation

GifDisplay::GifDisplay ( std::string  the_url,
std::string  top,
std::string  left,
std::string  the_height,
std::string  the_width,
std::string  the_name 
)
inline

Definition at line 25 of file GifDisplay.h.

References height, name, and width.

27  : WebElement(the_url, top, left)
28  {
29  height = the_height;
30  width = the_width;
31  name = the_name;
32  }
WebElement(std::string the_url, std::string top, std::string left)
Definition: WebElement.h:21
std::string height
Definition: GifDisplay.h:19
std::string name
Definition: GifDisplay.h:21
std::string width
Definition: GifDisplay.h:20
GifDisplay::~GifDisplay ( )
inline

Definition at line 34 of file GifDisplay.h.

35  {
36  }

Member Function Documentation

void GifDisplay::printHTML ( xgi::Output out)
virtual

Implements WebElement.

Definition at line 3 of file GifDisplay.cc.

References scaleCards::br, WebElement::get_pix_left(), WebElement::get_pix_top(), height, LaserDQM_cfg::input, name, position, and width.

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
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
static int position[264][3]
Definition: ReadPGInfo.cc:509

Member Data Documentation

std::string GifDisplay::height
private
std::string GifDisplay::name
private
std::string GifDisplay::width
private