a gradient's named attribute More...
Public Member Functions | |
| StarGAttributeNamedGradient (Type type, std::string const &debugName) | |
| constructor | |
| virtual shared_ptr< StarAttribute > | create () const |
| create a new attribute | |
| virtual bool | read (StarZone &zone, int vers, long endPos, StarObject &object) |
| read a zone | |
| virtual void | addTo (StarState &state, std::set< StarAttribute const * > &) const |
| add to a graphic style | |
| virtual void | printData (libstoff::DebugStream &o) const |
| debug function to print the data | |
Protected Member Functions | |
| StarGAttributeNamedGradient (StarGAttributeNamedGradient const &orig) | |
| copy constructor | |
Protected Attributes | |
| int | m_gradientType |
| the gradient type | |
| bool | m_enable |
| a flag to know if the gradient is enable | |
| int | m_angle |
| the angle | |
| int | m_border |
| the border | |
| int | m_step |
| the step | |
| STOFFColor | m_colors [2] |
| the colors | |
| int | m_offsets [2] |
| the x offsets | |
| int | m_intensities [2] |
| the intensities | |
a gradient's named attribute
| StarGraphicAttribute::StarGAttributeNamedGradient::StarGAttributeNamedGradient | ( | Type | type, |
| std::string const & | debugName | ||
| ) | [inline] |
constructor
Referenced by create().
| StarGraphicAttribute::StarGAttributeNamedGradient::StarGAttributeNamedGradient | ( | StarGAttributeNamedGradient const & | orig | ) | [inline, protected] |
copy constructor
| void StarGraphicAttribute::StarGAttributeNamedGradient::addTo | ( | StarState & | state, |
| std::set< StarAttribute const * > & | |||
| ) | const [virtual] |
add to a graphic style
Reimplemented from StarAttribute.
| virtual shared_ptr<StarAttribute> StarGraphicAttribute::StarGAttributeNamedGradient::create | ( | ) | const [inline, virtual] |
create a new attribute
Implements StarAttribute.
| virtual void StarGraphicAttribute::StarGAttributeNamedGradient::printData | ( | libstoff::DebugStream & | o | ) | const [inline, virtual] |
debug function to print the data
Reimplemented from StarGraphicAttribute::StarGAttributeNamed.
Referenced by read().
| bool StarGraphicAttribute::StarGAttributeNamedGradient::read | ( | StarZone & | zone, |
| int | vers, | ||
| long | endPos, | ||
| StarObject & | object | ||
| ) | [virtual] |
read a zone
Reimplemented from StarGraphicAttribute::StarGAttributeNamed.
int StarGraphicAttribute::StarGAttributeNamedGradient::m_angle [protected] |
the angle
Referenced by addTo(), printData(), and read().
int StarGraphicAttribute::StarGAttributeNamedGradient::m_border [protected] |
the border
Referenced by addTo(), printData(), and read().
the colors
Referenced by addTo(), printData(), read(), and StarGAttributeNamedGradient().
bool StarGraphicAttribute::StarGAttributeNamedGradient::m_enable [protected] |
a flag to know if the gradient is enable
Referenced by addTo(), printData(), and read().
the gradient type
Referenced by addTo(), printData(), and read().
int StarGraphicAttribute::StarGAttributeNamedGradient::m_intensities[2] [protected] |
the intensities
Referenced by addTo(), printData(), read(), and StarGAttributeNamedGradient().
int StarGraphicAttribute::StarGAttributeNamedGradient::m_offsets[2] [protected] |
the x offsets
Referenced by addTo(), printData(), read(), and StarGAttributeNamedGradient().
int StarGraphicAttribute::StarGAttributeNamedGradient::m_step [protected] |
the step
Referenced by printData(), and read().