StarGraphicAttribute::StarGAttributeNamedGradient Class Reference

a gradient's named attribute More...

Inheritance diagram for StarGraphicAttribute::StarGAttributeNamedGradient:
StarGraphicAttribute::StarGAttributeNamed StarAttribute

List of all members.

Public Member Functions

 StarGAttributeNamedGradient (Type type, std::string const &debugName)
 constructor
virtual shared_ptr< StarAttributecreate () 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

Detailed Description

a gradient's named attribute


Constructor & Destructor Documentation

StarGraphicAttribute::StarGAttributeNamedGradient::StarGAttributeNamedGradient ( Type  type,
std::string const &  debugName 
) [inline]

constructor

Referenced by create().


Member Function Documentation

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.

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.


Member Data Documentation

a flag to know if the gradient is enable

Referenced by addTo(), printData(), and read().

the gradient type

Referenced by addTo(), printData(), and read().


The documentation for this class was generated from the following file: