00001 #ifndef __SIMPLEPOINTDATA_H
00002 #define __SIMPLEPOINTDATA_H
00003
00004 #include "vectordata.h"
00005
00012 class SimplePointData : public VectorData {
00013 public:
00014 SimplePointData( ) : VectorData( POINT, NULL ) {
00015 }
00016 virtual ~SimplePointData( ) {
00017 }
00018
00019 virtual void delLineNode( int, int ) {
00020 }
00021 virtual void delLine( int ) {
00022 }
00023 virtual void addLineNode( Node &, int, int =-1 ) {
00024 }
00025 virtual void joinLine( int, int, int, int ) {
00026 }
00027 virtual void breakLine( int, int ) {
00028 }
00029 virtual void moveLineNode( int, int, Node & ) {
00030 }
00031 virtual void addLine( Node & ) {
00032 }
00033 virtual void insertLineNode( Node &, int, int =-1 ) {
00034 }
00035
00036 virtual bool fromXML( QDomElement &elem ) =0;
00037 virtual bool toXML( QDomDocument &doc,
00038 QDomElement &elem,
00039 std::string id="" ) =0;
00040
00041 virtual void insertNode(Node &node, int inode) =0;
00042 virtual void delNode(int inode) =0;
00043 virtual void moveNode( Node &node, int inode=-1 ) =0;
00044 virtual void addNode( Node &node, int inode=-1 ) =0;
00045 virtual void push() =0;
00046 virtual void pushSelection( ) =0;
00047 virtual void pop() =0;
00048 virtual void redo( ) =0;
00049 };
00050
00051 #endif
00052
00053
00054