Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
107b2949
Commit
107b2949
authored
7 years ago
by
Axel Naumann
Browse files
Options
Downloads
Patches
Plain Diff
Mostly-clang-format hist/histpainter/v7/.
parent
cc0c8bd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hist/histpainter/v7/src/THistPainter.cxx
+28
-28
28 additions, 28 deletions
hist/histpainter/v7/src/THistPainter.cxx
with
28 additions
and
28 deletions
hist/histpainter/v7/src/THistPainter.cxx
+
28
−
28
View file @
107b2949
...
...
@@ -2,7 +2,8 @@
/// \ingroup HistPainter ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2015-07-09
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
...
...
@@ -28,46 +29,45 @@ using namespace ROOT::Experimental::Internal;
namespace
{
class
THistPainter1D
:
public
THistPainterBase
<
1
>
{
public:
void
Paint
(
TDrawable
&
hist
,
THistDrawOptions
<
1
>
/*opts*/
,
TVirtualCanvasPainter
&
/*canv*/
)
final
{
// TODO: paint!
std
::
cout
<<
"Painting histogram @"
<<
&
hist
<<
'\n'
;
}
virtual
~
THistPainter1D
()
final
{}
void
Paint
(
TDrawable
&
hist
,
THistDrawOptions
<
1
>
/*opts*/
,
TVirtualCanvasPainter
&
/*canv*/
)
final
{
// TODO: paint!
std
::
cout
<<
"Painting histogram @"
<<
&
hist
<<
'\n'
;
}
virtual
~
THistPainter1D
()
final
{}
};
class
THistPainter2D
:
public
THistPainterBase
<
2
>
{
public:
void
Paint
(
TDrawable
&
drw
,
THistDrawOptions
<
2
>
/*opts*/
,
TVirtualCanvasPainter
&
canv
)
final
{
std
::
cout
<<
"Painting histogram @"
<<
&
drw
<<
'\n'
;
assert
(
dynamic_cast
<
THistDrawable
<
2
>*>
(
&
drw
)
&&
"Wrong drawable type"
);
THistDrawable
<
2
>
&
hd
=
static_cast
<
THistDrawable
<
2
>&>
(
drw
);
void
Paint
(
TDrawable
&
drw
,
THistDrawOptions
<
2
>
/*opts*/
,
TVirtualCanvasPainter
&
canv
)
final
{
std
::
cout
<<
"Painting histogram @"
<<
&
drw
<<
'\n'
;
assert
(
dynamic_cast
<
THistDrawable
<
2
>
*>
(
&
drw
)
&&
"Wrong drawable type"
);
THistDrawable
<
2
>
&
hd
=
static_cast
<
THistDrawable
<
2
>
&>
(
drw
);
ROOT
::
Experimental
::
TDisplayItem
*
res
=
new
TOrdinaryDisplayItem
<
TH1
>
(
hd
.
GetOldHist
());
res
->
SetOption
(
"col"
);
ROOT
::
Experimental
::
TDisplayItem
*
res
=
new
TOrdinaryDisplayItem
<
TH1
>
(
hd
.
GetOldHist
());
res
->
SetOption
(
"col"
);
canv
.
AddDisplayItem
(
res
);
canv
.
AddDisplayItem
(
res
);
//hd.GetOldHist()->Paint("BOX");
}
virtual
~
THistPainter2D
()
final
{}
//
hd.GetOldHist()->Paint("BOX");
}
virtual
~
THistPainter2D
()
final
{}
};
class
THistPainter3D
:
public
THistPainterBase
<
3
>
{
public:
void
Paint
(
TDrawable
&
hist
,
THistDrawOptions
<
3
>
/*opts*/
,
TVirtualCanvasPainter
&
/*canv*/
)
final
{
// TODO: paint!
std
::
cout
<<
"Painting histogram @"
<<
&
hist
<<
'\n'
;
}
virtual
~
THistPainter3D
()
final
{}
void
Paint
(
TDrawable
&
hist
,
THistDrawOptions
<
3
>
/*opts*/
,
TVirtualCanvasPainter
&
/*canv*/
)
final
{
// TODO: paint!
std
::
cout
<<
"Painting histogram @"
<<
&
hist
<<
'\n'
;
}
virtual
~
THistPainter3D
()
final
{}
};
struct
HistPainterReg
{
THistPainter1D
fPainter1D
;
THistPainter2D
fPainter2D
;
THistPainter3D
fPainter3D
;
THistPainter1D
fPainter1D
;
THistPainter2D
fPainter2D
;
THistPainter3D
fPainter3D
;
}
histPainterReg
;
}
// unnamed namespace
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment