0023821: Improve qmake project files for Qt samples
[occt.git] / samples / mfc / standard / Common / ISession2D / ISession2D_ObjectOwner.h
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#include <Standard_Macro.hxx>
20#include <Standard_DefineHandle.hxx>
21
22#include <SelectMgr_EntityOwner.hxx>
23
24DEFINE_STANDARD_HANDLE(ISession2D_ObjectOwner,SelectMgr_EntityOwner)
25class ISession2D_ObjectOwner : public SelectMgr_EntityOwner {
26
27public:
28
29 // Methods PUBLIC
30 //
31ISession2D_ObjectOwner(const Standard_Integer aPriority = 0);
32ISession2D_ObjectOwner(const Handle(SelectMgr_SelectableObject)& aSO,const Standard_Integer aPriority = 0);
33DEFINE_STANDARD_RTTI(ISession2D_ObjectOwner)
34
35// Presentation Management
36protected :
37Handle(Graphic2d_GraphicObject) myGo;
38public :
39virtual void Hilight(const Handle(PrsMgr_PresentationManager)& aPM,const Standard_Integer aMode = 0) ;
40virtual void Unhilight(const Handle(PrsMgr_PresentationManager)& aPM,const Standard_Integer aMode = 0) ;
41
42// Message Management
43private:
44 TCollection_AsciiString myDumpMessage;
45
46public :
47void SetDumpMessage(TCollection_AsciiString NewDumpMessage)
48{ myDumpMessage = NewDumpMessage;}
49TCollection_AsciiString DumpMessage()
50{ return myDumpMessage;}
51Standard_OStream& Dump(Standard_OStream& aStream)
52{ aStream<<myDumpMessage;
53 return aStream;}
54friend Standard_EXPORT Standard_OStream& operator << (Standard_OStream& astream,const Handle(ISession2D_ObjectOwner)& aOwner)
55{ return aOwner->Dump(astream);}
56};
57
58// other inline functions and methods (like "C++: function call" methods)
59//
60
61
62#endif