MantisBT - Community
View Issue Details
0022368Community[OCCT] OCCT:Visualizationpublic2011-04-05 14:562012-03-29 17:26
apl 
bugmaster 
normaltrivial 
closedfixed 
All
 
[OCCT] 6.5.3[OCCT] 6.5.3 
chl 934 D9
0022368: AIS_Trihedron's highlight presentation isn't updated on trihedron relocation
This problem is reproduced when the AIS_Trihedron's selection mode
is set to 1,2,3. The problem can be reproduced in mfc Viewer3d sample.
  Common steps to reproduce:
  1) Create AIS_Trihedron with Geom_Axis2Placement;
  2) Set trihedron's display mode to 3;
  3) Display trihedron in the AIS_InteractiveContext;
  4) Do highlighting of the AIS_Trihedron (you should see highlighted planes);
  5) Relocate Geom_Axis2Placement;
  6) Redisplay AIS_Trihedron;
  7) Try to do selection of AIS_Trihedron (you'll see highlighted planes isn't
     relocated).

Highlighted plane can be relocated with the AIS_Trihedron only if it has been
selected. But, if the selection has been released the plane stills to be
displayed.
Documentation remark, added by APL 2011-04-21 11:40:11:

Changes:
There are following changes in packages:
AIS package:
  AIS_Trihedron's selection shapes handling algorithm has been corrected:
  1) The active selection shapes updated with calls to methods SetComponent,
     ComputeSelection, SetContext;
  2) Method SetLocation(const TopLoc_Location& aLoc) has been overriden from
     the base class; Now the selection shapes are updated on SetLocation;
  3) Method ComputeSelection now adds the selection shapes to the context
     and hides their display presentation, so they won't be display after
     unselection, so they will be displayed on hilight and selection only.

StdSelect package:
  1) StdSelect_BRepOwner presentation shape updating algorithm has been
     corrected; Now the presentation shape is nullified and recomputed on
     hilighting if the update flag is set, so the context can
     unhilight the old presentation shapes correctly.
     
SelectMgr package:
  1) SelectMgr_SelectableObject now calls SetLocation method of
     the SelectMgr_EntityOwner when its own Location is updated.

Modified entities:
AIS package:
1) AIS_Trihedron class (AIS_Trihedron.cdl) - method SetLocation(const
   TopLoc_Location& aLoc) has been overriden from the base class
   PrsMgr_PresentableObject

ViewerTest package:
1) New Draw command "vsetlocation : name x y z" has been added for tests. It allows changing AIS interactive object location through the interactive context with method SetLocation().
No tags attached.
? trihedron.bmp (114,974) 2011-04-05 14:56
https://tracker.dev.opencascade.org/
gz apl-OCC22368-v1.tar.gz (12,952) 2011-04-21 14:59
https://tracker.dev.opencascade.org/
gz apl-OCC22368-v2.tar.gz (12,953) 2011-04-21 15:31
https://tracker.dev.opencascade.org/
gz chl_934_D9.tar.gz (596) 2011-10-20 17:59
https://tracker.dev.opencascade.org/
Issue History
2011-04-05 17:09bugmasterAssigned Tobugmaster => apl
2011-04-05 17:09bugmasterStatusnew => assigned
2011-04-08 10:14bugmastergroupset1 => 4096
2011-04-08 10:14bugmasterCustomer => Community
2011-04-21 15:07aplStatusassigned => resolved
2011-07-29 13:42bugmasterNote Added: 0017854
2011-08-01 11:45aplFixed in VersionEMPTY =>
2011-08-01 11:45aplDescription Updatedbug_revision_view_page.php?rev_id=134#r134
2011-08-01 11:45aplAdditional Information Updatedbug_revision_view_page.php?rev_id=136#r136
2011-08-01 11:51aplNote Added: 0017867
2011-08-01 11:54aplAssigned Toapl => jgv
2011-08-01 11:56aplNote Added: 0017868
2011-08-02 11:24bugmasterCategoryOCCT:VIZ => OCCT:Visualization
2011-09-20 17:36szyTarget Version => 6.5.2
2011-09-21 11:06bugmasterTarget Version6.5.2 => 6.5.3
2011-10-06 12:59jgvNote Added: 0018327
2011-10-06 12:59jgvStatusresolved => reviewed
2011-10-20 17:59mkvFile Added: chl_934_D9.tar.gz
2011-10-20 17:59mkvNote Added: 0018381
2011-10-20 18:00mkvTest case number => chl 934 D9
2011-10-20 18:00mkvStatusreviewed => tested
2011-10-21 20:10bugmasterNote Added: 0018395
2011-10-21 20:10bugmasterStatustested => verified
2011-11-22 11:51szyNote Edited: 0018381bug_revision_view_page.php?bugnote_id=18381#r869
2011-11-25 14:29szyAdditional Information Updatedbug_revision_view_page.php?rev_id=1094#r1094
2012-03-29 17:26bugmasterChangeset attached => occt master 29d43f9c

Notes
(0017854)
bugmaster   
2011-07-29 13:42   
Anton,

Please prepare branch and send it to revising.
(0017867)
apl   
2011-08-01 11:51   
SVN branch "http://svn/svn/occt/branches/OCC22368" [^] is ready to be reviewed.
(0017868)
apl   
2011-08-01 11:56   
Dear Julia,
Please, review the solution.
Thank you in advance.
(0018327)
jgv   
2011-10-06 12:59   
Some small corrections: comments and initialization of variables
(0018381)
mkv   
2011-10-20 17:59   
(edited on: 2011-11-22 11:51)
Dear BugMaster,
Workbench KAS:dev:mkv-OCC22368-occt was created from SVN branch http://svn/svn/occt/branches/OCC22368 [^]
(and mkv-OCC22368-products from trunk) and compiled on Linux platform.

Test case for this bug is chl/934/D9. It is OK.

There are not regressions in mkv-OCC22368-products regarding to KAS:dev:products-652-opt.

See results in /QADisk/occttests/results/KAS/dev/mkv-OCC22368-products_06102011/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-652-opt_23092011/lin
See test cases in /QADisk/occttests/tests/ED
N.B. In order to launch testing case you can make use the following instructions
http://doc/doku.php?id=occt:certification [^]

(0018395)
bugmaster   
2011-10-21 20:10   
Integrated into trunk of occt repository

Date: 2011-10-21 20:07:55 +0400 (Fri, 21 Oct 2011)
New Revision: 9226

Modified:
   trunk/src/AIS/AIS_Trihedron.cdl
   trunk/src/AIS/AIS_Trihedron.cxx
   trunk/src/SelectMgr/SelectMgr_SelectableObject.cxx
   trunk/src/StdSelect/StdSelect_BRepOwner.cxx
   trunk/src/ViewerTest/ViewerTest_ObjectCommands.cxx