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
SystemObject
  OIV.InventorSoNetBase
    OIV.InventorSoDisposable
      OIV.Inventor.CachesSoNodeDependencies

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

The SoNodeDependencies type exposes the following members.

Constructors
  NameDescription
Public methodSoNodeDependencies
Initializes a new instance of the SoNodeDependencies class
Top
Methods
  NameDescription
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.

Top
Properties
  NameDescription
Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)
Top
Remarks

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