void IVtkOCC_SelectableObject::SetShape (const IVtkOCC_Shape::Handle& theShape)
{
myShape = theShape;
- if (myShape)
+ if (! myShape.IsNull())
{
myShape->SetSelectableObject (this);
}
void IVtkOCC_SelectableObject::ComputeSelection (const Handle(SelectMgr_Selection)& theSelection,
const Standard_Integer theMode)
{
- if (!myShape)
+ if (myShape.IsNull())
{
return;
}
//============================================================================
const Bnd_Box& IVtkOCC_SelectableObject::BoundingBox()
{
- if (!myShape)
+ if (myShape.IsNull())
{
myBndBox.SetVoid();
return myBndBox;