|
||||
File indexing completed on 2025-01-30 10:22:36
0001 /************************************************************************* 0002 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. * 0003 * All rights reserved. * 0004 * * 0005 * For the licensing terms see $ROOTSYS/LICENSE. * 0006 * For the list of contributors see $ROOTSYS/README/CREDITS. * 0007 *************************************************************************/ 0008 0009 #ifndef ROOT7_RMarker 0010 #define ROOT7_RMarker 0011 0012 #include <ROOT/ROnFrameDrawable.hxx> 0013 #include <ROOT/RAttrMarker.hxx> 0014 #include <ROOT/RPadPos.hxx> 0015 0016 #include <initializer_list> 0017 0018 namespace ROOT { 0019 namespace Experimental { 0020 0021 /** \class RMarker 0022 \ingroup GrafROOT7 0023 \brief A simple marker. 0024 \author Olivier Couet <Olivier.Couet@cern.ch> 0025 \date 2017-10-16 0026 \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome! 0027 */ 0028 0029 class RMarker : public ROnFrameDrawable { 0030 0031 RPadPos fP; ///< position 0032 0033 public: 0034 RAttrMarker marker{this, "marker"}; ///<! marker attributes 0035 0036 RMarker() : ROnFrameDrawable("marker") {} 0037 0038 RMarker(const RPadPos &p) : RMarker() { fP = p; } 0039 0040 RMarker &SetP(const RPadPos &p) { fP = p; return *this; } 0041 const RPadPos &GetP() const { return fP; } 0042 }; 0043 0044 } // namespace Experimental 0045 } // namespace ROOT 0046 0047 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |