Integration of OCCT 6.5.0 from SVN
[occt.git] / samples / java / inc / User_Cylinder.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 _User_Cylinder_HeaderFile
17#define _User_Cylinder_HeaderFile
18
19#ifndef _Standard_HeaderFile
20#include <Standard.hxx>
21#endif
22#ifndef _Handle_User_Cylinder_HeaderFile
23#include <Handle_User_Cylinder.hxx>
24#endif
25
26#ifndef _TopoDS_Shape_HeaderFile
27#include <TopoDS_Shape.hxx>
28#endif
29#ifndef _Quantity_NameOfColor_HeaderFile
30#include <Quantity_NameOfColor.hxx>
31#endif
32#ifndef _AIS_InteractiveObject_HeaderFile
33#include <AIS_InteractiveObject.hxx>
34#endif
35#ifndef _Standard_Real_HeaderFile
36#include <Standard_Real.hxx>
37#endif
38#ifndef _Standard_Integer_HeaderFile
39#include <Standard_Integer.hxx>
40#endif
41#ifndef _Handle_PrsMgr_PresentationManager3d_HeaderFile
42#include <Handle_PrsMgr_PresentationManager3d.hxx>
43#endif
44#ifndef _Handle_Prs3d_Presentation_HeaderFile
45#include <Handle_Prs3d_Presentation.hxx>
46#endif
47#ifndef _Handle_Prs3d_Projector_HeaderFile
48#include <Handle_Prs3d_Projector.hxx>
49#endif
50#ifndef _Handle_SelectMgr_Selection_HeaderFile
51#include <Handle_SelectMgr_Selection.hxx>
52#endif
53#ifndef _Standard_Boolean_HeaderFile
54#include <Standard_Boolean.hxx>
55#endif
56class PrsMgr_PresentationManager3d;
57class Prs3d_Presentation;
58class Prs3d_Projector;
59class SelectMgr_Selection;
60
61
62class User_Cylinder : public AIS_InteractiveObject {
63
64public:
65
66 void* operator new(size_t,void* anAddress)
67 {
68 return anAddress;
69 }
70 void* operator new(size_t size)
71 {
72 return Standard::Allocate(size);
73 }
74 void operator delete(void *anAddress)
75 {
76 if (anAddress) Standard::Free((Standard_Address&)anAddress);
77 }
78 // Methods PUBLIC
79 //
80Standard_EXPORT User_Cylinder(const Standard_Real R,const Standard_Real H);
81Standard_EXPORT virtual Standard_Integer NbPossibleSelection() ;
82Standard_EXPORT void SetCylindricalFaceColor(const Quantity_NameOfColor aColor) ;
83Standard_EXPORT void SetPlanarFaceColor(const Quantity_NameOfColor aColor) ;
84Standard_EXPORT virtual Standard_Boolean AcceptShapeDecomposition() const;
85Standard_EXPORT ~User_Cylinder();
86
87
88
89
90 // Type management
91 //
92 Standard_EXPORT friend Handle_Standard_Type& User_Cylinder_Type_();
93 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
94 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
95
96protected:
97
98 // Methods PROTECTED
99 //
100
101
102 // Fields PROTECTED
103 //
104
105
106private:
107
108 // Methods PRIVATE
109 //
110Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
111Standard_EXPORT virtual void Compute(const Handle(Prs3d_Projector)& aProjector,const Handle(Prs3d_Presentation)& aPresentation) ;
112Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
113
114
115 // Fields PRIVATE
116 //
117TopoDS_Shape myShape;
118Quantity_NameOfColor myCylindricalFaceColor;
119Quantity_NameOfColor myPlanarFaceColor;
120
121
122};
123
124
125
126
127
128// other Inline functions and methods (like "C++: function call" methods)
129//
130
131
132#endif