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
d1c6deaa
Commit
d1c6deaa
authored
9 years ago
by
Danilo Piparo
Browse files
Options
Downloads
Patches
Plain Diff
Add flag to specify that the canvas was drawn
parent
e3cec875
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
graf2d/gpad/inc/TCanvas.h
+3
-0
3 additions, 0 deletions
graf2d/gpad/inc/TCanvas.h
graf2d/gpad/src/TCanvas.cxx
+2
-0
2 additions, 0 deletions
graf2d/gpad/src/TCanvas.cxx
with
5 additions
and
0 deletions
graf2d/gpad/inc/TCanvas.h
+
3
−
0
View file @
d1c6deaa
...
...
@@ -84,6 +84,7 @@ protected:
Bool_t
fUpdating
;
//!True when Updating the canvas
Bool_t
fRetained
;
//Retain structure flag
Bool_t
fUseGL
;
//!True when rendering is with GL
Bool_t
fDrawn
;
//!Set to True when drawing
//
TVirtualPadPainter
*
fPainter
;
//!Canvas (pad) painter.
...
...
@@ -190,6 +191,7 @@ public:
Bool_t
HasMenuBar
()
const
{
return
TestBit
(
kMenuBar
);
}
void
Iconify
()
{
fCanvasImp
->
Iconify
();
}
Bool_t
IsBatch
()
const
{
return
fBatch
;
}
Bool_t
IsDrawn
()
{
return
fDrawn
;
}
Bool_t
IsFolder
()
const
;
Bool_t
IsGrayscale
();
Bool_t
IsRetained
()
const
{
return
fRetained
;
}
...
...
@@ -206,6 +208,7 @@ public:
virtual
void
Cleared
(
TVirtualPad
*
pad
);
// *SIGNAL*
virtual
void
Closed
();
// *SIGNAL*
void
RaiseWindow
()
{
fCanvasImp
->
RaiseWindow
();
}
void
ResetDrawn
()
{
fDrawn
=
kFALSE
;
}
virtual
void
Resize
(
Option_t
*
option
=
""
);
void
ResizeOpaque
(
Int_t
set
=
1
);
void
SaveSource
(
const
char
*
filename
=
""
,
Option_t
*
option
=
""
);
...
...
This diff is collapsed.
Click to expand it.
graf2d/gpad/src/TCanvas.cxx
+
2
−
0
View file @
d1c6deaa
...
...
@@ -818,6 +818,8 @@ void TCanvas::Draw(Option_t *)
if
(
gApplication
)
gApplication
->
InitializeGraphics
();
fDrawn
=
kTRUE
;
TCanvas
*
old
=
(
TCanvas
*
)
gROOT
->
GetListOfCanvases
()
->
FindObject
(
GetName
());
if
(
old
==
this
)
{
Paint
();
...
...
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