|
|
|||
File indexing completed on 2026-10-03 09:18:13
0001 // Created on: 2006-05-25 0002 // Created by: Alexander GRIGORIEV 0003 // Copyright (c) 2006-2014 OPEN CASCADE SAS 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef VrmlData_ImageTexture_HeaderFile 0017 #define VrmlData_ImageTexture_HeaderFile 0018 0019 #include <VrmlData_Texture.hxx> 0020 0021 /** 0022 * Implementation of the ImageTexture node 0023 */ 0024 class VrmlData_ImageTexture : public VrmlData_Texture 0025 { 0026 public: 0027 // ---------- PUBLIC METHODS ---------- 0028 0029 /** 0030 * Empty constructor 0031 */ 0032 inline VrmlData_ImageTexture() = default; 0033 0034 /** 0035 * Constructor 0036 */ 0037 Standard_EXPORT VrmlData_ImageTexture(const VrmlData_Scene& theScene, 0038 const char* theName, 0039 const char* theURL = nullptr, 0040 const bool theRepS = false, 0041 const bool theRepT = false); 0042 0043 /** 0044 * Query the associated URL. 0045 */ 0046 inline const NCollection_List<TCollection_AsciiString>& URL() const { return myURL; } 0047 0048 /** 0049 * Create a copy of this node. 0050 * If the parameter is null, a new copied node is created. Otherwise new node 0051 * is not created, but rather the given one is modified. 0052 */ 0053 Standard_EXPORT occ::handle<VrmlData_Node> Clone( 0054 const occ::handle<VrmlData_Node>& theOther) const override; 0055 0056 /** 0057 * Read the Node from input stream. 0058 */ 0059 Standard_EXPORT VrmlData_ErrorStatus Read(VrmlData_InBuffer& theBuffer) override; 0060 0061 /** 0062 * Write the Node to output stream. 0063 */ 0064 Standard_EXPORT VrmlData_ErrorStatus Write(const char* thePrefix) const override; 0065 0066 private: 0067 // ---------- PRIVATE FIELDS ---------- 0068 0069 NCollection_List<TCollection_AsciiString> myURL; 0070 0071 public: 0072 // Declaration of CASCADE RTTI 0073 DEFINE_STANDARD_RTTI_INLINE(VrmlData_ImageTexture, VrmlData_Texture) 0074 }; 0075 0076 // Definition of HANDLE object using Standard_DefineHandle.hxx 0077 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|