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 std::vector<int> w; ///< window position and size in pixels, set only for canvas
39 int logx{0}, logy{0}, logz{0}; ///< pad log properties
40 int gridx{0}, gridy{0}; ///< pad grid properties
41 int tickx{0}, ticky{0}; ///< pad ticks properties
42 float mleft{0}, mright{0}, mtop{0}, mbottom{0}; ///< frame margins
43 float xlow{0}, ylow{0}, xup{0}, yup{0}; ///< pad coordinate in ndex
44 bool ranges{false}; ///< if true, pad has ranges
45 double px1{0}, py1{0}, px2{0}, py2{0}; ///< pad range
46 double ux1{0}, ux2{0}, uy1{0}, uy2{0}, uz1{0}, uz2{0}; ///< frame axis range - real ranges
47 unsigned bits{0}; ///< canvas status bits like tool editor
48 double zx1{0}, zx2{0}, zy1{0}, zy2{0}, zz1{0}, zz2{0}; ///< zooming ranges
49 double phi{0}, theta{0}; ///< angles in 3D view
50 std::vector<TWebObjectOptions> primitives; ///< drawing options for primitives
51};
52
53/// Class used to transport pad click events
55public:
56 std::string padid; ///< id of pad
57 std::string objid; ///< id of clicked object, "null" when not defined
58 int x{-1}; ///< x coordinate of click event
59 int y{-1}; ///< y coordinate of click event
60 bool dbl{false}; ///< when double-click was performed
61};
62
63#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
std::vector< int > w
window position and size in pixels, set only for canvas
int ticky
pad ticks properties
double theta
angles in 3D view
unsigned bits
canvas status bits like tool editor
double zz2
zooming ranges
std::string snapid
id of pad