0023284: Using 'memcpy' on class that contains a virtual method
[occt.git] / samples / qt / Graphic3dDemo / inc / Sphere_BasicShape.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 _Sphere_BasicShape_HeaderFile
17#define _Sphere_BasicShape_HeaderFile
18
19#ifndef _Standard_HeaderFile
20#include <Standard.hxx>
21#endif
22#ifndef _Handle_Sphere_BasicShape_HeaderFile
23#include <Handle_Sphere_BasicShape.hxx>
24#endif
25
26#include <Standard_Real.hxx>
27#include <Standard_Boolean.hxx>
28#include <AIS_Shape.hxx>
29class TopoDS_Shape;
30class gp_Pnt;
31
32
33class Sphere_BasicShape : public AIS_Shape {
34
35public:
36
37 void* operator new(size_t,void* anAddress)
38 {
39 return anAddress;
40 }
41 void* operator new(size_t size)
42 {
43 return Standard::Allocate(size);
44 }
45 void operator delete(void *anAddress)
46 {
47 if (anAddress) Standard::Free((Standard_Address&)anAddress);
48 }
49 // Methods PUBLIC
50 //
51Standard_EXPORT Sphere_BasicShape(const TopoDS_Shape& aShape,const Standard_Real aDeflection,const Standard_Boolean hasVNormals,const Standard_Boolean hasVColors,const Standard_Boolean hasVTexels);
52Standard_EXPORT void SetPosition(const gp_Pnt& aPosition) ;
53Standard_EXPORT void SetVNormals(const Standard_Boolean aFlag) ;
54Standard_EXPORT void SetVColors(const Standard_Boolean aFlag) ;
55Standard_EXPORT void SetVTexels(const Standard_Boolean aFlag) ;
56Standard_EXPORT void SetDeflection(const Standard_Real aValue) ;
57Standard_EXPORT gp_Pnt Position() const;
58Standard_EXPORT Standard_Boolean VNormalsFlag() const;
59Standard_EXPORT Standard_Boolean VColorsFlag() const;
60Standard_EXPORT Standard_Boolean VTexelsFlag() const;
61Standard_EXPORT Standard_Real Deflection() const;
62Standard_EXPORT ~Sphere_BasicShape();
63
64
65
66
67 // Type management
68 //
69 Standard_EXPORT friend Handle_Standard_Type& Sphere_BasicShape_Type_();
70 Standard_EXPORT const Handle_Standard_Type& DynamicType() const;
71 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
72
73protected:
74
75 // Methods PROTECTED
76 //
77
78
79 // Fields PROTECTED
80 //
81Standard_Real myDeflection;
82Standard_Boolean myVNormalsFlag;
83Standard_Boolean myVColorsFlag;
84Standard_Boolean myVTexelsFlag;
85
86
87private:
88
89 // Methods PRIVATE
90 //
91
92
93 // Fields PRIVATE
94 //
95
96
97};
98
99
100
101
102
103// other Inline functions and methods (like "C++: function call" methods)
104//
105
106
107#endif