43SoEXTENDER_Documented
class SoTextStyleColorsElement :
public SoReplacedElement
45 SO_ELEMENT_HEADER(SoTextStyleColorsElement);
67 virtual void commonInit();
70 virtual void init(
SoState *state);
73 virtual SbBool matches(
const SoElement* elt)
const;
78 virtual SoElement* copyMatchInfo()
const;
83 static void initClass();
84 static void exitClass();
87 std::vector<SbColorRGBA> m_colors;
89 virtual ~SoTextStyleColorsElement();
96 static void computeColors(
SoState *state,
const SbColorRGBA* inColors, std::vector<SbColorRGBA>& outColors);
98 static std::vector<SbColorRGBA> s_defaultColors;
static const SbColorRGBA * get(SoState *state)
Gets the current range in the state.
static SbColorRGBA * getDefault()
Returns the default value.
static void set(SoState *state, SoNode *node, const SbColorRGBA *colors)
Sets the current range in the state.