View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0029754 | Community | OCCT:Coding | public | 2018-05-11 07:09 | 2021-03-19 12:10 |
Reporter | Vico Liang | Assigned To | |||
Priority | normal | Severity | integration request | ||
Status | closed | Resolution | fixed | ||
Target Version | 7.3.0 | Fixed in Version | 7.3.0 | ||
Summary | 0029754: Replace Graphic3d_ZLayerId with Standard_Interger inside OpenGl_GraphicDriver | ||||
Description | In class OpenGl_GraphicDriver,Graphic3d_ZLayerId is used: void AddZLayer (const Graphic3d_ZLayerId theLayerId) Standard_OVERRIDE; void RemoveZLayer (const Graphic3d_ZLayerId theLayerId) Standard_OVERRIDE; In class V3d_Viewer, Standard_Integer is used: Standard_Boolean AddZLayer (Standard_Integer& theLayerId); Standard_Boolean RemoveZLayer (const Standard_Integer theLayerId); It would be better to unify the interface and remove Graphic3d_ZLayerId. | ||||
Tags | No tags attached. | ||||
Test case number | |||||
|
Graphic3d_ZLayerId is here to have at least some tiny line between enumeration defining standard Layers (Graphic3d_ZLayerId_Default, Graphic3d_ZLayerId_Top, Graphic3d_ZLayerId_Topmost, Graphic3d_ZLayerId_TopOSD, Graphic3d_ZLayerId_BotOSD) and API for managing Layers. At the same time, V3d_Viewer::AddZLayer() and V3d_Viewer::RemoveZLayer() are declared for managing custom Layers, so that Graphic3d_ZLayerId enumeration is not helpful. But I suppose that it is better unifying interface and replacing Standard_Integer with Graphic3d_ZLayerId in these two methods. |
|
Branch CR29754 has been created by kgv. SHA-1: 2272241632b071ddf4421303fe9aa0d602dc248d Detailed log of new commits: Author: kgv Date: Mon May 14 08:54:08 2018 +0300 0029754: Coding Rules - replace Standard_Integer with Graphic3d_ZLayerId for consistency |
|
Branch CR29754 has been updated forcibly by kgv. SHA-1: ce0f6b3b0f0cbb3c2a7294843f12d28cecf1384b |
|
Patch is ready for review. http://jenkins-test-11.nnov.opencascade.com/view/CR29754-master-KGV/ |
|
Branch CR29754 has been deleted by kgv. SHA-1: ce0f6b3b0f0cbb3c2a7294843f12d28cecf1384b |
occt: master 8f138407 2018-05-14 05:54:08
Committer: abv Details Diff |
0029754: Coding Rules - replace Standard_Integer with Graphic3d_ZLayerId for consistency |
Affected Issues 0029754 |
|
mod - src/AIS/AIS_InteractiveContext.cxx | Diff File | ||
mod - src/AIS/AIS_InteractiveContext.hxx | Diff File | ||
mod - src/Graphic3d/Graphic3d_CView.hxx | Diff File | ||
mod - src/OpenGl/OpenGl_View.hxx | Diff File | ||
mod - src/PrsMgr/PrsMgr_Presentation.cxx | Diff File | ||
mod - src/PrsMgr/PrsMgr_Presentation.hxx | Diff File | ||
mod - src/PrsMgr/PrsMgr_PresentationManager.cxx | Diff File | ||
mod - src/PrsMgr/PrsMgr_PresentationManager.hxx | Diff File | ||
mod - src/V3d/V3d_Viewer.cxx | Diff File | ||
mod - src/V3d/V3d_Viewer.hxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-05-11 07:09 | Vico Liang | New Issue | |
2018-05-11 07:09 | Vico Liang | Assigned To | => kgv |
2018-05-11 09:40 | kgv | Note Added: 0075935 | |
2018-05-11 12:05 | kgv | Severity | minor => integration request |
2018-05-14 08:54 | git | Note Added: 0075955 | |
2018-05-14 09:03 | git | Note Added: 0075956 | |
2018-05-14 09:54 | kgv | Note Added: 0075957 | |
2018-05-14 09:54 | kgv | Assigned To | kgv => san |
2018-05-14 09:54 | kgv | Status | new => resolved |
2018-05-14 09:54 | kgv | Target Version | 7.4.0 => 7.3.0 |
2018-05-24 16:02 |
|
Changeset attached | => occt master 8f138407 |
2018-05-24 16:02 |
|
Assigned To | san => abv |
2018-05-24 16:02 |
|
Status | resolved => verified |
2018-05-24 16:02 |
|
Resolution | open => fixed |
2018-06-23 13:56 | git | Note Added: 0076943 | |
2018-06-29 21:13 |
|
Fixed in Version | => 7.3.0 |
2018-06-29 21:18 |
|
Status | verified => closed |
2021-03-19 12:10 | kgv | Relationship added | related to 0032230 |
2021-03-19 12:11 | kgv | Relationship deleted | related to 0032230 |