Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TWebPadOptions.h
Go to the documentation of this file.
1// Author: Sergey Linev, GSI 29/06/2017
2
3/*************************************************************************
4 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_TWebPadOptions
12#define ROOT_TWebPadOptions
13
14#include <string>
15#include <vector>
16
17/** \class TWebObjectOptions
18\ingroup webgui6
19
20Class used to transport drawing options from the client
21
22*/
23
25public:
26 std::string snapid; ///< id of the object
27 std::string opt; ///< drawing options
28 std::string fcust; ///< custom string
29 std::vector<double> fopt; ///< custom float array
30};
31
32/// Class used to transport ranges from JSROOT canvas
34public:
35 std::string snapid; ///< id of pad
36 bool active{false}; ///< if pad selected as active
37 int cw{0}, ch{0}; ///< canvas width and height in pixels
38 int logx{0}, logy{0}, logz{0}; ///< pad log properties
39 int gridx{0}, gridy{0}; ///< pad grid properties
40 int tickx{0}, ticky{0}; ///< pad ticks properties
41 float mleft{0}, mright{0}, mtop{0}, mbottom{0}; ///< frame margins
42 float xlow{0}, ylow{0}, xup{0}, yup{0}; ///< pad coordinate in ndex
43 bool ranges{false}; ///< if true, pad has ranges
44 double px1{0}, py1{0}, px2{0}, py2{0}; ///< pad range
45 double ux1{0}, ux2{0}, uy1{0}, uy2{0}, uz1{0}, uz2{0}; ///< frame axis range - real ranges
46 unsigned bits{0}; ///< canvas status bits like tool editor
47 double zx1{0}, zx2{0}, zy1{0}, zy2{0}, zz1{0}, zz2{0}; ///< zooming ranges
48 std::vector<TWebObjectOptions> primitives; ///< drawing options for primitives
49};
50
51/// Class used to transport pad click events
53public:
54 std::string padid; ///< id of pad
55 std::string objid; ///< id of clicked object, "null" when not defined
56 int x{-1}; ///< x coordinate of click event
57 int y{-1}; ///< y coordinate of click event
58 bool dbl{false}; ///< when double-click was performed
59};
60
61#endif
Class used to transport drawing options from the client.
std::vector< double > fopt
custom float array
std::string fcust
custom string
std::string snapid
id of the object
std::string opt
drawing options
Class used to transport pad click events.
std::string padid
id of pad
int y
y coordinate of click event
std::string objid
id of clicked object, "null" when not defined
int x
x coordinate of click event
bool dbl
when double-click was performed
Class used to transport ranges from JSROOT canvas.
int ch
canvas width and height in pixels
double py2
pad range
double uz2
frame axis range - real ranges
float mbottom
frame margins
int logz
pad log properties
bool active
if pad selected as active
int gridy
pad grid properties
bool ranges
if true, pad has ranges
float yup
pad coordinate in ndex
std::vector< TWebObjectOptions > primitives
drawing options for primitives
int ticky
pad ticks properties
unsigned bits
canvas status bits like tool editor
double zz2
zooming ranges
std::string snapid
id of pad