Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Graphic class. More...
#include <ilviews/base/graphic.h>
Public Member Functions | |
IlvGradientGraphicBBoxManager (IlvPalette *palette, IlvGraphic *graphic, const IlvTransformer *t=0) | |
Initializes a new IlvGradientGraphicBBoxManager using the bounding box of an IlvGraphic . More... | |
IlvGradientGraphicBBoxManager (IlvPalette *palette, IlvRect bbox) | |
Initializes a new IlvGradientGraphicBBoxManager . More... | |
~IlvGradientGraphicBBoxManager () | |
Destructor. More... | |
Graphic class.
Library: views
The IlvGradientGraphicBBoxManager
class defines the bounding box which the gradient may need to compute its transformer. The bounding box is only needed when the gradient transform mode is IlvGradientTransformGraphic
or IlvGradientTransformGraphicNoResize
.
When instantiating this class, set a bounding box on the gradient if none has previously been set before. On destruction of this instance, the bounding box is unset from the gradient.
The most common way to use this class is to instantiate it on the stack in the IlvGraphic::draw()
method overrides before performing any call to drawing primitives. When exiting from the draw()
, the IlvGradientGraphicBBoxManager
instance destructor will be called, and the bounding box set on the gradient will be unset.
IlvGradientPattern::setTransformMode()
, IlvGraphic::draw()
, IlvGradientGraphicBBoxManager::IlvGradientGraphicBBoxManager | ( | IlvPalette * | palette, |
IlvGraphic * | graphic, | ||
const IlvTransformer * | t = 0 |
||
) |
Initializes a new IlvGradientGraphicBBoxManager
using the bounding box of an IlvGraphic
.
The IlvGradientGraphicBBoxManager
constructor sets a graphic bounding box on the gradient defined in the provided IlvPalette
instance.
If no gradient is set on this palette, this method does nothing.
palette | The palette of the graphic object. |
graphic | The graphic object of the bounding box which is to be retreived. |
t | An optional transformer used internally to compute the graphic object bounding box. |
IlvGraphic::boundingBox()
. IlvGradientGraphicBBoxManager::IlvGradientGraphicBBoxManager | ( | IlvPalette * | palette, |
IlvRect | bbox | ||
) |
Initializes a new IlvGradientGraphicBBoxManager
.
The IlvGradientGraphicBBoxManager
constructor sets a bounding box on the gradient defined in the provided IlvPalette
instance.
If no gradient is set on this palette, this method does nothing.
palette | The palette of the graphic object. |
bbox | The bounding box to set on the gradient. |
IlvGradientGraphicBBoxManager::~IlvGradientGraphicBBoxManager | ( | ) |
Destructor.
The IlvGradientGraphicBBoxManager
destructor unsets the bounding box from the gradient defined in the IlvPalette
instance provided in the constructor.
If no gradient is set on this palette, this method does nothing.
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.