b311480e |
1 | // Created on: 2006-05-25 |
2 | // Created by: Alexander GRIGORIEV |
973c2be1 |
3 | // Copyright (c) 2006-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #ifndef VrmlData_ImageTexture_HeaderFile |
17 | #define VrmlData_ImageTexture_HeaderFile |
18 | |
19 | #include <VrmlData_Texture.hxx> |
20 | |
21 | /** |
22 | * Implementation of the ImageTexture node |
23 | */ |
24 | class VrmlData_ImageTexture : public VrmlData_Texture |
25 | { |
26 | public: |
27 | // ---------- PUBLIC METHODS ---------- |
28 | |
29 | /** |
30 | * Empty constructor |
31 | */ |
32 | inline VrmlData_ImageTexture () |
33 | {} |
34 | |
35 | /** |
36 | * Constructor |
37 | */ |
38 | Standard_EXPORT VrmlData_ImageTexture |
39 | (const VrmlData_Scene& theScene, |
40 | const char * theName, |
41 | const char * theURL = 0L, |
42 | const Standard_Boolean theRepS = Standard_False, |
43 | const Standard_Boolean theRepT = Standard_False); |
44 | |
45 | /** |
46 | * Query the associated URL. |
47 | */ |
48 | inline const NCollection_List<TCollection_AsciiString>& |
49 | URL () const |
50 | { return myURL; } |
51 | |
52 | /** |
53 | * Create a copy of this node. |
54 | * If the parameter is null, a new copied node is created. Otherwise new node |
55 | * is not created, but rather the given one is modified. |
56 | */ |
57 | Standard_EXPORT virtual Handle(VrmlData_Node) |
58 | Clone (const Handle(VrmlData_Node)& theOther)const; |
59 | |
60 | /** |
61 | * Read the Node from input stream. |
62 | */ |
63 | Standard_EXPORT virtual VrmlData_ErrorStatus |
64 | Read (VrmlData_InBuffer& theBuffer); |
65 | |
66 | protected: |
67 | // ---------- PROTECTED METHODS ---------- |
68 | |
69 | |
70 | |
71 | private: |
72 | // ---------- PRIVATE FIELDS ---------- |
73 | |
74 | NCollection_List<TCollection_AsciiString> myURL; |
75 | |
76 | public: |
77 | // Declaration of CASCADE RTTI |
78 | DEFINE_STANDARD_RTTI (VrmlData_ImageTexture) |
79 | }; |
80 | |
81 | // Definition of HANDLE object using Standard_DefineHandle.hxx |
82 | DEFINE_STANDARD_HANDLE (VrmlData_ImageTexture, VrmlData_Texture) |
83 | |
84 | |
85 | #endif |