00001 #ifndef __VECTORLAYER_H 00002 #define __VECTORLAYER_H 00003 00004 #include "vectordata.h" 00005 #include "selectionset.h" 00006 #include <qpainter.h> 00007 00014 class VectorLayer { 00015 protected: 00016 VectorData *mData; 00017 SelectionSet &mSelSet; 00018 bool mVisible; 00019 bool mEditable; 00020 DspAttr mLyrAttr; 00021 00022 public: 00023 VectorLayer( VectorData *data ); 00024 00025 virtual void draw( QPainter &p, Rect &imgclip, double scale ); 00026 void setVisible( bool state ) { 00027 mVisible = state; 00028 } 00029 bool isVisible( ) { 00030 return mVisible; 00031 } 00032 void setEditable( bool state ) { 00033 mEditable = state; 00034 } 00035 bool isEditable( ) { 00036 return mEditable; 00037 } 00038 VectorData* getData( ) { 00039 return mData; 00040 } 00041 }; 00042 00043 #endif 00044 00045 00046