OpendTect  7.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | List of all members
uiPixmap Class Reference

Off-screen pixel-based paint device. More...

Inheritance diagram for uiPixmap:
[legend]

Public Member Functions

 uiPixmap ()
 
 uiPixmap (const char *icon_identifier)
 
 uiPixmap (const char *xpm[])
 
 uiPixmap (const PixmapDesc &)
 
 uiPixmap (const QPixmap &)
 
 uiPixmap (const uiPixmap &)
 
 uiPixmap (const uiRGBArray &)
 
 uiPixmap (int w, int h)
 
virtual ~uiPixmap ()
 
void convertFromRGBArray (const uiRGBArray &)
 
void fill (const ColTab::Sequence &, bool hor)
 
void fill (const OD::Color &)
 
void fillDesc (PixmapDesc &) const
 
void fillGradient (const OD::Color &col1, const OD::Color &col2, bool hor)
 
int height () const
 
bool isEmpty () const
 
void params (BufferStringSet &) const
 
QPixmap * qpixmap ()
 
const QPixmap * qpixmap () const
 
bool save (const char *fnm, const char *fmt=0, int quality=-1) const
 
void scale (int w, int h)
 
void scaleToHeight (int h)
 
void scaleToWidth (int w)
 
const char * source () const
 
int width () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Static Public Member Functions

static uiPixmapcreateFromParams (const BufferStringSet &params)
 
static mDeprecatedDef bool isPresent (const char *)
 
static const char * sKeyColorTabSrc ()
 
static const char * sKeyCreatedSrc ()
 
static const char * sKeyGradientSrc ()
 
static const char * sKeyRgbSrc ()
 
static const char * sKeyXpmSrc ()
 

Static Public Attributes

static const int sPmParamColIdx = 3
 
static const int sPmParamHeightIdx = 2
 
static const int sPmParamSrcIdx = 0
 
static const int sPmParamWidthIdx = 1
 

Protected Attributes

QPixmap * qpixmap_
 
BufferString srcname_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Private Member Functions

void initFromIcon (const char *icon_identifier)
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Detailed Description

Off-screen pixel-based paint device.

Icons pixmaps can be created from the identifier, see odiconfile.h. It is, basically, the file name without extension.

<>

Constructor & Destructor Documentation

◆ uiPixmap() [1/8]

uiPixmap::uiPixmap ( )

◆ uiPixmap() [2/8]

uiPixmap::uiPixmap ( int  w,
int  h 
)

◆ uiPixmap() [3/8]

uiPixmap::uiPixmap ( const char *  icon_identifier)

◆ uiPixmap() [4/8]

uiPixmap::uiPixmap ( const uiRGBArray )

◆ uiPixmap() [5/8]

uiPixmap::uiPixmap ( const char *  xpm[])

◆ uiPixmap() [6/8]

uiPixmap::uiPixmap ( const QPixmap &  )

◆ uiPixmap() [7/8]

uiPixmap::uiPixmap ( const uiPixmap )

◆ uiPixmap() [8/8]

uiPixmap::uiPixmap ( const PixmapDesc )

◆ ~uiPixmap()

virtual uiPixmap::~uiPixmap ( )
virtual

Member Function Documentation

◆ convertFromRGBArray()

void uiPixmap::convertFromRGBArray ( const uiRGBArray )

◆ createFromParams()

static uiPixmap* uiPixmap::createFromParams ( const BufferStringSet params)
static

◆ fill() [1/2]

void uiPixmap::fill ( const ColTab::Sequence ,
bool  hor 
)

◆ fill() [2/2]

void uiPixmap::fill ( const OD::Color )

◆ fillDesc()

void uiPixmap::fillDesc ( PixmapDesc ) const

◆ fillGradient()

void uiPixmap::fillGradient ( const OD::Color col1,
const OD::Color col2,
bool  hor 
)

◆ height()

int uiPixmap::height ( ) const

◆ initFromIcon()

void uiPixmap::initFromIcon ( const char *  icon_identifier)
private

◆ isEmpty()

bool uiPixmap::isEmpty ( ) const

◆ isPresent()

static mDeprecatedDef bool uiPixmap::isPresent ( const char *  )
static

◆ params()

void uiPixmap::params ( BufferStringSet ) const

◆ qpixmap() [1/2]

QPixmap* uiPixmap::qpixmap ( )
inline

◆ qpixmap() [2/2]

const QPixmap* uiPixmap::qpixmap ( ) const
inline

◆ save()

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

◆ scale()

void uiPixmap::scale ( int  w,
int  h 
)

◆ scaleToHeight()

void uiPixmap::scaleToHeight ( int  h)

◆ scaleToWidth()

void uiPixmap::scaleToWidth ( int  w)

◆ sKeyColorTabSrc()

static const char* uiPixmap::sKeyColorTabSrc ( )
inlinestatic

◆ sKeyCreatedSrc()

static const char* uiPixmap::sKeyCreatedSrc ( )
inlinestatic

◆ sKeyGradientSrc()

static const char* uiPixmap::sKeyGradientSrc ( )
inlinestatic

◆ sKeyRgbSrc()

static const char* uiPixmap::sKeyRgbSrc ( )
inlinestatic

◆ sKeyXpmSrc()

static const char* uiPixmap::sKeyXpmSrc ( )
inlinestatic

◆ source()

const char* uiPixmap::source ( ) const
inline

◆ width()

int uiPixmap::width ( ) const

Member Data Documentation

◆ qpixmap_

QPixmap* uiPixmap::qpixmap_
protected

◆ sPmParamColIdx

const int uiPixmap::sPmParamColIdx = 3
static

◆ sPmParamHeightIdx

const int uiPixmap::sPmParamHeightIdx = 2
static

◆ sPmParamSrcIdx

const int uiPixmap::sPmParamSrcIdx = 0
static

◆ sPmParamWidthIdx

const int uiPixmap::sPmParamWidthIdx = 1
static

◆ srcname_

BufferString uiPixmap::srcname_
protected

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