0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / StepVisual / StepVisual_TextLiteral.hxx
1 // Created on: 1995-12-01
2 // Created by: EXPRESS->CDL V0.2 Translator
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _StepVisual_TextLiteral_HeaderFile
18 #define _StepVisual_TextLiteral_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <StepGeom_Axis2Placement.hxx>
24 #include <StepVisual_TextPath.hxx>
25 #include <StepVisual_FontSelect.hxx>
26 #include <StepGeom_GeometricRepresentationItem.hxx>
27 class TCollection_HAsciiString;
28 class StepGeom_Axis2Placement;
29 class StepVisual_FontSelect;
30
31
32 class StepVisual_TextLiteral;
33 DEFINE_STANDARD_HANDLE(StepVisual_TextLiteral, StepGeom_GeometricRepresentationItem)
34
35
36 class StepVisual_TextLiteral : public StepGeom_GeometricRepresentationItem
37 {
38
39 public:
40
41   
42   //! Returns a TextLiteral
43   Standard_EXPORT StepVisual_TextLiteral();
44   
45   Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aLiteral, const StepGeom_Axis2Placement& aPlacement, const Handle(TCollection_HAsciiString)& aAlignment, const StepVisual_TextPath aPath, const StepVisual_FontSelect& aFont);
46   
47   Standard_EXPORT void SetLiteral (const Handle(TCollection_HAsciiString)& aLiteral);
48   
49   Standard_EXPORT Handle(TCollection_HAsciiString) Literal() const;
50   
51   Standard_EXPORT void SetPlacement (const StepGeom_Axis2Placement& aPlacement);
52   
53   Standard_EXPORT StepGeom_Axis2Placement Placement() const;
54   
55   Standard_EXPORT void SetAlignment (const Handle(TCollection_HAsciiString)& aAlignment);
56   
57   Standard_EXPORT Handle(TCollection_HAsciiString) Alignment() const;
58   
59   Standard_EXPORT void SetPath (const StepVisual_TextPath aPath);
60   
61   Standard_EXPORT StepVisual_TextPath Path() const;
62   
63   Standard_EXPORT void SetFont (const StepVisual_FontSelect& aFont);
64   
65   Standard_EXPORT StepVisual_FontSelect Font() const;
66
67
68
69
70   DEFINE_STANDARD_RTTIEXT(StepVisual_TextLiteral,StepGeom_GeometricRepresentationItem)
71
72 protected:
73
74
75
76
77 private:
78
79
80   Handle(TCollection_HAsciiString) literal;
81   StepGeom_Axis2Placement placement;
82   Handle(TCollection_HAsciiString) alignment;
83   StepVisual_TextPath path;
84   StepVisual_FontSelect font;
85
86
87 };
88
89
90
91
92
93
94
95 #endif // _StepVisual_TextLiteral_HeaderFile