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_TextureTransform_HeaderFile
0017 #define VrmlData_TextureTransform_HeaderFile
0018 
0019 #include <VrmlData_Node.hxx>
0020 #include <gp_XY.hxx>
0021 
0022 ///  Implementation of the TextureTransform node
0023 
0024 class VrmlData_TextureTransform : public VrmlData_Node
0025 {
0026  public:
0027   // ---------- PUBLIC METHODS ----------
0028 
0029   /**
0030    * Empty constructor
0031    */
0032   inline VrmlData_TextureTransform ()
0033   : myRotation(0.0)
0034   {
0035   }
0036 
0037   /**
0038    * Constructor
0039    */
0040   inline VrmlData_TextureTransform (const VrmlData_Scene& theScene,
0041                                     const char            * theName)
0042     : VrmlData_Node (theScene, theName),
0043       myRotation(0.)
0044   {}
0045 
0046   /**
0047    * Query the Center
0048    */
0049   inline const gp_XY&   Center          () const { return myCenter; }
0050   
0051   /**
0052    * Query the Rotation
0053    */
0054   inline Standard_Real  Rotation        () const { return myRotation; }
0055   
0056   /**
0057    * Query the Scale
0058    */
0059   inline const gp_XY&   Scale           () const { return myScale; }
0060 
0061   /**
0062    * Query the Translation
0063    */
0064   inline const gp_XY&   Translation     () const { return myTranslation; }
0065 
0066   /**
0067    * Set the Center
0068    */
0069   inline void           SetCenter       (const gp_XY& V) { myCenter = V; }
0070 
0071   /**
0072    * Set the Rotation
0073    */
0074   inline void           SetRotation     (const Standard_Real V)
0075   { myRotation = V; }
0076 
0077   /**
0078    * Set the Scale
0079    */
0080   inline void           SetScale        (const gp_XY& V) { myScale = V; }
0081 
0082   /**
0083    * Set the Translation
0084    */
0085   inline void           SetTranslation  (const gp_XY& V) { myTranslation = V; }
0086 
0087  protected:
0088   // ---------- PROTECTED METHODS ----------
0089 
0090 
0091 
0092  private:
0093   // ---------- PRIVATE FIELDS ----------
0094 
0095   gp_XY         myCenter;
0096   Standard_Real myRotation;
0097   gp_XY         myScale;
0098   gp_XY         myTranslation;
0099 
0100  public:
0101 // Declaration of CASCADE RTTI
0102 DEFINE_STANDARD_RTTI_INLINE(VrmlData_TextureTransform,VrmlData_Node)
0103 };
0104 
0105 // Definition of HANDLE object using Standard_DefineHandle.hxx
0106 DEFINE_STANDARD_HANDLE (VrmlData_TextureTransform, VrmlData_Node)
0107 
0108 
0109 #endif