//#define DEBUG_DISPLAY
//#define DEBUG_ACTIVATE
+//#define DEBUG_FEATURE_REDISPLAY
+#define DEBUG_SELECTION_FILTERS
// Workaround for bug #25637
void displayedObjects(const Handle(AIS_InteractiveContext)& theAIS, AIS_ListOfInteractive& theList)
}
// Customization of presentation
bool isCustomized = customizeObject(theObject);
+ #ifdef DEBUG_FEATURE_REDISPLAY
+ qDebug(QString("Redisplay: %1, isEqualShapes=%2, isCustomized=%3").
+ arg(!isEqualShapes || isCustomized).arg(isEqualShapes).arg(isCustomized).toStdString().c_str());
+ #endif
if (!isEqualShapes || isCustomized) {
aContext->Redisplay(aAISIO, false);
+ #ifdef DEBUG_FEATURE_REDISPLAY
+ //qDebug(" Redisplay happens");
+ #endif
if (isUpdateViewer)
updateViewer();
}
return;
}
GetFilter()->Add(theFilter);
+#ifdef DEBUG_SELECTION_FILTERS
+ int aCount = GetFilter()->StoredFilters().Extent();
+ qDebug(QString("addSelectionFilter: filters.count() = %1").arg(aCount).toStdString().c_str());
+#endif
}
void XGUI_Displayer::removeSelectionFilter(const Handle(SelectMgr_Filter)& theFilter)
Handle(SelectMgr_AndFilter) aCompositeFilter = GetFilter();
if (aCompositeFilter->IsIn(theFilter))
aCompositeFilter->Remove(theFilter);
+#ifdef DEBUG_SELECTION_FILTERS
+ int aCount = GetFilter()->StoredFilters().Extent();
+ qDebug(QString("removeSelectionFilter: filters.count() = %1").arg(aCount).toStdString().c_str());
+#endif
}
void XGUI_Displayer::removeFilters()
/// \param isUpdate the parameter whether the viewer should be update immediatelly
void displayAIS(AISObjectPtr theAIS, bool isUpdate = true);
+ /** Redisplay the shape if it was displayed
+ * \param theObject an object instance
+ * \param isUpdateViewer the parameter whether the viewer should be update immediatelly
+ */
+ void redisplay(ObjectPtr theObject, bool isUpdateViewer = true);
+
/**
* Add presentations which corresponds to the given features to current selection
* \param theFeatures a list of features to be selected
/// \return true if the object is succesfully displayed
void display(ObjectPtr theObject, AISObjectPtr theAIS, bool isShading,
bool isUpdateViewer = true);
-public:
- /** Redisplay the shape if it was displayed
- * \param theObject an object instance
- * \param isUpdateViewer the parameter whether the viewer should be update immediatelly
- */
- void redisplay(ObjectPtr theObject, bool isUpdateViewer = true);
private:
/// Activates the interactive object in the local context.