All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: IMG_TileSocket (C++)
7  *
8  * COMMENTS: This class writes to a shared memory buffer for mantra
9  * It spawns a reader process which reads the tiles.
10  */
12 #ifndef __IMG_TileSocket_H__
13 #define __IMG_TileSocket_H__
15 #include "IMG_API.h"
16 #include <UT/UT_SysClone.h>
17 #include "IMG_TileDevice.h"
18 #include "IMG_TileInetBuf.h"
20 class UT_BitArray;
21 class UT_Signal;
22 class IMG_TileInetBuf;
23 class IMG_TileInterface;
26 public:
27  // The command is passed the shared memory key, the size, then the x/y res
28  IMG_TileSocket( const char *host );
29  ~IMG_TileSocket() override;
31  const char *className() const override;
32  void getDescription(UT_WorkBuffer &wbuf) const override;
33  int open(const IMG_TileOptions &finfo,
34  int xres, int yres, int twidth, int theight,
35  fpreal aspect) override;
37  virtual IMG_DataType getDataType() const;
38  int writeTile(const void *data,
39  unsigned x0, unsigned x1,
40  unsigned y0, unsigned y1) override;
41  int close(bool keep_alive=false) override;
43 private:
44  void clean();
46  char *myHost;
47  IMG_TileInetBuf *mySock;
48 };
50 #endif
virtual void getDescription(UT_WorkBuffer &wbuf) const
IMG_DataType getDataType(int idx=0) const
GLuint GLfloat GLfloat GLfloat x1
Definition: glew.h:12681
#define IMG_API
Definition: IMG_API.h:10
virtual const char * className() const =0
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
virtual int open(const IMG_TileOptions &info, int xres, int yres, int tile_device, int tile_height, fpreal aspect)=0
Open the device.
Definition: IMG_FileTypes.h:17
virtual int close(bool keep_alive=false)=0
GLuint GLfloat GLfloat y0
Definition: glew.h:12681
GLuint GLfloat x0
Definition: glew.h:12681
virtual int writeTile(const void *data, unsigned x0, unsigned x1, unsigned y0, unsigned y1)=0
fpreal64 fpreal
Definition: SYS_Types.h:277
GLuint GLfloat GLfloat GLfloat GLfloat y1
Definition: glew.h:12681