0023227: New Draw Harness command to estimate current geometry complexity of OpenGL...
[occt.git] / samples / java / inc / ISession2D_ObjectOwner.hxx
CommitLineData
7fd59977 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 _ISession2D_ObjectOwner_HeaderFile
17#define _ISession2D_ObjectOwner_HeaderFile
18
19#ifndef _Standard_HeaderFile
20#include <Standard.hxx>
21#endif
22#ifndef _Handle_ISession2D_ObjectOwner_HeaderFile
23#include <Handle_ISession2D_ObjectOwner.hxx>
24#endif
25
26#ifndef _Handle_Graphic2d_GraphicObject_HeaderFile
27#include <Handle_Graphic2d_GraphicObject.hxx>
28#endif
29#ifndef _TCollection_AsciiString_HeaderFile
30#include <TCollection_AsciiString.hxx>
31#endif
32#ifndef _SelectMgr_EntityOwner_HeaderFile
33#include <SelectMgr_EntityOwner.hxx>
34#endif
35#ifndef _Standard_Integer_HeaderFile
36#include <Standard_Integer.hxx>
37#endif
38#ifndef _Handle_SelectMgr_SelectableObject_HeaderFile
39#include <Handle_SelectMgr_SelectableObject.hxx>
40#endif
41#ifndef _Handle_PrsMgr_PresentationManager_HeaderFile
42#include <Handle_PrsMgr_PresentationManager.hxx>
43#endif
44class Graphic2d_GraphicObject;
45class SelectMgr_SelectableObject;
46class PrsMgr_PresentationManager;
47class TCollection_AsciiString;
48
49
50class ISession2D_ObjectOwner : public SelectMgr_EntityOwner {
51
52public:
53
54 void* operator new(size_t,void* anAddress)
55 {
56 return anAddress;
57 }
58 void* operator new(size_t size)
59 {
60 return Standard::Allocate(size);
61 }
62 void operator delete(void *anAddress)
63 {
64 if (anAddress) Standard::Free((Standard_Address&)anAddress);
65 }
66 // Methods PUBLIC
67 //
68Standard_EXPORT ISession2D_ObjectOwner(const Standard_Integer aPriority = 0);
69Standard_EXPORT ISession2D_ObjectOwner(const Handle(SelectMgr_SelectableObject)& aSO,const Standard_Integer aPriority = 0);
70Standard_EXPORT virtual void Hilight(const Handle(PrsMgr_PresentationManager)& aPM,const Standard_Integer aMode = 0) ;
71Standard_EXPORT virtual void Unhilight(const Handle(PrsMgr_PresentationManager)& aPM,const Standard_Integer aMode = 0) ;
72Standard_EXPORT void SetDumpMessage(const TCollection_AsciiString& aNewDumpMessage) ;
73Standard_EXPORT TCollection_AsciiString DumpMessage() const;
74Standard_EXPORT ~ISession2D_ObjectOwner();
75
76
77
78
79 // Type management
80 //
81 Standard_EXPORT friend Handle_Standard_Type& ISession2D_ObjectOwner_Type_();
82 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
83 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
84
85protected:
86
87 // Methods PROTECTED
88 //
89
90
91 // Fields PROTECTED
92 //
93
94
95private:
96
97 // Methods PRIVATE
98 //
99
100
101 // Fields PRIVATE
102 //
103Handle_Graphic2d_GraphicObject myGo;
104TCollection_AsciiString myDumpMessage;
105
106
107};
108
109
110#include <ISession2D_ObjectOwner.lxx>
111
112
113
114// other Inline functions and methods (like "C++: function call" methods)
115//
116
117
118#endif