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

GLColorWState Class Reference

#include <GLWidgetState.h>

Inheritance diagram for GLColorWState:

ColorWState WidgetState gutz::Counted List of all members.

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

 GLColorWState (const gutz::vec3f color=defColor, const gutz::vec3f pickedColor=defPicked, const gutz::vec3f second=defSecond)
 GLColorWState (const GLColorWState &cws)
GLColorWStateoperator= (const GLColorWState &cws)
virtual ColorWStatecloneColor ()
WidgetStateclone ()

Public Attributes

 HAS_SLOTS

Protected Member Functions

virtual void bindWS ()
 implements bind()

virtual void releaseWS ()
 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

GLColorWState::GLColorWState const gutz::vec3f  color = defColor,
const gutz::vec3f  pickedColor = defPicked,
const gutz::vec3f  second = defSecond
[inline]
 

Definition at line 28 of file GLWidgetState.h.

Referenced by cloneColor().

GLColorWState::GLColorWState const GLColorWState cws  )  [inline]
 

Definition at line 33 of file GLWidgetState.h.


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 GLColorWState::bindWS  )  [inline, protected, virtual]
 

implements bind()

Implements WidgetState.

Definition at line 49 of file GLWidgetState.h.

References ColorWState::_color, ColorWState::_picked, ColorWState::_pickedColor, and glColor4f().

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

Implements WidgetState.

Definition at line 88 of file WidgetState.h.

References ColorWState::cloneColor().

virtual ColorWState* GLColorWState::cloneColor  )  [inline, virtual]
 

Implements ColorWState.

Definition at line 40 of file GLWidgetState.h.

References GLColorWState().

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

Definition at line 95 of file WidgetState.h.

References ColorWState::_color.

bool ColorWState::getPicked  )  const [inline, inherited]
 

Definition at line 109 of file WidgetState.h.

References ColorWState::_picked.

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

Definition at line 97 of file WidgetState.h.

References ColorWState::_pickedColor.

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

Definition at line 99 of file WidgetState.h.

References ColorWState::_second.

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

Definition at line 36 of file GLWidgetState.h.

References ColorWState::operator=().

void WidgetState::release  )  [inline, inherited]
 

Definition at line 50 of file WidgetState.h.

References WidgetState::releaseWS().

virtual void GLColorWState::releaseWS  )  [inline, protected, virtual]
 

implements release()

Implements WidgetState.

Definition at line 61 of file GLWidgetState.h.

References glColor4f().

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

Definition at line 94 of file WidgetState.h.

References ColorWState::_color.

void ColorWState::setPicked bool  yes  )  [inline, inherited]
 

Definition at line 108 of file WidgetState.h.

References ColorWState::_picked.

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

Definition at line 96 of file WidgetState.h.

References ColorWState::_pickedColor.

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

Definition at line 98 of file WidgetState.h.

References ColorWState::_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, inherited]
 

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, inherited]
 

Definition at line 128 of file WidgetState.h.

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

bool ColorWState::_picked [protected, inherited]
 

Definition at line 131 of file WidgetState.h.

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

gutz::vec4f ColorWState::_pickedColor [protected, inherited]
 

Definition at line 129 of file WidgetState.h.

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

gutz::vec4f ColorWState::_second [protected, inherited]
 

Definition at line 130 of file WidgetState.h.

Referenced by ColorWState::ColorWState(), ColorWState::getSecondary(), ColorWState::operator=(), and ColorWState::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