Files
OCCT/src/IGESDraw/IGESDraw_View.cdl
abv 6e33d3ced2 0024830: Remove redundant keyword 'mutable' in CDL declarations
Redundant keyword 'mutable' removed in CDL files.
In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed.
Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
2014-05-29 14:58:25 +04:00

152 lines
5.2 KiB
Plaintext

-- Created on: 1993-01-11
-- Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA )
-- Copyright (c) 1993-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 View from IGESDraw inherits ViewKindEntity
---Purpose : defines IGES View Entity, Type <410> Form <0>
-- in package IGESDraw
--
-- Used to define a framework for specifying a viewing
-- orientation of an object in three dimensional model
-- space (X,Y,Z). The framework is also used to support
-- the projection of all or part of model space onto a
-- view volume.
uses
TransfEntity from IGESData,
Plane from IGESGeom,
XYZ from gp
raises OutOfRange
is
Create returns View;
-- Specific Methods pertaining to the class
Init (me : mutable;
aViewNum : Integer;
aScale : Real;
aLeftPlane : Plane;
aTopPlane : Plane;
aRightPlane : Plane;
aBottomPlane : Plane;
aBackPlane : Plane;
aFrontPlane : Plane);
---Purpose : This method is used to set fields of the class View
-- - aViewNum : View number
-- - aScale : Scale factor
-- - aLeftPlane : Left plane of view volume
-- - aTopPlane : Top plane of view volume
-- - aRightPlane : Right plane of view volume
-- - aBottomPlane : Bottom plane of view volume
-- - aBackPlane : Back plane of view volume
-- - aFrontPlane : Front plane of view volume
IsSingle (me) returns Boolean;
---Purpose : Returns True (for a single view)
NbViews (me) returns Integer;
---Purpose : Returns 1 (single view)
ViewItem (me; num : Integer) returns ViewKindEntity raises OutOfRange;
---Purpose : For a single view, returns <me> whatever <num>
ViewNumber (me) returns Integer;
---Purpose : returns integer number identifying view orientation
ScaleFactor (me) returns Real;
---Purpose : returns the scale factor(Default = 1.0)
HasLeftPlane (me) returns Boolean;
---Purpose : returns False if left side of view volume is not present
LeftPlane (me) returns Plane;
---Purpose : returns the left side of view volume, or null handle
HasTopPlane (me) returns Boolean;
---Purpose : returns False if top of view volume is not present
TopPlane (me) returns Plane;
---Purpose : returns the top of view volume, or null handle
HasRightPlane (me) returns Boolean;
---Purpose : returns False if right side of view volume is not present
RightPlane (me) returns Plane;
---Purpose : returns the right side of view volume, or null handle
HasBottomPlane (me) returns Boolean;
---Purpose : returns False if bottom of view volume is not present
BottomPlane (me) returns Plane;
---Purpose : returns the bottom of view volume, or null handle
HasBackPlane (me) returns Boolean;
---Purpose : returns False if back of view volume is not present
BackPlane (me) returns Plane;
---Purpose : returns the back of view volume, or null handle
HasFrontPlane (me) returns Boolean;
---Purpose : returns False if front of view volume is not present
FrontPlane (me) returns Plane;
---Purpose : returns the front of view volume, or null handle
ViewMatrix (me) returns TransfEntity;
---Purpose : returns the Transformation Matrix
ModelToView (me; coords : XYZ) returns XYZ;
---Purpose : returns XYZ from the Model space to the View space by
-- applying the View Matrix
fields
--
-- Class : IGESDraw_View
--
-- Purpose : Declaration of the variables specific to a View.
--
-- Reminder : A View Entity is defined by :
-- - a view number for identifying the view orientation
-- - a scale factor, and
-- - a view volume to control the projection of the view into
-- a 2-D drawing space specified by a Drawing Entity.
-- The view volume is a rectangular parallelepiped with
-- limits specified by Plane Entities.
--
theViewNumber : Integer;
theScaleFactor : Real;
theLeftPlane : Plane;
theTopPlane : Plane;
theRightPlane : Plane;
theBottomPlane : Plane;
theBackPlane : Plane;
theFrontPlane : Plane;
end View;