Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:32

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 ()
0033   {}
0034 
0035   /**
0036    * Constructor
0037    */
0038   Standard_EXPORT VrmlData_ImageTexture
0039                             (const VrmlData_Scene&  theScene,
0040                              const char             * theName,
0041                              const char             * theURL = 0L,
0042                              const Standard_Boolean theRepS = Standard_False,
0043                              const Standard_Boolean theRepT = Standard_False);
0044 
0045   /**
0046    * Query the associated URL.
0047    */
0048   inline const NCollection_List<TCollection_AsciiString>&
0049                         URL     () const
0050   { return myURL; }
0051 
0052   /**
0053    * Create a copy of this node.
0054    * If the parameter is null, a new copied node is created. Otherwise new node
0055    * is not created, but rather the given one is modified.
0056    */
0057   Standard_EXPORT virtual Handle(VrmlData_Node)
0058                         Clone   (const Handle(VrmlData_Node)& theOther)const Standard_OVERRIDE;
0059 
0060   /**
0061    * Read the Node from input stream.
0062    */
0063   Standard_EXPORT virtual VrmlData_ErrorStatus
0064                         Read    (VrmlData_InBuffer& theBuffer) Standard_OVERRIDE;
0065 
0066   /**
0067    * Write the Node to output stream.
0068    */
0069   Standard_EXPORT virtual VrmlData_ErrorStatus
0070                         Write   (const char * thePrefix) const Standard_OVERRIDE;
0071 
0072  protected:
0073   // ---------- PROTECTED METHODS ----------
0074 
0075 
0076 
0077  private:
0078   // ---------- PRIVATE FIELDS ----------
0079 
0080   NCollection_List<TCollection_AsciiString> myURL;
0081 
0082  public:
0083 // Declaration of CASCADE RTTI
0084 DEFINE_STANDARD_RTTI_INLINE(VrmlData_ImageTexture,VrmlData_Texture)
0085 };
0086 
0087 // Definition of HANDLE object using Standard_DefineHandle.hxx
0088 DEFINE_STANDARD_HANDLE (VrmlData_ImageTexture, VrmlData_Texture)
0089 
0090 
0091 #endif