1 // Created on: 2006-05-25
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2006-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef VrmlData_Texture_HeaderFile
17 #define VrmlData_Texture_HeaderFile
19 #include <VrmlData_Node.hxx>
22 * Implementation of the Texture node
24 class VrmlData_Texture : public VrmlData_Node
27 // ---------- PUBLIC METHODS ----------
32 inline VrmlData_Texture ()
33 : myRepeatS (Standard_False),
34 myRepeatT (Standard_False)
40 inline VrmlData_Texture (const VrmlData_Scene& theScene,
42 const Standard_Boolean theRepeatS = Standard_False,
43 const Standard_Boolean theRepeatT = Standard_False)
44 : VrmlData_Node (theScene, theName),
45 myRepeatS (theRepeatS),
46 myRepeatT (theRepeatT)
50 * Query the RepeatS value
52 inline Standard_Boolean
53 RepeatS () const { return myRepeatS; }
56 * Query the RepeatT value
58 inline Standard_Boolean
59 RepeatT () const { return myRepeatT; }
62 * Set the RepeatS flag
64 inline void SetRepeatS (const Standard_Boolean theFlag)
65 { myRepeatS = theFlag; }
68 * Set the RepeatT flag
70 inline void SetRepeatT (const Standard_Boolean theFlag)
71 { myRepeatT = theFlag; }
74 // ---------- PROTECTED METHODS ----------
79 // ---------- PRIVATE FIELDS ----------
81 Standard_Boolean myRepeatS;
82 Standard_Boolean myRepeatT;
85 // Declaration of CASCADE RTTI
86 DEFINE_STANDARD_RTTI_INLINE(VrmlData_Texture,VrmlData_Node)
89 // Definition of HANDLE object using Standard_DefineHandle.hxx
90 DEFINE_STANDARD_HANDLE (VrmlData_Texture, VrmlData_Node)