mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0031326: Foundation Classes - Init from Json for base OCCT classes
InitFromJson method implementation for some simple classes. OCCT_INIT_* defines introduction to do automatic parsing of the stream into values. Inspector is extended to visualize objects created on the dump stream if it might be created.
This commit is contained in:
@@ -92,6 +92,22 @@ TreeModel_ItemBasePtr TreeModel_ItemBase::Child (int theRow, int theColumn, cons
|
||||
return anItem;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : Presentations
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void TreeModel_ItemBase::Presentations (NCollection_List<Handle(Standard_Transient)>& thePresentations)
|
||||
{
|
||||
if (Column() != 0)
|
||||
return;
|
||||
|
||||
const Handle(TreeModel_ItemProperties)& anItemProperties = Properties();
|
||||
if (anItemProperties)
|
||||
{
|
||||
anItemProperties->Presentations (thePresentations);
|
||||
}
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : currentItem
|
||||
// purpose :
|
||||
|
Reference in New Issue
Block a user