rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvGradientGraphicBBoxManager Class Reference

Graphic class. More...

#include <ilviews/base/graphic.h>

Public Member Functions

 IlvGradientGraphicBBoxManager (IlvPalette *palette, IlvGraphic *graphic, const IlvTransformer *t=0)
 Constructor. More...
 
 IlvGradientGraphicBBoxManager (IlvPalette *palette, IlvRect bbox)
 Constructor. More...
 
 ~IlvGradientGraphicBBoxManager ()
 Destructor. More...
 

Detailed Description

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.

See Also
IlvGradientPattern::setTransformMode, IlvGraphic::draw,

Constructor & Destructor Documentation

IlvGradientGraphicBBoxManager::IlvGradientGraphicBBoxManager ( IlvPalette palette,
IlvGraphic graphic,
const IlvTransformer t = 0 
)

Constructor.

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.

Parameters
paletteThe palette of the graphic object.
graphicThe graphic object of the bounding box which is to be retreived.
tAn optional transformer used internally to compute the graphic object bounding box.
See Also
IlvGraphic::boundingBox.
IlvGradientGraphicBBoxManager::IlvGradientGraphicBBoxManager ( IlvPalette palette,
IlvRect  bbox 
)

Constructor.

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.

Parameters
paletteThe palette of the graphic object.
bboxThe 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 2012, 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.