Description

Class that implements the object manager's McObjects collection of McObject instances.

Object Model

Remarks

Generally there will only be one instance of this class per application. In Image Pro, this instance is exposed as the application McObjects property or the Engine.McObjects property.

Members

Methods
Add

Creates a new McObject of a given type, with an optional name, parent and initial value.

AttachAutoAddToCategory

Associates an object “Auto Add” with a particular McObject category.

AttachNotifySinkToCategory

Sets up to automatically attach either a standard (IID_IMcObjStandardNotify) or custom sink notification interface to any object which is added to a given category.

AttachNotifySinkToType

Sets up to automatically attach either a standard (IID_IMcObjStandardNotify) or custom sink notification interface to any object which is created of a given type.

CategoryNameOrID

The name or ID number of a Category.

ChangeObjectName

Changes an McObject's name, or assigns a name to an unnamed McObject.

CheckForLegalName

Checks a name string for legal syntax and collision with existing names. Optionally produces a legal name based on the supplied name.

DetachAutoAddFromCategory

Disables the association of an object “Auto Add” with a particular McObject category.

DetachNotifySinkFromCategory

Disables the automatic attachment of a standard or custom sink notification interface to objects added to a category

DetachNotifySinkFromType

Disables the automatic attachment of a standard or custom sink notification interface to objects of a given type.

GetCategoryCount

Returns a count of all McObjects in one category with some particular (or no) parent object, as filtered by SetEnumFilters.

GetCategoryItem

Implements the standard collection “Item” method for one category and some particular (or no) parent object.

LookupByTagNumber

Looks up an McObject by its unique TagNumber and ParentMcObject.

RegisterCategory

Registers a new McObjMgr “Category”.

RegisterInterfaceClassFactory

Registers information necessary to instantiate an interface as a new McObjMgr type.

RegisterType

Register a new type of McObject.

Remove

Removes an McObject from the collection.

RemoveAll

Removes all McObjects that were created by this McObjects instance from the collection.

SetEnumFilters

Sets the state of several optional “filters” for the Count, _NewEnum, GetCategoryCount or GetCategory_NewEnum standard IEnumVARIANT interface support routines.

SetNotifyOrder

Sets the notify order for some sink for one or all objects.

SetNotifyRules

Sets the notify rules for some sink.

TypeNameOrID

The name or ID number of a type.

UnregisterCategory

Unregisters a category previously registered with RegisterCategory.

UnregisterType

Unregisters a type previously registered with either RegisterType or RegisterInterfaceClassFactory.


Properties
CountRead-only property

A read-only property reflecting the Count of McObjects in the collection, as filtered by SetEnumFilters.

CreatedObjectsCountRead-only property

A read-only property giving the count of all existing McObject instances that were created by this McObjects instance.

GlobalToolsRead-only property

A the McOMGlobal class

ItemRead-only property

Standard Item property for the McObjects collection.

LastErrorCodeRead-write property

Code of last error processed by the common error reporting facility.

LastErrorDescriptionRead-write property

Description of last error processed by the common error reporting facility.

NameSpaceRead-write property

A read/write text string property which controls and reflects the default “namespace” for the collection object. This string is initially “McOM”.