Rogue Wave Views |
Rogue Wave Views Documentation Home |
Manager layer class. More...
#include <ilviews/manager/layer.h>
Public Member Functions | |
IlvManagerLayer (IlUShort maxInList, IlUShort maxInNode=IlvMaxObjectsInList) | |
Constructor. More... | |
virtual | ~IlvManagerLayer () |
Destructor. More... | |
void | addVisibilityFilter (IlvLayerVisibilityFilter *filter) |
Adds a visibility filter to the layer. More... | |
IlBoolean | filterVisibility (const IlvMgrView *mgrview) const |
Calls the visibility filters of the layer. More... | |
IlvIntensity | getAlpha () const |
Returns the alpha value of the layer. More... | |
IlvAntialiasingMode | getAntialiasingMode () const |
Retrieves the anti-aliasing mode of the layer. More... | |
IlUShort | getIndex () const |
Returns the index of the layer in the manager. More... | |
IlvManager * | getManager () const |
Returns the manager associated with the layer. More... | |
const char * | getName () const |
Returns the name of the manager layer. More... | |
IlBoolean | isSelectable () const |
Indicates whether the layer is selectable. More... | |
IlBoolean | isVisible () const |
Indicates whether the layer is visible for the manager. More... | |
IlBoolean | removeVisibilityFilter (IlvLayerVisibilityFilter *filt) |
Removes a visibility filter from the layer. More... | |
void | setAlpha (IlvIntensity alpha) |
Sets the alpha value of the layer. More... | |
void | setAntialiasingMode (IlvAntialiasingMode mode) |
Sets the anti-aliasing mode of the layer. More... | |
virtual void | setName (const char *name) |
Sets the name of the manager layer. More... | |
Public Member Functions inherited from IlvIndexedSet | |
IlvIndexedSet (IlUShort maxInList=30, IlUShort maxInNode=30) | |
Constructor. More... | |
void | addObject (const IlvGraphic *obj) |
Adds a graphic object to the set, subdividing it if necessary. More... | |
IlvGraphic *const * | allContains (IlUInt &count, const IlvPoint &p, const IlvPoint &tp, const IlvTransformer *t=0) const |
Returns all graphic objects containing a given point. More... | |
IlvGraphic *const * | allInside (IlUInt &count, const IlvRect &rect, const IlvRect &trect, const IlvTransformer *t=0) const |
Returns all graphic objects located in a rectangle. More... | |
IlvGraphic *const * | allIntersects (IlUInt &count, const IlvRect &rect, const IlvRect &trect, const IlvTransformer *t=0) const |
Returns all graphic objects intersecting a rectangle. More... | |
void | allowSubdivision (IlBoolean b) |
Enable/disable automatic subdivision. More... | |
void | apply (IlvApplyObject f, IlAny arg) |
Applies a user function to all objects of the set. More... | |
void | apply (const IlSymbol *tag, IlvApplyObject f, IlAny arg) |
Apply a user function to tagged objects. More... | |
void | applyDraw (IlvPort *dst, const IlvTransformer *t=0, const IlvRegion *clip=0) const |
Draws all objects. More... | |
void | applyInside (const IlvRect &rect, const IlvRect &trect, IlvApplyObject f, IlAny arg, const IlvTransformer *t=0) |
Apply a user function to objects located in a rectangle. More... | |
void | applyInside (const IlvRect &rect, IlvApplyObject f, IlAny arg) |
Apply a user function to objects located in a rectangle. More... | |
void | applyIntersects (const IlvRect &rect, const IlvRect &trect, IlvApplyObject f, IlAny arg, const IlvTransformer *t=0) |
Apply a user function to objects intersecting a rectangle. More... | |
void | applyIntersects (const IlvRect &rect, IlvApplyObject f, IlAny arg) |
Apply a user function to objects intersecting a rectangle. More... | |
void | applyToObject (IlvGraphic *obj, IlvApplyObject f, IlAny arg) |
Applies a user function to a graphic object. More... | |
IlvGraphic * | firstIntersects (const IlvRegion &tr, const IlvTransformer *t=0) const |
Returns the first object intersecting a region. More... | |
IlUInt | getCardinal () const |
Returns the number of objects in the set. More... | |
IlvGraphic *const * | getObjects (IlUInt &count) const |
Returns the objects in the set. More... | |
IlBoolean | isDivided () const |
Indicates whether the set is divided. More... | |
IlvGraphic * | lastContains (const IlvPoint &p, const IlvPoint &tp, const IlvTransformer *t=0) const |
Returns the object containing a given point. More... | |
void | map (IlvApplyObject f, IlAny arg) const |
Applies a user function to all objects of the set. More... | |
void | map (const IlSymbol *tag, IlvApplyObject f, IlAny arg) const |
Apply a user function to tagged objects. More... | |
void | mapInside (const IlvRect &rect, const IlvRect &trect, IlvApplyObject f, IlAny arg, const IlvTransformer *t=0) const |
Apply a user function to objects located in a rectangle. More... | |
void | mapInside (const IlvRect &rect, IlvApplyObject f, IlAny arg) const |
Apply a user function to objects located in a rectangle. More... | |
void | mapIntersects (const IlvRect &rect, const IlvRect &trect, IlvApplyObject f, IlAny arg, const IlvTransformer *t=0) const |
Apply a user function to objects intersecting a rectangle. More... | |
void | mapIntersects (const IlvRect &rect, IlvApplyObject f, IlAny arg) const |
Apply a user function to objects intersecting a rectangle. More... | |
IlBoolean | removeObject (const IlvGraphic *obj) |
Removes a graphic object from the set. More... | |
void | setMaxInNode (IlUShort m) |
Sets the subdividing threshold, or enable/disable automatic subdivision. More... | |
IlBoolean | subDivide () const |
Indicates whether the set will subdivide itself or keep an ordered list. More... | |
Friends | |
class | IlvManager |
Manager layer class.
Library: ilvmgr
An IlvManagerLayer
handles the complete information that is stored by a layer of a manager. You can access an instance of IlvManagerLayer by calling the three methods of the class IlvManager:
IlvManagerLayer* getManagerLayer(int idx)
where idx is the index of the manager layer you want to retrieve. IlvManagerLayer* getManagerLayer(const char* name)
where name is the name of the manager layer you want to retrieve. IlvManagerLayer* getManagerLayer(const IlvGraphic* obj)
where object is a pointer of an object located in the manager layer you want to retrieve.Constructor.
Initializes an instance of IlvManagerLayer
. The layer is by default visible and selectable.
maxInList | See the documentation of the IlvIndexedSet constructor. |
maxInNode | See the documentation of the IlvIndexedSet constructor. |
|
virtual |
Destructor.
Deletes the visibility filters associated with this layer.
void IlvManagerLayer::addVisibilityFilter | ( | IlvLayerVisibilityFilter * | filter | ) |
Adds a visibility filter to the layer.
filter | The visibility filter. |
IlBoolean IlvManagerLayer::filterVisibility | ( | const IlvMgrView * | mgrview | ) | const |
Calls the visibility filters of the layer.
Called by the manager to determine if the layer must be displayed. The method walks through the list of filters and calls the member function IlvLayerVisibilityFilter::isVisible
. If a filter returns IlFalse
, the layer is assumed to be invisible and the function returns at once.
IlTrue
if every call to IlvLayerVisibilityFilter::isVisible
returns IlTrue
. Otherwise, IlFalse
is returned. mgrview | Specifies the manager view given in parameter to each filter, the other parameter being the layer itself. |
IlvIntensity IlvManagerLayer::getAlpha | ( | ) | const |
Returns the alpha value of the layer.
IlvAntialiasingMode IlvManagerLayer::getAntialiasingMode | ( | ) | const |
Retrieves the anti-aliasing mode of the layer.
IlUShort IlvManagerLayer::getIndex | ( | ) | const |
Returns the index of the layer in the manager.
IlvManager* IlvManagerLayer::getManager | ( | ) | const |
Returns the manager associated with the layer.
const char* IlvManagerLayer::getName | ( | ) | const |
Returns the name of the manager layer.
IlBoolean IlvManagerLayer::isSelectable | ( | ) | const |
Indicates whether the layer is selectable.
IlTrue
if the layer is selectable, that is, graphic objects stored in the layer can be selected. IlBoolean IlvManagerLayer::isVisible | ( | ) | const |
Indicates whether the layer is visible for the manager.
IlTrue
if the layer is visible from the manager point of view and IlFalse
if it is not. A visible layer may still be hidden in a given manager view. IlBoolean IlvManagerLayer::removeVisibilityFilter | ( | IlvLayerVisibilityFilter * | filt | ) |
Removes a visibility filter from the layer.
filt | The visibility filter. |
void IlvManagerLayer::setAlpha | ( | IlvIntensity | alpha | ) |
Sets the alpha value of the layer.
alpha | The new alpha value of the layer. A value of 0 means that the layer is completely transparent. A value of IlvFullIntensity means that the layer is opaque. |
void IlvManagerLayer::setAntialiasingMode | ( | IlvAntialiasingMode | mode | ) |
Sets the anti-aliasing mode of the layer.
mode | The new anti-aliasing mode. |
|
virtual |
Sets the name of the manager layer.
It is a good habit not to have multiple layers with the same name in the same manager, although the API lets you do that.
name | The new name of the layer. The string is copied. |
© Copyright 2015, 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.