#include <GLWidgetState.h>
Inheritance diagram for GLColorWState:
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) | |
GLColorWState & | operator= (const GLColorWState &cws) |
virtual ColorWState * | cloneColor () |
WidgetState * | clone () |
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 |
|
Definition at line 28 of file GLWidgetState.h. Referenced by cloneColor(). |
|
Definition at line 33 of file GLWidgetState.h. |
|
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(). |
|
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. |
|
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(). |
|
Definition at line 49 of file WidgetState.h. References WidgetState::bindWS(). |
|
implements bind()
Implements WidgetState. Definition at line 49 of file GLWidgetState.h. References ColorWState::_color, ColorWState::_picked, ColorWState::_pickedColor, and glColor4f(). |
|
Implements WidgetState. Definition at line 88 of file WidgetState.h. References ColorWState::cloneColor(). |
|
Implements ColorWState. Definition at line 40 of file GLWidgetState.h. References GLColorWState(). |
|
Definition at line 95 of file WidgetState.h. References ColorWState::_color. |
|
Definition at line 109 of file WidgetState.h. References ColorWState::_picked. |
|
Definition at line 97 of file WidgetState.h. References ColorWState::_pickedColor. |
|
Definition at line 99 of file WidgetState.h. References ColorWState::_second. |
|
Definition at line 36 of file GLWidgetState.h. References ColorWState::operator=(). |
|
Definition at line 50 of file WidgetState.h. References WidgetState::releaseWS(). |
|
implements release()
Implements WidgetState. Definition at line 61 of file GLWidgetState.h. References glColor4f(). |
|
Definition at line 94 of file WidgetState.h. References ColorWState::_color. |
|
Definition at line 108 of file WidgetState.h. References ColorWState::_picked. |
|
Definition at line 96 of file WidgetState.h. References ColorWState::_pickedColor. |
|
Definition at line 98 of file WidgetState.h. References ColorWState::_second. |
|
Definition at line 40 of file smartptr.h. Referenced by Nrro::NrroIter< T >::NrroIter(). |
|
Definition at line 41 of file smartptr.h. |
|
WidgetItem is a friend so that it can create one of these.
Definition at line 115 of file WidgetState.h. |
|
Definition at line 128 of file WidgetState.h. Referenced by bindWS(), ColorWState::ColorWState(), ColorWState::getColor(), ColorWState::operator=(), and ColorWState::setColor(). |
|
Definition at line 131 of file WidgetState.h. Referenced by bindWS(), ColorWState::ColorWState(), ColorWState::getPicked(), and ColorWState::setPicked(). |
|
Definition at line 129 of file WidgetState.h. Referenced by bindWS(), ColorWState::ColorWState(), ColorWState::getPickedColor(), ColorWState::operator=(), and ColorWState::setPickedColor(). |
|
Definition at line 130 of file WidgetState.h. Referenced by ColorWState::ColorWState(), ColorWState::getSecondary(), ColorWState::operator=(), and ColorWState::setSecondary(). |
|
Definition at line 38 of file WidgetState.h. |