DiscussionsIssue archiveOCCT:Visualization

Archived issue #0032704

Visualization, Prs3d_Drawer - do not implicitly create aspects within getters

Open CASCADEOCCT:Visualizationclosed20 public notes

Search issues

Description

Currently, methods like Prs3d_Drawer::ShadingAspects() return user-defined aspects set by setter (Prs3d_Drawer::SetShadingAspects()), aspects of linked Prs3d_Drawer instance (when own aspects not set) or create and return default aspects.

The latter behavior is confusing and error-prone. It is proposed removing this behavior and return NULL for undefined aspects.

Steps to reproduce

N/A

Public activity

20 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Wed Dec 1 11:58:39 2021 +0300

    0032704: Visualization, Prs3d_Drawer - do not implicitly create aspects within getters
    
    Prs3d_Drawer getters now return NULL instead of implicitly creating "default" aspects.
02Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
03Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
04Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
05Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
06Commenter 1
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Wed Dec 1 11:58:39 2021 +0300

    0032704: Visualization, Prs3d_Drawer - do not implicitly create aspects within getters
    
    Prs3d_Drawer getters now return NULL instead of implicitly creating "default" aspects.
    Added missing initialization of default properties in AIS_InteractiveContext.
07Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
08Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
09Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
10Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
11Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
12Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
13Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
14Author
Patch is ready for review
- OCCT: branch CR32704_1;
- OCC Products: branch CR32704_1.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR32704_1-CR32704_1-KGV/
15Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
16Commenter 16
The patch was reviewed
17Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
18Commenter 18
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 18166.60000000042 / 18390.6500000004 [-1.22%]
Products
Total CPU difference: 11658.820000000103 / 11648.280000000103 [+0.09%]
Windows-64-VC14:
OCCT
Total CPU difference: 19937.84375 / 19928.171875 [+0.05%]
Products
Total CPU difference: 13069.28125 / 13059.03125 [+0.08%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
19Commenter 1
Branch [archived branch] has been deleted by Participant.

[revision removed]
20Commenter 1
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records