arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

ColorWState Class Reference

#include <WidgetState.h>

Inheritance diagram for ColorWState:

WidgetState gutz::Counted GLColorWState List of all members.

Detailed Description

The basic Color Widget State.

Contains a primary (getColor()), secondary (getSecondary()), and picked (getPickedColor()) color.

Definition at line 77 of file WidgetState.h.

Colors

void setColor (const gutz::vec4f &c)
gutz::vec4f getColor () const
void setPickedColor (const gutz::vec4f &pc)
gutz::vec4f getPickedColor () const
void setSecondary (const gutz::vec4f &sc)
gutz::vec4f getSecondary () const

Set/Get Picked

if _picked is true, you should use the picked color.

setPicked() makes a very convenient slot ;)

void setPicked (bool yes)
bool getPicked () const

Bind/Release

Bind should enable any state that is applicable, release should undo that, back to defaults.

A Concrete Class should implement the bindWS() and releaseWS() for the specific platform (if applicable).

void bind ()
void release ()

Public Member Functions

virtual ~ColorWState ()
ColorWStateoperator= (const ColorWState &cws)
WidgetStateclone ()
virtual ColorWStatecloneColor ()=0

Public Attributes

 HAS_SLOTS

Protected Member Functions

 ColorWState (const gutz::vec4f color=defColor, const gutz::vec4f pickedColor=defPicked, const gutz::vec4f second=defSecond)
 ColorWState (const ColorWState &cws)
virtual void bindWS ()=0
 implements bind()

virtual void releaseWS ()=0
 implements release()

virtual void _incCount ()
 gutz::Counted interface, increment reference count by one.

virtual void _decCount ()
 gutz::Counted interface, decrement reference count by one.

virtual int _getCount () const
 gutz::Counted interface, get the current reference count.


Protected Attributes

gutz::vec4f _color
gutz::vec4f _pickedColor
gutz::vec4f _second
bool _picked

Friends

class WidgetItem
 WidgetItem is a friend so that it can create one of these.

class SmartPtr
class SmartPtrRef


Constructor & Destructor Documentation

virtual ColorWState::~ColorWState  )  [inline, virtual]
 

Definition at line 79 of file WidgetState.h.

ColorWState::ColorWState const gutz::vec4f  color = defColor,
const gutz::vec4f  pickedColor = defPicked,
const gutz::vec4f  second = defSecond
[inline, protected]
 

Definition at line 117 of file WidgetState.h.

References _color, _picked, _pickedColor, and _second.

ColorWState::ColorWState const ColorWState cws  )  [inline, protected]
 

Definition at line 123 of file WidgetState.h.

References _color, _picked, _pickedColor, and _second.


Member Function Documentation

virtual void gutz::Counted::_decCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, decrement reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 54 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

virtual int gutz::Counted::_getCount  )  const [inline, protected, virtual, inherited]
 

gutz::Counted interface, get the current reference count.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr.

Definition at line 58 of file smartptr.h.

virtual void gutz::Counted::_incCount  )  [inline, protected, virtual, inherited]
 

gutz::Counted interface, increment reference count by one.

Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr

Definition at line 48 of file smartptr.h.

Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax().

void WidgetState::bind  )  [inline, inherited]
 

Definition at line 49 of file WidgetState.h.

References WidgetState::bindWS().

virtual void WidgetState::bindWS  )  [protected, pure virtual, inherited]
 

implements bind()

Implemented in GLColorWState.

Referenced by WidgetState::bind().

WidgetState* ColorWState::clone void   )  [inline, virtual]
 

Implements WidgetState.

Definition at line 88 of file WidgetState.h.

References cloneColor().

virtual ColorWState* ColorWState::cloneColor  )  [pure virtual]
 

Implemented in GLColorWState.

Referenced by clone().

gutz::vec4f ColorWState::getColor  )  const [inline]
 

Definition at line 95 of file WidgetState.h.

References _color.

bool ColorWState::getPicked  )  const [inline]
 

Definition at line 109 of file WidgetState.h.

References _picked.

gutz::vec4f ColorWState::getPickedColor  )  const [inline]
 

Definition at line 97 of file WidgetState.h.

References _pickedColor.

gutz::vec4f ColorWState::getSecondary  )  const [inline]
 

Definition at line 99 of file WidgetState.h.

References _second.

ColorWState& ColorWState::operator= const ColorWState cws  )  [inline]
 

Definition at line 81 of file WidgetState.h.

References _color, _pickedColor, and _second.

Referenced by GLColorWState::operator=().

void WidgetState::release  )  [inline, inherited]
 

Definition at line 50 of file WidgetState.h.

References WidgetState::releaseWS().

virtual void WidgetState::releaseWS  )  [protected, pure virtual, inherited]
 

implements release()

Implemented in GLColorWState.

Referenced by WidgetState::release().

void ColorWState::setColor const gutz::vec4f c  )  [inline]
 

Definition at line 94 of file WidgetState.h.

References _color.

void ColorWState::setPicked bool  yes  )  [inline]
 

Definition at line 108 of file WidgetState.h.

References _picked.

void ColorWState::setPickedColor const gutz::vec4f pc  )  [inline]
 

Definition at line 96 of file WidgetState.h.

References _pickedColor.

void ColorWState::setSecondary const gutz::vec4f sc  )  [inline]
 

Definition at line 98 of file WidgetState.h.

References _second.


Friends And Related Function Documentation

friend class SmartPtr [friend, inherited]
 

Definition at line 40 of file smartptr.h.

Referenced by Nrro::NrroIter< T >::NrroIter().

friend class SmartPtrRef [friend, inherited]
 

Definition at line 41 of file smartptr.h.

friend class WidgetItem [friend]
 

WidgetItem is a friend so that it can create one of these.

Definition at line 115 of file WidgetState.h.


Member Data Documentation

gutz::vec4f ColorWState::_color [protected]
 

Definition at line 128 of file WidgetState.h.

Referenced by GLColorWState::bindWS(), ColorWState(), getColor(), operator=(), and setColor().

bool ColorWState::_picked [protected]
 

Definition at line 131 of file WidgetState.h.

Referenced by GLColorWState::bindWS(), ColorWState(), getPicked(), and setPicked().

gutz::vec4f ColorWState::_pickedColor [protected]
 

Definition at line 129 of file WidgetState.h.

Referenced by GLColorWState::bindWS(), ColorWState(), getPickedColor(), operator=(), and setPickedColor().

gutz::vec4f ColorWState::_second [protected]
 

Definition at line 130 of file WidgetState.h.

Referenced by ColorWState(), getSecondary(), operator=(), and setSecondary().

WidgetState::HAS_SLOTS [inherited]
 

Definition at line 38 of file WidgetState.h.


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk