#include <IMG_TileDevice.h>

Public Types | |
| enum | { IMG_TILE_BOTTOM_FIRST = 0, IMG_TILE_RANDOM_ORDER = 1, IMG_TILE_TOP_FIRST = 2 } |
Public Member Functions | |
| IMG_TileDevice () | |
| virtual | ~IMG_TileDevice () |
| int | isRandomAccess () const |
| void | setVisibleRegion (int l, int r, int b, int t) |
| void | setRenderSize (int rwidth, int rheight) |
| virtual int | open (const IMG_TileOptions &info, int xres, int yres, int tile_device, int tile_height, fpreal aspect)=0 |
| virtual int | openMulti (IMG_TileOptionList &flist, int xres, int yres, int tile_width, int tile_height, fpreal aspect) |
| virtual void | setWhitePoint (fpreal white) |
| virtual void | checkpoint () |
| Allow the device to perform any "checkpointing" needed. | |
| void | setRenderSourceName (const char *name) |
| const char * | getRenderSourceName () const |
| int | getFileCount () const |
| IMG_DataType | getDataType (int idx=0) const |
| IMG_ColorModel | getColorModel (int idx=0) const |
| IMG_DataType * | getDataTypes () |
| IMG_ColorModel * | getColorModels () |
| virtual void | writeCustomTag (const char *tagname, int size, const char **values) |
| virtual int | writeTile (const void *data, unsigned x0, unsigned x1, unsigned y0, unsigned y1)=0 |
| virtual void | flush () |
| virtual int | close ()=0 |
| virtual int | unsafeFlush () |
| virtual int | getNextTile (int &xl, int &xr, int &yb, int &yt) |
| virtual bool | getClickedTile (int &tx, int &ty) const |
| virtual void | resetTileRequestor () |
| virtual int | getTileMode () const |
| virtual void | terminateOnConnectionLost (bool) |
| virtual bool | wantsHoudiniPort () const |
Static Public Member Functions | |
| static IMG_TileDevice * | newFileDevice () |
| static IMG_TileDevice * | newNullDevice () |
| static IMG_TileDevice * | newMPlayDevice (int from_middle=1) |
| static IMG_TileDevice * | imdisplayFileDevice (const char *filename) |
| static IMG_TileDevice * | newSharedMemDevice (const char *cmd="mdriver %d %d %d %d", int from_middle=1) |
| static IMG_TileDevice * | newSocketDevice (const char *host) |
| static void | setFileDevCreator (IMG_TileDevice *(*creator)()) |
| static void | setMPlayDevCreator (IMG_TileDevice *(*creator)(int)) |
Protected Member Functions | |
| virtual bool | getMouseClickPosition (int &x, int &y) const |
| void | setResolution (int xres, int yres, int tilewidth, int tileheight, int tile_order=IMG_TILE_BOTTOM_FIRST) |
| void | setModel (const IMG_TileOptions &finfo) |
| void | setModel (IMG_TileOptionList &flist) |
| void | setModel (const IMG_DataType *dt, const IMG_ColorModel *cm) |
| void | mapImageToTile (int ix, int iy, int &tx, int &ty) |
| void | getTileBounds (int tx, int ty, int &xl, int &xr, int &yb, int &yt) |
| bool | hasDataWindow (int full_xres, int full_yres) const |
| int | getDataX () const |
| int | getDataY () const |
| int | getDataWidth () const |
| int | getDataHeight () const |
| UT_InclusiveRect | getDataWindow () const |
Protected Attributes | |
| int | myFileCount |
| int | myXres |
| int | myYres |
| fpreal | myAspectRatio |
| int | myTileWidth |
| int | myTileHeight |
| int | myVL |
| int | myVR |
| int | myVB |
| int | myVT |
| int | myRWidth |
| int | myRHeight |
| unsigned | myRandomAccess |
Definition at line 38 of file IMG_TileDevice.h.
| anonymous enum |
Definition at line 43 of file IMG_TileDevice.h.
| IMG_TileDevice::IMG_TileDevice | ( | ) |
| virtual IMG_TileDevice::~IMG_TileDevice | ( | ) | [virtual] |
| virtual void IMG_TileDevice::checkpoint | ( | ) | [virtual] |
| virtual int IMG_TileDevice::close | ( | ) | [pure virtual] |
Implemented in IMG_TileFile, IMG_TileSocket, and TIL_TileMPlay.
| virtual void IMG_TileDevice::flush | ( | ) | [virtual] |
Reimplemented in TIL_TileMPlay.
| virtual bool IMG_TileDevice::getClickedTile | ( | int & | tx, | |
| int & | ty | |||
| ) | const [virtual] |
| IMG_ColorModel IMG_TileDevice::getColorModel | ( | int | idx = 0 |
) | const |
| IMG_ColorModel* IMG_TileDevice::getColorModels | ( | ) | [inline] |
Definition at line 105 of file IMG_TileDevice.h.
| int IMG_TileDevice::getDataHeight | ( | ) | const [inline, protected] |
Definition at line 181 of file IMG_TileDevice.h.
| IMG_DataType IMG_TileDevice::getDataType | ( | int | idx = 0 |
) | const |
| IMG_DataType* IMG_TileDevice::getDataTypes | ( | ) | [inline] |
Definition at line 104 of file IMG_TileDevice.h.
| int IMG_TileDevice::getDataWidth | ( | ) | const [inline, protected] |
Definition at line 180 of file IMG_TileDevice.h.
| UT_InclusiveRect IMG_TileDevice::getDataWindow | ( | ) | const [protected] |
| int IMG_TileDevice::getDataX | ( | ) | const [inline, protected] |
Definition at line 178 of file IMG_TileDevice.h.
| int IMG_TileDevice::getDataY | ( | ) | const [inline, protected] |
Definition at line 179 of file IMG_TileDevice.h.
| int IMG_TileDevice::getFileCount | ( | ) | const [inline] |
Definition at line 98 of file IMG_TileDevice.h.
| virtual bool IMG_TileDevice::getMouseClickPosition | ( | int & | x, | |
| int & | y | |||
| ) | const [inline, protected, virtual] |
| virtual int IMG_TileDevice::getNextTile | ( | int & | xl, | |
| int & | xr, | |||
| int & | yb, | |||
| int & | yt | |||
| ) | [virtual] |
| const char* IMG_TileDevice::getRenderSourceName | ( | ) | const [inline] |
Definition at line 93 of file IMG_TileDevice.h.
| void IMG_TileDevice::getTileBounds | ( | int | tx, | |
| int | ty, | |||
| int & | xl, | |||
| int & | xr, | |||
| int & | yb, | |||
| int & | yt | |||
| ) | [protected] |
| virtual int IMG_TileDevice::getTileMode | ( | ) | const [virtual] |
| bool IMG_TileDevice::hasDataWindow | ( | int | full_xres, | |
| int | full_yres | |||
| ) | const [protected] |
| static IMG_TileDevice* IMG_TileDevice::imdisplayFileDevice | ( | const char * | filename | ) | [static] |
| int IMG_TileDevice::isRandomAccess | ( | ) | const [inline] |
Definition at line 49 of file IMG_TileDevice.h.
| void IMG_TileDevice::mapImageToTile | ( | int | ix, | |
| int | iy, | |||
| int & | tx, | |||
| int & | ty | |||
| ) | [protected] |
| static IMG_TileDevice* IMG_TileDevice::newFileDevice | ( | ) | [static] |
| static IMG_TileDevice* IMG_TileDevice::newMPlayDevice | ( | int | from_middle = 1 |
) | [static] |
| static IMG_TileDevice* IMG_TileDevice::newNullDevice | ( | ) | [static] |
| static IMG_TileDevice* IMG_TileDevice::newSharedMemDevice | ( | const char * | cmd = "mdriver %d %d %d %d", |
|
| int | from_middle = 1 | |||
| ) | [static] |
| static IMG_TileDevice* IMG_TileDevice::newSocketDevice | ( | const char * | host | ) | [static] |
| virtual int IMG_TileDevice::open | ( | const IMG_TileOptions & | info, | |
| int | xres, | |||
| int | yres, | |||
| int | tile_device, | |||
| int | tile_height, | |||
| fpreal | aspect | |||
| ) | [pure virtual] |
Implemented in IMG_TileFile, IMG_TileSocket, and TIL_TileMPlay.
| virtual int IMG_TileDevice::openMulti | ( | IMG_TileOptionList & | flist, | |
| int | xres, | |||
| int | yres, | |||
| int | tile_width, | |||
| int | tile_height, | |||
| fpreal | aspect | |||
| ) | [virtual] |
Reimplemented in IMG_TileFile, and TIL_TileMPlay.
| virtual void IMG_TileDevice::resetTileRequestor | ( | ) | [virtual] |
| static void IMG_TileDevice::setFileDevCreator | ( | IMG_TileDevice *(*)() | creator | ) | [static] |
| void IMG_TileDevice::setModel | ( | const IMG_DataType * | dt, | |
| const IMG_ColorModel * | cm | |||
| ) | [protected] |
| void IMG_TileDevice::setModel | ( | IMG_TileOptionList & | flist | ) | [protected] |
| void IMG_TileDevice::setModel | ( | const IMG_TileOptions & | finfo | ) | [protected] |
| static void IMG_TileDevice::setMPlayDevCreator | ( | IMG_TileDevice *(*)(int) | creator | ) | [static] |
| void IMG_TileDevice::setRenderSize | ( | int | rwidth, | |
| int | rheight | |||
| ) |
| void IMG_TileDevice::setRenderSourceName | ( | const char * | name | ) | [inline] |
Definition at line 91 of file IMG_TileDevice.h.
| void IMG_TileDevice::setResolution | ( | int | xres, | |
| int | yres, | |||
| int | tilewidth, | |||
| int | tileheight, | |||
| int | tile_order = IMG_TILE_BOTTOM_FIRST | |||
| ) | [protected] |
| void IMG_TileDevice::setVisibleRegion | ( | int | l, | |
| int | r, | |||
| int | b, | |||
| int | t | |||
| ) |
| virtual void IMG_TileDevice::setWhitePoint | ( | fpreal | white | ) | [virtual] |
Reimplemented in TIL_TileMPlay.
| virtual void IMG_TileDevice::terminateOnConnectionLost | ( | bool | ) | [inline, virtual] |
| virtual int IMG_TileDevice::unsafeFlush | ( | ) | [virtual] |
| virtual bool IMG_TileDevice::wantsHoudiniPort | ( | ) | const [inline, virtual] |
| virtual void IMG_TileDevice::writeCustomTag | ( | const char * | tagname, | |
| int | size, | |||
| const char ** | values | |||
| ) | [virtual] |
Reimplemented in TIL_TileMPlay.
| virtual int IMG_TileDevice::writeTile | ( | const void * | data, | |
| unsigned | x0, | |||
| unsigned | x1, | |||
| unsigned | y0, | |||
| unsigned | y1 | |||
| ) | [pure virtual] |
Implemented in IMG_TileFile, IMG_TileSocket, and TIL_TileMPlay.
fpreal IMG_TileDevice::myAspectRatio [protected] |
Definition at line 187 of file IMG_TileDevice.h.
int IMG_TileDevice::myFileCount [protected] |
Definition at line 185 of file IMG_TileDevice.h.
unsigned IMG_TileDevice::myRandomAccess [protected] |
Definition at line 191 of file IMG_TileDevice.h.
int IMG_TileDevice::myRHeight [protected] |
Definition at line 190 of file IMG_TileDevice.h.
int IMG_TileDevice::myRWidth [protected] |
Definition at line 190 of file IMG_TileDevice.h.
int IMG_TileDevice::myTileHeight [protected] |
Definition at line 188 of file IMG_TileDevice.h.
int IMG_TileDevice::myTileWidth [protected] |
Definition at line 188 of file IMG_TileDevice.h.
int IMG_TileDevice::myVB [protected] |
Definition at line 189 of file IMG_TileDevice.h.
int IMG_TileDevice::myVL [protected] |
Definition at line 189 of file IMG_TileDevice.h.
int IMG_TileDevice::myVR [protected] |
Definition at line 189 of file IMG_TileDevice.h.
int IMG_TileDevice::myVT [protected] |
Definition at line 189 of file IMG_TileDevice.h.
int IMG_TileDevice::myXres [protected] |
Definition at line 186 of file IMG_TileDevice.h.
int IMG_TileDevice::myYres [protected] |
Definition at line 186 of file IMG_TileDevice.h.
1.5.9