Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / inc / ISession_Direction.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_Direction_HeaderFile
17 #define _ISession_Direction_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_ISession_Direction_HeaderFile
23 #include <Handle_ISession_Direction.hxx>
24 #endif
25
26 #ifndef _TCollection_ExtendedString_HeaderFile
27 #include <TCollection_ExtendedString.hxx>
28 #endif
29 #ifndef _gp_Pnt_HeaderFile
30 #include <gp_Pnt.hxx>
31 #endif
32 #ifndef _gp_Dir_HeaderFile
33 #include <gp_Dir.hxx>
34 #endif
35 #ifndef _Standard_Real_HeaderFile
36 #include <Standard_Real.hxx>
37 #endif
38 #ifndef _Quantity_Length_HeaderFile
39 #include <Quantity_Length.hxx>
40 #endif
41 #ifndef _AIS_InteractiveObject_HeaderFile
42 #include <AIS_InteractiveObject.hxx>
43 #endif
44 #ifndef _Handle_PrsMgr_PresentationManager3d_HeaderFile
45 #include <Handle_PrsMgr_PresentationManager3d.hxx>
46 #endif
47 #ifndef _Handle_Prs3d_Presentation_HeaderFile
48 #include <Handle_Prs3d_Presentation.hxx>
49 #endif
50 #ifndef _Standard_Integer_HeaderFile
51 #include <Standard_Integer.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 gp_Pnt;
66 class gp_Dir;
67 class gp_Vec;
68 class gp_Pnt2d;
69 class gp_Dir2d;
70 class gp_Vec2d;
71 class TCollection_ExtendedString;
72 class PrsMgr_PresentationManager3d;
73 class Prs3d_Presentation;
74 class Prs3d_Projector;
75 class PrsMgr_PresentationManager2d;
76 class Graphic2d_GraphicObject;
77 class SelectMgr_Selection;
78
79
80 class ISession_Direction : public AIS_InteractiveObject {
81
82 public:
83
84     void* operator new(size_t,void* anAddress) 
85       {
86         return anAddress;
87       }
88     void* operator new(size_t size) 
89       { 
90         return Standard::Allocate(size); 
91       }
92     void  operator delete(void *anAddress) 
93       { 
94         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
95       }
96  // Methods PUBLIC
97  // 
98 Standard_EXPORT ISession_Direction();
99 Standard_EXPORT ISession_Direction(const gp_Pnt& aPnt,const gp_Dir& aDir,const Standard_Real aLength = 1,const Standard_Real anArrowLength = 1);
100 Standard_EXPORT ISession_Direction(const gp_Pnt& aPnt,const gp_Vec& aVec,const Standard_Real aLength = 1);
101 Standard_EXPORT ISession_Direction(const gp_Pnt2d& aPnt2d,const gp_Dir2d& aDir2d,const Standard_Real aLength = 1);
102 Standard_EXPORT ISession_Direction(const gp_Pnt2d& aPnt2d,const gp_Vec2d& aVec2d);
103 Standard_EXPORT   void SetText(const TCollection_ExtendedString& aText) ;
104 Standard_EXPORT ~ISession_Direction();
105
106
107
108
109  // Type management
110  //
111  Standard_EXPORT friend Handle_Standard_Type& ISession_Direction_Type_();
112  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
113  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
114
115 protected:
116
117  // Methods PROTECTED
118  // 
119
120
121  // Fields PROTECTED
122  //
123
124
125 private: 
126
127  // Methods PRIVATE
128  // 
129 Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
130 Standard_EXPORT virtual  void Compute(const Handle(Prs3d_Projector)& aProjector,const Handle(Prs3d_Presentation)& aPresentation) ;
131 Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager,const Handle(Graphic2d_GraphicObject)& aGrObj,const Standard_Integer aMode = 0) ;
132 Standard_EXPORT virtual  void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
133
134
135  // Fields PRIVATE
136  //
137 TCollection_ExtendedString myText;
138 gp_Pnt myPnt;
139 gp_Dir myDir;
140 Standard_Real myLength;
141 Quantity_Length myArrowLength;
142
143
144 };
145
146
147
148
149
150 // other Inline functions and methods (like "C++: function call" methods)
151 //
152
153
154 #endif