COVISE Core
Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
covise::coDoPixelImage Class Reference

#include <coDoPixelImage.h>

Inheritance diagram for covise::coDoPixelImage:
Inheritance graph
[legend]
Collaboration diagram for covise::coDoPixelImage:
Collaboration graph
[legend]

Public Member Functions

 coDoPixelImage (const coObjInfo &info)
 
 coDoPixelImage (const coObjInfo &info, coShmArray *arr)
 
 coDoPixelImage (const coObjInfo &info, int width, int height, short psize, unsigned form, const char **buffer)
 
 coDoPixelImage (const coObjInfo &info, int width, int height, short psize, unsigned form, const char *buffer)
 
 coDoPixelImage (const coObjInfo &info, int width, int height, short psize, unsigned form)
 
int getWidth () const
 
int getHeight () const
 
int getPixelsize () const
 
unsigned getFormat () const
 
char * getPixels () const
 
char & operator() (int x, int y)
 
const char & operator() (int x, int y) const
 
char & operator[] (int i)
 
const char & operator[] (int i) const
 
- Public Member Functions inherited from covise::coDistributedObject
void getShmLocation (int &shmSegNo, shmSizeType &offset) const
 Get my location in shared memory. More...
 
void addAttribute (const char *, const char *)
 Attach an attribute to an object. More...
 
void addAttributes (int, const char *const *, const char *const *)
 Attach multiple attributes to an object. More...
 
const char * getAttribute (const char *) const
 get one attribute More...
 
int getNumAttributes () const
 get number of attributes More...
 
int getAllAttributes (const char ***name, const char ***content) const
 get all attributes More...
 
void copyAllAttributes (const coDistributedObject *src)
 copy all attributes from src to this object More...
 
char * getName () const
 get the object's name More...
 
const char * getType () const
 get the object's type More...
 
int isType (const char *reqType) const
 check whether this is a certain type More...
 
bool objectOk () const
 check whether object was created or received ok More...
 
 coDistributedObject ()
 
 coDistributedObject (const coObjInfo &info)
 
 coDistributedObject (const coObjInfo &info, const char *t)
 
 coDistributedObject (const coObjInfo &info, int shmSeg, shmSizeType offs, char *t)
 
virtual ~coDistributedObject ()
 
coDistributedObjectclone (const coObjInfo &newinfo) const
 
void copyObjInfo (coObjInfo *info) const
 
const coDistributedObjectcreateUnknown () const
 
int * store_header (int, int, int, int *, data_type *, long *, covise::DataHandle &idata)
 
int restore_header (int **, int, int *, int *, shmSizeType *)
 
void init_header (int *, int *, int, data_type **, long **)
 
int update_shared_dl (int count, covise_data_list *dl)
 
int store_shared_dl (int count, covise_data_list *dl)
 
int restore_shared_dl (int count, covise_data_list *dl)
 
void setType (const char *, const char *)
 
int getObjectInfo (coDoInfo **) const
 
int get_type_no () const
 
int access (access_type)
 
int destroy ()
 
char * object_on_hosts () const
 
int incRefCount () const
 
int decRefCount () const
 
int getRefCount () const
 
void print () const
 
void getObjectFromShm ()
 Common function for all read-Constructors: More...
 
bool checkObject () const
 Check object: return true if valid, false if not. More...
 

Protected Member Functions

int rebuildFromShm ()
 
int getObjInfo (int, coDoInfo **) const
 
coDoPixelImagecloneObject (const coObjInfo &newinfo) const
 
- Protected Member Functions inherited from covise::coDistributedObject
int getShmArray () const
 
int createFromShm (coShmArray *arr)
 
virtual int rebuildFromShm ()=0
 
virtual int getObjInfo (int, coDoInfo **) const
 
bool checkObj (int shmSegNo, shmSizeType shmOffs, bool &printed) const
 Check object in shared memory. More...
 
virtual coDistributedObjectcloneObject (const coObjInfo &newinfo) const =0
 

