Skip to content

classHHashObject 02

Member Function Documentation

HUserCategoryProperty* HHashObject::CreateUserCategoryProperty  ) 
 

HHashObject * HHashObject::GetChild  ) 
 

Retrieves the First child HHashObject in the childs list independent of its type. To test for its type use HHashObject::GetSibling().

Skips user containers, and doesn't include classes not derived off HashObject (CPs)

Note:
Using GetChild(), GetSibling(), or GetParent() will ensure that the iteration proceeds through the list in the same order as they appear in the PWS folder.
Here is a code snipet that will iterate through objects of type HModels in a HChor object.
for (HHashObject *obj = chor->GetChild(); obj; obj=obj->GetSibling()) {
   if (obj->GetObjectType() == HOT_MODEL)
   ...
}
See also:
see HChor::GetChildModel() for an easier and more efficient way to accomplish the same iteration.

HHashObject * HHashObject::GetHeadInstance  ) 
 

Retrieves the first work-object (instance) of an HHashObject.

Each HObjectCache have a list of all work-object instanciated from itself anywhere in a project.

For example if you have a HModelCache under the Objects folder, the GetHeadInstance would return the first HModel (an work-objectinstance of a HModelCache) from an internal list. HModels are found in choreographies or if you are editing a HModelCache in a view. If you drop a HModelCache into a choreography, an HModel is created, and it is added to the internal list of checked out instances (GetHeadInstance()).

char* HHashObject::GetName  ) 
  Reimplemented in HActionCache.

HHashObject * HHashObject::GetNextInstance HHashObject instance  ) 
 

Retrieves the next HObject.

Each HObjectCache have a list of all instanciation of itself anywhere in a project. This member function retrieves the next instance of the object. This instance may reside anywhere in the project, choreographies, open Model or Actions views as referenced by "Shortcut to ...".

Parameters:
instance  - Pointer to the HHashObject from which the next instance is to be retrieved.

ObjectType HHashObject::GetObjectType  ) 
 

Returns the object type

Note:
The HTreeObject::GetObjectType() should be used instead of this one. This one is an old remnent of the 8.5 SDK and have been left there so not to invalidate old plugins.
See also:

ObjectType for the complete list of ObjectType tags and their values.

HTreeObject::GetObjectType()

Reimplemented from HTreeObject.

Reimplemented in HShading.

HHashObject * HHashObject::GetParentOfType ObjectType  ot  ) 
  Skips user containers, and doesn't include classes not derived off HashObject (CPs)

HCategoryProperty* HHashObject::GetPluginProperties  ) 
 

HHashObject * HHashObject::GetSibling  ) 
 

Retrieves the Next child HHashObject independent of its type in the list starting where the current HHashObject is in the list. To test for its type use HHashObject::GetSibling().

Skips user containers, and doesn't include classes not derived off HashObject (CPs)

Note:
See HHashObject::GetChild() for an example that iterates through objects in a list.

HHashObject * HHashObject::GetSiblingSame  ) 
 

Retrieves the Next child HHashObject of the same type as the current HHashObject in the list starting where the current HHashObject is in the list.

Skips user containers, and doesn't include classes not derived off HashObject (CPs)

HUserCategoryProperty* HHashObject::GetUserCategoryProperty  ) 
 

void HHashObject::InsertChildAfterObject HHashObject child,
HHashObject after