Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Alignment.h

Go to the documentation of this file.
00001 
00040 #ifndef _AMIRE_COMMON_ALIGNMENT_H
00041 #define _AMIRE_COMMON_ALIGNMENT_H
00042 
00043 #include <amire/common/Defines.h>
00044 
00045 namespace amire {
00046   namespace common {
00050     typedef enum {
00051       ALIGN_X_AXIS_RIGHT_OUTSIDE = 0,
00052       ALIGN_X_AXIS_LEFT_OUTSIDE = 1,
00053       ALIGN_X_AXIS_LEFT_INSIDE = 2,
00054       ALIGN_X_AXIS_CENTER = 3,
00055       ALIGN_X_AXIS_RIGHT_INSIDE = 4
00056     } AlignmentXAxis;
00057 
00061     typedef enum {
00062       ALIGN_Y_AXIS_CENTER = 0,
00063       ALIGN_Y_AXIS_TOP_OUTSIDE = 1,
00064       ALIGN_Y_AXIS_TOP_INSIDE = 2,
00065       ALIGN_Y_AXIS_BOTTOM_INSIDE = 3,
00066       ALIGN_Y_AXIS_BOTTOM_OUTSIDE = 4
00067     } AlignmentYAxis;
00068 
00072     typedef enum {
00073       ALIGN_Z_AXIS_CENTER = 0,
00074       ALIGN_Z_AXIS_FRONT_OUTSIDE = 1,
00075       ALIGN_Z_AXIS_FRONT_INSIDE = 2,
00076       ALIGN_Z_AXIS_BACK_INSIDE = 3,
00077       ALIGN_Z_AXIS_BACK_OUTSIDE = 4
00078     } AlignmentZAxis;
00079 
00083     class AMIRE_EXPORT_API Alignment2D {
00084     public:
00088       AlignmentXAxis x;
00089 
00093       AlignmentYAxis y;
00094 
00098       inline Alignment2D() {
00099         x = ALIGN_X_AXIS_RIGHT_OUTSIDE;
00100         y = ALIGN_Y_AXIS_CENTER;
00101       }
00102 
00106       inline Alignment2D(Alignment2D &alignment) {
00107         x = alignment.x;
00108         y = alignment.y;
00109       }
00110 
00111       virtual ~Alignment2D() {
00112       }
00113     };
00114 
00118     class AMIRE_EXPORT_API Alignment3D : public virtual Alignment2D {
00119     public:
00123       AlignmentZAxis z;
00124 
00128       inline Alignment3D() : Alignment2D() {
00129         z = ALIGN_Z_AXIS_CENTER;
00130       }
00131 
00135       inline Alignment3D(Alignment3D &alignment) : Alignment2D(alignment) {
00136         z = alignment.z;
00137       }
00138 
00139       virtual ~Alignment3D() {
00140       }
00141     };
00142   }
00143 }
00144 
00145 #endif

Generated on Tue May 20 17:23:52 2003 for AMIRE-Framework by doxygen1.3