mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0031362: Inspectors - MessageView plugin for message alerts
- OSD_Timer in message alert, - DumpJson correction, - Selection owner should be dumped in selector. Sensitive entities might be used in the same owner, that leads to lots of the same dump in the result stream. (cherry picked from commit e8bde810616e61cbe925981176681f2840234fa4)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#define _Message_AttributeObject_HeaderFile
|
||||
|
||||
#include <Message_Attribute.hxx>
|
||||
#include <Standard_Dump.hxx>
|
||||
|
||||
class Standard_Transient;
|
||||
|
||||
@@ -35,6 +36,15 @@ public:
|
||||
//! @param theObject an instance
|
||||
void SetObject (const Handle(Standard_Transient)& theObject) { myObject = theObject; }
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
virtual void DumpJson (Standard_OStream& theOStream,
|
||||
Standard_Integer theDepth = -1) const Standard_OVERRIDE
|
||||
{
|
||||
OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
|
||||
OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Message_Attribute)
|
||||
OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, myObject.get())
|
||||
}
|
||||
|
||||
DEFINE_STANDARD_RTTI_INLINE(Message_AttributeObject, Message_Attribute)
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user