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_TextureTransform_HeaderFile
17 #define VrmlData_TextureTransform_HeaderFile
19 #include <VrmlData_Node.hxx>
22 /// Implementation of the TextureTransform node
24 class VrmlData_TextureTransform : public VrmlData_Node
27 // ---------- PUBLIC METHODS ----------
32 inline VrmlData_TextureTransform () {}
37 inline VrmlData_TextureTransform (const VrmlData_Scene& theScene,
39 : VrmlData_Node (theScene, theName),
46 inline const gp_XY& Center () const { return myCenter; }
51 inline Standard_Real Rotation () const { return myRotation; }
56 inline const gp_XY& Scale () const { return myScale; }
59 * Query the Translation
61 inline const gp_XY& Translation () const { return myTranslation; }
66 inline void SetCenter (const gp_XY& V) { myCenter = V; }
71 inline void SetRotation (const Standard_Real V)
77 inline void SetScale (const gp_XY& V) { myScale = V; }
82 inline void SetTranslation (const gp_XY& V) { myTranslation = V; }
85 // ---------- PROTECTED METHODS ----------
90 // ---------- PRIVATE FIELDS ----------
93 Standard_Real myRotation;
98 // Declaration of CASCADE RTTI
99 DEFINE_STANDARD_RTTI (VrmlData_TextureTransform)
102 // Definition of HANDLE object using Standard_DefineHandle.hxx
103 DEFINE_STANDARD_HANDLE (VrmlData_TextureTransform, VrmlData_Node)