-- Created on: 1996-12-11
-- Created by: Robert COUBLANC
-- Copyright (c) 1996-1999 Matra Datavision
--- Copyright (c) 1999-2012 OPEN CASCADE SAS
+-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
--- The content of this file is subject to the Open CASCADE Technology Public
--- License Version 6.5 (the "License"). You may not use the content of this file
--- except in compliance with the License. Please obtain a copy of the License
--- at http://www.opencascade.org and read it completely before using this file.
+-- This file is part of Open CASCADE Technology software library.
--
--- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
--- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+-- 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.
--
--- The Original Code and all software distributed under the License is
--- distributed on an "AS IS" basis, without warranty of any kind, and the
--- Initial Developer hereby disclaims all such warranties, including without
--- limitation, any warranties of merchantability, fitness for a particular
--- purpose or non-infringement. Please see the License for the specific terms
--- and conditions governing the rights and limitations under the License.
+-- Alternatively, this file may be used under the terms of Open CASCADE
+-- commercial license or contractual agreement.
-- GG : GER61351 17/11/1999 Change SetColor() with a compatible
-- Quantity_Color instead the restricted NameOfColor.
-- Add SetCurrentFacingModel() methods
--- EUG : G003 05/11/1999 Degeneration mode support
--- Add SetDegenerateModel() methods
-- GG : IMP140100 Add HasPresentation() and Presentation() methods
-- Add SetAspect() method
-- SAN : OCC4895 22/03/04 High-level interface for controlling polygon offsets
InteractiveContext from AIS,
KindOfInteractive from AIS,
TypeOfFacingModel from Aspect,
- TypeOfDegenerateModel from Aspect,
Transformation from Geom,
Presentation from Prs3d,
BasicAspect from Prs3d,
-- The range of possibilities currently proposed is the following:
-- - AIS_WireFrame
-- - AIS_Shaded
- -- - AIS_QuickHLR
- -- - AIS_ExactHLR
-- This range can, however, be extended through the creation of new display modes.
UnsetDisplayMode(me : mutable);
-- The range of possibilities is the following:
-- - AIS_WireFrame
-- - AIS_Shaded
- -- - AIS_QuickHLR
- -- - AIS_ExactHLR
-- This range can, however, be extended through the
-- creation of new display modes.
---C++: return const&
SetRecomputeOk(me:mutable) is private;
- -- 22-03-04 OCC4895 SAN High-level interface for controlling polygon offsets
- Fill(me: mutable;
- aPresentationManager: PresentationManager from PrsMgr;
- aPresentation: mutable Presentation from PrsMgr;
- aMode: Integer from Standard = 0)
- is redefined protected;
- -- 22-03-04 OCC4895 SAN High-level interface for controlling polygon offsets
-
-
State(me:mutable;theState: Integer from Standard) ;
---C++: inline
State(me) returns Integer from Standard ;
---C++: inline
- SetDegenerateModel ( me : mutable;
- aModel : TypeOfDegenerateModel from Aspect =
- Aspect_TDM_WIREFRAME;
- aRatio : Ratio from Quantity = 0.0) is virtual;
- ---Level: Public
- ---Purpose: Sets the model of degeneration for the shaded representation
- -- according to the degenerate ratio >= 0. & <= 1. where :
- -- <aRatio> = 0. indicate that all polygons of the object
- -- will be displayed.
- -- <aRatio> = 1. indicate that no polygons will be displayed !!
- -- When <ARatio> is > 0 & < 1. the corresponding amount
- -- of object polygons will be displayed with a random method.
- -- Warning: the degenerate structure is shown only when
- -- the animation and degenerate flags are set to TRUE
- -- in V3d_View::SetAnimationMode(..)
- -- Category: Methods to manage the object degeneration
-
- DegenerateModel ( me ;
- aRatio: out Ratio from Quantity )
- returns TypeOfDegenerateModel from Aspect is virtual;
- ---Level: Public
- ---Purpose: returns the current degeneration model and ratio
- -- for the polygons
- ---Category: Inquire methods
-
SetTransformation ( me : mutable;
aTranformation: Transformation from Geom;
postConcatenate: Boolean from Standard = Standard_False;
-- 22-03-04 OCC4895 SAN High-level interface for controlling polygon offsets
SetPolygonOffsets ( me : mutable;
aMode : Integer from Standard;
- aFactor : Real from Standard = 1.0;
- aUnits : Real from Standard = 0.0 ) is virtual;
+ aFactor : ShortReal from Standard = 1.0;
+ aUnits : ShortReal from Standard = 0.0 ) is virtual;
---Level: Public
---Purpose: Sets up polygon offsets for this object.
-- It modifies all existing presentations of <anObj> (if any),
PolygonOffsets ( me;
aMode : out Integer from Standard;
- aFactor : out Real from Standard;
- aUnits : out Real from Standard ) is virtual;
+ aFactor : out ShortReal from Standard;
+ aUnits : out ShortReal from Standard ) is virtual;
---Level: Public
---Purpose: Retrieves current polygon offsets settings from <myDrawer>.
---Category: Inquire methods