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 logx{0}, logy{0}, logz{0}; ///< pad log properties
38 int gridx{0}, gridy{0}; ///< pad grid properties
39 int tickx{0}, ticky{0}; ///< pad ticks properties
40 float mleft{0}, mright{0}, mtop{0}, mbottom{0}; ///< frame margins
41 bool ranges{false}; ///< if true, pad has ranges
42 double px1{0}, py1{0}, px2{0}, py2{0}; ///< pad range
43 double ux1{0}, uy1{0}, ux2{0}, uy2{0}; ///< pad axis range
44 unsigned bits{0}; ///< canvas status bits like tool editor
45 double zx1{0}, zx2{0}, zy1{0}, zy2{0}, zz1{0}, zz2{0}; ///< zooming ranges
46 std::vector<TWebObjectOptions> primitives; ///< drawing options for primitives
47};
48
49/// Class used to transport pad click events
51public:
52 std::string padid; ///< id of pad
53 std::string objid; ///< id of clicked object, "null" when not defined
54 int x{-1}; ///< x coordinate of click event
55 int y{-1}; ///< y coordinate of click event
56 bool dbl{false}; ///< when double-click was performed
57};
58
59#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.
double py2
pad range
float mbottom
frame margins
int logz
pad log properties
bool active
if pad selected as active
int gridy
pad grid properties
double uy2
pad axis range
bool ranges
if true, pad has ranges
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