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_Texture_HeaderFile
0017 #define VrmlData_Texture_HeaderFile
0018 
0019 #include <VrmlData_Node.hxx>
0020 
0021 /**
0022  *  Implementation of the Texture node
0023  */
0024 class VrmlData_Texture : public VrmlData_Node
0025 {
0026  public:
0027   // ---------- PUBLIC METHODS ----------
0028 
0029   /**
0030    * Empty constructor
0031    */
0032   inline VrmlData_Texture ()
0033     : myRepeatS (Standard_False),
0034       myRepeatT (Standard_False)
0035   {}
0036 
0037   /**
0038    * Constructor
0039    */
0040   inline VrmlData_Texture (const VrmlData_Scene&  theScene,
0041                            const char             * theName,
0042                            const Standard_Boolean theRepeatS = Standard_False,
0043                            const Standard_Boolean theRepeatT = Standard_False)
0044     : VrmlData_Node     (theScene, theName),
0045       myRepeatS         (theRepeatS),
0046       myRepeatT         (theRepeatT)
0047   {}
0048 
0049   /**
0050    * Query the RepeatS value
0051    */
0052   inline Standard_Boolean
0053                 RepeatS         () const { return myRepeatS; }
0054 
0055   /**
0056    * Query the RepeatT value
0057    */
0058   inline Standard_Boolean
0059                 RepeatT         () const { return myRepeatT; }
0060 
0061   /**
0062    * Set the RepeatS flag
0063    */
0064   inline void   SetRepeatS      (const Standard_Boolean theFlag)
0065   { myRepeatS = theFlag; }
0066 
0067   /**
0068    * Set the RepeatT flag
0069    */
0070   inline void   SetRepeatT      (const Standard_Boolean theFlag)
0071   { myRepeatT = theFlag; }
0072 
0073  protected:
0074   // ---------- PROTECTED METHODS ----------
0075 
0076 
0077 
0078  private:
0079   // ---------- PRIVATE FIELDS ----------
0080 
0081   Standard_Boolean      myRepeatS;
0082   Standard_Boolean      myRepeatT;
0083 
0084  public:
0085 // Declaration of CASCADE RTTI
0086 DEFINE_STANDARD_RTTI_INLINE(VrmlData_Texture,VrmlData_Node)
0087 };
0088 
0089 // Definition of HANDLE object using Standard_DefineHandle.hxx
0090 DEFINE_STANDARD_HANDLE (VrmlData_Texture, VrmlData_Node)
0091 
0092 
0093 #endif