Click or drag to resize
SoNodeDependencies Class

This class is a cache handler that can be used to monitor the modifications made to elements or fields.

Inheritance Hierarchy

Namespace: OIV.Inventor.Caches
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: (
public class SoNodeDependencies : SoDisposable

The SoNodeDependencies type exposes the following members.

Public methodSoNodeDependencies
Initializes a new instance of the SoNodeDependencies class
Public methodAddDependency(SoField)

Add given field as a dependency for the cache.

Public methodAddDependency(Type, Int32)

Add given element type as a dependency for the cache.

Public methodDispose
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvalidate

Manually invalidate the cache.

Public methodIsValid

Returns true if the cache is valid for the given state.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateCache

Update cache according to given state.

Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)

In order to add new Elements or Fields to be monitored by the cache, use the appropriate addDependency() method.

If one of the added elements or fields has been modified since the last call to OIV.Inventor.Caches.SoNodeDependencies.UpdateCache(OIV.Inventor.Misc.SoState), the OIV.Inventor.Caches.SoNodeDependencies.IsValid(OIV.Inventor.Misc.SoState) method will return false, and a subsequent call to OIV.Inventor.Caches.SoNodeDependencies.UpdateCache(OIV.Inventor.Misc.SoState) will make it valid again.

Additionnally, the handled cache can be manually invalidated using the OIV.Inventor.Caches.SoNodeDependencies.Invalidate() method.

See Also