}
//=============================================================================
-//function : Clear
+//function : clear
//purpose :
//=============================================================================
-void Graphic3d_Structure::Clear (const Standard_Boolean theWithDestruction)
+void Graphic3d_Structure::clear (const Standard_Boolean theWithDestruction)
{
if (IsDeleted()) return;
}
//=============================================================================
-//function : Erase
+//function : erase
//purpose :
//=============================================================================
-void Graphic3d_Structure::Erase()
+void Graphic3d_Structure::erase()
{
if (IsDeleted())
{
}
else
{
- Erase();
+ erase();
myVisual = theVisual;
SetComputeVisual (theVisual);
Display();
//! The structure itself is conserved.
//! The transformation and the attributes of <me> are conserved.
//! The childs of <me> are conserved.
- Standard_EXPORT virtual void Clear (const Standard_Boolean WithDestruction = Standard_True);
+ virtual void Clear (const Standard_Boolean WithDestruction = Standard_True)
+ {
+ clear (WithDestruction);
+ }
//! Suppresses the structure <me>.
//! It will be erased at the next screen update.
//! Returns the current display priority for this structure.
Standard_Integer DisplayPriority() const { return myCStructure->Priority; }
- //! Erases the structure <me> in all the views
- //! of the visualiser.
- Standard_EXPORT virtual void Erase();
+ //! Erases this structure in all the views of the visualiser.
+ virtual void Erase() { erase(); }
//! Highlights the structure in all the views with the given style
//! @param theStyle [in] the style (type of highlighting: box/color, color and opacity)
//! Removes the given ancestor structure.
Standard_EXPORT Standard_Boolean RemoveAncestor (Graphic3d_Structure* theAncestor);
+ //! Clears all the groups of primitives in the structure.
+ Standard_EXPORT void clear (const Standard_Boolean WithDestruction);
+
+ //! Erases this structure in all the views of the visualiser.
+ Standard_EXPORT void erase();
+
private:
//! Suppress in the structure <me>, the group theGroup.
}
// Erase structure from structure manager
- base_type::Erase();
- base_type::Clear();
+ erase();
+ clear (true);
// Disconnect other structures
- base_type::DisconnectAll (Graphic3d_TOC_DESCENDANT);
+ DisconnectAll (Graphic3d_TOC_DESCENDANT);
// Clear groups and remove graphic structure
- base_type::Remove();
+ Remove();
}
//=======================================================================
base_type::SetVisible (Standard_False);
break;
case State_Empty:
- base_type::Erase();
+ base_type::erase();
break;
}
}
return;
}
- base_type::Clear (theWithDestruction);
- base_type::DisconnectAll (Graphic3d_TOC_DESCENDANT);
+ clear (theWithDestruction);
+ DisconnectAll (Graphic3d_TOC_DESCENDANT);
}
//=======================================================================