mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
Removed functionality deprecated since OCCT 7.1.0: - 0027834 built-in iterator in class SelectMgr_ViewerSelector; - 0027900 obsolete constructor of V3d_Viewer class; - 0027816 obsolete clipping plane setters V3d_View/PrsMgr_PresentableObject:SetClipPlanes(); - 0027860 obsolete transformation persistence methods from class PrsMgr_PresentableObject; - 0027756 obsolete methods Prs3d_Text::Draw(); - 0024393 obsolete enum Graphic3d_ZLayerSetting; - 0025180 obsolete method Graphic3d_Structure::Transform(). Removed functionality deprecated since OCCT 7.2.0: - 0028832 obsolete class MMgt_TShared; - 0026937 obsolete property Standard_Failure::Caught(); - 0028799 obsolete types defined within Quantity package; - 0028441 obsolete nested enum Image_PixMap::ImgFormat; - 0025695 obsolete method PrsMgr_PresentationManager::Unhighlight(); - 0028205 obsolete class MeshVS_ColorHasher; - 0027958 obsolete methods from Prs3d_DatumAspect class; - 0025695 obsolete class Graphic3d_HighlightStyle; - 0027954 obsolete BRepOffsetAPI_MakeOffsetShape,BRepOffsetAPI_MakeThickSolid constructors.
66 lines
2.8 KiB
C++
66 lines
2.8 KiB
C++
// Created on: 2017-06-26
|
|
// Created by: Andrey Betenev
|
|
// Copyright (c) 2017 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// 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.
|
|
|
|
#ifndef _Message_Alert_HeaderFile
|
|
#define _Message_Alert_HeaderFile
|
|
|
|
#include <Standard_Type.hxx>
|
|
|
|
DEFINE_STANDARD_HANDLE(Message_Alert, Standard_Transient)
|
|
|
|
//! Base class of the hierarchy of classes describing various situations
|
|
//! occurring during execution of some algorithm or procedure.
|
|
//!
|
|
//! Alert should provide unique text identifier that can be used to distinguish
|
|
//! particular type of alerts, e.g. to get text message string describing it.
|
|
//! See method GetMessageKey(); by default, dynamic type name is used.
|
|
//!
|
|
//! Alert can contain some data. To avoid duplication of data, new alert
|
|
//! can be merged with another one of the same type. Method SupportsMerge()
|
|
//! should return true if merge is supported; method Merge() should do the
|
|
//! merge if possible and return true in that case and false otherwise.
|
|
class Message_Alert : public Standard_Transient
|
|
{
|
|
public:
|
|
|
|
//! Return a C string to be used as a key for generating text user
|
|
//! messages describing this alert.
|
|
//! The messages are generated with help of Message_Msg class, in
|
|
//! Message_Report::Dump().
|
|
//! Base implementation returns dynamic type name of the instance.
|
|
virtual Standard_EXPORT Standard_CString GetMessageKey () const;
|
|
|
|
//! Return true if this type of alert can be merged with other
|
|
//! of the same type to avoid duplication.
|
|
//! Basis implementation returns true.
|
|
virtual Standard_EXPORT Standard_Boolean SupportsMerge () const;
|
|
|
|
//! If possible, merge data contained in this alert to theTarget.
|
|
//! @return True if merged.
|
|
//! Base implementation always returns true.
|
|
virtual Standard_EXPORT Standard_Boolean Merge (const Handle(Message_Alert)& theTarget);
|
|
|
|
//! Dumps the content of me into the stream
|
|
virtual Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
|
|
|
|
// OCCT RTTI
|
|
DEFINE_STANDARD_RTTIEXT(Message_Alert,Standard_Transient)
|
|
};
|
|
|
|
//! Macro allowing to define simple alert (without data) in single line of code
|
|
#define DEFINE_SIMPLE_ALERT(Alert) class Alert : public Message_Alert { DEFINE_STANDARD_RTTI_INLINE(Alert,Message_Alert) };
|
|
|
|
#endif // _Message_Alert_HeaderFile
|