Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
Classes | Macros | Typedefs
graphic.h File Reference
#include <ilviews/base/iostream.h>
#include <ilviews/util/util.h>
#include <ilviews/base/region.h>
#include <ilviews/base/clssinfo.h>
#include <ilviews/graphics/io.h>
#include <ilviews/intrface/value.h>
#include <ilviews/util/im.h>
#include <ilviews/util/proplist.h>
#include <ilviews/bidi/interf.h>

Classes

class  IlvGradientGraphicBBoxManager
 Graphic class. More...
 
class  IlvGraphic
 Graphic class. More...
 
class  IlvSimpleGraphic
 Graphic class. More...
 

Macros

#define DeclareGraphicAccessors()
 Declares accessors-related methods for an IlvGraphic subtype. More...
 
#define DeclareIOConstructors(classname)
 Declares persistence-related constructors for an IlvGraphic subtype. More...
 
#define DeclareTypeInfo()
 Declares class information related member functions for an IlvGraphic subtype. More...
 
#define DeclareTypeInfoRO()
 Declares class information related member functions for an IlvGraphic subtype that has no write(). More...
 
#define IlvPredefinedIOMembers(classname)
 Defines persistence-related member functions. More...
 
#define IlvRegisterClass(classname, superclass)
 Registers a new IlvGraphic subclass. More...
 

Typedefs

typedef void(* IlvApplyObject) (IlvGraphic *graphic, IlAny userArg)
 
typedef IlvApplyObject IlvGraphicCallback
 

Detailed Description

Library: views
Declaration of the IlvGraphic and IlvSimpleGraphic classes.

Macro Definition Documentation

§ DeclareGraphicAccessors

#define DeclareGraphicAccessors ( )

Declares accessors-related methods for an IlvGraphic subtype.

This macro declares the required methods to make any graphic class accessible from a scripting language. This macro is equivalent to the lines:

virtual IlvValue& queryValue(IlvValue&) const;
virtual IlBoolean applyValue(const IlvValue&);
static void GetAccessors(const IlSymbol* const**,
const IlvValueTypeClass* const**,
See also
DeclareTypeInfo().

§ DeclareIOConstructors

#define DeclareIOConstructors (   classname)

Declares persistence-related constructors for an IlvGraphic subtype.

This macro declares two constructors in a class declaration for any graphic class. These constructors make it easier to create subclasses of IlvGraphic.

className is the name of the graphic class.

This macro is equivalent to the lines:

className(const className& source);
className(IlvInputFile& inputFile,
IlvPalette* palette = 0);
See also
DeclareTypeInfo().

§ DeclareTypeInfo

#define DeclareTypeInfo ( )

Declares class information related member functions for an IlvGraphic subtype.

This macro is similar to the DeclareTypeInfoRO() macro, except that it adds the declaration of the member function write():

virtual void write(IlvOutputFile& outputFile) const;
See also
DeclareTypeInfoRO().

§ DeclareTypeInfoRO

#define DeclareTypeInfoRO ( )

Declares class information related member functions for an IlvGraphic subtype that has no write().

See also
DeclareTypeInfo().

§ IlvPredefinedIOMembers

#define IlvPredefinedIOMembers (   classname)

Defines persistence-related member functions.

This macro to define the member functions copy() and read() of a subclass of IlvGraphic.

This macro must be used in the implementation file, outside any function definition block, just like IlvRegisterClass().

It is equivalent to:

className::read(IlvInputFile& input, IlvPalette* palette)
{
return new className(input, palette);
}
className::copy() const
{
return new className(*this);
}
See also
DeclareIOConstructors().
Parameters
classnameThe name of the graphic class.

§ IlvRegisterClass

#define IlvRegisterClass (   classname,
  superclass 
)

Registers a new IlvGraphic subclass.

When you define a subtype of IlvGraphic, if you want to be able to save and restore instances of this class you must redefine the read() and write() functions of IlvGraphic and register the new class by means of this macro.

This macro must be used in the implementation file, outside any function definition block.

Note
This macro is an initialization macro and should be called only once for each new subtype of the graphic class.

The arguments are C++ identifiers specifying a C++ class and its superclass. For example, the line IlvRegisterClass(IlvSimpleGraphic, IlvGraphic); registers the fact that the IlvSimpleGraphic class is a subclass of the IlvGraphic class.

Typedef Documentation

§ IlvApplyObject

IlvApplyObject

This type defines the signatures of functions that are called by member functions that can apply transformations to graphic objects.

Parameters
graphicThe graphic object that the function applies to.
userArgThe user parameter that was provided to the member function that calls this function.
See also
IlvGraphic::apply(), IlvContainer::applyToObject(), IlvContainer::applyToObjects(), IlvContainer::applyToTaggedObjects(), IlvManager::applyToObject(), IlvManager::applyToObjects(), IlvManager::applyToTaggedObjects(), IlvManager::applyToSelections().

§ IlvGraphicCallback

A synonym for IlvApplyObject.

This type defines the signature of all callbacks that apply to graphic objects.


© Copyright 2017, 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.