View Issue Details

IDProjectCategoryView StatusLast Update
0007781Open CASCADEOCCT:Visualizationpublic2012-01-16 16:51
ReportersktAssigned To 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Fixed in Version5.2.3 
Summary0007781: Mistake in TPrsStd_AISPresentation::UnsetMode()
DescriptionThe following code is used currently to unset display mode:

...
    Handle(AIS_InteractiveContext) ctx;
    Handle(TPrsStd_AISViewer) viewer;
    if( TPrsStd_AISViewer::Find(Label(), viewer) )
      ctx = viewer->GetInteractiveContext();
    if( !ctx.IsNull() )
      ctx->SetDisplayMode(myAIS, Standard_False); <<< INCORRECT LINE !!!
    else
      myAIS->UnsetDisplayMode();
...

First, it is incorrect to use method AIS_InteractiveContext::SetDisplayMode()
for this purpose - it does not unset the object's display mode for any
combination of its arguments.

Second, there is mistake in arguments when SetDisplayMode() is calling:
second argument has type Standard_Integer ( not Standard_Boolean ).
Additional information
and documentation updates
Documentation remark, added by SKT 2005-02-07 12:25:29:

Changes:
In TPrsStd_AISPresentation::UnsetMode() method was called
AIS_InteractiveContext::UnsetDisplayMode() instead of
AIS_InteractiveContext::SetDisplayMode().
Modified entities:
TPrsStd/TPrsStd_AISPresentation/UnsetMode()
TagsNo tags attached.
Test case number

Attached Files

  • TPrsStd_AISPresentation.zip (4,268 bytes)

Activities

2005-01-24 12:41

 

TPrsStd_AISPresentation.zip (4,268 bytes)

Issue History

Date Modified Username Field Change
2005-01-21 11:50 bugmaster Assigned To bugmaster => san
2005-01-21 11:50 bugmaster Status new => assigned
2005-01-21 11:53 san Assigned To san => skt
2005-01-24 14:44 skt Status assigned => resolved
2005-01-26 12:51 apv CC => apv, aki
2005-02-02 11:12 aki Status resolved => tested
2005-02-02 12:03 bugmaster CC => skt
2005-02-14 10:04 bugmaster Status tested => verified
2005-05-06 15:32 bugmaster Status verified => closed
2005-05-06 15:32 bugmaster Resolution @0@ => fixed
2011-08-02 11:24 bugmaster Category OCCT:VIZ => OCCT:Visualization
2012-01-16 16:51 atp Assigned To skt =>
2012-01-16 16:51 atp Description Updated
2012-01-16 16:51 atp Additional Information Updated