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:
@@ -34,7 +34,7 @@
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
View_Displayer::View_Displayer()
|
||||
: myIsKeepPresentations (false), myFitAllActive (false), myDisplayMode (-1)
|
||||
: myIsKeepPresentations (false), myFitAllActive (false), myDisplayMode (0)
|
||||
{
|
||||
myDisplayPreview = new View_DisplayPreview();
|
||||
}
|
||||
@@ -79,8 +79,6 @@ void View_Displayer::SetDisplayMode (const int theDisplayMode,
|
||||
for (AIS_ListIteratorOfListOfInteractive aDisplayedIt (aDisplayed); aDisplayedIt.More(); aDisplayedIt.Next())
|
||||
GetContext()->SetDisplayMode (aDisplayedIt.Value(), theDisplayMode, Standard_False);
|
||||
|
||||
myDisplayPreview->SetDisplayMode (theDisplayMode, Standard_False);
|
||||
|
||||
if (theToUpdateViewer)
|
||||
UpdateViewer();
|
||||
}
|
||||
@@ -270,7 +268,7 @@ bool View_Displayer::IsVisible (const TopoDS_Shape& theShape, const View_Present
|
||||
void View_Displayer::UpdatePreview (const View_DisplayActionType theType,
|
||||
const NCollection_List<Handle(Standard_Transient)>& thePresentations)
|
||||
{
|
||||
myDisplayPreview->UpdatePreview (theType, thePresentations, myDisplayMode);
|
||||
myDisplayPreview->UpdatePreview (theType, thePresentations);
|
||||
if (!myIsKeepPresentations || myFitAllActive)
|
||||
fitAllView();
|
||||
}
|
||||
|
Reference in New Issue
Block a user