// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#define BUC60876 //GG_050401 Enable to highlight something
-// with a specific hilight mode
-
#include <StdSelect_BRepOwner.ixx>
#include <SelectBasics_EntityOwner.hxx>
IsHilighted(const Handle(PrsMgr_PresentationManager)& PM,
const Standard_Integer aMode) const
{
-#ifdef BUC60876
Standard_Integer M = (aMode < 0) ? myCurMode : aMode;
-#else
- Standard_Integer M = (myCurMode==-1) ? aMode:myCurMode;
-#endif
if(myPrsSh.IsNull())
return PM->IsHighlighted(Selectable(),M);
return PM->IsHighlighted(myPrsSh,M);
const Standard_Integer aMode)
{
-#ifdef BUC60876
Standard_Integer M = (aMode < 0) ? myCurMode : aMode;
-#else
- Standard_Integer M = (myCurMode==-1) ? aMode:myCurMode;
-#endif
Handle(SelectMgr_SelectableObject) aSel = Selectable();
if (myFromDecomposition)
{
const Quantity_NameOfColor aCol,
const Standard_Integer aMode)
{
-#ifdef BUC60876
Standard_Integer M = (aMode < 0) ? myCurMode : aMode;
-#else
- Standard_Integer M = (myCurMode==-1) ? aMode:myCurMode;
-#endif
Handle(SelectMgr_SelectableObject) aSel = Selectable();
if (myFromDecomposition)
{
void StdSelect_BRepOwner::Unhilight(const Handle(PrsMgr_PresentationManager)& PM,
const Standard_Integer aMode)
{
-#ifdef BUC60876
Standard_Integer M = (aMode < 0) ? myCurMode : aMode;
-#else
- Standard_Integer M = (myCurMode==-1) ? aMode:myCurMode;
-#endif
if(myPrsSh.IsNull() || !myFromDecomposition)
PM->Unhighlight(Selectable(),M);
else
void StdSelect_BRepOwner::Clear(const Handle(PrsMgr_PresentationManager)& PM,
const Standard_Integer aMode)
{
-#ifdef BUC60876
Standard_Integer M = (aMode < 0) ? myCurMode : aMode;
-#else
- Standard_Integer M = (myCurMode==-1) ? aMode:myCurMode;
-#endif
if (!myPrsSh.IsNull())
PM->Clear(myPrsSh,M);
myPrsSh.Nullify();