Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TPoints.h
Go to the documentation of this file.
1// @(#)root/graf:$Id$
2// Author: Rene Brun 23/02/95
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TPoints
13#define ROOT_TPoints
14
15
16#include "Rtypes.h"
17
18
19class TPoints {
20
21private:
22 Double_t fX; ///< X world coordinate
23 Double_t fY; ///< Y world coordinate
24
25public:
26 TPoints() : fX(0), fY(0) { }
29 virtual ~TPoints() { }
30 Double_t GetX() const { return fX; }
31 Double_t GetY() const { return fY; }
32 void SetX(Double_t x) { fX = x; }
33 void SetY(Double_t y) { fY = y; }
34
35 ClassDef(TPoints,0) //2-D graphics point
36};
37
38#endif
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
XPoint xy[kMAXMK]
Definition TGX11.cxx:123
2-D graphics point (world coordinates).
Definition TPoints.h:19
virtual ~TPoints()
Definition TPoints.h:29
void SetX(Double_t x)
Definition TPoints.h:32
Double_t fY
Y world coordinate.
Definition TPoints.h:23
Double_t GetX() const
Definition TPoints.h:30
void SetY(Double_t y)
Definition TPoints.h:33
TPoints(Double_t x, Double_t y)
Definition TPoints.h:28
TPoints()
Definition TPoints.h:26
Double_t GetY() const
Definition TPoints.h:31
Double_t fX
X world coordinate.
Definition TPoints.h:22
TPoints(Double_t xy)
Definition TPoints.h:27
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17