CMS 3D CMS Logo

GifDisplay Class Reference

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. More...

#include <DQM/TrackerCommon/interface/GifDisplay.h>

Inheritance diagram for GifDisplay:

WebElement WebElement

List of all members.

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)
 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)
void printHTML (xgi::Output *out)
 ~GifDisplay ()
 ~GifDisplay ()

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.

00027     : WebElement(the_url, top, left)
00028     {
00029       height = the_height;
00030       width = the_width;
00031       name = the_name;
00032     }

GifDisplay::~GifDisplay (  )  [inline]

Definition at line 34 of file GifDisplay.h.

00035     {
00036     }

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.

00027     : WebElement(the_url, top, left)
00028     {
00029       height = the_height;
00030       width = the_width;
00031       name = the_name;
00032     }

GifDisplay::~GifDisplay (  )  [inline]

Definition at line 34 of file GifDisplay.h.

00035     {
00036     }


Member Function Documentation

void GifDisplay::printHTML ( xgi::Output *  out  )  [virtual]

Implements WebElement.

void GifDisplay::printHTML ( xgi::Output *  out  )  [virtual]

Implements WebElement.

Definition at line 3 of file GifDisplay.cc.

References lat::endl(), WebElement::get_pix_left(), WebElement::get_pix_top(), height, iggi_31X_cfg::input, name, and width.

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 }


Member Data Documentation

std::string GifDisplay::height [private]

Definition at line 19 of file GifDisplay.h.

Referenced by GifDisplay(), and printHTML().

std::string GifDisplay::name [private]

Definition at line 21 of file GifDisplay.h.

Referenced by GifDisplay(), and printHTML().

std::string GifDisplay::width [private]

Definition at line 20 of file GifDisplay.h.

Referenced by GifDisplay(), and printHTML().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:21:24 2009 for CMSSW by  doxygen 1.5.4