View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0022857 | Open CASCADE | OCCT:VIS | public | 2011-12-16 16:48 | 2014-11-11 12:58 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | A | OS | L | ||
Target Version | 6.8.0 | Fixed in Version | 6.8.0 | ||
Summary | 0022857: Method to activate selection mode for a given IVtk_IShape | ||||
Description | Method to (de-)activate selection mode for a given IVtk_IShape is missing in IVtkTools_ShapePicker class. Maybe it makes sense to "duplicate" IVtk_IShapePickerAlgo API in this regard. | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
I'd suggest the following signature with vtkActor as a shape representation parameter: //! Turn on/off a selection mode for a shape actor. //! @param [in] shapeActor shape presentation actor to set a selection mode for //! @param [in] mode selection mode to be activated //! @param [in] turnOn Flag to turn on/off the selection mode void setSelectionMode (vtkActor* shapeActor, const IVtk_SelectionMode mode, const bool turnOn = true); |
|
Roman, Your proposal looks good. I would recommend adding a second overloaded setSelectionMode() that would accept IVtk_IShape instance, to let application developers choose whether to work with VTK classes (actors) or VIS classes (IShape interface). |
|
Following methods has been added for IVtkTools_ShapePicker: //! Turn on/off a selection mode for a shape actor. //! @param [in] shapeActor shape presentation actor to set a selection mode for //! @param [in] mode selection mode to be activated //! @param [in] turnOn Flag to turn on/off the selection mode void SetSelectionMode (IVtk_IShape::Handle& shape, const IVtk_SelectionMode mode, const bool turnOn = true) const; //! Turn on/off a selection mode for a shape actor. //! @param [in] shapeActor shape presentation actor to set a selection mode for //! @param [in] mode selection mode to be activated //! @param [in] turnOn Flag to turn on/off the selection mode void SetSelectionMode (vtkActor* shapeActor, const IVtk_SelectionMode mode, const bool turnOn = true) const; |
|
void SetSelectionMode (IVtk_IShape::Handle& shape, const IVtk_SelectionMode mode, const bool turnOn = true) const; Normally, if an input argument is passed by reference, a const reference should be used. Thus const IVtk_IShape::Handle& shape should appear above. |
|
Non-const references should be used for output arguments only. |
|
Fixed for shape 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:48 |
|
New Issue | |
2011-12-16 16:48 |
|
Assigned To | => rkv |
2011-12-16 16:48 |
|
Status | new => assigned |
2011-12-19 11:15 |
|
Note Added: 0018900 | |
2011-12-19 11:15 |
|
Assigned To | rkv => san |
2011-12-19 11:15 |
|
Status | assigned => feedback |
2011-12-19 14:30 |
|
Note Added: 0018908 | |
2011-12-19 14:30 |
|
Status | feedback => assigned |
2011-12-19 14:30 |
|
Assigned To | san => rkv |
2011-12-19 15:18 |
|
Note Added: 0018910 | |
2011-12-19 15:18 |
|
Status | assigned => resolved |
2011-12-19 15:35 |
|
Note Added: 0018911 | |
2011-12-19 15:36 |
|
Status | resolved => assigned |
2011-12-19 15:46 |
|
Note Added: 0018913 | |
2011-12-19 15:46 |
|
Note Added: 0018914 | |
2011-12-19 15:46 |
|
Status | assigned => resolved |
2011-12-19 15:47 |
|
Note Edited: 0018914 | |
2011-12-26 07:39 |
|
Project | Open CASCADE => Internal |
2012-05-12 17:34 |
|
Assigned To | rkv => san |
2012-08-18 14:41 |
|
Note Added: 0021269 | |
2012-08-18 14:41 |
|
Assigned To | san => bugmaster |
2012-08-18 14:41 |
|
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:38 | apn | Test case number | => Not needed |
2014-09-22 11:38 | apn | Assigned To | bugmaster => san |
2014-09-22 11:38 | apn | Status | reviewed => closed |
2014-09-22 11:38 | apn | Resolution | open => fixed |
2014-09-22 13:15 | apn | Assigned To | san => bugmaster |
2014-09-22 13:15 | apn | Status | closed => feedback |
2014-09-22 13:15 | apn | Status | feedback => tested |
2014-09-22 13:15 | apn | Status | tested => verified |
2014-09-22 13:15 | 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 |