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 ()
40 inline VrmlData_TextureTransform (const VrmlData_Scene& theScene,
42 : VrmlData_Node (theScene, theName),
49 inline const gp_XY& Center () const { return myCenter; }
54 inline Standard_Real Rotation () const { return myRotation; }
59 inline const gp_XY& Scale () const { return myScale; }
62 * Query the Translation
64 inline const gp_XY& Translation () const { return myTranslation; }
69 inline void SetCenter (const gp_XY& V) { myCenter = V; }
74 inline void SetRotation (const Standard_Real V)
80 inline void SetScale (const gp_XY& V) { myScale = V; }
85 inline void SetTranslation (const gp_XY& V) { myTranslation = V; }
88 // ---------- PROTECTED METHODS ----------
93 // ---------- PRIVATE FIELDS ----------
96 Standard_Real myRotation;
101 // Declaration of CASCADE RTTI
102 DEFINE_STANDARD_RTTI_INLINE(VrmlData_TextureTransform,VrmlData_Node)
105 // Definition of HANDLE object using Standard_DefineHandle.hxx
106 DEFINE_STANDARD_HANDLE (VrmlData_TextureTransform, VrmlData_Node)