#ifndef view_h #define view_h #include #include #include #include #include #include #include #include #include #include "sharedraw.h" #include "tool.h" #include #include #include #include #include #include #include #include class Disp : public Interactor { public: Disp(); ~Disp(); }; class View : public GraphicBlock { public: View(Sharedraw*, Picture*); virtual void Handle(Event&); int ReadChannel(int socket); void Add(Graphic*); void Clear(); void Move(Graphic*, float, float); void Rotate(Graphic*, float); Picture* GetPicture() { return (Picture*) GetGraphic(); } void InitRubberband(Rubberband*); class IOHandler* ipcCB; u_short ByteSwap(u_short us); void Tick(long, long); int socketFromUA, socketToUA; char toBuf[1024]; char fromBuf[1024]; struct sockaddr_un toSocket; struct sockaddr_un from; int n, i; char hostname[64]; int c; int length; int fromlen; Sensor* sensor; void SaveRaster(); private: Record r; Painter* remotePainter; Painter* bgoutput; void Manipulate(Event&); Sharedraw* sharedraw; Picture* pic; Bitmap* rcBitmap; Coord rcX, rcY; Raster* raster; void CreateRemoteCursor(); }; #endif