42cf5bc1 |
1 | // Created on: 1996-12-23 |
2 | // Created by: Alexander BRIVIN |
3 | // Copyright (c) 1996-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _Vrml_SFImage_HeaderFile |
18 | #define _Vrml_SFImage_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Integer.hxx> |
24 | #include <Vrml_SFImageNumber.hxx> |
25 | #include <TColStd_HArray1OfInteger.hxx> |
26 | #include <Standard_Boolean.hxx> |
25e59720 |
27 | #include <Standard_Transient.hxx> |
42cf5bc1 |
28 | |
29 | |
30 | class Vrml_SFImage; |
25e59720 |
31 | DEFINE_STANDARD_HANDLE(Vrml_SFImage, Standard_Transient) |
42cf5bc1 |
32 | |
33 | //! defines SFImage type of VRML field types. |
25e59720 |
34 | class Vrml_SFImage : public Standard_Transient |
42cf5bc1 |
35 | { |
36 | |
37 | public: |
38 | |
39 | |
40 | Standard_EXPORT Vrml_SFImage(); |
41 | |
42 | Standard_EXPORT Vrml_SFImage(const Standard_Integer aWidth, const Standard_Integer aHeight, const Vrml_SFImageNumber aNumber, const Handle(TColStd_HArray1OfInteger)& anArray); |
43 | |
44 | Standard_EXPORT void SetWidth (const Standard_Integer aWidth); |
45 | |
46 | Standard_EXPORT Standard_Integer Width() const; |
47 | |
48 | Standard_EXPORT void SetHeight (const Standard_Integer aHeight); |
49 | |
50 | Standard_EXPORT Standard_Integer Height() const; |
51 | |
52 | Standard_EXPORT void SetNumber (const Vrml_SFImageNumber aNumber); |
53 | |
54 | Standard_EXPORT Vrml_SFImageNumber Number() const; |
55 | |
56 | Standard_EXPORT void SetArray (const Handle(TColStd_HArray1OfInteger)& anArray); |
57 | |
58 | Standard_EXPORT Handle(TColStd_HArray1OfInteger) Array() const; |
59 | |
60 | Standard_EXPORT Standard_Boolean ArrayFlag() const; |
61 | |
62 | |
63 | |
64 | |
25e59720 |
65 | DEFINE_STANDARD_RTTIEXT(Vrml_SFImage,Standard_Transient) |
42cf5bc1 |
66 | |
67 | protected: |
68 | |
69 | |
70 | |
71 | |
72 | private: |
73 | |
74 | |
75 | Standard_Integer myWidth; |
76 | Standard_Integer myHeight; |
77 | Vrml_SFImageNumber myNumber; |
78 | Handle(TColStd_HArray1OfInteger) myArray; |
79 | Standard_Boolean myArrayFlag; |
80 | |
81 | |
82 | }; |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | #endif // _Vrml_SFImage_HeaderFile |