UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ZqScaledPalette Class Reference

#include <zq_scaled_palette.hpp>

Inheritance diagram for ZqScaledPalette:
ZqObject ZqbNatGrpMember ZqObject ZqbNatGrpMember ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName

Public Member Functions

 ZqScaledPalette (ZqbNatGroup &rColorScale, const char *szName=NULL)
 
 ZqScaledPalette (ZqbNatGroup &rColorScale, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void setOrientation (Qt::Orientation eOrient)
 
virtual Qt::Orientation getOrientation () const
 
virtual void setThickness (int nPixels)
 
virtual int getThickness () const
 
virtual void setPalette (const ZqbScaledPalette &pal)
 
virtual void setPalette (const ZqbPalette &pal)
 
virtual const ZqbScaledPalettegetPalette () const
 
virtual void redraw (QPainter &paint)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual ZqbEventHint input (QEvent &event)
 
 ZqScaledPalette (ZqbNatGroup &rColorScale, const char *szName=NULL)
 
 ZqScaledPalette (ZqbNatGroup &rColorScale, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void setOrientation (Qt::Orientation eOrient)
 
virtual Qt::Orientation getOrientation () const
 
virtual void setThickness (int nPixels)
 
virtual int getThickness () const
 
virtual void setPalette (const ZqbScaledPalette &pal)
 
virtual void setPalette (const ZqbPalette &pal)
 
virtual const ZqbScaledPalettegetPalette () const
 
virtual void redraw (QPainter &paint)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual ZqbEventHint input (QEvent &event)
 
- Public Member Functions inherited from ZqObject
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual void updateGeometry ()
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual void updateGeometry ()
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
- Public Member Functions inherited from ZqbAutoName
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
- Public Member Functions inherited from ZqbName
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 
- Public Member Functions inherited from ZqbVisible
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
- Public Member Functions inherited from ZqbNatGrpMember
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 
virtual void onSetCoords ()
 
virtual void onTickChange ()
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 
virtual void onSetCoords ()
 

Protected Member Functions

void forceThickness (int nPixels)
 
void forceThickness (int nPixels)
 

Protected Attributes

Qt::Orientation m_eOrient
 
int m_nThickness
 
ZqbScaledPalette m_ScPal
 
- Protected Attributes inherited from ZqObject
ZqbPlaceholderm_pPh
 
ZqbPixGrpMemberm_pPx
 
ZqbPixGrpMemberm_pPy
 
bool m_bInteractive
 
- Protected Attributes inherited from ZqbName
char * m_szName
 
char * m_szRoot
 
- Protected Attributes inherited from ZqbNatGrpMember
ZqbNatGroupm_pNatGroup
 
bool m_bKnownBounds
 
double m_fBounds [2]
 
void(* m_pCustomOnSetCoord )(void *pUserData)
 
void * m_pUserData
 

Detailed Description

Scaled color palette visualization object.

test_zq_scaled_palette_1.png

Constructor & Destructor Documentation

ZqScaledPalette::ZqScaledPalette ( ZqbNatGroup rColorScale,
const char *  szName = NULL 
)

Create object which is not attached to placeholder. Placeholder may be attached later. Given natural group is used to scale colors.

ZqScaledPalette::ZqScaledPalette ( ZqbNatGroup rColorScale,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create object attached to given placeholder from the birth. It can be detached at any moment and be attached to another place. Given natural group is used to scale colors.

ZqScaledPalette::ZqScaledPalette ( ZqbNatGroup rColorScale,
const char *  szName = NULL 
)

Create object which is not attached to placeholder. Placeholder may be attached later. Given natural group is used to scale colors.

ZqScaledPalette::ZqScaledPalette ( ZqbNatGroup rColorScale,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create object attached to given placeholder from the birth. It can be detached at any moment and be attached to another place. Given natural group is used to scale colors.

Member Function Documentation

INLINE void ZqScaledPalette::forceThickness ( int  nPixels)
protected

Force thickness assignment.

void ZqScaledPalette::forceThickness ( int  nPixels)
protected

Force thickness assignment.

INLINE Qt::Orientation ZqScaledPalette::getOrientation ( ) const
virtual

Get orientation of scaled palette drawing.

virtual Qt::Orientation ZqScaledPalette::getOrientation ( ) const
virtual

Get orientation of scaled palette drawing.

virtual const ZqbScaledPalette& ZqScaledPalette::getPalette ( ) const
virtual

Get current scaled palette.

INLINE const ZqbScaledPalette & ZqScaledPalette::getPalette ( ) const
virtual

Get current scaled palette.

INLINE int ZqScaledPalette::getThickness ( ) const
virtual

Get thickness of the scaled palette drawing.

virtual int ZqScaledPalette::getThickness ( ) const
virtual

Get thickness of the scaled palette drawing.

virtual ZqbEventHint ZqScaledPalette::input ( QEvent &  event)
virtual

Allow to change colors.

Reimplemented from ZqObject.

virtual ZqbEventHint ZqScaledPalette::input ( QEvent &  event)
virtual

Allow to change colors.

Reimplemented from ZqObject.

virtual void ZqScaledPalette::redraw ( QPainter &  paint)
virtual

Draw palette in current natural group corrdinates.

Reimplemented from ZqObject.

virtual void ZqScaledPalette::redraw ( QPainter &  paint)
virtual

Draw palette in current natural group corrdinates.

Reimplemented from ZqObject.

INLINE void ZqScaledPalette::setOrientation ( Qt::Orientation  eOrient)
virtual

Set orientation for scaled palette drawing. Vertical means that Y pixel axis is mapped to the color scale natural group. Horizontal - X pixel axis.

virtual void ZqScaledPalette::setOrientation ( Qt::Orientation  eOrient)
virtual

Set orientation for scaled palette drawing. Vertical means that Y pixel axis is mapped to the color scale natural group. Horizontal - X pixel axis.

INLINE void ZqScaledPalette::setPalette ( const ZqbScaledPalette pal)
virtual

Set scaled palette to draw.

virtual void ZqScaledPalette::setPalette ( const ZqbScaledPalette pal)
virtual

Set scaled palette to draw.

virtual void ZqScaledPalette::setPalette ( const ZqbPalette pal)
virtual

Set palette to draw. Range will be copied from previous scaled palette.

INLINE void ZqScaledPalette::setPalette ( const ZqbPalette pal)
virtual

Set palette to draw. Range will be copied from previous scaled palette.

virtual void ZqScaledPalette::setThickness ( int  nPixels)
virtual

Set thickness of the scaled palette drawing. Thickness is a fixed number of pixels used in orthogonal direction to orientation for drawing palette view. For example, if orientation is vertical then thickness is width of the palette rectangle.

INLINE void ZqScaledPalette::setThickness ( int  nPixels)
virtual

Set thickness of the scaled palette drawing. Thickness is a fixed number of pixels used in orthogonal direction to orientation for drawing palette view. For example, if orientation is vertical then thickness is width of the palette rectangle.

INLINE void ZqScaledPalette::updateLimits ( QPainter *  paint = NULL)
virtual

Interpret thickness as it should be interpreted: width or height. It's needed because setThickness() method may be called in detached state (when getPlace()==NULL).

Reimplemented from ZqObject.

virtual void ZqScaledPalette::updateLimits ( QPainter *  paint = NULL)
virtual

Interpret thickness as it should be interpreted: width or height. It's needed because setThickness() method may be called in detached state (when getPlace()==NULL).

Reimplemented from ZqObject.

Member Data Documentation

Qt::Orientation ZqScaledPalette::m_eOrient
protected

Orientation of natural group axis on the pixel screen.

int ZqScaledPalette::m_nThickness
protected

Thickness of the palette rectangle. It's width if m_eOrient is Qt::Vertical and height if m_eOrient is Qt::Horizontal.

ZqbScaledPalette ZqScaledPalette::m_ScPal
protected

Palette to draw.


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