0023097: MFC Samples do not compile after redesigning the TKOpenGl driver
[occt.git] / samples / java / inc / ISession_Text.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //                     Copyright (C) 1991,1995 by
4 //  
5 //                      MATRA DATAVISION, FRANCE
6 //  
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
12 //  
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
15 //
16 #ifndef _ISession_Text_HeaderFile
17 #define _ISession_Text_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_ISession_Text_HeaderFile
23 #include <Handle_ISession_Text.hxx>
24 #endif
25
26 #ifndef _TCollection_AsciiString_HeaderFile
27 #include <TCollection_AsciiString.hxx>
28 #endif
29 #ifndef _Standard_Real_HeaderFile
30 #include <Standard_Real.hxx>
31 #endif
32 #ifndef _Aspect_TypeOfText_HeaderFile
33 #include <Aspect_TypeOfText.hxx>
34 #endif
35 #ifndef _Standard_Integer_HeaderFile
36 #include <Standard_Integer.hxx>
37 #endif
38 #ifndef _Quantity_Factor_HeaderFile
39 #include <Quantity_Factor.hxx>
40 #endif
41 #ifndef _AIS_InteractiveObject_HeaderFile
42 #include <AIS_InteractiveObject.hxx>
43 #endif
44 #ifndef _Quantity_PlaneAngle_HeaderFile
45 #include <Quantity_PlaneAngle.hxx>
46 #endif
47 #ifndef _Handle_PrsMgr_PresentationManager3d_HeaderFile
48 #include <Handle_PrsMgr_PresentationManager3d.hxx>
49 #endif
50 #ifndef _Handle_Prs3d_Presentation_HeaderFile
51 #include <Handle_Prs3d_Presentation.hxx>
52 #endif
53 #ifndef _Handle_Prs3d_Projector_HeaderFile
54 #include <Handle_Prs3d_Projector.hxx>
55 #endif
56 #ifndef _Handle_PrsMgr_PresentationManager2d_HeaderFile
57 #include <Handle_PrsMgr_PresentationManager2d.hxx>
58 #endif
59 #ifndef _Handle_Graphic2d_GraphicObject_HeaderFile
60 #include <Handle_Graphic2d_GraphicObject.hxx>
61 #endif
62 #ifndef _Handle_SelectMgr_Selection_HeaderFile
63 #include <Handle_SelectMgr_Selection.hxx>
64 #endif
65 class TCollection_AsciiString;
66 class gp_Pnt;
67 class PrsMgr_PresentationManager3d;
68 class Prs3d_Presentation;
69 class Prs3d_Projector;
70 class PrsMgr_PresentationManager2d;
71 class Graphic2d_GraphicObject;
72 class SelectMgr_Selection;
73
74
75 class ISession_Text : public AIS_InteractiveObject {
76
77 public:
78
79     void* operator new(size_t,void* anAddress) 
80       {
81         return anAddress;
82       }
83     void* operator new(size_t size) 
84       { 
85         return Standard::Allocate(size); 
86       }
87     void  operator delete(void *anAddress) 
88       { 
89         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
90       }
91  // Methods PUBLIC
92  // 
93 Standard_EXPORT ISession_Text();
94 Standard_EXPORT ISession_Text(const TCollection_AsciiString& aText,const Standard_Real anX = 0,const Standard_Real anY = 0,const Standard_Real aZ = 0,const Aspect_TypeOfText aType = Aspect_TOT_SOLID,const Quantity_PlaneAngle anAngle = 0.0,const Standard_Real aSlant = 0.0,const Standard_Integer aColorIndex = 1,const Standard_Integer aFontIndex = 1,const Quantity_Factor aScale = 0.1);
95 Standard_EXPORT ISession_Text(const TCollection_AsciiString& aText,const gp_Pnt& aPoint,const Aspect_TypeOfText aType = Aspect_TOT_SOLID,const Quantity_PlaneAngle anAngle = 0.0,const Standard_Real aSlant = 0.0,const Standard_Integer aColorIndex = 1,const Standard_Integer aFontIndex = 1,const Quantity_Factor aScale = 0.1);
96 Standard_EXPORT virtual  Standard_Integer NbPossibleSelection() ;
97 Standard_EXPORT   TCollection_AsciiString GetText() ;
98 Standard_EXPORT   void SetText(const TCollection_AsciiString& aText) ;
99 Standard_EXPORT   void GetCoord(Standard_Real& X,Standard_Real& Y,Standard_Real& Z) ;
100 Standard_EXPORT   void SetCoord(const Standard_Real X,const Standard_Real Y,const Standard_Real Z) ;
101 Standard_EXPORT   Aspect_TypeOfText GetTypeOfText() ;
102 Standard_EXPORT   void SetTypeOfText(const Aspect_TypeOfText aNewTypeOfText) ;
103 Standard_EXPORT   Standard_Real GetAngle() ;
104 Standard_EXPORT   void SetAngle(const Standard_Real aNewAngle) ;
105 Standard_EXPORT   Standard_Real GetSlant() ;
106 Standard_EXPORT   void SetSlant(const Standard_Real aNewSlant) ;
107 Standard_EXPORT   Standard_Integer GetColorIndex() ;
108 Standard_EXPORT   void SetColorIndex(const Standard_Integer aNewColorIndex) ;
109 Standard_EXPORT   Standard_Integer GetFontIndex() ;
110 Standard_EXPORT   void SetFontIndex(const Standard_Integer aNewFontIndex) ;
111 Standard_EXPORT   Quantity_Factor GetScale() ;
112 Standard_EXPORT   void SetScale(const Quantity_Factor aNewScale) ;
113 Standard_EXPORT ~ISession_Text();
114
115
116
117
118  // Type management
119  //
120  Standard_EXPORT friend Handle_Standard_Type& ISession_Text_Type_();
121  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
122  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
123
124 protected:
125
126  // Methods PROTECTED
127  // 
128
129
130  // Fields PROTECTED
131  //
132
133
134 private: 
135
136  // Methods PRIVATE
137  // 
138 Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode) ;
139 Standard_EXPORT virtual  void Compute(const Handle(Prs3d_Projector)& aProjector,const Handle(Prs3d_Presentation)& aPresentation) ;
140 Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager,const Handle(Graphic2d_GraphicObject)& aGrObj,const Standard_Integer unMode = 0) ;
141 Standard_EXPORT virtual  void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer unMode) ;
142
143
144  // Fields PRIVATE
145  //
146 TCollection_AsciiString MyText;
147 Standard_Real MyX;
148 Standard_Real MyY;
149 Standard_Real MyZ;
150 Aspect_TypeOfText MyTypeOfText;
151 Standard_Real MyAngle;
152 Standard_Real MySlant;
153 Standard_Integer MyColorIndex;
154 Standard_Integer MyFontIndex;
155 Quantity_Factor MyScale;
156 Standard_Real MyWidth;
157 Standard_Real MyHeight;
158
159
160 };
161
162
163 #include <ISession_Text.lxx>
164
165
166
167 // other Inline functions and methods (like "C++: function call" methods)
168 //
169
170
171 #endif