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
39169dfc
Commit
39169dfc
authored
4 years ago
by
alja
Committed by
Sergey Linev
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix warning from changes in PR #6656
parent
de1ec8e1
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
graf3d/eve7/inc/ROOT/REveDataCollection.hxx
+7
-9
7 additions, 9 deletions
graf3d/eve7/inc/ROOT/REveDataCollection.hxx
graf3d/eve7/src/REveDataCollection.cxx
+7
-7
7 additions, 7 deletions
graf3d/eve7/src/REveDataCollection.cxx
with
14 additions
and
16 deletions
graf3d/eve7/inc/ROOT/REveDataCollection.hxx
+
7
−
9
View file @
39169dfc
...
@@ -27,20 +27,17 @@ class TClass;
...
@@ -27,20 +27,17 @@ class TClass;
namespace
ROOT
{
namespace
ROOT
{
namespace
Experimental
{
namespace
Experimental
{
class
REveDataItem
;
//==============================================================================
//==============================================================================
// could be a nested class ???
class
REveDataItem
struct
REveDataItem
{
{
private:
void
*
fDataPtr
{
nullptr
};
void
*
fDataPtr
{
nullptr
};
Bool_t
fRnrSelf
{
true
};
Bool_t
fRnrSelf
{
true
};
Color_t
fColor
{
0
};
Color_t
fColor
{
0
};
Bool_t
fFiltered
{
false
};
Bool_t
fFiltered
{
false
};
public
:
REveDataItem
(
void
*
d
,
Color_t
c
)
:
fDataPtr
(
d
),
fColor
(
c
){}
REveDataItem
(
void
*
d
,
Color_t
c
)
:
fDataPtr
(
d
),
fColor
(
c
){}
Bool_t
GetRnrSelf
()
const
{
return
fRnrSelf
;
}
Bool_t
GetRnrSelf
()
const
{
return
fRnrSelf
;
}
...
@@ -48,6 +45,8 @@ struct REveDataItem
...
@@ -48,6 +45,8 @@ struct REveDataItem
Bool_t
GetFiltered
()
const
{
return
fFiltered
;
}
Bool_t
GetFiltered
()
const
{
return
fFiltered
;
}
Bool_t
GetVisible
()
const
{
return
(
!
fFiltered
)
&&
fRnrSelf
;
}
Bool_t
GetVisible
()
const
{
return
(
!
fFiltered
)
&&
fRnrSelf
;
}
void
*
GetDataPtr
()
{
return
fDataPtr
;
}
void
SetFiltered
(
Bool_t
i
)
{
fFiltered
=
i
;
}
void
SetFiltered
(
Bool_t
i
)
{
fFiltered
=
i
;
}
void
SetMainColor
(
Color_t
i
)
{
fColor
=
i
;
}
void
SetMainColor
(
Color_t
i
)
{
fColor
=
i
;
}
void
SetRnrSelf
(
Bool_t
i
)
{
fRnrSelf
=
i
;
}
void
SetRnrSelf
(
Bool_t
i
)
{
fRnrSelf
=
i
;
}
...
@@ -140,9 +139,8 @@ public:
...
@@ -140,9 +139,8 @@ public:
void
ApplyFilter
();
void
ApplyFilter
();
Int_t
GetNItems
()
const
{
return
(
Int_t
)
fItemList
->
fItems
.
size
();
}
Int_t
GetNItems
()
const
{
return
(
Int_t
)
fItemList
->
fItems
.
size
();
}
void
*
GetDataPtr
(
Int_t
i
)
const
{
return
fItemList
->
fItems
[
i
]
->
fDataPtr
;
}
void
*
GetDataPtr
(
Int_t
i
)
const
{
return
fItemList
->
fItems
[
i
]
->
GetDataPtr
();
}
// const REveDataItem& RefDataItem(Int_t i) const { return fItems[i]; }
const
REveDataItem
*
GetDataItem
(
Int_t
i
)
const
{
return
fItemList
->
fItems
[
i
];
}
const
REveDataItem
*
GetDataItem
(
Int_t
i
)
const
{
return
fItemList
->
fItems
[
i
];
}
void
StreamPublicMethods
(
nlohmann
::
json
&
cj
)
const
;
void
StreamPublicMethods
(
nlohmann
::
json
&
cj
)
const
;
Int_t
WriteCoreJson
(
nlohmann
::
json
&
cj
,
Int_t
rnr_offset
)
override
;
Int_t
WriteCoreJson
(
nlohmann
::
json
&
cj
,
Int_t
rnr_offset
)
override
;
...
...
This diff is collapsed.
Click to expand it.
graf3d/eve7/src/REveDataCollection.cxx
+
7
−
7
View file @
39169dfc
...
@@ -48,7 +48,7 @@ REveDataItemList::REveDataItemList(const std::string& n, const std::string& t):
...
@@ -48,7 +48,7 @@ REveDataItemList::REveDataItemList(const std::string& n, const std::string& t):
void
REveDataItemList
::
SetItemVisible
(
Int_t
idx
,
Bool_t
visible
)
void
REveDataItemList
::
SetItemVisible
(
Int_t
idx
,
Bool_t
visible
)
{
{
fItems
[
idx
]
->
f
RnrSelf
=
visible
;
fItems
[
idx
]
->
Set
RnrSelf
(
visible
)
;
ItemChanged
(
idx
);
ItemChanged
(
idx
);
StampObjProps
();
StampObjProps
();
}
}
...
@@ -58,7 +58,7 @@ void REveDataItemList::SetItemVisible(Int_t idx, Bool_t visible)
...
@@ -58,7 +58,7 @@ void REveDataItemList::SetItemVisible(Int_t idx, Bool_t visible)
void
REveDataItemList
::
SetItemColorRGB
(
Int_t
idx
,
UChar_t
r
,
UChar_t
g
,
UChar_t
b
)
void
REveDataItemList
::
SetItemColorRGB
(
Int_t
idx
,
UChar_t
r
,
UChar_t
g
,
UChar_t
b
)
{
{
Color_t
c
=
TColor
::
GetColor
(
r
,
g
,
b
);
Color_t
c
=
TColor
::
GetColor
(
r
,
g
,
b
);
fItems
[
idx
]
->
f
Color
=
c
;
fItems
[
idx
]
->
SetMain
Color
(
c
)
;
ItemChanged
(
idx
);
ItemChanged
(
idx
);
StampObjProps
();
StampObjProps
();
}
}
...
@@ -110,9 +110,9 @@ Int_t REveDataItemList::WriteCoreJson(nlohmann::json &j, Int_t rnr_offset)
...
@@ -110,9 +110,9 @@ Int_t REveDataItemList::WriteCoreJson(nlohmann::json &j, Int_t rnr_offset)
for
(
auto
&
chld
:
fItems
)
for
(
auto
&
chld
:
fItems
)
{
{
nlohmann
::
json
i
;
nlohmann
::
json
i
;
i
[
"fFiltered"
]
=
chld
->
f
Filtered
;
i
[
"fFiltered"
]
=
chld
->
Get
Filtered
()
;
i
[
"fRnrSelf"
]
=
chld
->
f
RnrSelf
;
i
[
"fRnrSelf"
]
=
chld
->
Get
RnrSelf
()
;
i
[
"fColor"
]
=
chld
->
f
Color
;
i
[
"fColor"
]
=
chld
->
GetMain
Color
()
;
j
[
"items"
].
push_back
(
i
);
j
[
"items"
].
push_back
(
i
);
}
}
...
@@ -236,7 +236,7 @@ void REveDataCollection::ApplyFilter()
...
@@ -236,7 +236,7 @@ void REveDataCollection::ApplyFilter()
int
idx
=
0
;
int
idx
=
0
;
for
(
auto
&
ii
:
fItemList
->
fItems
)
for
(
auto
&
ii
:
fItemList
->
fItems
)
{
{
bool
res
=
fFilterFoo
(
ii
->
f
DataPtr
);
bool
res
=
fFilterFoo
(
ii
->
Get
DataPtr
()
);
// printf("Item:%s -- filter result = %d\n", ii.fItemPtr->GetElementName(), res);
// printf("Item:%s -- filter result = %d\n", ii.fItemPtr->GetElementName(), res);
...
@@ -333,7 +333,7 @@ void REveDataCollection::SetMainColor(Color_t newv)
...
@@ -333,7 +333,7 @@ void REveDataCollection::SetMainColor(Color_t newv)
REveElement
::
SetMainColor
(
newv
);
REveElement
::
SetMainColor
(
newv
);
for
(
auto
&
chld
:
fItemList
->
fItems
)
for
(
auto
&
chld
:
fItemList
->
fItems
)
{
{
chld
->
f
Color
=
newv
;
chld
->
SetMain
Color
(
newv
)
;
}
}
fItemList
->
StampObjProps
();
fItemList
->
StampObjProps
();
fItemList
->
SetMainColor
(
newv
);
fItemList
->
SetMainColor
(
newv
);
...
...
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