eventBridge.mouseClick(objClass, objArray);
}
}
if (vizConfig.isSelectionEnable() && rectangleSelection && !customSelection) {
Rectangle rectangle = (Rectangle) currentSelectionArea;
//rectangle.setBlocking(false);
//Clean opengl picking
for (ModelClass objClass : selectableClasses) {
if (objClass.isEnabled() && objClass.isGlSelection()) {
for (ModelImpl obj : selectedObjects[objClass.getSelectionId()]) {
obj.setAutoSelect(false);
}
}
}
//Select with click
int i = 0;
boolean someSelection = false;
for (ModelClass objClass : selectableClasses) {
markTime2++;
for (Iterator<ModelImpl> itr = octree.getSelectedObjectIterator(objClass.getClassId()); itr.hasNext();) {
ModelImpl obj = itr.next();
if (isUnderMouse(obj) && currentSelectionArea.select(obj.getObj())) {
if (!obj.isSelected()) {
//New selected
obj.setSelected(true);
/*if (vizEventManager.hasSelectionListeners()) {
newSelectedObjects.add(obj);
}*/
selectedObjects[i].add(obj);
}
someSelection = true;
obj.selectionMark = markTime2;
}
}
if (!(rectangle.isCtrl() && someSelection)) {
for (Iterator<ModelImpl> itr = selectedObjects[i].iterator(); itr.hasNext();) {
ModelImpl o = itr.next();
if (o.selectionMark != markTime2) {
itr.remove();
o.setSelected(false);
}
}
}
i++;
}
rectangle.setBlocking(someSelection);
if (vizController.getVizModel().isLightenNonSelectedAuto()) {
if (vizConfig.isLightenNonSelectedAnimation()) {
if (!anySelected && someSelection) {