OpendTect  6.6
Public Member Functions | Protected Attributes | List of all members
uiRGBArray Class Reference
Inheritance diagram for uiRGBArray:
[legend]

Public Member Functions

 uiRGBArray (bool withalpha)
 
 uiRGBArray (const char *filename)
 
 uiRGBArray (const OD::RGBImage &)
 
virtual ~uiRGBArray ()
 
void clear (const Color &)
 
void enableAlpha (bool yn)
 
virtual Color get (int, int) const
 
virtual unsigned char * getData ()
 
virtual const unsigned char * getData () const
 
int getHeight () const
 
virtual int getSize (bool xdir) const
 
int getWidth () const
 
virtual char nrComponents () const
 
QImage & qImage ()
 
const QImage & qImage () const
 
bool reSize (int, int)
 inter/extrapolates More...
 
bool save (const char *fnm, const char *fmt=0, int quality=-1) const
 
virtual bool set (int, int, const Color &)
 
virtual bool setSize (int, int)
 destroys whatever is there More...
 
- Public Member Functions inherited from OD::RGBImage
virtual ~RGBImage ()
 
virtual bool blendWith (const RGBImage &sourceimage, bool blendtransparency=false, unsigned char blendtransparencyval=0, bool blendequaltransparency=false, bool with_opacity=false)
 
virtual int bufferSize () const
 
virtual void fill (unsigned char *) const
 
virtual bool hasAlpha () const
 
virtual bool put (const unsigned char *, bool xdir_slowest=true, bool with_opacity=false)
 
virtual bool putFromBitmap (const unsigned char *bitmap, const unsigned char *mask=0)
 

Protected Attributes

QImage * qimg_
 
bool withalpha_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiRGBArray() [1/3]

uiRGBArray::uiRGBArray ( bool  withalpha)

◆ uiRGBArray() [2/3]

uiRGBArray::uiRGBArray ( const OD::RGBImage )

◆ uiRGBArray() [3/3]

uiRGBArray::uiRGBArray ( const char *  filename)

◆ ~uiRGBArray()

virtual uiRGBArray::~uiRGBArray ( )
virtual

Member Function Documentation

◆ clear()

void uiRGBArray::clear ( const Color )
virtual

Implements OD::RGBImage.

◆ enableAlpha()

void uiRGBArray::enableAlpha ( bool  yn)
inline

◆ get()

virtual Color uiRGBArray::get ( int  ,
int   
) const
virtual

Implements OD::RGBImage.

◆ getData() [1/2]

virtual unsigned char* uiRGBArray::getData ( )
virtual

Reimplemented from OD::RGBImage.

◆ getData() [2/2]

virtual const unsigned char* uiRGBArray::getData ( ) const
virtual

Reimplemented from OD::RGBImage.

◆ getHeight()

int uiRGBArray::getHeight ( ) const
inline

◆ getSize()

virtual int uiRGBArray::getSize ( bool  xdir) const
virtual

Implements OD::RGBImage.

◆ getWidth()

int uiRGBArray::getWidth ( ) const
inline

◆ nrComponents()

virtual char uiRGBArray::nrComponents ( ) const
inlinevirtual
Return values
1grayscale
2grayscale+alpha
3rgb
4rgb+alpha

Implements OD::RGBImage.

◆ qImage() [1/2]

QImage& uiRGBArray::qImage ( )
inline

◆ qImage() [2/2]

const QImage& uiRGBArray::qImage ( ) const
inline

◆ reSize()

bool uiRGBArray::reSize ( int  ,
int   
)

inter/extrapolates

◆ save()

bool uiRGBArray::save ( const char *  fnm,
const char *  fmt = 0,
int  quality = -1 
) const

◆ set()

virtual bool uiRGBArray::set ( int  ,
int  ,
const Color  
)
virtual

Implements OD::RGBImage.

◆ setSize()

virtual bool uiRGBArray::setSize ( int  ,
int   
)
virtual

destroys whatever is there

Implements OD::RGBImage.

Member Data Documentation

◆ qimg_

QImage* uiRGBArray::qimg_
protected

◆ withalpha_

bool uiRGBArray::withalpha_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022