Static Private Member Functions

static coDistributedObjectvirtualCtor (coShmArray *arr)
 

Private Attributes

coShortShm pixelsize
 
coIntShm width
 
coIntShm height
 
coIntShm format
 
coCharShmArray pixels
 

Friends

class coDoInitializer
 

Additional Inherited Members

- Static Public Member Functions inherited from covise::coDistributedObject
static const coDistributedObjectcreateFromShm (const coObjInfo &newinfo)
 
static const coDistributedObjectcreateUnknown (coShmArray *)
 
static const coDistributedObjectcreateUnknown (int seg, shmSizeType offs)
 
static int calcType (const char *)
 
static char * calcTypeString (int)
 
static int set_vconstr (const char *, coDistributedObject *(*)(coShmArray *))
 
- Protected Attributes inherited from covise::coDistributedObject
coIntShm version
 
coIntShm refcount
 
coShmArrayshmarr
 
coStringShmArrayattributes = nullptr
 
coDoHeaderheader = nullptr
 
char type_name [7]
 
int type_no = 0
 
char * name = nullptr
 
int loc_version = -1
 
bool new_ok
 
int size = 0
 
char * attribs = nullptr
 

Constructor & Destructor Documentation

◆ coDoPixelImage() [1/5]

coDoPixelImage::coDoPixelImage ( const coObjInfo info)

◆ coDoPixelImage() [2/5]

coDoPixelImage::coDoPixelImage ( const coObjInfo info,
coShmArray arr 
)

◆ coDoPixelImage() [3/5]

coDoPixelImage::coDoPixelImage ( const coObjInfo info,
int  width,
int  height,
short  psize,
unsigned  form,
const char **  buffer 
)

◆ coDoPixelImage() [4/5]

coDoPixelImage::coDoPixelImage ( const coObjInfo info,
int  width,
int  height,
short  psize,
unsigned  form,
const char *  buffer 
)

◆ coDoPixelImage() [5/5]

coDoPixelImage::coDoPixelImage ( const coObjInfo info,
int  width,
int  height,
short  psize,
unsigned  form 
)

Member Function Documentation

◆ cloneObject()

coDoPixelImage * coDoPixelImage::cloneObject ( const coObjInfo newinfo) const
protectedvirtual

◆ getFormat()

unsigned coDoPixelImage::getFormat ( ) const

◆ getHeight()

int coDoPixelImage::getHeight ( ) const

◆ getObjInfo()

int coDoPixelImage::getObjInfo ( int  no,
coDoInfo **  il 
) const
protectedvirtual

Reimplemented from covise::coDistributedObject.

◆ getPixels()

char * coDoPixelImage::getPixels ( ) const

◆ getPixelsize()

int coDoPixelImage::getPixelsize ( ) const

◆ getWidth()

int coDoPixelImage::getWidth ( ) const

◆ operator()() [1/2]

char & coDoPixelImage::operator() ( int  x,
int  y 
)

◆ operator()() [2/2]

const char & coDoPixelImage::operator() ( int  x,
int  y 
) const

◆ operator[]() [1/2]

char & coDoPixelImage::operator[] ( int  i)

◆ operator[]() [2/2]

const char & coDoPixelImage::operator[] ( int  i) const

◆ rebuildFromShm()

int coDoPixelImage::rebuildFromShm ( )
protectedvirtual

◆ virtualCtor()

coDistributedObject * coDoPixelImage::virtualCtor ( coShmArray arr)
staticprivate

Friends And Related Function Documentation

◆ coDoInitializer

friend class coDoInitializer
friend

Member Data Documentation

◆ format

coIntShm covise::coDoPixelImage::format
private

◆ height

coIntShm covise::coDoPixelImage::height
private

◆ pixels

coCharShmArray covise::coDoPixelImage::pixels
private

◆ pixelsize

coShortShm covise::coDoPixelImage::pixelsize
private

◆ width

coIntShm covise::coDoPixelImage::width
private

The documentation for this class was generated from the following files: