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

Txq2dSeg.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------
00002 //
00003 // File:    Txq2dSeg.h
00004 //
00005 // Purpose:  Base class for segmented objects
00006 //
00007 // Version: $Id: 
00008 //
00009 // Author: Kelly G. Luetkemeyer
00010 //
00011 //  modified from the TxSeg.java class:
00012 // Project: Tech-X Foundation Classes
00013 //          David A. Alexander, Svetlana G. Shasharina, John R. Cary
00014 //          Copyright (C) 1998-2000 Tech-X Corporation. All Rights Reserved.
00015 //---------------------------------------------------------------------------
00016 
00017 #ifndef TXQ2D_SEG_H
00018 #define TXQ2D_SEG_H
00019 
00020 // Tx includes
00021 #include "Txq2dDrawable.h"
00022 #include "TxqDoublePoint.h"
00023 
00042 class Txq2dSeg: public Txq2dDrawable 
00043 {
00044 
00045 public:
00049   Txq2dSeg();
00050 
00054   virtual ~Txq2dSeg(){}
00055 
00059   void paint(QPainter *p) {}
00060 
00066   void setStartPoint(TxqDoublePoint p);
00067 
00072   TxqDoublePoint getStartPoint(); 
00073 
00079   void setEndPoint(TxqDoublePoint p); 
00080 
00085   TxqDoublePoint getEndPoint();
00086 
00091   void setLocation(int x, int y); 
00092 
00093   
00094 protected:
00095 
00099   TxqDoublePoint startPoint;
00100  
00104   TxqDoublePoint endPoint;
00105 
00106 };
00107 #endif
Copyright Tech-X Corporation, all rights reserved.