Click or drag to resize
SoCache Class
Inheritance Hierarchy

Namespace: OIV.Inventor.Caches
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.0.0 (2024.1.0)
Syntax
public class SoCache : SoBaseContextCache

The SoCache type exposes the following members.

Constructors
  NameDescription
Public methodSoCache

Constructor.

Top
Methods
  NameDescription
Public methodAddCacheDependency

Adds a dependency of this instance on another cache instance.

Public methodAddElement

Adds an element to elements-used list if not already there.

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 methodGetCachedInvalidElement

Assuming OIV.Inventor.Caches.SoCache.IsValid(OIV.Inventor.Misc.SoState) returns false, this will return the first cached element that is invalid (auto-caching uses this in its heuristic).

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetInvalidElement

Assuming OIV.Inventor.Caches.SoCache.IsValid(OIV.Inventor.Misc.SoState) returns false, this will return the first state element that is invalid (auto-caching uses this in its heuristic).

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvalidate

Make this cache invalid.

Public methodIsContextDependent

return current context dependency state.

(Inherited from SoBaseContextCache.)
Public methodIsValid(SoState)

Returns true if cache is valid with respect to the given state.

Public methodIsValid(SoState, SoElement)

Return is the given element is valid True if the element is not monitored.

Public methodRelease

This function is called when a context has been requested to delete the context through the SoDeviceContext.dispose() method.

(Inherited from SoBaseContextCache.)
Public methodSetContextDependent
Calls SetContextDependent(true).
(Inherited from SoBaseContextCache.)
Public methodSetContextDependent(Boolean)

Object is considered not context dependent as long as OIV.Inventor.Devices.SoDeviceContext was not ref by this object.

(Inherited from SoBaseContextCache.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)
Top
Remarks