myTypeCombo->setVisible(false);
}
-// Modification for specification of 1.3.0
- std::string aLabelText = "";//theData->getProperty("label");
+ std::string aLabelText = theData->getProperty("label");
QLabel* aListLabel = new QLabel(!aLabelText.empty() ? aLabelText.c_str()
: tr("Selected objects:"), this);
aMainLay->addWidget(aListLabel, 1, 0);
// Update selection position only if there is no selected object
// because it can corrupt selection of other objects
- //if ((GetContext()->NbCurrents() == 0) && (GetContext()->NbSelected() == 0))
- // GetContext()->RecomputeSelectionOnly(this);
+ if ((GetContext()->NbCurrents() == 0) && (GetContext()->NbSelected() == 0))
+ {
+ GetContext()->MainSelector()->RebuildSensitivesTree (this);
+ GetContext()->MainSelector()->RebuildObjectsTree (false);
+ }
}
}
}
+void SketcherPrs_SymbolPrs::BoundingBox (Bnd_Box& theBndBox)
+{
+ Select3D_BndBox3d aTmpBox;
+ for (Select3D_EntitySequenceIter aPntIter (mySPoints); aPntIter.More(); aPntIter.Next())
+ {
+ const Handle(Select3D_SensitiveEntity)& anEnt = aPntIter.Value();
+ aTmpBox.Combine (anEnt->BoundingBox());
+ }
+
+ theBndBox.Update (aTmpBox.CornerMin().x(), aTmpBox.CornerMin().y(), aTmpBox.CornerMin().z(),
+ aTmpBox.CornerMax().x(), aTmpBox.CornerMax().y(), aTmpBox.CornerMax().z());
+}
+
/// \param theContext is an OpenGL context
void Release (OpenGl_Context* theContext);
+ Standard_EXPORT virtual void BoundingBox (Bnd_Box& theBndBox) Standard_OVERRIDE;
+
DEFINE_STANDARD_RTTI(SketcherPrs_SymbolPrs)
protected: