View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0022855 | Open CASCADE | OCCT:VIS | public | 2011-12-16 16:34 | 2014-11-11 12:58 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | just a question | ||
Status | closed | Resolution | fixed | ||
Platform | A | OS | L | ||
Target Version | 6.8.0 | Fixed in Version | 6.8.0 | ||
Summary | 0022855: Strange result type of IVtkTools_ShapePicker method | ||||
Description | The following method of IVtkTools_ShapePicker has strange return type: NCollection_Set<vtkIdType> GetPickedSubShapesIds (const IVtk_IdType id, bool all = false) const; Internally, IVtk_ShapeIdList is used but the picker converts it to NCollection_Set - for what reason? I would use IVtk_ShapeIdList where a collection of (sub-)shapes is expected, unless some specific condition is applied. | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
The set is returned for usage with SubPolyDataFilter.Add() method for multiselection. Union operation of sets of ids is applied for that. |
|
In any case the returned set is copied, so there is no advantage in returning a set and copying it with respect to returning a list and converting it to a set where necessary. But the public API looks more consistent if all its related methods have similar return types. And usage of a set in one particular internal case should not be reflected by public API, unless there are some strong technical reasons for that. |
|
The result type of selected subshapes ids has been changed to IVtk_ShapeIdList. New overloaded methods SetData and AddData are added to IVtkTools_SubPolyDataFilter to send IVtk_ShapeIdList as a parameter. |
|
The issues was created during development of VIS component for development needs only. The issue has been corrected and should be closed, no testing is required. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-12-16 16:34 |
|
New Issue | |
2011-12-16 16:34 |
|
Assigned To | => rkv |
2011-12-16 16:34 |
|
Status | new => assigned |
2011-12-16 16:42 |
|
Note Added: 0018891 | |
2011-12-16 16:42 |
|
Assigned To | rkv => san |
2011-12-16 16:42 |
|
Status | assigned => feedback |
2011-12-16 17:11 |
|
Note Added: 0018894 | |
2011-12-16 17:11 |
|
Status | feedback => assigned |
2011-12-16 17:11 |
|
Status | assigned => feedback |
2011-12-16 17:11 |
|
Assigned To | san => rkv |
2011-12-16 17:11 |
|
Status | feedback => assigned |
2011-12-19 12:18 |
|
Note Added: 0018905 | |
2011-12-19 12:18 |
|
Status | assigned => resolved |
2011-12-26 07:39 |
|
Project | Open CASCADE => Internal |
2012-05-12 17:36 |
|
Assigned To | rkv => san |
2012-08-18 14:39 |
|
Note Added: 0021266 | |
2012-08-18 14:39 |
|
Assigned To | san => bugmaster |
2012-08-18 14:39 |
|
Status | resolved => reviewed |
2014-09-18 09:50 |
|
Target Version | => 6.8.0 |
2014-09-18 09:58 |
|
Category | PRODUCTS:VIS => OCCT:VIS |
2014-09-18 10:39 | bugmaster | Project | Internal => Open CASCADE |
2014-09-22 11:36 | apn | Test case number | => Not needed |
2014-09-22 11:36 | apn | Assigned To | bugmaster => san |
2014-09-22 11:36 | apn | Status | reviewed => closed |
2014-09-22 11:36 | apn | Resolution | open => fixed |
2014-09-22 13:13 | apn | Assigned To | san => bugmaster |
2014-09-22 13:13 | apn | Status | closed => feedback |
2014-09-22 13:13 | apn | Status | feedback => tested |
2014-09-22 13:13 | apn | Status | tested => verified |
2014-09-22 13:13 | apn | Relationship added | related to 0024904 |
2014-11-11 12:45 |
|
Fixed in Version | => 6.8.0 |
2014-11-11 12:58 |
|
Status | verified => closed |