27 #ifndef GEOMGUI_ANNOTATIONATTRS_H
28 #define GEOMGUI_ANNOTATIONATTRS_H
32 #include <SalomeApp_Study.h>
37 #include <Standard_Transient.hxx>
95 const gp_Ax3& theShapeLCS );
103 const gp_Ax3& theShapeLCS );
205 : myObj( theObject ),
206 myParameterMap( theParameter ) {}
214 _PTR(AttributeParameter) myParameterMap;
DEFINE_STANDARD_HANDLE(GEOM_Field, GEOM_BaseObject) DEFINE_STANDARD_HANDLE(GEOM_FieldStep
#define GEOMGUI_EXPORT
Definition: GEOM_GEOMGUI.hxx:36
Attribute-style helper tool to manage shape annotation data of an object.
Definition: GEOMGUI_AnnotationAttrs.h:49
GEOMGUI_EXPORT void SetNbAnnotation(const int theCount) const
Changes count of annotation definitions stored on the object.
Definition: GEOMGUI_AnnotationAttrs.cxx:255
DEFINE_STANDARD_RTTIEXT(GEOMGUI_AnnotationAttrs, Standard_Transient) GEOMGUI_EXPORT static Handle(GEOMGUI_AnnotationAttrs) FindAttributes(const _PTR(SObject) &theObject)
Find annotation data defined for an object.
GEOMGUI_EXPORT void Append(const Properties &theProps)
Appends new annotation definition with the given properties.
Definition: GEOMGUI_AnnotationAttrs.cxx:437
GEOMGUI_EXPORT bool GetIsScreenFixed(const int theIndex) const
Returns screen fixed flag of the annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:347
GEOMGUI_EXPORT gp_Pnt GetPosition(const int theIndex) const
Returns position of the annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:371
GEOMGUI_EXPORT void SetIsVisible(const int theIndex, const bool theIsVisible)
Sets application visibility state of an annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:302
GEOMGUI_EXPORT QString GetText(const int theIndex) const
Returns annotation label's text.
Definition: GEOMGUI_AnnotationAttrs.cxx:329
static GEOMGUI_EXPORT Handle(GEOMGUI_AnnotationAttrs) FindOrCreateAttributes(const _PTR(SObject) &theObject
Find or create annotation data fields for an object.
GEOMGUI_EXPORT void GetShapeSel(const int theIndex, int &theShapeType, int &theSubIdx) const
Returns shape selection arguments.
Definition: GEOMGUI_AnnotationAttrs.cxx:424
GEOMGUI_EXPORT void SetIsScreenFixed(const int theIndex, const bool theIsScreenFixed)
Sets screen fixed flag of the annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:338
GEOMGUI_EXPORT int GetNbAnnotation() const
Returns number of annotation definitions stored on the object.
Definition: GEOMGUI_AnnotationAttrs.cxx:293
GEOMGUI_EXPORT void SetText(const int theIndex, const QString &theText)
Sets annotation label's text.
Definition: GEOMGUI_AnnotationAttrs.cxx:320
GEOMGUI_EXPORT gp_Pnt GetAttach(const int theIndex) const
Returns attach point of the annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:398
static GEOMGUI_EXPORT SalomeApp_Study * theStudy
Definition: GEOMGUI_AnnotationAttrs.h:59
GEOMGUI_EXPORT void SetShapeSel(const int theIndex, const int theShapeType, const int theSubIdx)
Sets shape selection arguments.
Definition: GEOMGUI_AnnotationAttrs.cxx:410
GEOMGUI_AnnotationAttrs(const _PTR(SObject)&theObject, const _PTR(AttributeParameter)&theParameter)
Definition: GEOMGUI_AnnotationAttrs.h:204
GEOMGUI_EXPORT void SetPosition(const int theIndex, const gp_Pnt &thePosition)
Sets position of the annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:356
static GEOMGUI_EXPORT void SetupPresentation(const Handle(GEOM_Annotation)&thePresentation, const Properties &theProps, const gp_Ax3 &theShapeLCS)
Setup parameters of the annotation presentation with the properties given.
Definition: GEOMGUI_AnnotationAttrs.cxx:523
void operator=(const GEOMGUI_AnnotationAttrs &)
_PTR(AttributeParameter) myParameterMap
GEOMGUI_EXPORT QString ExportAsPropertyString() const
Exports annotation records as a property string.
Definition: GEOMGUI_AnnotationAttrs.cxx:176
GEOMGUI_EXPORT bool GetIsVisible(const int theIndex) const
Returns application visibility state of an annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:311
GEOMGUI_AnnotationAttrs(const GEOMGUI_AnnotationAttrs &)
GEOMGUI_EXPORT void GetProperties(const int theIndex, Properties &theProps) const
Returns complete properties of an annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:508
static GEOMGUI_EXPORT void Remove(const _PTR(SObject)&theObject)
Remove annotation data fields for an object.
Definition: GEOMGUI_AnnotationAttrs.cxx:140
GEOMGUI_EXPORT void SetProperties(const int theIndex, const Properties &theProps)
Sets complete properties of an annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:480
GEOMGUI_EXPORT void SetAttach(const int theIndex, const gp_Pnt &theAttach)
Sets attach point of the annotation definition.
Definition: GEOMGUI_AnnotationAttrs.cxx:383
GEOMGUI_EXPORT void ImportFromPropertyString(const QString &theString)
Imports annotation records from a property string.
Definition: GEOMGUI_AnnotationAttrs.cxx:201
Interactive object, representating annotation entity.
Definition: GEOM_Annotation.hxx:63
Definition: GEOMGUI_AnnotationAttrs.h:79
gp_Pnt Attach
Attachment point of the annotation.
Definition: GEOMGUI_AnnotationAttrs.h:84
gp_Pnt Position
Position of the annotation.
Definition: GEOMGUI_AnnotationAttrs.h:83
QString Text
Displayed annotation text.
Definition: GEOMGUI_AnnotationAttrs.h:80
int ShapeType
Type of the annotated subshape.
Definition: GEOMGUI_AnnotationAttrs.h:86
bool IsVisible
Application visibility flag of annotation.
Definition: GEOMGUI_AnnotationAttrs.h:81
int ShapeIndex
Index of the annotated subshape.
Definition: GEOMGUI_AnnotationAttrs.h:85
bool IsScreenFixed
Fixed screen mode flag.
Definition: GEOMGUI_AnnotationAttrs.h:82