mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
1204 lines
45 KiB
Plaintext
1204 lines
45 KiB
Plaintext
-- Created on: 1991-09-17
|
|
-- Created by: NW,JPB,CAL
|
|
-- Copyright (c) 1991-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.
|
|
|
|
-- 05-97: CAL; Ajout du Clear sur les TOS_COMPUTED.
|
|
-- 10-97: CAL; Retrait des DataStructure.
|
|
-- 11-97: CAL; Retrait de la dependance avec math.Calcul developpe.
|
|
-- 11-97: CAL; Ajout de NumberOfDisplayedStructures
|
|
-- 05-98: CAL; Perfs. Connection entre structures COMPUTED.
|
|
-- 16-09-98: BGN; Points d'entree du Triedre (S3819, Phase 1)
|
|
-- 22-09-98: BGN; S3989 (anciennement S3819)
|
|
-- TypeOfTriedron* from Aspect(et pas Visual3d)
|
|
-- 02-12-98: S4062. Ajout des layers.
|
|
-- 13-09-99: GG; GER61454 Adds LightLimit() and PlaneLimit() methods
|
|
-- 10-11-99: GG; Add PRO19603 Redraw( area ) method
|
|
-- 14-01-00: GG; Add IMP140100 ViewManager() method
|
|
-- THA - 17/08/00 Thomas HARTL <t-hartl@muenchen.matra-dtv.fr>
|
|
-- -> Add Print methods (works only under Windows).-
|
|
-- GG - RIC120302 Add NEW SetWindow method.
|
|
-- 30-04-02: JMB; MyDisplayedStructure is now a Map instead
|
|
-- of a Set. Improves performance of Selection
|
|
-- mechanisms
|
|
|
|
-- SAV - 22/10/01 -> Add EnableDepthTest() & IsDepthTestEnabled() methods.
|
|
-- SAV - 25/10/01 -> Add EnableGLLight() & IsGLLightEnabled() methods.
|
|
-- VSV - 28/05/02: ZBUFFER mode of Trihedron
|
|
-- SAV - 23/12/02 Added methods too set background image
|
|
|
|
class View from Visual3d inherits DataStructureManager from Graphic3d
|
|
|
|
---Version:
|
|
|
|
---Purpose: Creation and edition of a view in a 3D visualiser.
|
|
-- A 3D view is composed of an "orientation" part defined
|
|
-- by the position of the observer, the direction of view,
|
|
-- and a "mapping" part defined by the type of projection
|
|
-- (parallel or perspective) and by the window-viewport
|
|
-- couple which allows passage from the projected coordinate
|
|
-- space into the screen space.
|
|
-- Summary of 3D Viewing
|
|
-- To define a view, you must define:
|
|
-- - The view orientation transformation
|
|
-- - The view mapping transformation
|
|
-- - The view representation.
|
|
-- To activate a view, you must define:
|
|
-- - The associated window.
|
|
|
|
|
|
uses
|
|
|
|
Array2OfReal from TColStd,
|
|
|
|
Background from Aspect,
|
|
GradientBackground from Aspect,
|
|
Window from Aspect,
|
|
TypeOfUpdate from Aspect,
|
|
TypeOfHighlightMethod from Aspect,
|
|
TypeOfTriedronEcho from Aspect,
|
|
TypeOfTriedronPosition from Aspect,
|
|
Handle from Aspect,
|
|
RenderingContext from Aspect,
|
|
GraphicCallbackProc from Aspect,
|
|
ColorScale from Aspect,
|
|
PrintAlgo from Aspect,
|
|
|
|
BufferType from Graphic3d,
|
|
CBitFields8 from Graphic3d,
|
|
CView from Graphic3d,
|
|
GraphicDriver from Graphic3d,
|
|
PtrFrameBuffer from Graphic3d,
|
|
Structure from Graphic3d,
|
|
SequenceOfStructure from Graphic3d,
|
|
MapOfStructure from Graphic3d,
|
|
Camera_Handle from Graphic3d,
|
|
|
|
ZLayerSettings from Graphic3d,
|
|
|
|
ContextView from Visual3d,
|
|
Layer from Visual3d,
|
|
Light from Visual3d,
|
|
SequenceOfLight from Visual3d,
|
|
TypeOfAnswer from Visual3d,
|
|
ViewManager from Visual3d,
|
|
ViewManagerPtr from Visual3d,
|
|
|
|
TypeOfBackfacingModel from Visual3d,
|
|
|
|
NameOfColor from Quantity,
|
|
FillMethod from Aspect,
|
|
GradientFillMethod from Aspect,
|
|
ExportFormat from Graphic3d,
|
|
SortType from Graphic3d,
|
|
Color from Quantity,
|
|
FontAspect from Font,
|
|
AsciiString from TCollection,
|
|
ExtendedString from TCollection,
|
|
CGraduatedTrihedron from Graphic3d,
|
|
|
|
PixMap from Image,
|
|
Box from Bnd
|
|
|
|
raises
|
|
TransformError from Visual3d,
|
|
ViewDefinitionError from Visual3d
|
|
|
|
is
|
|
|
|
----------------------------------------------
|
|
-- Summary of 3D Viewing --
|
|
-- --
|
|
-- To define a view, you must define --
|
|
-- --
|
|
-- The view orientation transformation --
|
|
-- The view mapping transformation --
|
|
-- The view representation. --
|
|
-- --
|
|
-- To activate a view, you must define --
|
|
-- --
|
|
-- The associated window. --
|
|
----------------------------------------------
|
|
|
|
Create ( AManager : ViewManager from Visual3d )
|
|
returns View from Visual3d;
|
|
---Level: Public
|
|
---Purpose: Creates a view in the viewer <AManager> with a default
|
|
-- orientation and a default mapping.
|
|
|
|
---------------------------------------------------
|
|
-- Category: Methods to modify the class definition
|
|
---------------------------------------------------
|
|
|
|
Activate ( me : mutable )
|
|
---Level: Public
|
|
---Purpose: Activates the view <me>.
|
|
-- Map the associated window on the screen and
|
|
-- post the view in this window.
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
Deactivate ( me : mutable )
|
|
---Level: Public
|
|
---Purpose: Deactivates the view <me>.
|
|
-- Unmap the associated window on the screen and
|
|
-- unpost the view in this window.
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
Destroy ( me : mutable )
|
|
is redefined;
|
|
---Level: Public
|
|
---Purpose: Deletes and erases the view <me>.
|
|
---Category: Methods to modify the class definition
|
|
---C++: alias ~
|
|
|
|
Redraw ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Updates screen in all cases.
|
|
---Category: Methods to modify the class definition
|
|
|
|
RedrawImmediate ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Updates layer of immediate presentations.
|
|
|
|
Redraw ( me : mutable; x,y,width,height: Integer from Standard )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Updates screen area in all cases.
|
|
-- area is given by his xy min corner and size in pixel coordinates
|
|
---Category: Methods to modify the class definition
|
|
|
|
Redraw ( me : mutable;
|
|
AnUnderLayer : Layer from Visual3d;
|
|
AnOverLayer : Layer from Visual3d )
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Updates screen in all cases.
|
|
---Category: Methods to modify the class definition
|
|
|
|
RedrawImmediate ( me : mutable;
|
|
theUnderLayer : Layer from Visual3d;
|
|
theOverLayer : Layer from Visual3d )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Updates layer of immediate presentations.
|
|
|
|
Invalidate ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Invalidates view content but does not redraw it.
|
|
|
|
Redraw ( me : mutable;
|
|
AnUnderLayer : Layer from Visual3d;
|
|
AnOverLayer : Layer from Visual3d;
|
|
x,y,width,height: Integer from Standard )
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Updates screen area in all cases.
|
|
-- area is given by his xy min corner and size in pixel coordinates
|
|
---Category: Methods to modify the class definition
|
|
|
|
Remove ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Deletes and erases the view <me>.
|
|
-- Warning: No more graphic operations in <me> after this call.
|
|
---Category: Methods to modify the class definition
|
|
|
|
Resized ( me : mutable )
|
|
---Level: Public
|
|
---Purpose: Updates the view <me> after the modification
|
|
-- of the associated window.
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
SetBackground ( me : mutable;
|
|
ABack : Background from Aspect )
|
|
---Level: Internal
|
|
---Purpose: Modifies the default window background.
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
SetBackgroundImage( me : mutable; FileName : CString from Standard;
|
|
FillStyle : FillMethod from Aspect;
|
|
update : Boolean from Standard )
|
|
---Level: Internal
|
|
---Purpose:
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
SetBgImageStyle( me : mutable; FillStyle : FillMethod from Aspect;
|
|
update : Boolean from Standard )
|
|
---Level: Internal
|
|
---Purpose:
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
SetGradientBackground ( me : mutable;
|
|
ABack : GradientBackground from Aspect;
|
|
update : Boolean from Standard )
|
|
---Level: Internal
|
|
---Purpose: Modifies the gradient window background.
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
SetBgGradientStyle( me : mutable;
|
|
FillStyle : GradientFillMethod from Aspect;
|
|
update : Boolean from Standard )
|
|
---Level: Internal
|
|
---Purpose:
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
SetBackFacingModel ( me : mutable;
|
|
aModel : TypeOfBackfacingModel from Visual3d
|
|
) is static;
|
|
---Level : Public
|
|
---Purpose : Manages display of the back faces
|
|
|
|
BackFacingModel ( me )
|
|
returns TypeOfBackfacingModel from Visual3d is static;
|
|
---Level : Public
|
|
---Purpose : Returns current state of the back faces display
|
|
|
|
SetContext ( me : mutable;
|
|
CTX : ContextView from Visual3d )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Sets the context <CTX> in the view <me>.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetViewMappingDefault ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Saves the current mapping which will be the
|
|
-- reference value for the reset of the mapping
|
|
-- done by the ViewmappingReset method.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetViewOrientationDefault ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Saves the current orientation which will be the
|
|
-- reference value for the reset of the orientation
|
|
-- done by the ViewOrientationReset method.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetWindow ( me : mutable;
|
|
AWindow : Window from Aspect )
|
|
---Level: Public
|
|
---Purpose: Associates the window <AWindow> to the view <me>.
|
|
-- No new association if the window is already defined.
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if it is impossible
|
|
-- to associate a view and a window.
|
|
-- (association already done or another problem)
|
|
-- Modifies the viewmapping of the associated view
|
|
-- when it calls the SetRatio method.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
---Purpose:
|
|
-- After this call, each view is mapped in an unique window.
|
|
--
|
|
-- Programming example :
|
|
--
|
|
-- An example when we have 1 view and 1 window
|
|
-- -------------------------------------------
|
|
--
|
|
-- Handle(Aspect_DisplayConnection) aDisplayConnection;
|
|
--
|
|
-- // Display connection initialization only needed on Linux platform
|
|
-- // and on Mac OS X, in cases when you use Xlib for windows drawing.
|
|
-- aDisplayConnection = new Aspect_DisplayConnection();
|
|
--
|
|
-- // Graphic driver initialization
|
|
-- Handle(Graphic3d_GraphicDriver) aGraphicDriver =
|
|
-- Graphic3d::InitGraphicDriver (aDisplayConnection);
|
|
--
|
|
-- // Define a view manager
|
|
-- Handle(Visual3d_ViewManager) aVisualManager = new Visual3d_ViewManager (aGraphicDriver);
|
|
--
|
|
-- // Define a view
|
|
-- Handle(Visual3d_View) aView = new Visual3d_View (aVisaulManager);
|
|
--
|
|
-- // Define a window
|
|
-- Handle(Xw_Window) aWindow = new Xw_Window
|
|
-- (aDisplayConnection, "Graphic View 1", 0.695, 0.695, 0.600, 0.600, Quantity_NOC_MATRAGRAY);
|
|
--
|
|
-- // Associate the view and the window
|
|
-- aView->SetWindow (aWindow);
|
|
--
|
|
-- // Map the window
|
|
-- aWindow->Map ();
|
|
--
|
|
-- // Activate the view
|
|
-- aView->Activate ();
|
|
--
|
|
|
|
SetWindow ( me : mutable;
|
|
AWindow : Window from Aspect;
|
|
AContext: RenderingContext from Aspect;
|
|
ADisplayCB: GraphicCallbackProc from Aspect;
|
|
AClientData: Address from Standard
|
|
)
|
|
---Level: Public
|
|
---Purpose: Associates the window <AWindow> and context <AContext>
|
|
-- to the view <me>.
|
|
-- If <AContext> is not NULL the graphic context is used
|
|
-- directly to draw something in this view.
|
|
-- Otherwise an internal context is created.
|
|
-- If <ADisplayCB> is not NULL then a user display CB is
|
|
-- call at the end of the OCC graphic traversal and just
|
|
-- before the swap of buffers. The <aClientData> is pass
|
|
-- to this call back.
|
|
-- No new association if the window is already defined.
|
|
-- Category: Methods to modify the class definition
|
|
-- Warning: Raises ViewDefinitionError if it is impossible
|
|
-- to associate a view and a window.
|
|
-- (association already done or another problem)
|
|
-- Modifies the viewmapping of the associated view
|
|
-- when it calls the SetRatio method.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
---Purpose:
|
|
-- After this call, each view is mapped in an unique window.
|
|
|
|
Update ( me : mutable;
|
|
theUpdateMode : TypeOfUpdate from Aspect )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Updates screen in function of modifications of
|
|
-- the structures.
|
|
---Category: Methods to modify the class definition
|
|
|
|
Update ( me : mutable;
|
|
AnUnderLayer : Layer from Visual3d;
|
|
AnOverLayer : Layer from Visual3d )
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Updates screen in function of modifications of
|
|
-- the structures.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetAutoZFitMode (me : mutable;
|
|
theIsOn : Boolean;
|
|
theScaleFactor : Real from Standard = 1.0);
|
|
---Level: public
|
|
---Purpose: Sets the automatic z-fit mode and its parameters.
|
|
-- The auto z-fit has extra parameters which can controlled from application level
|
|
-- to ensure that the size of viewing volume will be sufficiently large to cover
|
|
-- the depth of unmanaged objects, for example, transformation persistent ones.
|
|
-- @param theScaleFactor [in] the scale factor for Z-range.
|
|
-- The range between Z-min, Z-max projection volume planes
|
|
-- evaluated by z fitting method will be scaled using this coefficient.
|
|
-- Program error exception is thrown if negative or zero value
|
|
-- is passed.
|
|
|
|
AutoZFitMode (me) returns Boolean;
|
|
---Level: public
|
|
---Purpose: returns TRUE if automatic z-fit mode is turned on.
|
|
|
|
AutoZFitScaleFactor (me) returns Real from Standard;
|
|
---Level: public
|
|
---Purpose: returns scale factor parameter of automatic z-fit mode.
|
|
|
|
AutoZFit (me : mutable);
|
|
---Level: Public
|
|
---Purpose: If automatic z-range fitting is turned on, adjusts Z-min and Z-max
|
|
-- projection volume planes with call to ZFitAll.
|
|
|
|
ZFitAll (me : mutable; theScaleFactor : Real from Standard = 1.0);
|
|
---Level: Public
|
|
---Purpose: Change Z-min and Z-max planes of projection volume to match the
|
|
-- displayed objects.
|
|
|
|
ViewMappingReset ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Sets the value of the mapping to be the same as
|
|
-- the mapping saved by the SetViewMappingDefaut method.
|
|
---Category: Methods to modify the class definition
|
|
|
|
ViewOrientationReset ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Sets the value of the orientation to be the same as the
|
|
-- orientation saved by the SetViewOrientationDefaut method.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetComputedMode ( me : mutable; aMode : Boolean from Standard ) is static;
|
|
---Level: Advanced
|
|
---Purpose: Switches computed HLR mode in the view
|
|
---Category: Methods to modify the class definition
|
|
|
|
ComputedMode ( me ) returns Boolean from Standard is static;
|
|
---Level: Advanced
|
|
---Purpose: Returns the computed HLR mode state
|
|
---Category: Inquire methods
|
|
|
|
---------------------------------------------------
|
|
-- Category: Methods to modify the class definition
|
|
-- Triedron methods
|
|
---------------------------------------------------
|
|
|
|
ZBufferTriedronSetup ( me : mutable;
|
|
XColor : NameOfColor from Quantity = Quantity_NOC_RED;
|
|
YColor : NameOfColor from Quantity = Quantity_NOC_GREEN;
|
|
ZColor : NameOfColor from Quantity = Quantity_NOC_BLUE1;
|
|
SizeRatio : Real from Standard = 0.8;
|
|
AxisDiametr : Real from Standard = 0.05;
|
|
NbFacettes : Integer from Standard = 12)
|
|
is static;
|
|
---Level: Advanced
|
|
---Purpose: Customization of the ZBUFFER Triedron.
|
|
--- Initializes Colors of X Y and axis
|
|
--- Scale ratio defines decreasing of trihedron size when
|
|
--- its position is out of a View
|
|
|
|
TriedronDisplay ( me : mutable;
|
|
APosition : TypeOfTriedronPosition from Aspect = Aspect_TOTP_CENTER;
|
|
AColor : NameOfColor from Quantity = Quantity_NOC_WHITE ;
|
|
AScale : Real from Standard = 0.02;
|
|
AsWireframe : Boolean from Standard = Standard_True )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Display of the Triedron.
|
|
--- Initialize position, color and length of Triedron axes.
|
|
--- The scale is a percent of the window width.
|
|
--- If AsWireframe is FALSE triedron is shown in shaded mode
|
|
--- AColor is not considered for ZBUFFER mode
|
|
---Category:
|
|
|
|
TriedronErase ( me : mutable )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Erases the Triedron.
|
|
---Category:
|
|
|
|
TriedronEcho ( me : mutable;
|
|
AType : TypeOfTriedronEcho from Aspect = Aspect_TOTE_NONE )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Highlights the echo zone of the Triedron.
|
|
---Category:
|
|
|
|
------------------------------------------
|
|
---Category: Graduated trihedron
|
|
------------------------------------------
|
|
|
|
GetGraduatedTrihedron(me;
|
|
-- Names of axes --
|
|
xname, yname, zname : out ExtendedString from TCollection;
|
|
-- Draw names --
|
|
xdrawname, ydrawname, zdrawname : out Boolean from Standard;
|
|
-- Draw values --
|
|
xdrawvalues, ydrawvalues, zdrawvalues : out Boolean from Standard;
|
|
-- Draw grid --
|
|
drawgrid : out Boolean from Standard;
|
|
-- Draw axes --
|
|
drawaxes : out Boolean from Standard;
|
|
-- Number of splits along axes --
|
|
nbx, nby, nbz : out Integer from Standard;
|
|
-- Offset for drawing values --
|
|
xoffset, yoffset, zoffset : out Integer from Standard;
|
|
-- Offset for drawing names of axes --
|
|
xaxisoffset, yaxisoffset, zaxisoffset : out Integer from Standard;
|
|
-- Draw tickmarks --
|
|
xdrawtickmarks, ydrawtickmarks, zdrawtickmarks : out Boolean from Standard;
|
|
-- Length of tickmarks --
|
|
xtickmarklength, ytickmarklength, ztickmarklength : out Integer from Standard;
|
|
-- Grid color --
|
|
gridcolor : out Color from Quantity;
|
|
-- Colors of axis names --
|
|
xnamecolor, ynamecolor, znamecolor : out Color from Quantity;
|
|
-- Colors of axis and values --
|
|
xcolor, ycolor, zcolor : out Color from Quantity;
|
|
-- Name of font for names of axes --
|
|
fontOfNames : out AsciiString from TCollection;
|
|
-- Style of names of axes --
|
|
styleOfNames : out FontAspect from Font;
|
|
-- Size of names of axes --
|
|
sizeOfNames : out Integer from Standard;
|
|
-- Name of font for values --
|
|
fontOfValues : out AsciiString from TCollection;
|
|
-- Style of values --
|
|
styleOfValues : out FontAspect from Font;
|
|
-- Size of values --
|
|
sizeOfValues : out Integer from Standard)
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Purpose: Returns data of a graduated trihedron if displayed (return value is True)
|
|
|
|
GraduatedTrihedronDisplay(me : mutable;
|
|
-- Names of axes --
|
|
xname, yname, zname : ExtendedString from TCollection;
|
|
-- Draw names --
|
|
xdrawname, ydrawname, zdrawname : Boolean from Standard;
|
|
-- Draw values --
|
|
xdrawvalues, ydrawvalues, zdrawvalues : Boolean from Standard;
|
|
-- Draw grid --
|
|
drawgrid : Boolean from Standard;
|
|
-- Draw axes --
|
|
drawaxes : Boolean from Standard;
|
|
-- Number of splits along axes --
|
|
nbx, nby, nbz : Integer from Standard;
|
|
-- Offset for drawing values --
|
|
xoffset, yoffset, zoffset : Integer from Standard;
|
|
-- Offset for drawing names of axes --
|
|
xaxisoffset, yaxisoffset, zaxisoffset : Integer from Standard;
|
|
-- Draw tickmarks --
|
|
xdrawtickmarks, ydrawtickmarks, zdrawtickmarks : Boolean from Standard;
|
|
-- Length of tickmarks --
|
|
xtickmarklength, ytickmarklength, ztickmarklength : Integer from Standard;
|
|
-- Grid color --
|
|
gridcolor : Color from Quantity;
|
|
-- Colors of axis names --
|
|
xnamecolor, ynamecolor, znamecolor : Color from Quantity;
|
|
-- Colors of axis and values --
|
|
xcolor, ycolor, zcolor : Color from Quantity;
|
|
-- Name of font for names of axes --
|
|
fontOfNames : AsciiString from TCollection;
|
|
-- Style of names of axes --
|
|
styleOfNames : FontAspect from Font;
|
|
-- Size of names of axes --
|
|
sizeOfNames : Integer from Standard;
|
|
-- Name of font for values --
|
|
fontOfValues : AsciiString from TCollection;
|
|
-- Style of values --
|
|
styleOfValues : FontAspect from Font;
|
|
-- Size of values --
|
|
sizeOfValues : Integer from Standard)
|
|
---Purpose: Displays a graduated trihedron.
|
|
is static;
|
|
|
|
GraduatedTrihedronErase(me : mutable)
|
|
---Purpose: Erases a graduated trihedron from the view.
|
|
is static;
|
|
|
|
----------------------------
|
|
---Category: Inquire methods
|
|
----------------------------
|
|
|
|
Background ( me )
|
|
returns Background from Aspect
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Returns the value of the default window background.
|
|
|
|
GradientBackground ( me )
|
|
returns GradientBackground from Aspect
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Returns the value of the window background.
|
|
|
|
ContainsFacet ( me )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns Standard_True if one of the structures
|
|
-- displayed in the view <me> contains Polygons,
|
|
-- Triangles or Quadrangles.
|
|
|
|
ContainsFacet ( me;
|
|
ASet : MapOfStructure from Graphic3d )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns Standard_True if one of the structures
|
|
-- in the set <ASet> contains Polygons, Triangles
|
|
-- or Quadrangles.
|
|
|
|
Context ( me )
|
|
returns ContextView from Visual3d
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns the current context of the view <me>.
|
|
---C++: return const &
|
|
|
|
DisplayedStructures ( me; SG: in out MapOfStructure from Graphic3d )
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Returns the set of structures displayed in
|
|
-- the view <me>.
|
|
|
|
IsActive ( me )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns the activity flag of the view <me>.
|
|
|
|
IsDefined ( me )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns True if the window associated to the view
|
|
-- <me> is defined.
|
|
|
|
IsDeleted ( me )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns Standard_True is the view <me> is deleted.
|
|
-- <me> is deleted after the call Remove (me).
|
|
---Category: Inquire methods
|
|
|
|
MinMaxValues (me;
|
|
theToIgnoreInfiniteFlag : Boolean from Standard = Standard_False)
|
|
returns Box from Bnd
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns the coordinates of the boundary box of all
|
|
-- structures displayed in the view <me>.
|
|
-- If <theToIgnoreInfiniteFlag> is TRUE, then the boundary box
|
|
-- also includes minimum and maximum limits of graphical elements
|
|
-- forming parts of infinite structures.
|
|
|
|
MinMaxValues (me;
|
|
theSet : MapOfStructure from Graphic3d;
|
|
theToIgnoreInfiniteFlag : Boolean from Standard = Standard_False)
|
|
returns Box from Bnd
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns the coordinates of the boundary box of all
|
|
-- structures in the set <theSet>.
|
|
-- If <theToIgnoreInfiniteFlag> is TRUE, then the boundary box
|
|
-- also includes minimum and maximum limits of graphical elements
|
|
-- forming parts of infinite structures.
|
|
|
|
NumberOfDisplayedStructures ( me )
|
|
returns Integer from Standard
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Returns number of displayed structures in
|
|
-- the view <me>.
|
|
|
|
Projects (me;
|
|
AX, AY, AZ : Real from Standard;
|
|
APX, APY, APZ : out Real from Standard )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Returns the coordinates of the projection of the
|
|
-- 3d coordinates <AX>, <AY>, <AZ>.
|
|
|
|
DefaultCamera (me)
|
|
returns Camera_Handle from Graphic3d
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: @return the default camera of <me>.
|
|
---C++: return const &
|
|
|
|
Camera (me)
|
|
returns Camera_Handle from Graphic3d
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: @return the camera of <me>.
|
|
---C++: return const &
|
|
|
|
SetCamera (me : mutable; theCamera : Camera_Handle from Graphic3d) is static;
|
|
---Level: Public
|
|
---Purpose: Set camera object to provide orientation and projection matrices
|
|
-- for graphic driver.
|
|
|
|
Window ( me )
|
|
returns Window from Aspect
|
|
---Level: Public
|
|
---Purpose: Returns the window associated to the view <me>.
|
|
-- Warning: Raises ViewDefinitionError if the associated
|
|
-- window isn't defined.
|
|
raises ViewDefinitionError from Visual3d is static;
|
|
|
|
LightLimit ( me ) returns Integer is static;
|
|
---Level: Public
|
|
---Purpose: Returns the MAX number of light associated to the view <me>.
|
|
|
|
PlaneLimit ( me ) returns Integer is static;
|
|
---Level: Public
|
|
---Purpose: Returns the MAX number of clipping planes
|
|
-- associated to the view <me>.
|
|
|
|
ViewManager ( me ) returns ViewManager from Visual3d is static;
|
|
---Level: Advanced
|
|
---Purpose: Returns the view manager handle which manage this view
|
|
|
|
----------------------------
|
|
-- Category: Private methods
|
|
----------------------------
|
|
|
|
AcceptDisplay ( me;
|
|
AStructure : Structure from Graphic3d )
|
|
returns TypeOfAnswer from Visual3d
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Is it possible to display the structure
|
|
-- <AStructure> in the view <me> ?
|
|
---Category: Private methods
|
|
|
|
ReCompute ( me : mutable;
|
|
AStructure : Structure from Graphic3d );
|
|
---Level: Advanced
|
|
---Purpose: Computes the new presentation of the
|
|
-- structure <AStructure> displayed in <me>
|
|
-- with the type Graphic3d_TOS_COMPUTED.
|
|
---Category: Private methods
|
|
|
|
Compute ( me : mutable ) is static private;
|
|
---Level: Internal
|
|
---Purpose: Computes the new presentation of the
|
|
-- Structures displayed in <me> with the type
|
|
-- Graphic3d_TOS_COMPUTED.
|
|
---Category: Private methods
|
|
|
|
ChangeDisplayPriority ( me : mutable;
|
|
AStructure : Structure from Graphic3d;
|
|
OldPriority : Integer from Standard;
|
|
NewPriority : Integer from Standard )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Changes the display priority of the structure <AStructure>.
|
|
---Category: Private methods
|
|
|
|
|
|
SetZLayerSettings ( me : mutable;
|
|
theLayerId : Integer from Standard;
|
|
theSettings : ZLayerSettings from Graphic3d )
|
|
is static private;
|
|
---Purpose: Sets the settings for a single Z layer of specified view.
|
|
|
|
AddZLayer ( me : mutable;
|
|
theLayerId : Integer from Standard )
|
|
is static private;
|
|
---Purpose: Add a new top-level Z layer to the view with ID
|
|
-- <theLayerId>. The z layer mechanism allows to display
|
|
-- structures in higher layers in overlay of structures in lower layers.
|
|
-- The layers in a particular view should be managed centrally
|
|
-- by its view manager so to avoid IDs mismatching and provide correct
|
|
-- display of graphics in all views.
|
|
|
|
RemoveZLayer ( me : mutable;
|
|
theLayerId : Integer from Standard )
|
|
is static private;
|
|
---Purpose: Remove z layer from the view by its ID.
|
|
|
|
ChangeZLayer ( me : mutable;
|
|
theStructure : Structure from Graphic3d;
|
|
theLayerId : Integer from Standard )
|
|
is static private;
|
|
---Purpose: Change Z layer of already displayed structure in the view.
|
|
|
|
Clear ( me : mutable;
|
|
AStructure : Structure from Graphic3d;
|
|
WithDestruction : Boolean from Standard )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Clears the structure <AStructure> to the view <me>.
|
|
---Category: Private methods
|
|
|
|
Connect ( me : mutable;
|
|
AMother : Structure from Graphic3d;
|
|
ADaughter : Structure from Graphic3d )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Connects the structures <AMother> and <ADaughter>.
|
|
---Category: Private methods
|
|
|
|
Disconnect ( me : mutable;
|
|
AMother : Structure from Graphic3d;
|
|
ADaughter : Structure from Graphic3d )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Disconnects the structures <AMother> and <ADaughter>.
|
|
---Category: Private methods
|
|
|
|
Display ( me : mutable;
|
|
AStructure : Structure from Graphic3d )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Display the structure <AStructure> to the view <me>.
|
|
---Category: Private methods
|
|
|
|
Display ( me : mutable;
|
|
AStructure : Structure from Graphic3d;
|
|
AnUpdateMode : TypeOfUpdate from Aspect )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Display the structure <AStructure> to the view <me>.
|
|
---Category: Private methods
|
|
|
|
DisplayImmediate ( me : mutable;
|
|
theStructure : Structure from Graphic3d;
|
|
theIsSingleView : Boolean from Standard = Standard_True)
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Add structure to the list of immediate presentations.
|
|
-- @return true if structure has not been registered in this view
|
|
|
|
EraseImmediate ( me : mutable;
|
|
theStructure : Structure from Graphic3d )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Removes the structure from the list of immediate presentations.
|
|
-- @return true if structure has been registered in view
|
|
|
|
ClearImmediate ( me : mutable )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Clears list of immediate presentations.
|
|
-- @return true if list was not empty
|
|
|
|
Erase ( me : mutable;
|
|
AStructure : Structure from Graphic3d )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Erases the structure <AStructure> from the view <me>.
|
|
---Category: Private methods
|
|
|
|
Erase ( me : mutable;
|
|
AStructure : Structure from Graphic3d;
|
|
AnUpdateMode : TypeOfUpdate from Aspect )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Erases the structure <AStructure> from the view <me>.
|
|
---Category: Private methods
|
|
|
|
Highlight ( me : mutable;
|
|
AStructure : Structure from Graphic3d;
|
|
AMethod : TypeOfHighlightMethod from Aspect )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Highlights the structure <AStructure> in the view <me>.
|
|
---Category: Private methods
|
|
|
|
SetTransform ( me : mutable;
|
|
AStructure : Structure from Graphic3d;
|
|
ATrsf : Array2OfReal from TColStd )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Transforms the structure <AStructure> in the view <me>.
|
|
---Category: Private methods
|
|
|
|
UnHighlight ( me : mutable;
|
|
AStructure : Structure from Graphic3d )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Suppress the highlighting on the structure <AStructure>
|
|
-- in the view <me>.
|
|
---Category: Private methods
|
|
|
|
IsComputed ( me;
|
|
AStructure : Structure from Graphic3d )
|
|
returns Integer from Standard
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Returns an index != 0 if the structure <AStructure>
|
|
-- have another structure computed for the view <me>.
|
|
---Category: Private methods
|
|
|
|
Identification ( me )
|
|
returns Integer from Standard
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Returns the identification number of the view <me>.
|
|
---Category: Private methods
|
|
|
|
IsDisplayed ( me;
|
|
AStructure : Structure from Graphic3d )
|
|
returns Boolean from Standard
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Returns true if the structure <AStructure> is
|
|
-- displayed in the view <me>.
|
|
---Category: Private methods
|
|
|
|
SetRatio ( me : mutable )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Modifies the aspect ratio of the view <me> when the
|
|
-- associated window is defined or resized.
|
|
---Category: Private methods
|
|
|
|
UpdateLights ( me : mutable )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Updates the lights when the associated window is defined
|
|
-- and when the view is activated.
|
|
---Category: Private methods
|
|
|
|
UpdatePlanes ( me : mutable )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Updates the planes when the associated window is defined
|
|
-- and when the view is activated.
|
|
---Category: Private methods
|
|
|
|
UpdateView ( me : mutable )
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Updates the associated c structure before a call to the
|
|
-- graphic library.
|
|
---Category: Private methods
|
|
|
|
-----------------------------
|
|
-- Category: Internal methods
|
|
-----------------------------
|
|
|
|
CView ( me )
|
|
returns Address from Standard
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Returns the c structure associated to <me>.
|
|
---Category: Private methods
|
|
|
|
GraphicDriver ( me )
|
|
returns GraphicDriver from Graphic3d
|
|
is static;
|
|
---Level: Internal
|
|
---Purpose: Returns the associated GraphicDriver.
|
|
---Category: Internal methods
|
|
---C++: return const &
|
|
|
|
HaveTheSameOwner ( me;
|
|
AStructure : Structure from Graphic3d )
|
|
returns Integer from Standard
|
|
is static private;
|
|
---Level: Internal
|
|
---Purpose: Returns an index != 0 if the structure <AStructure>
|
|
-- have the same owner than another structure in the
|
|
-- sequence of the computed structures.
|
|
---Category: Private methods
|
|
|
|
Print (me; AnUnderLayer : Layer from Visual3d;
|
|
AnOverLayer : Layer from Visual3d;
|
|
hPrnDC : Handle from Aspect;
|
|
showBackground : Boolean;
|
|
filename : CString;
|
|
printAlgorithm : PrintAlgo from Aspect = Aspect_PA_STRETCH;
|
|
theScaleFactor : Real from Standard = 1.0)
|
|
returns Boolean from Standard is static;
|
|
|
|
---Level: Internal
|
|
---Purpose: print the contents of all layers of the view to the printer.
|
|
-- <hPrnDC> : Pass the PrinterDeviceContext (HDC),
|
|
-- <showBackground> : When set to FALSE then print the view without background color
|
|
-- (background is white)
|
|
-- else set to TRUE for printing with current background color.
|
|
-- <filename>: If != NULL, then the view will be printed to a file.
|
|
-- <printAlgo>: Select print algorithm: stretch, tile.
|
|
-- <theScaleFactor>: Scaling coefficient, used internally to scale the
|
|
-- printings accordingly to the scale factor selected in the printer
|
|
-- properties dialog.
|
|
-- Returns Standard_True if the data is passed to the printer, otherwise
|
|
-- Standard_False if the print operation failed due to printer error
|
|
-- or insufficient memory.
|
|
-- Warning: Works only under Windows.
|
|
|
|
Print (me; hPrnDC : Handle from Aspect;
|
|
showBackground : Boolean;
|
|
filename : CString;
|
|
printAlgorithm : PrintAlgo from Aspect = Aspect_PA_STRETCH;
|
|
theScaleFactor : Real from Standard = 1.0 )
|
|
returns Boolean from Standard is static;
|
|
|
|
---Level: Internal
|
|
---Purpose: print the contents of the view to printer.
|
|
-- <hPrnDC> : Pass the PrinterDeviceContext (HDC),
|
|
-- <showBackground> : When set to FALSE then print the view without background color
|
|
-- (background is white)
|
|
-- else set to TRUE for printing with current background color.
|
|
-- <filename>: If != NULL, then the view will be printed to a file.
|
|
-- <printAlgo>: Select print algorithm: stretch, tile.
|
|
-- <theScaleFactor>: Scaling coefficient, used internally to scale the
|
|
-- printings accordingly to the scale factor selected in the printer
|
|
-- properties dialog.
|
|
-- Returns Standard_True if the data is passed to the printer, otherwise
|
|
-- Standard_False if the print operation failed due to printer error
|
|
-- or insufficient memory.
|
|
-- Warning: Works only under Windows.
|
|
|
|
ZBufferIsActivated ( me )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Advanced
|
|
---Purpose: Returns Standard_True if the ZBuffer is activated
|
|
-- in the view <me> and Standard_False if not.
|
|
---Category: Internal methods
|
|
|
|
SetZBufferActivity ( me : mutable; AnActivity : Integer from Standard )
|
|
is static;
|
|
---Level: Advanced
|
|
---Purpose: Activates the ZBuffer if the integer <AnActivity>
|
|
-- is equal to 1.
|
|
-- Deactivates the ZBuffer if the integer <AnActivity>
|
|
-- is equal to 0.
|
|
-- If the integer <AnActivity> is equal to -1 then
|
|
-- - the ZBuffer is activated if
|
|
-- me->Context ().Visualization () == Visual3d_TOV_SHADING
|
|
-- - the ZBuffer is deactivated if
|
|
-- me->Context ().Visualization () == Visual3d_TOV_WIREFRAME
|
|
---Category: Internal methods
|
|
|
|
UnderLayer ( me )
|
|
returns Layer from Visual3d;
|
|
---Level: Internal
|
|
---Purpose: Returns the underlay of the view <me>.
|
|
---Category: Private methods
|
|
---C++: return const &
|
|
|
|
OverLayer ( me )
|
|
returns Layer from Visual3d;
|
|
---Level: Internal
|
|
---Purpose: Returns the underlay of the view <me>.
|
|
---Category: Private methods
|
|
---C++: return const &
|
|
|
|
EnableDepthTest( me; enable : Boolean from Standard )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: turns on/off opengl depth
|
|
|
|
IsDepthTestEnabled( me ) returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: returns current state of the opengl depth testing
|
|
|
|
ReadDepths( me; x,y,width,height: Integer from Standard;
|
|
buffer : Address )
|
|
is static;
|
|
---Purpose: Reads depths of shown pixels of the given rectangle
|
|
|
|
FBOCreate( me : mutable; width,height: Integer from Standard )
|
|
returns PtrFrameBuffer from Graphic3d
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Generate offscreen FBO in the graphic library
|
|
|
|
FBORelease( me : mutable;
|
|
fboPtr : in out PtrFrameBuffer from Graphic3d )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Remove offscreen FBO from the graphic library
|
|
|
|
FBOGetDimensions( me : mutable;
|
|
fboPtr : PtrFrameBuffer from Graphic3d;
|
|
width, height : out Integer from Standard;
|
|
widthMax, heightMax : out Integer from Standard )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Read offscreen FBO configuration.
|
|
|
|
FBOChangeViewport( me : mutable;
|
|
fboPtr : in out PtrFrameBuffer from Graphic3d;
|
|
width, height : Integer from Standard )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Change offscreen FBO viewport.
|
|
|
|
BufferDump( me : mutable;
|
|
theImage : in out PixMap from Image;
|
|
theBufferType : BufferType from Graphic3d )
|
|
returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: Dump active rendering buffer into specified memory buffer.
|
|
|
|
EnableGLLight( me; enable : Boolean from Standard )
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: turns on/off opengl lighting, currently used in triedron displaying
|
|
|
|
IsGLLightEnabled( me ) returns Boolean from Standard
|
|
is static;
|
|
---Level: Public
|
|
---Purpose: returns the current state of the gl lighting
|
|
-- currently used in triedron displaying
|
|
|
|
Export( me;
|
|
theFileName : CString from Standard;
|
|
theFormat : ExportFormat from Graphic3d;
|
|
theSortType : SortType from Graphic3d = Graphic3d_ST_BSP_Tree;
|
|
thePrecision : Real from Standard = 0.005;
|
|
theProgressBarFunc : Address from Standard = NULL;
|
|
theProgressObject : Address from Standard = NULL )
|
|
returns Boolean from Standard;
|
|
---Purpose:
|
|
-- Export scene into the one of the Vector graphics formats (SVG, PS, PDF...).
|
|
-- In contrast to Bitmaps, Vector graphics is scalable (so you may got quality benefits on printing to laser printer).
|
|
-- Notice however that results may differ a lot and do not contain some elements.
|
|
|
|
fields
|
|
|
|
-- the ViewManager associated with the view
|
|
myViewManager : ViewManagerPtr from Visual3d;
|
|
|
|
-- the associated C structure
|
|
MyCView : CView from Graphic3d;
|
|
|
|
-- the context of the view : Aliasing, Depth-Cueing, Lights ...
|
|
MyContext : ContextView from Visual3d;
|
|
|
|
-- the associated window
|
|
MyWindow : Window from Aspect;
|
|
|
|
-- association Structure_COMPUTE and Structure_Computed
|
|
myStructsToCompute : SequenceOfStructure from Graphic3d;
|
|
myStructsComputed : SequenceOfStructure from Graphic3d;
|
|
myIsInComputedMode : Boolean from Standard;
|
|
|
|
-- the graphic driver used
|
|
myGraphicDriver : GraphicDriver from Graphic3d;
|
|
|
|
-- the background of the associated window
|
|
MyBackground : Background from Aspect;
|
|
|
|
-- the gradient background of the associated window
|
|
MyGradientBackground : GradientBackground from Aspect;
|
|
|
|
-- the displayed structures in the view
|
|
myStructsDisplayed : MapOfStructure from Graphic3d;
|
|
myImmediateStructures : MapOfStructure from Graphic3d;
|
|
|
|
MyGTrihedron : CGraduatedTrihedron from Graphic3d;
|
|
|
|
myDefaultCamera : Camera_Handle from Graphic3d;
|
|
|
|
myAutoZFitIsOn : Boolean from Standard;
|
|
myAutoZFitScaleFactor : Real from Standard;
|
|
|
|
myStructuresUpdated : Boolean from Standard;
|
|
|
|
friends
|
|
|
|
class ViewManager from Visual3d
|
|
|
|
end View;
|