1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

Coding - Apply .clang-format formatting #286

Update empty method guards to new style with regex (see PR).
Used clang-format 18.1.8.
New actions to validate code formatting is added.
Update .clang-format with disabling of include sorting.
  It is temporary changes, then include will be sorted.
Apply formatting for /src and /tools folder.
The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
dpasukhi
2025-01-25 20:15:22 +00:00
parent dbba6f1289
commit a5a7b3185b
14005 changed files with 1273539 additions and 1195567 deletions

View File

@@ -11,7 +11,7 @@
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
// commercial license or contractual agreement.
#ifndef View_DisplayPreview_H
#define View_DisplayPreview_H
@@ -31,12 +31,11 @@ class View_PreviewParameters;
//! - display/erase presentations;
//! - change display mode of visualized presentations (Shaded or WireFrame mode)
//!
//! It contains containers of visualized presentations to obtain presentations relating only to this displayer.
//! Displayer is connected to AIS Interactive Context
//! It contains containers of visualized presentations to obtain presentations relating only to this
//! displayer. Displayer is connected to AIS Interactive Context
class View_DisplayPreview
{
public:
//! Constructor
Standard_EXPORT View_DisplayPreview();
@@ -46,14 +45,15 @@ public:
//! Stores the current context where the presentations will be displayed/erased.
//! Erases previously displayed presentations if there were some displayed
//! \param theContext a context instance
Standard_EXPORT void SetContext (const Handle(AIS_InteractiveContext)& theContext);
Standard_EXPORT void SetContext(const Handle(AIS_InteractiveContext)& theContext);
//! Returns preview parameters
View_PreviewParameters* GetPreviewParameters() const { return myPreviewParameters; }
//! Updates visibility of the presentations for the display type
Standard_EXPORT void UpdatePreview (const View_DisplayActionType theType,
const NCollection_List<Handle(Standard_Transient)>& thePresentations);
Standard_EXPORT void UpdatePreview(
const View_DisplayActionType theType,
const NCollection_List<Handle(Standard_Transient)>& thePresentations);
//! Returns true if preview presentation is shown
Standard_Boolean HasPreview() const { return !myPreviewPresentation.IsNull(); }
@@ -62,17 +62,17 @@ public:
static Standard_Integer PreviewSelectionMode() { return 100; }
private:
//! Returns the current context
const Handle(AIS_InteractiveContext)& GetContext() const { return myContext; }
private:
Handle(AIS_InteractiveContext) myContext; //!< context, where the displayer works
View_PreviewParameters* myPreviewParameters; //!< drawer of preview presentation
Handle(AIS_InteractiveObject) myPreviewPresentation; //!< presentation of preview for a selected object
NCollection_List<Handle(AIS_InteractiveObject)> myPreviewReadyPresentations; //!< presentation of preview for a selected object
Handle(AIS_InteractiveObject)
myPreviewPresentation; //!< presentation of preview for a selected object
NCollection_List<Handle(AIS_InteractiveObject)>
myPreviewReadyPresentations; //!< presentation of preview for a selected object
};
#endif