-- Created on: 1998-09-30 -- Created by: Denis PASCAL -- Copyright (c) 1998-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. class AISViewer from TPrsStd inherits Attribute from TDF ---Purpose: The groundwork to define an interactive viewer attribute. -- This attribute stores an interactive context at the root label. -- You can only have one instance of this class per data framework. uses Attribute from TDF, Label from TDF, GUID from Standard, DataSet from TDF, RelocationTable from TDF, InteractiveContext from AIS, Viewer from V3d, ExtendedString from TCollection is ---Purpose: class methods -- ============= GetID (myclass) ---C++: return const & returns GUID from Standard; Has (myclass; acces : Label from TDF) ---Purpose: returns True if there is an AISViewer attribute in -- Data Framework. returns Boolean from Standard; New (myclass; access : Label from TDF; selector : InteractiveContext from AIS) ---Purpose: create and set an AISViewer at. Raise an exception if -- Has. returns AISViewer from TPrsStd; New (myclass; acces : Label from TDF; viewer : Viewer from V3d) ---Purpose: create and set an AISAttribute at root label. The -- interactive context is build. Raise an exception if -- Has. returns AISViewer from TPrsStd; Find (myclass; acces : Label from TDF; A : in out AISViewer from TPrsStd) returns Boolean from Standard; ---Purpose: -- Finds the viewer attribute at the label access, the -- root of the data framework. Calling this function can be used to initialize an AIS viewer Find (myclass; acces : Label from TDF; IC : in out InteractiveContext from AIS) returns Boolean from Standard; Find (myclass; acces : Label from TDF; V : in out Viewer from V3d) returns Boolean from Standard; Update (myclass; acces : Label from TDF); ---Purpose: AISViewer methods -- ================= Create returns AISViewer from TPrsStd; Update (me); ---Purpose: Updates the viewer at the label access. -- access is the root of the data framework. SetInteractiveContext (me : mutable; ctx : InteractiveContext from AIS); ---Purpose: Sets the interactive context ctx for this attribute. GetInteractiveContext (me) returns InteractiveContext from AIS; ---Purpose: Returns the interactive context in this attribute. ---Category: TDF_Attribute methods -- ===================== ID (me) ---C++: return const & returns GUID from Standard; Restore(me: mutable; with : Attribute from TDF); NewEmpty(me) returns Attribute from TDF; Paste (me; into : Attribute from TDF; RT : RelocationTable from TDF); fields myInteractiveContext : InteractiveContext from AIS; end AISViewer;