|
override void | deleteCptr () |
|
virtual bool | DerivedClassHasMethod (string methodName, System.Type[] methodTypes) |
|
override IntPtr | GetNonDirectorClassID () |
|
virtual bool | IsUserDerived () |
|
|
HandleRef | sptr |
|
bool | cMemOwn |
|
HandleRef | cptr |
|
|
static Dictionary< IntPtr, ModelTree > | cachedObjects = new Dictionary<IntPtr, ModelTree>() |
|
static Dictionary< IntPtr, WeakReference > | cachedWeakRefs = new Dictionary<IntPtr, WeakReference>() |
|
static ReaderWriterLockSlim | mapLock = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion) |
|
The ModelTree class is a smart pointer which corresponds to a tree object in a GUI toolkit, e.g., a TreeView in WPF or a CTreeCtrl in MFC. This class can be derived from to facilitate tree creation in the various GUI toolkits. It is used to create a model browser.
◆ ItemType
Enumerates the types of items that can be contained in a ModelTree.
Enumerator |
---|
None | No type.
|
Model | Item is an HCA.Model.
|
Node | Item is an HCA.Node.
|
◆ ModelTree() [1/3]
HPS.HCA.ModelTree.ModelTree |
( |
| ) |
|
|
inline |
The default constructor creates an uninitialized ModelTree object. The Type() function will return Type.None.
◆ ModelTree() [2/3]
This constructor creates a ModelTree object associated with a Canvas and the specified HCA.Model. This constructor should be used to create a new ModelTree object.
- Parameters
-
◆ ModelTree() [3/3]
The copy constructor creates a ModelTree object that shares the underlying smart-pointer of the source ModelTree.
- Parameters
-
◆ Assign()
Share the underlying smart-pointer of the ModelTree source.
- Parameters
-
in_that | The ModelTree source of the assignment. |
- Returns
- A reference to this ModelTree.
◆ Equals()
Check if the source ModelTree points to the same underlying impl as this ModelTree.
- Parameters
-
- Returns
- true if the objects reference the same underlying data, false otherwise.
◆ Flush()
virtual void HPS.HCA.ModelTree.Flush |
( |
| ) |
|
|
inlinevirtual |
Resets the root ModelTreeItem for this ModelTree.
This will release the root ModelTreeItem by this ModelTree and set the root to a null pointer.
If this function is overridden, the overriding function should invoke this base function.
◆ GetCanvas()
◆ GetHCAModel()
Gets the HCAModel associated with this ModelTree.
- Returns
- The HCAModel associated with this ModelTree.
◆ GetRoot()
◆ ObjectType()
override HPS.Type HPS.HCA.ModelTree.ObjectType |
( |
| ) |
|
|
inlinevirtual |
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Returns
- The declared type of the object in question, which may differ from the true, underlying type.
Reimplemented from HPS.Object.
◆ SetRoot()
The documentation for this class was generated from the following file:
- internals/hps_sprk_hca/source/cs/HPS.HCA.cs