mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
- XCAFNoteObjects_NoteObject transfer object for note's auxiliary data was added. It contains the following fields: text and attachment positions, note plane and tesselated presentation - GetObject/SetObject methods were added to XCAFDoc_Note attribute. The following sub-labels were added to handle transfer object: 1 - text position 2 - note plane 3 - attachment point 4 - tesselated presentation - documentation updated Off-topic: procedure genproj now gives meaningful error message if new package is added but not listed in UDLIST
57 lines
2.3 KiB
C++
57 lines
2.3 KiB
C++
// Copyright (c) 2017-2018 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 _XCAFDoc_NoteBalloon_HeaderFile
|
|
#define _XCAFDoc_NoteBalloon_HeaderFile
|
|
|
|
#include <XCAFDoc_NoteComment.hxx>
|
|
|
|
//! A comment note attribute.
|
|
//! Contains a textual comment.
|
|
class XCAFDoc_NoteBalloon : public XCAFDoc_NoteComment
|
|
{
|
|
public:
|
|
|
|
DEFINE_STANDARD_RTTIEXT(XCAFDoc_NoteBalloon, XCAFDoc_NoteComment)
|
|
|
|
//! Returns default attribute GUID
|
|
Standard_EXPORT static const Standard_GUID& GetID();
|
|
|
|
//! Finds a reference attribute on the given label and returns it, if it is found
|
|
Standard_EXPORT static Handle(XCAFDoc_NoteBalloon) Get(const TDF_Label& theLabel);
|
|
|
|
//! Create (if not exist) a comment note on the given label.
|
|
//! \param [in] theLabel - note label.
|
|
//! \param [in] theUserName - the name of the user, who created the note.
|
|
//! \param [in] theTimeStamp - creation timestamp of the note.
|
|
//! \param [in] theComment - comment text.
|
|
Standard_EXPORT static Handle(XCAFDoc_NoteBalloon) Set(const TDF_Label& theLabel,
|
|
const TCollection_ExtendedString& theUserName,
|
|
const TCollection_ExtendedString& theTimeStamp,
|
|
const TCollection_ExtendedString& theComment);
|
|
|
|
//! Creates an empty comment note.
|
|
Standard_EXPORT XCAFDoc_NoteBalloon();
|
|
|
|
public:
|
|
|
|
// Overrides TDF_Attribute virtuals
|
|
Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
|
|
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
|
|
|
};
|
|
|
|
DEFINE_STANDARD_HANDLE(XCAFDoc_NoteBalloon, XCAFDoc_NoteComment)
|
|
|
|
#endif // _XCAFDoc_NoteBalloon_HeaderFile
|