1 // File generated by CPPExt (Transient)
3 // Copyright (C) 1991,1995 by
5 // MATRA DATAVISION, FRANCE
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.
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
16 #ifndef _ISession2D_Curve_HeaderFile
17 #define _ISession2D_Curve_HeaderFile
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
22 #ifndef _Handle_ISession2D_Curve_HeaderFile
23 #include <Handle_ISession2D_Curve.hxx>
26 #ifndef _Handle_Geom2d_Curve_HeaderFile
27 #include <Handle_Geom2d_Curve.hxx>
29 #ifndef _Aspect_TypeOfLine_HeaderFile
30 #include <Aspect_TypeOfLine.hxx>
32 #ifndef _Aspect_WidthOfLine_HeaderFile
33 #include <Aspect_WidthOfLine.hxx>
35 #ifndef _Standard_Integer_HeaderFile
36 #include <Standard_Integer.hxx>
38 #ifndef _Standard_Boolean_HeaderFile
39 #include <Standard_Boolean.hxx>
41 #ifndef _Standard_Real_HeaderFile
42 #include <Standard_Real.hxx>
44 #ifndef _AIS_InteractiveObject_HeaderFile
45 #include <AIS_InteractiveObject.hxx>
47 #ifndef _Handle_PrsMgr_PresentationManager2d_HeaderFile
48 #include <Handle_PrsMgr_PresentationManager2d.hxx>
50 #ifndef _Handle_Graphic2d_GraphicObject_HeaderFile
51 #include <Handle_Graphic2d_GraphicObject.hxx>
53 #ifndef _Handle_SelectMgr_Selection_HeaderFile
54 #include <Handle_SelectMgr_Selection.hxx>
57 class PrsMgr_PresentationManager2d;
58 class Graphic2d_GraphicObject;
59 class SelectMgr_Selection;
62 class ISession2D_Curve : public AIS_InteractiveObject {
66 void* operator new(size_t,void* anAddress)
70 void* operator new(size_t size)
72 return Standard::Allocate(size);
74 void operator delete(void *anAddress)
76 if (anAddress) Standard::Free((Standard_Address&)anAddress);
80 Standard_EXPORT ISession2D_Curve(const Handle(Geom2d_Curve)& aGeom2dCurve,const Aspect_TypeOfLine aTypeOfLine = Aspect_TOL_SOLID,const Aspect_WidthOfLine aWidthOfLine = Aspect_WOL_MEDIUM,const Standard_Integer aColorIndex = 4);
81 Standard_EXPORT virtual Standard_Integer NbPossibleSelection() ;
82 Standard_EXPORT Aspect_TypeOfLine GetTypeOfLine() ;
83 Standard_EXPORT void SetTypeOfLine(const Aspect_TypeOfLine aNewTypeOfLine) ;
84 Standard_EXPORT Aspect_WidthOfLine GetWidthOfLine() ;
85 Standard_EXPORT void SetWidthOfLine(const Aspect_WidthOfLine aNewWidthOfLine) ;
86 Standard_EXPORT Standard_Integer GetColorIndex() ;
87 Standard_EXPORT void SetColorIndex(const Standard_Integer aNewColorIndex) ;
88 Standard_EXPORT Standard_Boolean GetDisplayPole() ;
89 Standard_EXPORT void SetDisplayPole(const Standard_Boolean aNewDisplayPole) ;
90 Standard_EXPORT Standard_Boolean GetDisplayCurbure() ;
91 Standard_EXPORT void SetDisplayCurbure(const Standard_Boolean aNewDisplayCurbure) ;
92 Standard_EXPORT Standard_Real GetDiscretisation() ;
93 Standard_EXPORT void SetDiscretisation(const Standard_Real aNewDiscretisation) ;
94 Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager2d)& aPresentationManager,const Handle(Graphic2d_GraphicObject)& aGrObj,const Standard_Integer aMode = 0) ;
95 Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
96 Standard_EXPORT ~ISession2D_Curve();
103 Standard_EXPORT friend Handle_Standard_Type& ISession2D_Curve_Type_();
104 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
105 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
125 Handle_Geom2d_Curve myGeom2dCurve;
126 Aspect_TypeOfLine myTypeOfLine;
127 Aspect_WidthOfLine myWidthOfLine;
128 Standard_Integer myColorIndex;
129 Standard_Boolean myDisplayPole;
130 Standard_Boolean myDisplayCurbure;
131 Standard_Real myDiscretisation;
132 Standard_Real myradiusmax;
133 Standard_Real myradiusratio;
139 #include <ISession2D_Curve.lxx>
143 // other Inline functions and methods (like "C++: function call" methods)