SoNodeDependencies Class |
This class is a cache handler that can be used to monitor the modifications made to elements or fields.
Namespace: OIV.Inventor.Caches
The SoNodeDependencies type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoNodeDependencies | Initializes a new instance of the SoNodeDependencies class |
Name | Description | |
---|---|---|
![]() | AddDependency(SoField) | Add given field as a dependency for the cache. |
![]() | AddDependency(Type, Int32) | Add given element type as a dependency for the cache. |
![]() | Dispose |
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.) |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Invalidate | Manually invalidate the cache. |
![]() | IsValid | Returns true if the cache is valid for the given state. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UpdateCache | Update cache according to given state. |
Name | Description | |
---|---|---|
![]() | IsDisposable | 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.