VR-Forces 4.0.4 Class Documentation
include/gdb/texCoord.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: texCoord.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef texCoord_H_
00010 #define texCoord_H_
00011 
00012 #include "gdb/gdbDefines.h"
00013 #include <vlutil/vlMachineTypes.h>
00014 
00015 // class DtTextureCoords:
00016 //
00017 // Instances of DtTextureCoords are
00018 
00019 class DT_DLL_gdb DtTextureCoords
00020 {
00021 public:
00022 
00023    // default constructor
00024    DtTextureCoords();
00025 
00026    // additional constructor
00027    DtTextureCoords(DtFloat32 u, DtFloat32 v);
00028 
00029 
00030    // destructor
00031    virtual ~DtTextureCoords();
00032 
00033    // accessors
00034    virtual DtFloat32 u() const;
00035    virtual DtFloat32 v() const;
00036 
00037    virtual void   set(DtFloat32 newu, DtFloat32 newv);
00038    // If a copy constructor is implemented, the assignment operator should
00039    // also be implemented.  Should generally implement both of them anyway to
00040    // avoid memory problems due to inappropriate compiler provided defaults.
00041    // Access varies so need to put proper access keyword above these 
00042    // declarations.
00043 
00044 protected:
00045 
00046    // copy constructor
00047    DtTextureCoords(const DtTextureCoords& orig);
00048 
00049    // assignment operator
00050    DtTextureCoords& operator=(const DtTextureCoords& orig);
00051 
00052 protected:
00053 
00054     DtFloat32  myU;
00055     DtFloat32  myV;
00056 };
00057 
00058 inline DtFloat32 DtTextureCoords::u() const
00059 {
00060    return myU;
00061 }
00062 
00063 inline DtFloat32 DtTextureCoords::v() const
00064 {
00065    return myV;
00066 }
00067 
00068 
00069 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)