mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
@@ -1,4 +1,70 @@
|
||||
IGESDraw.cxx
|
||||
IGESDraw.hxx
|
||||
IGESDraw_Array1OfConnectPoint.hxx
|
||||
IGESDraw_Array1OfViewKindEntity.hxx
|
||||
IGESDraw_CircArraySubfigure.cxx
|
||||
IGESDraw_CircArraySubfigure.hxx
|
||||
IGESDraw_ConnectPoint.cxx
|
||||
IGESDraw_ConnectPoint.hxx
|
||||
IGESDraw_Drawing.cxx
|
||||
IGESDraw_Drawing.hxx
|
||||
IGESDraw_DrawingWithRotation.cxx
|
||||
IGESDraw_DrawingWithRotation.hxx
|
||||
IGESDraw_GeneralModule.cxx
|
||||
IGESDraw_GeneralModule.hxx
|
||||
IGESDraw_HArray1OfConnectPoint.hxx
|
||||
IGESDraw_HArray1OfViewKindEntity.hxx
|
||||
IGESDraw_LabelDisplay.cxx
|
||||
IGESDraw_LabelDisplay.hxx
|
||||
IGESDraw_NetworkSubfigure.cxx
|
||||
IGESDraw_NetworkSubfigure.hxx
|
||||
IGESDraw_NetworkSubfigureDef.cxx
|
||||
IGESDraw_NetworkSubfigureDef.hxx
|
||||
IGESDraw_PerspectiveView.cxx
|
||||
IGESDraw_PerspectiveView.hxx
|
||||
IGESDraw_Planar.cxx
|
||||
IGESDraw_Planar.hxx
|
||||
IGESDraw_Protocol.cxx
|
||||
IGESDraw_Protocol.hxx
|
||||
IGESDraw_ReadWriteModule.cxx
|
||||
IGESDraw_ReadWriteModule.hxx
|
||||
IGESDraw_RectArraySubfigure.cxx
|
||||
IGESDraw_RectArraySubfigure.hxx
|
||||
IGESDraw_SegmentedViewsVisible.cxx
|
||||
IGESDraw_SegmentedViewsVisible.hxx
|
||||
IGESDraw_SpecificModule.cxx
|
||||
IGESDraw_SpecificModule.hxx
|
||||
IGESDraw_ToolCircArraySubfigure.cxx
|
||||
IGESDraw_ToolCircArraySubfigure.hxx
|
||||
IGESDraw_ToolConnectPoint.cxx
|
||||
IGESDraw_ToolConnectPoint.hxx
|
||||
IGESDraw_ToolDrawing.cxx
|
||||
IGESDraw_ToolDrawing.hxx
|
||||
IGESDraw_ToolDrawingWithRotation.cxx
|
||||
IGESDraw_ToolDrawingWithRotation.hxx
|
||||
IGESDraw_ToolLabelDisplay.cxx
|
||||
IGESDraw_ToolLabelDisplay.hxx
|
||||
IGESDraw_ToolNetworkSubfigure.cxx
|
||||
IGESDraw_ToolNetworkSubfigure.hxx
|
||||
IGESDraw_ToolNetworkSubfigureDef.cxx
|
||||
IGESDraw_ToolNetworkSubfigureDef.hxx
|
||||
IGESDraw_ToolPerspectiveView.cxx
|
||||
IGESDraw_ToolPerspectiveView.hxx
|
||||
IGESDraw_ToolPlanar.cxx
|
||||
IGESDraw_ToolPlanar.hxx
|
||||
IGESDraw_ToolRectArraySubfigure.cxx
|
||||
IGESDraw_ToolRectArraySubfigure.hxx
|
||||
IGESDraw_ToolSegmentedViewsVisible.cxx
|
||||
IGESDraw_ToolSegmentedViewsVisible.hxx
|
||||
IGESDraw_ToolView.cxx
|
||||
IGESDraw_ToolView.hxx
|
||||
IGESDraw_ToolViewsVisible.cxx
|
||||
IGESDraw_ToolViewsVisible.hxx
|
||||
IGESDraw_ToolViewsVisibleWithAttr.cxx
|
||||
IGESDraw_ToolViewsVisibleWithAttr.hxx
|
||||
IGESDraw_View.cxx
|
||||
IGESDraw_View.hxx
|
||||
IGESDraw_ViewsVisible.cxx
|
||||
IGESDraw_ViewsVisible.hxx
|
||||
IGESDraw_ViewsVisibleWithAttr.cxx
|
||||
IGESDraw_ViewsVisibleWithAttr.hxx
|
||||
|
@@ -1,109 +0,0 @@
|
||||
-- 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.
|
||||
|
||||
package IGESDraw
|
||||
|
||||
|
||||
---Purpose : This package contains the group of classes necessary for
|
||||
-- Structure Entities implied in Drawings and Structured
|
||||
-- Graphics (Sets for drawing, Drawings and Views).
|
||||
|
||||
uses
|
||||
|
||||
Standard,
|
||||
TCollection,
|
||||
gp,
|
||||
TColgp,
|
||||
TColStd,
|
||||
Message,
|
||||
Interface,
|
||||
IGESData,
|
||||
IGESDimen,
|
||||
IGESBasic,
|
||||
IGESGraph,
|
||||
IGESGeom
|
||||
|
||||
is
|
||||
|
||||
class ConnectPoint;
|
||||
|
||||
class NetworkSubfigureDef;
|
||||
|
||||
class ViewsVisible;
|
||||
|
||||
class ViewsVisibleWithAttr;
|
||||
|
||||
class LabelDisplay;
|
||||
|
||||
class Planar;
|
||||
|
||||
class SegmentedViewsVisible;
|
||||
|
||||
class Drawing;
|
||||
|
||||
class DrawingWithRotation;
|
||||
|
||||
class View;
|
||||
|
||||
class RectArraySubfigure;
|
||||
|
||||
class CircArraySubfigure;
|
||||
|
||||
class NetworkSubfigure;
|
||||
|
||||
class PerspectiveView;
|
||||
|
||||
-- Tools for Entities --
|
||||
|
||||
class ToolConnectPoint;
|
||||
class ToolNetworkSubfigureDef;
|
||||
class ToolViewsVisible;
|
||||
class ToolViewsVisibleWithAttr;
|
||||
class ToolLabelDisplay;
|
||||
class ToolPlanar;
|
||||
class ToolSegmentedViewsVisible;
|
||||
class ToolDrawing;
|
||||
class ToolDrawingWithRotation;
|
||||
class ToolView;
|
||||
class ToolRectArraySubfigure;
|
||||
class ToolCircArraySubfigure;
|
||||
class ToolNetworkSubfigure;
|
||||
class ToolPerspectiveView;
|
||||
|
||||
-- Definition and Exploitation of Entities defined in this Package
|
||||
|
||||
class Protocol;
|
||||
class ReadWriteModule;
|
||||
class GeneralModule;
|
||||
class SpecificModule;
|
||||
|
||||
-- The class instantiations :
|
||||
|
||||
imported Array1OfConnectPoint;
|
||||
imported Array1OfViewKindEntity;
|
||||
|
||||
imported transient class HArray1OfConnectPoint;
|
||||
imported transient class HArray1OfViewKindEntity;
|
||||
|
||||
-- Package Methods :
|
||||
|
||||
Init;
|
||||
---Purpose : Prepares dynamic data (Protocol, Modules) for this package
|
||||
|
||||
Protocol returns Protocol from IGESDraw;
|
||||
---Purpose : Returns the Protocol for this Package
|
||||
|
||||
end IGESDraw;
|
@@ -11,20 +11,20 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESDraw.ixx>
|
||||
#include <IGESDraw_Protocol.hxx>
|
||||
|
||||
#include <IGESData_SpecificLib.hxx>
|
||||
#include <IGESData_WriterLib.hxx>
|
||||
#include <IGESDimen.hxx>
|
||||
#include <IGESDraw.hxx>
|
||||
#include <IGESDraw_GeneralModule.hxx>
|
||||
#include <IGESDraw_Protocol.hxx>
|
||||
#include <IGESDraw_ReadWriteModule.hxx>
|
||||
#include <IGESDraw_SpecificModule.hxx>
|
||||
#include <Interface_GeneralLib.hxx>
|
||||
#include <Interface_ReaderLib.hxx>
|
||||
#include <IGESData_WriterLib.hxx>
|
||||
#include <IGESData_SpecificLib.hxx>
|
||||
#include <IGESDimen.hxx>
|
||||
|
||||
// Ancillary data to work on a Package of IGES Entities with a Protocol
|
||||
// (Modules are created and loaded in appropriate libraries, once by Init)
|
||||
|
||||
static Handle(IGESDraw_Protocol) protocol;
|
||||
|
||||
|
||||
|
130
src/IGESDraw/IGESDraw.hxx
Normal file
130
src/IGESDraw/IGESDraw.hxx
Normal file
@@ -0,0 +1,130 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_HeaderFile
|
||||
#define _IGESDraw_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
class IGESDraw_Protocol;
|
||||
class IGESDraw_ConnectPoint;
|
||||
class IGESDraw_NetworkSubfigureDef;
|
||||
class IGESDraw_ViewsVisible;
|
||||
class IGESDraw_ViewsVisibleWithAttr;
|
||||
class IGESDraw_LabelDisplay;
|
||||
class IGESDraw_Planar;
|
||||
class IGESDraw_SegmentedViewsVisible;
|
||||
class IGESDraw_Drawing;
|
||||
class IGESDraw_DrawingWithRotation;
|
||||
class IGESDraw_View;
|
||||
class IGESDraw_RectArraySubfigure;
|
||||
class IGESDraw_CircArraySubfigure;
|
||||
class IGESDraw_NetworkSubfigure;
|
||||
class IGESDraw_PerspectiveView;
|
||||
class IGESDraw_ToolConnectPoint;
|
||||
class IGESDraw_ToolNetworkSubfigureDef;
|
||||
class IGESDraw_ToolViewsVisible;
|
||||
class IGESDraw_ToolViewsVisibleWithAttr;
|
||||
class IGESDraw_ToolLabelDisplay;
|
||||
class IGESDraw_ToolPlanar;
|
||||
class IGESDraw_ToolSegmentedViewsVisible;
|
||||
class IGESDraw_ToolDrawing;
|
||||
class IGESDraw_ToolDrawingWithRotation;
|
||||
class IGESDraw_ToolView;
|
||||
class IGESDraw_ToolRectArraySubfigure;
|
||||
class IGESDraw_ToolCircArraySubfigure;
|
||||
class IGESDraw_ToolNetworkSubfigure;
|
||||
class IGESDraw_ToolPerspectiveView;
|
||||
class IGESDraw_Protocol;
|
||||
class IGESDraw_ReadWriteModule;
|
||||
class IGESDraw_GeneralModule;
|
||||
class IGESDraw_SpecificModule;
|
||||
|
||||
|
||||
//! This package contains the group of classes necessary for
|
||||
//! Structure Entities implied in Drawings and Structured
|
||||
//! Graphics (Sets for drawing, Drawings and Views).
|
||||
class IGESDraw
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Prepares dynamic data (Protocol, Modules) for this package
|
||||
Standard_EXPORT static void Init();
|
||||
|
||||
//! Returns the Protocol for this Package
|
||||
Standard_EXPORT static Handle(IGESDraw_Protocol) Protocol();
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
friend class IGESDraw_ConnectPoint;
|
||||
friend class IGESDraw_NetworkSubfigureDef;
|
||||
friend class IGESDraw_ViewsVisible;
|
||||
friend class IGESDraw_ViewsVisibleWithAttr;
|
||||
friend class IGESDraw_LabelDisplay;
|
||||
friend class IGESDraw_Planar;
|
||||
friend class IGESDraw_SegmentedViewsVisible;
|
||||
friend class IGESDraw_Drawing;
|
||||
friend class IGESDraw_DrawingWithRotation;
|
||||
friend class IGESDraw_View;
|
||||
friend class IGESDraw_RectArraySubfigure;
|
||||
friend class IGESDraw_CircArraySubfigure;
|
||||
friend class IGESDraw_NetworkSubfigure;
|
||||
friend class IGESDraw_PerspectiveView;
|
||||
friend class IGESDraw_ToolConnectPoint;
|
||||
friend class IGESDraw_ToolNetworkSubfigureDef;
|
||||
friend class IGESDraw_ToolViewsVisible;
|
||||
friend class IGESDraw_ToolViewsVisibleWithAttr;
|
||||
friend class IGESDraw_ToolLabelDisplay;
|
||||
friend class IGESDraw_ToolPlanar;
|
||||
friend class IGESDraw_ToolSegmentedViewsVisible;
|
||||
friend class IGESDraw_ToolDrawing;
|
||||
friend class IGESDraw_ToolDrawingWithRotation;
|
||||
friend class IGESDraw_ToolView;
|
||||
friend class IGESDraw_ToolRectArraySubfigure;
|
||||
friend class IGESDraw_ToolCircArraySubfigure;
|
||||
friend class IGESDraw_ToolNetworkSubfigure;
|
||||
friend class IGESDraw_ToolPerspectiveView;
|
||||
friend class IGESDraw_Protocol;
|
||||
friend class IGESDraw_ReadWriteModule;
|
||||
friend class IGESDraw_GeneralModule;
|
||||
friend class IGESDraw_SpecificModule;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_HeaderFile
|
@@ -1,139 +0,0 @@
|
||||
-- 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 CircArraySubfigure from IGESDraw
|
||||
|
||||
inherits IGESEntity
|
||||
|
||||
---Purpose: Defines IGES Circular Array Subfigure Instance Entity,
|
||||
-- Type <414> Form Number <0> in package IGESDraw
|
||||
--
|
||||
-- Used to produce copies of object called the base entity,
|
||||
-- arranging them around the edge of an imaginary circle
|
||||
-- whose center and radius are specified
|
||||
|
||||
uses
|
||||
|
||||
HArray1OfInteger from TColStd,
|
||||
XYZ from gp,
|
||||
Pnt from gp
|
||||
|
||||
raises OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns CircArraySubfigure;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
aBase : IGESEntity;
|
||||
aNumLocs : Integer;
|
||||
aCenter : XYZ;
|
||||
aRadius : Real;
|
||||
aStAngle : Real;
|
||||
aDelAngle : Real;
|
||||
aFlag : Integer;
|
||||
allNumPos : HArray1OfInteger);
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- CircArraySubfigure
|
||||
-- - aBase : Base entity
|
||||
-- - aNumLocs : Total number of possible instance locations
|
||||
-- - aCenter : Coordinates of Center of imaginary circle
|
||||
-- - aRadius : Radius of imaginary circle
|
||||
-- - aStAngle : Start angle in radians
|
||||
-- - aDelAngle : Delta angle in radians
|
||||
-- - aFlag : DO-DON'T flag to control which portion to
|
||||
-- display
|
||||
-- - allNumPos : All position to be or not to be processed
|
||||
|
||||
BaseEntity (me) returns IGESEntity;
|
||||
---Purpose : returns the base entity, copies of which are produced
|
||||
|
||||
NbLocations (me) returns Integer;
|
||||
---Purpose : returns total number of possible instance locations
|
||||
|
||||
CenterPoint (me) returns Pnt;
|
||||
---Purpose : returns the center of the imaginary circle
|
||||
|
||||
TransformedCenterPoint (me) returns Pnt;
|
||||
---Purpose : returns the Transformed center of the imaginary circle
|
||||
|
||||
CircleRadius (me) returns Real;
|
||||
---Purpose : returns the radius of the imaginary circle
|
||||
|
||||
StartAngle (me) returns Real;
|
||||
---Purpose : returns the start angle in radians
|
||||
|
||||
DeltaAngle (me) returns Real;
|
||||
---Purpose : returns the delta angle in radians
|
||||
|
||||
ListCount (me) returns Integer;
|
||||
---Purpose : returns 0 if all elements to be displayed
|
||||
|
||||
DisplayFlag (me) returns Boolean;
|
||||
---Purpose : returns True if (ListCount = 0) all elements are to be displayed
|
||||
|
||||
DoDontFlag (me) returns Boolean;
|
||||
---Purpose : returns 0 if half or fewer of the elements of the array are defined
|
||||
-- 1 if half or more of the elements are defined
|
||||
|
||||
PositionNum (me; Index : Integer) returns Boolean
|
||||
raises OutOfRange;
|
||||
---Purpose : returns whether Index is to be processed (DO)
|
||||
-- or not to be processed(DON'T)
|
||||
-- if (ListCount = 0) return theDoDontFlag
|
||||
-- raises exception if Index <= 0 or Index > ListCount().
|
||||
|
||||
ListPosition (me; Index : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th value position
|
||||
-- raises exception if Index <= 0 or Index > ListCount().
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_CircArraySubfigure
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a CircArraySubfigure.
|
||||
--
|
||||
-- Reminder : A Circular Array Subfigure Instance is defined by :
|
||||
-- - a base entity which is replicated
|
||||
-- - total number of possible instance locations
|
||||
-- - coordinates of Center of imaginary circle
|
||||
-- - radius of imaginary circle
|
||||
-- - start angle to govern the location of first instance
|
||||
-- - delta angle to govern successive instances' distribution
|
||||
-- - a DO-DON'T flag to control which portion to display
|
||||
--
|
||||
|
||||
theBaseEntity : IGESEntity;
|
||||
|
||||
theNbLocations : Integer;
|
||||
|
||||
theCenter : XYZ;
|
||||
|
||||
theRadius : Real;
|
||||
|
||||
theStartAngle : Real;
|
||||
|
||||
theDeltaAngle : Real;
|
||||
|
||||
theDoDontFlag : Integer;
|
||||
|
||||
thePositions : HArray1OfInteger;
|
||||
|
||||
end CircArraySubfigure;
|
@@ -16,10 +16,14 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_CircArraySubfigure.ixx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_CircArraySubfigure.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_CircArraySubfigure::IGESDraw_CircArraySubfigure () { }
|
||||
|
||||
|
137
src/IGESDraw/IGESDraw_CircArraySubfigure.hxx
Normal file
137
src/IGESDraw/IGESDraw_CircArraySubfigure.hxx
Normal file
@@ -0,0 +1,137 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_CircArraySubfigure_HeaderFile
|
||||
#define _IGESDraw_CircArraySubfigure_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESData_IGESEntity;
|
||||
class Standard_OutOfRange;
|
||||
class gp_XYZ;
|
||||
class gp_Pnt;
|
||||
|
||||
|
||||
class IGESDraw_CircArraySubfigure;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_CircArraySubfigure, IGESData_IGESEntity)
|
||||
|
||||
//! Defines IGES Circular Array Subfigure Instance Entity,
|
||||
//! Type <414> Form Number <0> in package IGESDraw
|
||||
//!
|
||||
//! Used to produce copies of object called the base entity,
|
||||
//! arranging them around the edge of an imaginary circle
|
||||
//! whose center and radius are specified
|
||||
class IGESDraw_CircArraySubfigure : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_CircArraySubfigure();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! CircArraySubfigure
|
||||
//! - aBase : Base entity
|
||||
//! - aNumLocs : Total number of possible instance locations
|
||||
//! - aCenter : Coordinates of Center of imaginary circle
|
||||
//! - aRadius : Radius of imaginary circle
|
||||
//! - aStAngle : Start angle in radians
|
||||
//! - aDelAngle : Delta angle in radians
|
||||
//! - aFlag : DO-DON'T flag to control which portion to
|
||||
//! display
|
||||
//! - allNumPos : All position to be or not to be processed
|
||||
Standard_EXPORT void Init (const Handle(IGESData_IGESEntity)& aBase, const Standard_Integer aNumLocs, const gp_XYZ& aCenter, const Standard_Real aRadius, const Standard_Real aStAngle, const Standard_Real aDelAngle, const Standard_Integer aFlag, const Handle(TColStd_HArray1OfInteger)& allNumPos);
|
||||
|
||||
//! returns the base entity, copies of which are produced
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) BaseEntity() const;
|
||||
|
||||
//! returns total number of possible instance locations
|
||||
Standard_EXPORT Standard_Integer NbLocations() const;
|
||||
|
||||
//! returns the center of the imaginary circle
|
||||
Standard_EXPORT gp_Pnt CenterPoint() const;
|
||||
|
||||
//! returns the Transformed center of the imaginary circle
|
||||
Standard_EXPORT gp_Pnt TransformedCenterPoint() const;
|
||||
|
||||
//! returns the radius of the imaginary circle
|
||||
Standard_EXPORT Standard_Real CircleRadius() const;
|
||||
|
||||
//! returns the start angle in radians
|
||||
Standard_EXPORT Standard_Real StartAngle() const;
|
||||
|
||||
//! returns the delta angle in radians
|
||||
Standard_EXPORT Standard_Real DeltaAngle() const;
|
||||
|
||||
//! returns 0 if all elements to be displayed
|
||||
Standard_EXPORT Standard_Integer ListCount() const;
|
||||
|
||||
//! returns True if (ListCount = 0) all elements are to be displayed
|
||||
Standard_EXPORT Standard_Boolean DisplayFlag() const;
|
||||
|
||||
//! returns 0 if half or fewer of the elements of the array are defined
|
||||
//! 1 if half or more of the elements are defined
|
||||
Standard_EXPORT Standard_Boolean DoDontFlag() const;
|
||||
|
||||
//! returns whether Index is to be processed (DO)
|
||||
//! or not to be processed(DON'T)
|
||||
//! if (ListCount = 0) return theDoDontFlag
|
||||
//! raises exception if Index <= 0 or Index > ListCount().
|
||||
Standard_EXPORT Standard_Boolean PositionNum (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th value position
|
||||
//! raises exception if Index <= 0 or Index > ListCount().
|
||||
Standard_EXPORT Standard_Integer ListPosition (const Standard_Integer Index) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_CircArraySubfigure,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESData_IGESEntity) theBaseEntity;
|
||||
Standard_Integer theNbLocations;
|
||||
gp_XYZ theCenter;
|
||||
Standard_Real theRadius;
|
||||
Standard_Real theStartAngle;
|
||||
Standard_Real theDeltaAngle;
|
||||
Standard_Integer theDoDontFlag;
|
||||
Handle(TColStd_HArray1OfInteger) thePositions;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_CircArraySubfigure_HeaderFile
|
@@ -1,190 +0,0 @@
|
||||
-- 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 ConnectPoint from IGESDraw inherits IGESEntity
|
||||
|
||||
---Purpose : defines IGESConnectPoint, Type <132> Form Number <0>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- Connect Point Entity describes a point of connection for
|
||||
-- zero, one or more entities. Its referenced from Composite
|
||||
-- curve, or Network Subfigure Definition/Instance, or Flow
|
||||
-- Associative Instance, or it may stand alone.
|
||||
|
||||
uses
|
||||
|
||||
HAsciiString from TCollection,
|
||||
Pnt from gp,
|
||||
XYZ from gp,
|
||||
TextDisplayTemplate from IGESGraph
|
||||
|
||||
is
|
||||
|
||||
Create returns ConnectPoint;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
aPoint : XYZ;
|
||||
aDisplaySymbol : IGESEntity;
|
||||
aTypeFlag : Integer;
|
||||
aFunctionFlag : Integer;
|
||||
aFunctionIdentifier : HAsciiString;
|
||||
anIdentifierTemplate : TextDisplayTemplate;
|
||||
aFunctionName : HAsciiString;
|
||||
aFunctionTemplate : TextDisplayTemplate;
|
||||
aPointIdentifier : Integer;
|
||||
aFunctionCode : Integer;
|
||||
aSwapFlag : Integer;
|
||||
anOwnerSubfigure : IGESEntity);
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- ConnectPoint
|
||||
-- - aPoint : A Coordinate point
|
||||
-- - aDisplaySymbol : Display symbol Geometry
|
||||
-- - aTypeFlag : Type of the connection
|
||||
-- - aFunctionFlag : Function flag for the connection
|
||||
-- - aFunctionIdentifier : Connection Point Function Identifier
|
||||
-- - anIdentifierTemplate : Connection Point Function Template
|
||||
-- - aFunctionName : Connection Point Function Name
|
||||
-- - aFunctionTemplate : Connection Point Function Template
|
||||
-- - aPointIdentifier : Unique Connect Point Identifier
|
||||
-- - aFunctionCode : Connect Point Function Code
|
||||
-- - aSwapFlag : Connect Point Swap Flag
|
||||
-- - anOwnerSubfigure : Pointer to the "Owner" Entity
|
||||
|
||||
Point (me) returns Pnt;
|
||||
---Purpose : returns the coordinate of the connection point
|
||||
|
||||
TransformedPoint (me) returns Pnt;
|
||||
---Purpose : returns the Transformed coordinate of the connection point
|
||||
|
||||
HasDisplaySymbol (me) returns Boolean;
|
||||
---Purpose : returns True if Display symbol is specified
|
||||
-- else returns False
|
||||
|
||||
DisplaySymbol (me) returns IGESEntity;
|
||||
---Purpose : if display symbol specified returns display symbol geometric entity
|
||||
-- else returns NULL Handle
|
||||
|
||||
TypeFlag (me) returns Integer;
|
||||
---Purpose : return value specifies a particular type of connection :
|
||||
-- Type Flag = 0 : Not Specified(default)
|
||||
-- 1 : Nonspecific logical point of connection
|
||||
-- 2 : Nonspecific physical point of connection
|
||||
-- 101 : Logical component pin
|
||||
-- 102 : Logical part connector
|
||||
-- 103 : Logical offpage connector
|
||||
-- 104 : Logical global signal connector
|
||||
-- 201 : Physical PWA surface mount pin
|
||||
-- 202 : Physical PWA blind pin
|
||||
-- 203 : Physical PWA thru-pin
|
||||
-- 5001-9999 : Implementor defined.
|
||||
|
||||
FunctionFlag (me) returns Integer;
|
||||
---Purpose : returns Function Code that specifies a particular function for the
|
||||
-- ECO576 connection :
|
||||
-- e.g., Function Flag = 0 : Unspecified(default)
|
||||
-- = 1 : Electrical Signal
|
||||
-- = 2 : Fluid flow Signal
|
||||
|
||||
FunctionIdentifier (me) returns HAsciiString from TCollection;
|
||||
---Purpose : return HAsciiString identifying Pin Number or Nozzle Label etc.
|
||||
|
||||
HasIdentifierTemplate (me) returns Boolean;
|
||||
---Purpose : returns True if Text Display Template is specified for Identifier
|
||||
-- else returns False
|
||||
|
||||
IdentifierTemplate (me) returns TextDisplayTemplate;
|
||||
---Purpose : if Text Display Template for the Function Identifier is defined,
|
||||
-- returns TestDisplayTemplate
|
||||
-- else returns NULL Handle
|
||||
|
||||
FunctionName (me) returns HAsciiString from TCollection;
|
||||
---Purpose : returns Connection Point Function Name
|
||||
|
||||
HasFunctionTemplate (me) returns Boolean;
|
||||
---Purpose : returns True if Text Display Template is specified for Function Name
|
||||
-- else returns False
|
||||
|
||||
FunctionTemplate (me) returns TextDisplayTemplate;
|
||||
---Purpose : if Text Display Template for the Function Name is defined,
|
||||
-- returns TestDisplayTemplate
|
||||
-- else returns NULL Handle
|
||||
|
||||
PointIdentifier (me) returns Integer;
|
||||
---Purpose : returns the Unique Connect Point Identifier
|
||||
|
||||
FunctionCode (me) returns Integer;
|
||||
---Purpose : returns the Connect Point Function Code
|
||||
|
||||
SwapFlag (me) returns Boolean;
|
||||
---Purpose : return value = 0 : Connect point may be swapped(default)
|
||||
-- = 1 : Connect point may not be swapped
|
||||
|
||||
HasOwnerSubfigure (me) returns Boolean;
|
||||
---Purpose : returns True if Network Subfigure Instance/Definition Entity
|
||||
-- is specified
|
||||
-- else returns False
|
||||
|
||||
OwnerSubfigure (me) returns IGESEntity;
|
||||
---Purpose : returns "owner" Network Subfigure Instance Entity,
|
||||
-- or Network Subfigure Definition Entity, or NULL Handle.
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_ConnectPoint
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a ConnectPoint.
|
||||
--
|
||||
-- Reminder : A ConnectPoint is defined by :
|
||||
-- - A Coordinate point
|
||||
-- - Display symbol Geometry
|
||||
-- - Type of the connection
|
||||
-- - Function flag for the connection
|
||||
-- - Connection Point Function Identifier and its Template
|
||||
-- - Connection Point Function Name and its Template
|
||||
-- - Unique Connect Point Identifier
|
||||
-- - Connect Point Function Code
|
||||
-- - Connect Point Swap Flag
|
||||
-- - Pointer to the "Owner"
|
||||
--
|
||||
|
||||
thePoint : XYZ;
|
||||
|
||||
theDisplaySymbol : IGESEntity;
|
||||
|
||||
theTypeFlag : Integer;
|
||||
|
||||
theFunctionFlag : Integer;
|
||||
|
||||
theFunctionIdentifier : HAsciiString;
|
||||
|
||||
theIdentifierTemplate : TextDisplayTemplate;
|
||||
|
||||
theFunctionName : HAsciiString;
|
||||
|
||||
theFunctionTemplate : TextDisplayTemplate;
|
||||
|
||||
thePointIdentifier : Integer;
|
||||
|
||||
theFunctionCode : Integer;
|
||||
|
||||
theSwapFlag : Integer;
|
||||
|
||||
theOwnerSubfigure : IGESEntity;
|
||||
|
||||
end ConnectPoint;
|
@@ -16,9 +16,14 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ConnectPoint.ixx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
IGESDraw_ConnectPoint::IGESDraw_ConnectPoint () { }
|
||||
|
||||
|
181
src/IGESDraw/IGESDraw_ConnectPoint.hxx
Normal file
181
src/IGESDraw/IGESDraw_ConnectPoint.hxx
Normal file
@@ -0,0 +1,181 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ConnectPoint_HeaderFile
|
||||
#define _IGESDraw_ConnectPoint_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESData_IGESEntity;
|
||||
class TCollection_HAsciiString;
|
||||
class IGESGraph_TextDisplayTemplate;
|
||||
class gp_XYZ;
|
||||
class gp_Pnt;
|
||||
|
||||
|
||||
class IGESDraw_ConnectPoint;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_ConnectPoint, IGESData_IGESEntity)
|
||||
|
||||
//! defines IGESConnectPoint, Type <132> Form Number <0>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! Connect Point Entity describes a point of connection for
|
||||
//! zero, one or more entities. Its referenced from Composite
|
||||
//! curve, or Network Subfigure Definition/Instance, or Flow
|
||||
//! Associative Instance, or it may stand alone.
|
||||
class IGESDraw_ConnectPoint : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_ConnectPoint();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! ConnectPoint
|
||||
//! - aPoint : A Coordinate point
|
||||
//! - aDisplaySymbol : Display symbol Geometry
|
||||
//! - aTypeFlag : Type of the connection
|
||||
//! - aFunctionFlag : Function flag for the connection
|
||||
//! - aFunctionIdentifier : Connection Point Function Identifier
|
||||
//! - anIdentifierTemplate : Connection Point Function Template
|
||||
//! - aFunctionName : Connection Point Function Name
|
||||
//! - aFunctionTemplate : Connection Point Function Template
|
||||
//! - aPointIdentifier : Unique Connect Point Identifier
|
||||
//! - aFunctionCode : Connect Point Function Code
|
||||
//! - aSwapFlag : Connect Point Swap Flag
|
||||
//! - anOwnerSubfigure : Pointer to the "Owner" Entity
|
||||
Standard_EXPORT void Init (const gp_XYZ& aPoint, const Handle(IGESData_IGESEntity)& aDisplaySymbol, const Standard_Integer aTypeFlag, const Standard_Integer aFunctionFlag, const Handle(TCollection_HAsciiString)& aFunctionIdentifier, const Handle(IGESGraph_TextDisplayTemplate)& anIdentifierTemplate, const Handle(TCollection_HAsciiString)& aFunctionName, const Handle(IGESGraph_TextDisplayTemplate)& aFunctionTemplate, const Standard_Integer aPointIdentifier, const Standard_Integer aFunctionCode, const Standard_Integer aSwapFlag, const Handle(IGESData_IGESEntity)& anOwnerSubfigure);
|
||||
|
||||
//! returns the coordinate of the connection point
|
||||
Standard_EXPORT gp_Pnt Point() const;
|
||||
|
||||
//! returns the Transformed coordinate of the connection point
|
||||
Standard_EXPORT gp_Pnt TransformedPoint() const;
|
||||
|
||||
//! returns True if Display symbol is specified
|
||||
//! else returns False
|
||||
Standard_EXPORT Standard_Boolean HasDisplaySymbol() const;
|
||||
|
||||
//! if display symbol specified returns display symbol geometric entity
|
||||
//! else returns NULL Handle
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) DisplaySymbol() const;
|
||||
|
||||
//! return value specifies a particular type of connection :
|
||||
//! Type Flag = 0 : Not Specified(default)
|
||||
//! 1 : Nonspecific logical point of connection
|
||||
//! 2 : Nonspecific physical point of connection
|
||||
//! 101 : Logical component pin
|
||||
//! 102 : Logical part connector
|
||||
//! 103 : Logical offpage connector
|
||||
//! 104 : Logical global signal connector
|
||||
//! 201 : Physical PWA surface mount pin
|
||||
//! 202 : Physical PWA blind pin
|
||||
//! 203 : Physical PWA thru-pin
|
||||
//! 5001-9999 : Implementor defined.
|
||||
Standard_EXPORT Standard_Integer TypeFlag() const;
|
||||
|
||||
//! returns Function Code that specifies a particular function for the
|
||||
//! ECO576 connection :
|
||||
//! e.g., Function Flag = 0 : Unspecified(default)
|
||||
//! = 1 : Electrical Signal
|
||||
//! = 2 : Fluid flow Signal
|
||||
Standard_EXPORT Standard_Integer FunctionFlag() const;
|
||||
|
||||
//! return HAsciiString identifying Pin Number or Nozzle Label etc.
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) FunctionIdentifier() const;
|
||||
|
||||
//! returns True if Text Display Template is specified for Identifier
|
||||
//! else returns False
|
||||
Standard_EXPORT Standard_Boolean HasIdentifierTemplate() const;
|
||||
|
||||
//! if Text Display Template for the Function Identifier is defined,
|
||||
//! returns TestDisplayTemplate
|
||||
//! else returns NULL Handle
|
||||
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) IdentifierTemplate() const;
|
||||
|
||||
//! returns Connection Point Function Name
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) FunctionName() const;
|
||||
|
||||
//! returns True if Text Display Template is specified for Function Name
|
||||
//! else returns False
|
||||
Standard_EXPORT Standard_Boolean HasFunctionTemplate() const;
|
||||
|
||||
//! if Text Display Template for the Function Name is defined,
|
||||
//! returns TestDisplayTemplate
|
||||
//! else returns NULL Handle
|
||||
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) FunctionTemplate() const;
|
||||
|
||||
//! returns the Unique Connect Point Identifier
|
||||
Standard_EXPORT Standard_Integer PointIdentifier() const;
|
||||
|
||||
//! returns the Connect Point Function Code
|
||||
Standard_EXPORT Standard_Integer FunctionCode() const;
|
||||
|
||||
//! return value = 0 : Connect point may be swapped(default)
|
||||
//! = 1 : Connect point may not be swapped
|
||||
Standard_EXPORT Standard_Boolean SwapFlag() const;
|
||||
|
||||
//! returns True if Network Subfigure Instance/Definition Entity
|
||||
//! is specified
|
||||
//! else returns False
|
||||
Standard_EXPORT Standard_Boolean HasOwnerSubfigure() const;
|
||||
|
||||
//! returns "owner" Network Subfigure Instance Entity,
|
||||
//! or Network Subfigure Definition Entity, or NULL Handle.
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) OwnerSubfigure() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_ConnectPoint,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
gp_XYZ thePoint;
|
||||
Handle(IGESData_IGESEntity) theDisplaySymbol;
|
||||
Standard_Integer theTypeFlag;
|
||||
Standard_Integer theFunctionFlag;
|
||||
Handle(TCollection_HAsciiString) theFunctionIdentifier;
|
||||
Handle(IGESGraph_TextDisplayTemplate) theIdentifierTemplate;
|
||||
Handle(TCollection_HAsciiString) theFunctionName;
|
||||
Handle(IGESGraph_TextDisplayTemplate) theFunctionTemplate;
|
||||
Standard_Integer thePointIdentifier;
|
||||
Standard_Integer theFunctionCode;
|
||||
Standard_Integer theSwapFlag;
|
||||
Handle(IGESData_IGESEntity) theOwnerSubfigure;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ConnectPoint_HeaderFile
|
@@ -1,120 +0,0 @@
|
||||
-- Created on: 1993-01-09
|
||||
-- Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
-- 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 Drawing from IGESDraw inherits IGESEntity
|
||||
|
||||
---Purpose: defines IGESDrawing, Type <404> Form <0>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- Specifies a drawing as a collection of annotation entities
|
||||
-- defined in drawing space, and views which together
|
||||
-- constitute a single representation of a part
|
||||
|
||||
uses
|
||||
|
||||
HArray1OfIGESEntity from IGESData,
|
||||
ViewKindEntity from IGESData,
|
||||
HArray1OfViewKindEntity from IGESDraw,
|
||||
Pnt2d from gp,
|
||||
XYZ from gp,
|
||||
XY from gp,
|
||||
HArray1OfXY from TColgp
|
||||
|
||||
raises DimensionMismatch, OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns Drawing;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
allViews : HArray1OfViewKindEntity;
|
||||
allViewOrigins : HArray1OfXY;
|
||||
allAnnotations : HArray1OfIGESEntity)
|
||||
raises DimensionMismatch;
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- Drawing
|
||||
-- - allViews : Pointers to DEs of View entities
|
||||
-- - allViewOrigins : Origin coordinates of transformed Views
|
||||
-- - allAnnotations : Pointers to DEs of Annotation entities
|
||||
-- raises exception if Lengths of allViews and allViewOrigins are
|
||||
-- not same.
|
||||
|
||||
NbViews (me) returns Integer;
|
||||
---Purpose : returns the number of view pointers in <me>
|
||||
|
||||
ViewItem (me; ViewIndex : Integer) returns ViewKindEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the ViewKindEntity indicated by ViewIndex
|
||||
-- raises an exception if ViewIndex <= 0 or ViewIndex > NbViews().
|
||||
|
||||
ViewOrigin (me; TViewIndex : Integer) returns Pnt2d
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Drawing space coordinates of the origin of the
|
||||
-- Transformed view indicated by TViewIndex
|
||||
-- raises an exception if TViewIndex <= 0 or TViewIndex > NbViews().
|
||||
|
||||
NbAnnotations (me) returns Integer;
|
||||
---Purpose : returns the number of Annotation entities in <me>
|
||||
|
||||
Annotation (me; AnnotationIndex : Integer) returns IGESEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Annotation entity in this Drawing, indicated by the
|
||||
-- AnnotationIndex
|
||||
-- raises an exception if AnnotationIndex <= 0 or
|
||||
-- AnnotationIndex > NbAnnotations().
|
||||
|
||||
-- infered informations
|
||||
|
||||
ViewToDrawing(me; NumView : Integer; ViewCoords : XYZ)
|
||||
returns XY;
|
||||
-- returns the Transformation of a View from View space to
|
||||
-- Drawing space.
|
||||
|
||||
DrawingUnit (me; value : out Real) returns Boolean;
|
||||
---Purpose : Returns the Drawing Unit Value if it is specified (by a
|
||||
-- specific property entity)
|
||||
-- If not specified, returns False, and val as zero :
|
||||
-- unit to consider is then the model unit in GlobalSection
|
||||
|
||||
DrawingSize (me; X,Y : out Real) returns Boolean;
|
||||
---Purpose : Returns the Drawing Size if it is specified (by a
|
||||
-- specific property entity)
|
||||
-- If not specified, returns False, and X,Y as zero :
|
||||
-- unit to consider is then the model unit in GlobalSection
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_Drawing
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a
|
||||
-- Drawing Entity.
|
||||
--
|
||||
-- Reminder : A Drawing Entity is defined by :
|
||||
-- - Pointers to DEs of View entities
|
||||
-- - Origin coordinates of transformed views
|
||||
-- - Pointers to DEs of Annotation entities
|
||||
--
|
||||
|
||||
theViews : HArray1OfViewKindEntity;
|
||||
|
||||
theViewOrigins : HArray1OfXY;
|
||||
|
||||
theAnnotations : HArray1OfIGESEntity;
|
||||
|
||||
end Drawing;
|
@@ -16,15 +16,20 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_Drawing.ixx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_Drawing.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
|
||||
#include <IGESGraph_DrawingUnits.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESGraph_DrawingSize.hxx>
|
||||
|
||||
#include <IGESGraph_DrawingUnits.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_Drawing::IGESDraw_Drawing () { }
|
||||
|
||||
|
126
src/IGESDraw/IGESDraw_Drawing.hxx
Normal file
126
src/IGESDraw/IGESDraw_Drawing.hxx
Normal file
@@ -0,0 +1,126 @@
|
||||
// Created on: 1993-01-09
|
||||
// Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_Drawing_HeaderFile
|
||||
#define _IGESDraw_Drawing_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
class Standard_DimensionMismatch;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_ViewKindEntity;
|
||||
class gp_Pnt2d;
|
||||
class IGESData_IGESEntity;
|
||||
class gp_XY;
|
||||
class gp_XYZ;
|
||||
|
||||
|
||||
class IGESDraw_Drawing;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_Drawing, IGESData_IGESEntity)
|
||||
|
||||
//! defines IGESDrawing, Type <404> Form <0>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! Specifies a drawing as a collection of annotation entities
|
||||
//! defined in drawing space, and views which together
|
||||
//! constitute a single representation of a part
|
||||
class IGESDraw_Drawing : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_Drawing();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! Drawing
|
||||
//! - allViews : Pointers to DEs of View entities
|
||||
//! - allViewOrigins : Origin coordinates of transformed Views
|
||||
//! - allAnnotations : Pointers to DEs of Annotation entities
|
||||
//! raises exception if Lengths of allViews and allViewOrigins are
|
||||
//! not same.
|
||||
Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViews, const Handle(TColgp_HArray1OfXY)& allViewOrigins, const Handle(IGESData_HArray1OfIGESEntity)& allAnnotations);
|
||||
|
||||
//! returns the number of view pointers in <me>
|
||||
Standard_EXPORT Standard_Integer NbViews() const;
|
||||
|
||||
//! returns the ViewKindEntity indicated by ViewIndex
|
||||
//! raises an exception if ViewIndex <= 0 or ViewIndex > NbViews().
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer ViewIndex) const;
|
||||
|
||||
//! returns the Drawing space coordinates of the origin of the
|
||||
//! Transformed view indicated by TViewIndex
|
||||
//! raises an exception if TViewIndex <= 0 or TViewIndex > NbViews().
|
||||
Standard_EXPORT gp_Pnt2d ViewOrigin (const Standard_Integer TViewIndex) const;
|
||||
|
||||
//! returns the number of Annotation entities in <me>
|
||||
Standard_EXPORT Standard_Integer NbAnnotations() const;
|
||||
|
||||
//! returns the Annotation entity in this Drawing, indicated by the
|
||||
//! AnnotationIndex
|
||||
//! raises an exception if AnnotationIndex <= 0 or
|
||||
//! AnnotationIndex > NbAnnotations().
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) Annotation (const Standard_Integer AnnotationIndex) const;
|
||||
|
||||
Standard_EXPORT gp_XY ViewToDrawing (const Standard_Integer NumView, const gp_XYZ& ViewCoords) const;
|
||||
|
||||
//! Returns the Drawing Unit Value if it is specified (by a
|
||||
//! specific property entity)
|
||||
//! If not specified, returns False, and val as zero :
|
||||
//! unit to consider is then the model unit in GlobalSection
|
||||
Standard_EXPORT Standard_Boolean DrawingUnit (Standard_Real& value) const;
|
||||
|
||||
//! Returns the Drawing Size if it is specified (by a
|
||||
//! specific property entity)
|
||||
//! If not specified, returns False, and X,Y as zero :
|
||||
//! unit to consider is then the model unit in GlobalSection
|
||||
Standard_EXPORT Standard_Boolean DrawingSize (Standard_Real& X, Standard_Real& Y) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_Drawing,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESDraw_HArray1OfViewKindEntity) theViews;
|
||||
Handle(TColgp_HArray1OfXY) theViewOrigins;
|
||||
Handle(IGESData_HArray1OfIGESEntity) theAnnotations;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_Drawing_HeaderFile
|
@@ -1,129 +0,0 @@
|
||||
-- Created on: 1993-01-09
|
||||
-- Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
-- 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 DrawingWithRotation from IGESDraw inherits IGESEntity
|
||||
|
||||
---Purpose: defines IGESDrawingWithRotation, Type <404> Form <1>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- Permits rotation, in addition to transformation and
|
||||
-- scaling, between the view and drawing coordinate systems
|
||||
|
||||
uses
|
||||
|
||||
HArray1OfIGESEntity from IGESData,
|
||||
HArray1OfReal from TColStd,
|
||||
ViewKindEntity from IGESData,
|
||||
HArray1OfViewKindEntity from IGESDraw,
|
||||
Pnt2d from gp,
|
||||
XYZ from gp,
|
||||
XY from gp,
|
||||
HArray1OfXY from TColgp
|
||||
|
||||
raises DimensionMismatch, OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns DrawingWithRotation;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
allViews : HArray1OfViewKindEntity;
|
||||
allViewOrigins : HArray1OfXY;
|
||||
allOrientationAngles : HArray1OfReal;
|
||||
allAnnotations : HArray1OfIGESEntity)
|
||||
raises DimensionMismatch;
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- DrawingWithRotation
|
||||
-- - allViews : Pointers to View entities
|
||||
-- - allViewOrigins : Origin coords of transformed views
|
||||
-- - allOrientationAngles : Orientation angles of transformed views
|
||||
-- - allAnnotations : Pointers to Annotation entities
|
||||
-- raises exception if Lengths of allViews, allViewOrigins and
|
||||
-- allOrientationAngles are not same.
|
||||
|
||||
NbViews (me) returns Integer;
|
||||
---Purpose : returns the number of view pointers in <me>
|
||||
|
||||
ViewItem (me; Index : Integer) returns ViewKindEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the View entity indicated by Index
|
||||
-- raises an exception if Index <= 0 or Index > NbViews().
|
||||
|
||||
ViewOrigin (me; Index : Integer) returns Pnt2d
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Drawing space coordinates of the origin of the
|
||||
-- Transformed view indicated by Index
|
||||
-- raises an exception if Index <= 0 or Index > NbViews().
|
||||
|
||||
OrientationAngle (me; Index : Integer) returns Real
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Orientation angle for the Transformed view
|
||||
-- indicated by Index
|
||||
-- raises an exception if Index <= 0 or Index > NbViews().
|
||||
|
||||
NbAnnotations (me) returns Integer;
|
||||
---Purpose : returns the number of Annotation entities in <me>
|
||||
|
||||
Annotation (me; Index : Integer) returns IGESEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Annotation entity in this Drawing, indicated by Index
|
||||
-- raises an exception if Index <= 0 or Index > NbAnnotations().
|
||||
|
||||
-- infered informations
|
||||
|
||||
ViewToDrawing(me; NumView : Integer; ViewCoords : XYZ)
|
||||
returns XY;
|
||||
-- returns the Transformation of a View from View space to Drawing
|
||||
-- space.
|
||||
|
||||
DrawingUnit (me; value : out Real) returns Boolean;
|
||||
---Purpose : Returns the Drawing Unit Value if it is specified (by a
|
||||
-- specific property entity)
|
||||
-- If not specified, returns False, and val as zero :
|
||||
-- unit to consider is then the model unit in GlobalSection
|
||||
|
||||
DrawingSize (me; X,Y : out Real) returns Boolean;
|
||||
---Purpose : Returns the Drawing Size if it is specified (by a
|
||||
-- specific property entity)
|
||||
-- If not specified, returns False, and X,Y as zero :
|
||||
-- unit to consider is then the model unit in GlobalSection
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_DrawingWithRotation
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a
|
||||
-- DrawingWithRotation Entity.
|
||||
--
|
||||
-- Reminder : A DrawingWithRotation Entity is defined by :
|
||||
-- - Pointers to View entities
|
||||
-- - Origin coordinates of transformed views
|
||||
-- - Orientation angles of transformed views
|
||||
-- - Pointers to Annotation entities
|
||||
--
|
||||
|
||||
theViews : HArray1OfViewKindEntity;
|
||||
|
||||
theViewOrigins : HArray1OfXY;
|
||||
|
||||
theOrientationAngles : HArray1OfReal;
|
||||
|
||||
theAnnotations : HArray1OfIGESEntity;
|
||||
|
||||
end DrawingWithRotation;
|
@@ -16,15 +16,20 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_DrawingWithRotation.ixx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_DrawingWithRotation.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
|
||||
#include <IGESGraph_DrawingUnits.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESGraph_DrawingSize.hxx>
|
||||
|
||||
#include <IGESGraph_DrawingUnits.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_DrawingWithRotation::IGESDraw_DrawingWithRotation () { }
|
||||
|
||||
|
131
src/IGESDraw/IGESDraw_DrawingWithRotation.hxx
Normal file
131
src/IGESDraw/IGESDraw_DrawingWithRotation.hxx
Normal file
@@ -0,0 +1,131 @@
|
||||
// Created on: 1993-01-09
|
||||
// Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_DrawingWithRotation_HeaderFile
|
||||
#define _IGESDraw_DrawingWithRotation_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Standard_DimensionMismatch;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_ViewKindEntity;
|
||||
class gp_Pnt2d;
|
||||
class IGESData_IGESEntity;
|
||||
class gp_XY;
|
||||
class gp_XYZ;
|
||||
|
||||
|
||||
class IGESDraw_DrawingWithRotation;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_DrawingWithRotation, IGESData_IGESEntity)
|
||||
|
||||
//! defines IGESDrawingWithRotation, Type <404> Form <1>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! Permits rotation, in addition to transformation and
|
||||
//! scaling, between the view and drawing coordinate systems
|
||||
class IGESDraw_DrawingWithRotation : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_DrawingWithRotation();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! DrawingWithRotation
|
||||
//! - allViews : Pointers to View entities
|
||||
//! - allViewOrigins : Origin coords of transformed views
|
||||
//! - allOrientationAngles : Orientation angles of transformed views
|
||||
//! - allAnnotations : Pointers to Annotation entities
|
||||
//! raises exception if Lengths of allViews, allViewOrigins and
|
||||
//! allOrientationAngles are not same.
|
||||
Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViews, const Handle(TColgp_HArray1OfXY)& allViewOrigins, const Handle(TColStd_HArray1OfReal)& allOrientationAngles, const Handle(IGESData_HArray1OfIGESEntity)& allAnnotations);
|
||||
|
||||
//! returns the number of view pointers in <me>
|
||||
Standard_EXPORT Standard_Integer NbViews() const;
|
||||
|
||||
//! returns the View entity indicated by Index
|
||||
//! raises an exception if Index <= 0 or Index > NbViews().
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Drawing space coordinates of the origin of the
|
||||
//! Transformed view indicated by Index
|
||||
//! raises an exception if Index <= 0 or Index > NbViews().
|
||||
Standard_EXPORT gp_Pnt2d ViewOrigin (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Orientation angle for the Transformed view
|
||||
//! indicated by Index
|
||||
//! raises an exception if Index <= 0 or Index > NbViews().
|
||||
Standard_EXPORT Standard_Real OrientationAngle (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the number of Annotation entities in <me>
|
||||
Standard_EXPORT Standard_Integer NbAnnotations() const;
|
||||
|
||||
//! returns the Annotation entity in this Drawing, indicated by Index
|
||||
//! raises an exception if Index <= 0 or Index > NbAnnotations().
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) Annotation (const Standard_Integer Index) const;
|
||||
|
||||
Standard_EXPORT gp_XY ViewToDrawing (const Standard_Integer NumView, const gp_XYZ& ViewCoords) const;
|
||||
|
||||
//! Returns the Drawing Unit Value if it is specified (by a
|
||||
//! specific property entity)
|
||||
//! If not specified, returns False, and val as zero :
|
||||
//! unit to consider is then the model unit in GlobalSection
|
||||
Standard_EXPORT Standard_Boolean DrawingUnit (Standard_Real& value) const;
|
||||
|
||||
//! Returns the Drawing Size if it is specified (by a
|
||||
//! specific property entity)
|
||||
//! If not specified, returns False, and X,Y as zero :
|
||||
//! unit to consider is then the model unit in GlobalSection
|
||||
Standard_EXPORT Standard_Boolean DrawingSize (Standard_Real& X, Standard_Real& Y) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_DrawingWithRotation,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESDraw_HArray1OfViewKindEntity) theViews;
|
||||
Handle(TColgp_HArray1OfXY) theViewOrigins;
|
||||
Handle(TColStd_HArray1OfReal) theOrientationAngles;
|
||||
Handle(IGESData_HArray1OfIGESEntity) theAnnotations;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_DrawingWithRotation_HeaderFile
|
@@ -1,79 +0,0 @@
|
||||
-- Created on: 1993-05-10
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 GeneralModule from IGESDraw inherits GeneralModule from IGESData
|
||||
|
||||
---Purpose : Definition of General Services for IGESDraw (specific part)
|
||||
-- This Services comprise : Shared & Implied Lists, Copy, Check
|
||||
|
||||
uses OStream,
|
||||
Check, ShareTool, EntityIterator, CopyTool,
|
||||
IGESEntity, DirChecker
|
||||
|
||||
is
|
||||
|
||||
Create returns GeneralModule from IGESDraw;
|
||||
---Purpose : Creates a GeneralModule from IGESDraw and puts it into GeneralLib
|
||||
|
||||
OwnSharedCase (me; CN : Integer; ent : IGESEntity;
|
||||
iter : in out EntityIterator);
|
||||
---Purpose : Lists the Entities shared by a given IGESEntity <ent>, from
|
||||
-- its specific parameters : specific for each type
|
||||
|
||||
OwnImpliedCase (me; CN : Integer; ent : IGESEntity;
|
||||
iter : in out EntityIterator) is redefined;
|
||||
---Purpose : Specific list of Entities implied by an IGESEntity <ent> (in
|
||||
-- addition to Associativities). Redefined for ViewsVisible ...
|
||||
|
||||
DirChecker (me; CN : Integer; ent : IGESEntity) returns DirChecker;
|
||||
---Purpose : Returns a DirChecker, specific for each type of Entity
|
||||
-- (identified by its Case Number) : this DirChecker defines
|
||||
-- constraints which must be respected by the DirectoryPart
|
||||
|
||||
OwnCheckCase (me; CN : Integer; ent : IGESEntity; shares : ShareTool;
|
||||
ach : in out Check);
|
||||
---Purpose : Performs Specific Semantic Check for each type of Entity
|
||||
|
||||
|
||||
NewVoid (me; CN : Integer; entto : out Transient)
|
||||
returns Boolean;
|
||||
---Purpose : Specific creation of a new void entity
|
||||
|
||||
OwnCopyCase (me; CN : Integer;
|
||||
entfrom : IGESEntity; entto : IGESEntity;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Copies parameters which are specific of each Type of Entity
|
||||
|
||||
OwnRenewCase (me; CN : Integer;
|
||||
entfrom : IGESEntity; entto : IGESEntity;
|
||||
TC : CopyTool) is redefined;
|
||||
---Purpose : Renews parameters which are specific of each Type of Entity :
|
||||
-- redefined for ViewsVisible ... (takes only the implied ref.s
|
||||
-- which have also been copied)
|
||||
|
||||
OwnDeleteCase (me; CN : Integer;
|
||||
ent : IGESEntity) is redefined;
|
||||
---Purpose : Clears parameters with can cause looping structures :
|
||||
-- redefined for ViewsVisible ... (clears the implied ref.s)
|
||||
|
||||
CategoryNumber (me; CN : Integer; ent : Transient; shares : ShareTool)
|
||||
returns Integer is redefined;
|
||||
---Purpose : Returns a category number which characterizes an entity
|
||||
-- Planar : Auxiliary
|
||||
-- Subfigures and ConnectPoint : Structure
|
||||
-- others : Drawing
|
||||
|
||||
end GeneralModule;
|
@@ -11,14 +11,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESDraw_GeneralModule.ixx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_Category.hxx>
|
||||
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_CircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_Drawing.hxx>
|
||||
#include <IGESDraw_DrawingWithRotation.hxx>
|
||||
#include <IGESDraw_GeneralModule.hxx>
|
||||
#include <IGESDraw_LabelDisplay.hxx>
|
||||
#include <IGESDraw_NetworkSubfigure.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
@@ -26,10 +26,6 @@
|
||||
#include <IGESDraw_Planar.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <IGESDraw_SegmentedViewsVisible.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
|
||||
#include <IGESDraw_ToolCircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ToolConnectPoint.hxx>
|
||||
#include <IGESDraw_ToolDrawing.hxx>
|
||||
@@ -44,14 +40,21 @@
|
||||
#include <IGESDraw_ToolView.hxx>
|
||||
#include <IGESDraw_ToolViewsVisible.hxx>
|
||||
#include <IGESDraw_ToolViewsVisibleWithAttr.hxx>
|
||||
|
||||
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
#include <Interface_Category.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
// Each Module is attached to a Protocol : it must interprete Case Numbers
|
||||
// (arguments <CN> of various methods) in accordance to values returned by
|
||||
// the method TypeNumber from this Protocol
|
||||
|
||||
|
||||
IGESDraw_GeneralModule::IGESDraw_GeneralModule () { }
|
||||
|
||||
|
||||
|
109
src/IGESDraw/IGESDraw_GeneralModule.hxx
Normal file
109
src/IGESDraw/IGESDraw_GeneralModule.hxx
Normal file
@@ -0,0 +1,109 @@
|
||||
// Created on: 1993-05-10
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_GeneralModule_HeaderFile
|
||||
#define _IGESDraw_GeneralModule_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESData_GeneralModule.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESData_IGESEntity;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Standard_Transient;
|
||||
class Interface_CopyTool;
|
||||
|
||||
|
||||
class IGESDraw_GeneralModule;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_GeneralModule, IGESData_GeneralModule)
|
||||
|
||||
//! Definition of General Services for IGESDraw (specific part)
|
||||
//! This Services comprise : Shared & Implied Lists, Copy, Check
|
||||
class IGESDraw_GeneralModule : public IGESData_GeneralModule
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a GeneralModule from IGESDraw and puts it into GeneralLib
|
||||
Standard_EXPORT IGESDraw_GeneralModule();
|
||||
|
||||
//! Lists the Entities shared by a given IGESEntity <ent>, from
|
||||
//! its specific parameters : specific for each type
|
||||
Standard_EXPORT void OwnSharedCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Specific list of Entities implied by an IGESEntity <ent> (in
|
||||
//! addition to Associativities). Redefined for ViewsVisible ...
|
||||
Standard_EXPORT virtual void OwnImpliedCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const Standard_OVERRIDE;
|
||||
|
||||
//! Returns a DirChecker, specific for each type of Entity
|
||||
//! (identified by its Case Number) : this DirChecker defines
|
||||
//! constraints which must be respected by the DirectoryPart
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check for each type of Entity
|
||||
Standard_EXPORT void OwnCheckCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Specific creation of a new void entity
|
||||
Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const;
|
||||
|
||||
//! Copies parameters which are specific of each Type of Entity
|
||||
Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Renews parameters which are specific of each Type of Entity :
|
||||
//! redefined for ViewsVisible ... (takes only the implied ref.s
|
||||
//! which have also been copied)
|
||||
Standard_EXPORT virtual void OwnRenewCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, const Interface_CopyTool& TC) const Standard_OVERRIDE;
|
||||
|
||||
//! Clears parameters with can cause looping structures :
|
||||
//! redefined for ViewsVisible ... (clears the implied ref.s)
|
||||
Standard_EXPORT virtual void OwnDeleteCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
|
||||
|
||||
//! Returns a category number which characterizes an entity
|
||||
//! Planar : Auxiliary
|
||||
//! Subfigures and ConnectPoint : Structure
|
||||
//! others : Drawing
|
||||
Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_GeneralModule,IGESData_GeneralModule)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_GeneralModule_HeaderFile
|
@@ -1,124 +0,0 @@
|
||||
-- Created on: 1993-01-09
|
||||
-- Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
-- 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 LabelDisplay from IGESDraw inherits LabelDisplayEntity
|
||||
|
||||
---Purpose: defines IGESLabelDisplay, Type <402> Form <5>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- Permits one or more displays for the
|
||||
-- entity labels of an entity
|
||||
|
||||
uses
|
||||
|
||||
IGESEntity from IGESData,
|
||||
HArray1OfIGESEntity from IGESData,
|
||||
LeaderArrow from IGESDimen,
|
||||
HArray1OfLeaderArrow from IGESDimen,
|
||||
HArray1OfInteger from TColStd,
|
||||
ViewKindEntity from IGESData,
|
||||
HArray1OfViewKindEntity from IGESDraw,
|
||||
Pnt from gp,
|
||||
HArray1OfXYZ from TColgp
|
||||
|
||||
raises DimensionMismatch, OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns LabelDisplay;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
allViews : HArray1OfViewKindEntity;
|
||||
allTextLocations : HArray1OfXYZ;
|
||||
allLeaderEntities : HArray1OfLeaderArrow;
|
||||
allLabelLevels : HArray1OfInteger;
|
||||
allDisplayedEntities : HArray1OfIGESEntity)
|
||||
raises DimensionMismatch;
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- LabelDisplay
|
||||
-- - allViews : Pointers to View Entities
|
||||
-- - allTextLocations : Coordinates of text locations in the views
|
||||
-- - allLeaderEntities : Pointers to Leader Entities in the views
|
||||
-- - allLabelLevels : Entity label level numbers in the views
|
||||
-- - allDisplayedEntities : Pointers to the entities being displayed
|
||||
-- raises exception if Lengths of allViews, allTextLocations,
|
||||
-- allLeaderEntities, allLabelLevels and allDisplayedEntities are
|
||||
-- not same.
|
||||
|
||||
NbLabels (me) returns Integer;
|
||||
---Purpose : returns the number of label placements in <me>
|
||||
|
||||
ViewItem (me; ViewIndex : Integer) returns ViewKindEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the View entity indicated by ViewIndex
|
||||
-- raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
|
||||
TextLocation (me; ViewIndex : Integer) returns Pnt
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the 3d-Point coordinates of the text location, in the
|
||||
-- view indicated by ViewIndex
|
||||
-- raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
|
||||
LeaderEntity (me; ViewIndex : Integer) returns LeaderArrow
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Leader entity in the view indicated by ViewIndex
|
||||
-- raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
|
||||
LabelLevel (me; ViewIndex : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Entity label level number in the view indicated
|
||||
-- by ViewIndex
|
||||
-- raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
|
||||
DisplayedEntity (me; EntityIndex : Integer) returns IGESEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the entity indicated by EntityIndex
|
||||
-- raises an exception if EntityIndex <= 0 or EntityIndex > NbLabels().
|
||||
|
||||
TransformedTextLocation (me; ViewIndex : Integer) returns Pnt
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the transformed 3d-Point coordinates of the text
|
||||
-- location, in the view indicated by ViewIndex
|
||||
-- raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_LabelDisplay
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a Label Display.
|
||||
--
|
||||
-- Reminder : A Label Display is defined by :
|
||||
-- - Pointers to View Entities
|
||||
-- - Coordinates of text locations in the views
|
||||
-- - Pointers to Leader Entities in the views
|
||||
-- - Entity label level numbers in the views
|
||||
-- - Pointers to the entities being displayed
|
||||
--
|
||||
|
||||
theViews : HArray1OfViewKindEntity;
|
||||
|
||||
theTextLocations : HArray1OfXYZ;
|
||||
|
||||
theLeaderEntities : HArray1OfLeaderArrow;
|
||||
|
||||
theLabelLevels : HArray1OfInteger;
|
||||
|
||||
theDisplayedEntities : HArray1OfIGESEntity;
|
||||
|
||||
end LabelDisplay;
|
@@ -16,11 +16,17 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_LabelDisplay.ixx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDimen_LeaderArrow.hxx>
|
||||
#include <IGESDraw_LabelDisplay.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_LabelDisplay::IGESDraw_LabelDisplay () { }
|
||||
|
||||
|
124
src/IGESDraw/IGESDraw_LabelDisplay.hxx
Normal file
124
src/IGESDraw/IGESDraw_LabelDisplay.hxx
Normal file
@@ -0,0 +1,124 @@
|
||||
// Created on: 1993-01-09
|
||||
// Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_LabelDisplay_HeaderFile
|
||||
#define _IGESDraw_LabelDisplay_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <TColgp_HArray1OfXYZ.hxx>
|
||||
#include <IGESDimen_HArray1OfLeaderArrow.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_LabelDisplayEntity.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DimensionMismatch;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_ViewKindEntity;
|
||||
class gp_Pnt;
|
||||
class IGESDimen_LeaderArrow;
|
||||
class IGESData_IGESEntity;
|
||||
|
||||
|
||||
class IGESDraw_LabelDisplay;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_LabelDisplay, IGESData_LabelDisplayEntity)
|
||||
|
||||
//! defines IGESLabelDisplay, Type <402> Form <5>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! Permits one or more displays for the
|
||||
//! entity labels of an entity
|
||||
class IGESDraw_LabelDisplay : public IGESData_LabelDisplayEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_LabelDisplay();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! LabelDisplay
|
||||
//! - allViews : Pointers to View Entities
|
||||
//! - allTextLocations : Coordinates of text locations in the views
|
||||
//! - allLeaderEntities : Pointers to Leader Entities in the views
|
||||
//! - allLabelLevels : Entity label level numbers in the views
|
||||
//! - allDisplayedEntities : Pointers to the entities being displayed
|
||||
//! raises exception if Lengths of allViews, allTextLocations,
|
||||
//! allLeaderEntities, allLabelLevels and allDisplayedEntities are
|
||||
//! not same.
|
||||
Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViews, const Handle(TColgp_HArray1OfXYZ)& allTextLocations, const Handle(IGESDimen_HArray1OfLeaderArrow)& allLeaderEntities, const Handle(TColStd_HArray1OfInteger)& allLabelLevels, const Handle(IGESData_HArray1OfIGESEntity)& allDisplayedEntities);
|
||||
|
||||
//! returns the number of label placements in <me>
|
||||
Standard_EXPORT Standard_Integer NbLabels() const;
|
||||
|
||||
//! returns the View entity indicated by ViewIndex
|
||||
//! raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer ViewIndex) const;
|
||||
|
||||
//! returns the 3d-Point coordinates of the text location, in the
|
||||
//! view indicated by ViewIndex
|
||||
//! raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
Standard_EXPORT gp_Pnt TextLocation (const Standard_Integer ViewIndex) const;
|
||||
|
||||
//! returns the Leader entity in the view indicated by ViewIndex
|
||||
//! raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
Standard_EXPORT Handle(IGESDimen_LeaderArrow) LeaderEntity (const Standard_Integer ViewIndex) const;
|
||||
|
||||
//! returns the Entity label level number in the view indicated
|
||||
//! by ViewIndex
|
||||
//! raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
Standard_EXPORT Standard_Integer LabelLevel (const Standard_Integer ViewIndex) const;
|
||||
|
||||
//! returns the entity indicated by EntityIndex
|
||||
//! raises an exception if EntityIndex <= 0 or EntityIndex > NbLabels().
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) DisplayedEntity (const Standard_Integer EntityIndex) const;
|
||||
|
||||
//! returns the transformed 3d-Point coordinates of the text
|
||||
//! location, in the view indicated by ViewIndex
|
||||
//! raises an exception if ViewIndex <= 0 or ViewIndex > NbLabels().
|
||||
Standard_EXPORT gp_Pnt TransformedTextLocation (const Standard_Integer ViewIndex) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_LabelDisplay,IGESData_LabelDisplayEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESDraw_HArray1OfViewKindEntity) theViews;
|
||||
Handle(TColgp_HArray1OfXYZ) theTextLocations;
|
||||
Handle(IGESDimen_HArray1OfLeaderArrow) theLeaderEntities;
|
||||
Handle(TColStd_HArray1OfInteger) theLabelLevels;
|
||||
Handle(IGESData_HArray1OfIGESEntity) theDisplayedEntities;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_LabelDisplay_HeaderFile
|
@@ -1,136 +0,0 @@
|
||||
-- Created on: 1993-01-11
|
||||
-- Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
-- 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 NetworkSubfigure from IGESDraw inherits IGESEntity
|
||||
|
||||
---Purpose : defines IGES Network Subfigure Instance Entity,
|
||||
-- Type <420> Form Number <0> in package IGESDraw
|
||||
--
|
||||
-- Used to specify each instance of Network Subfigure
|
||||
-- Definition Entity (Type 320, Form 0).
|
||||
|
||||
uses
|
||||
|
||||
XYZ from gp,
|
||||
HAsciiString from TCollection,
|
||||
NetworkSubfigureDef from IGESDraw,
|
||||
TextDisplayTemplate from IGESGraph,
|
||||
ConnectPoint from IGESDraw,
|
||||
HArray1OfConnectPoint from IGESDraw
|
||||
|
||||
raises OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns NetworkSubfigure;
|
||||
|
||||
-- specific for the entity
|
||||
|
||||
Init (me : mutable;
|
||||
aDefinition : NetworkSubfigureDef;
|
||||
aTranslation : XYZ;
|
||||
aScaleFactor : XYZ;
|
||||
aTypeFlag : Integer;
|
||||
aDesignator : HAsciiString;
|
||||
aTemplate : TextDisplayTemplate;
|
||||
allConnectPoints : HArray1OfConnectPoint);
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- NetworkSubfigure
|
||||
-- - aDefinition : Network Subfigure Definition Entity
|
||||
-- - aTranslation : Translation data relative to the model
|
||||
-- space or the definition space
|
||||
-- - aScaleFactor : Scale factors in the definition space
|
||||
-- - aTypeFlag : Type flag
|
||||
-- - aDesignator : Primary reference designator
|
||||
-- - aTemplate : Primary reference designator Text
|
||||
-- display Template Entity
|
||||
-- - allConnectPoints : Associated Connect Point Entities
|
||||
|
||||
SubfigureDefinition (me) returns NetworkSubfigureDef;
|
||||
---Purpose : returns Network Subfigure Definition Entity specified by this entity
|
||||
|
||||
Translation (me) returns XYZ from gp;
|
||||
---Purpose : returns Translation Data relative to either model space or to
|
||||
-- the definition space of a referring entity
|
||||
|
||||
TransformedTranslation (me) returns XYZ from gp;
|
||||
---Purpose : returns the Transformed Translation Data relative to either model
|
||||
-- space or to the definition space of a referring entity
|
||||
|
||||
ScaleFactors (me) returns XYZ from gp;
|
||||
---Purpose : returns Scale factor in definition space(x, y, z axes)
|
||||
|
||||
TypeFlag (me) returns Integer;
|
||||
---Purpose : returns Type Flag which implements the distinction between Logical
|
||||
-- design and Physical design data,and is required if both are present.
|
||||
-- Type Flag = 0 : Not specified (default)
|
||||
-- = 1 : Logical
|
||||
-- = 2 : Physical
|
||||
|
||||
ReferenceDesignator (me) returns HAsciiString from TCollection;
|
||||
---Purpose : returns the primary reference designator
|
||||
|
||||
HasDesignatorTemplate (me) returns Boolean;
|
||||
---Purpose : returns True if Text Display Template Entity is specified,
|
||||
-- else False
|
||||
|
||||
DesignatorTemplate (me) returns TextDisplayTemplate;
|
||||
---Purpose : returns primary reference designator Text Display Template Entity,
|
||||
-- or null. If null, no Text Display Template Entity specified
|
||||
|
||||
NbConnectPoints (me) returns Integer;
|
||||
---Purpose : returns the number of associated Connect Point Entities
|
||||
|
||||
ConnectPoint (me; Index : Integer) returns ConnectPoint
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th associated Connect point Entity
|
||||
-- raises exception if Index <= 0 or Index > NbConnectPoints()
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_NetworkSubfigure
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a NetworkSubfigure.
|
||||
--
|
||||
-- Reminder : A Network Subfigure Instance Entity is defined by :
|
||||
-- - a Network Subfigure Definition
|
||||
-- - translation data relative to referring entity's
|
||||
-- model or definition space
|
||||
-- - the scale factors in x,y and z directions
|
||||
-- - a type flag to distinguish logical design data
|
||||
-- from physical data
|
||||
-- Type flag : 0 = not specified (default)
|
||||
-- 1 = logical
|
||||
-- 2 = physical
|
||||
-- - the pointers to associated Connect Point Entities
|
||||
--
|
||||
|
||||
theSubfigureDefinition : NetworkSubfigureDef;
|
||||
|
||||
theTranslation : XYZ;
|
||||
|
||||
theScaleFactor : XYZ;
|
||||
|
||||
theTypeFlag : Integer;
|
||||
|
||||
theDesignator : HAsciiString;
|
||||
|
||||
theDesignatorTemplate : TextDisplayTemplate;
|
||||
|
||||
theConnectPoints : HArray1OfConnectPoint;
|
||||
|
||||
end NetworkSubfigure;
|
@@ -16,10 +16,16 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_NetworkSubfigure.ixx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_NetworkSubfigure.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
IGESDraw_NetworkSubfigure::IGESDraw_NetworkSubfigure () { }
|
||||
|
||||
|
134
src/IGESDraw/IGESDraw_NetworkSubfigure.hxx
Normal file
134
src/IGESDraw/IGESDraw_NetworkSubfigure.hxx
Normal file
@@ -0,0 +1,134 @@
|
||||
// Created on: 1993-01-11
|
||||
// Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_NetworkSubfigure_HeaderFile
|
||||
#define _IGESDraw_NetworkSubfigure_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <IGESDraw_HArray1OfConnectPoint.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESDraw_NetworkSubfigureDef;
|
||||
class TCollection_HAsciiString;
|
||||
class IGESGraph_TextDisplayTemplate;
|
||||
class Standard_OutOfRange;
|
||||
class gp_XYZ;
|
||||
class IGESDraw_ConnectPoint;
|
||||
|
||||
|
||||
class IGESDraw_NetworkSubfigure;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_NetworkSubfigure, IGESData_IGESEntity)
|
||||
|
||||
//! defines IGES Network Subfigure Instance Entity,
|
||||
//! Type <420> Form Number <0> in package IGESDraw
|
||||
//!
|
||||
//! Used to specify each instance of Network Subfigure
|
||||
//! Definition Entity (Type 320, Form 0).
|
||||
class IGESDraw_NetworkSubfigure : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_NetworkSubfigure();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! NetworkSubfigure
|
||||
//! - aDefinition : Network Subfigure Definition Entity
|
||||
//! - aTranslation : Translation data relative to the model
|
||||
//! space or the definition space
|
||||
//! - aScaleFactor : Scale factors in the definition space
|
||||
//! - aTypeFlag : Type flag
|
||||
//! - aDesignator : Primary reference designator
|
||||
//! - aTemplate : Primary reference designator Text
|
||||
//! display Template Entity
|
||||
//! - allConnectPoints : Associated Connect Point Entities
|
||||
Standard_EXPORT void Init (const Handle(IGESDraw_NetworkSubfigureDef)& aDefinition, const gp_XYZ& aTranslation, const gp_XYZ& aScaleFactor, const Standard_Integer aTypeFlag, const Handle(TCollection_HAsciiString)& aDesignator, const Handle(IGESGraph_TextDisplayTemplate)& aTemplate, const Handle(IGESDraw_HArray1OfConnectPoint)& allConnectPoints);
|
||||
|
||||
//! returns Network Subfigure Definition Entity specified by this entity
|
||||
Standard_EXPORT Handle(IGESDraw_NetworkSubfigureDef) SubfigureDefinition() const;
|
||||
|
||||
//! returns Translation Data relative to either model space or to
|
||||
//! the definition space of a referring entity
|
||||
Standard_EXPORT gp_XYZ Translation() const;
|
||||
|
||||
//! returns the Transformed Translation Data relative to either model
|
||||
//! space or to the definition space of a referring entity
|
||||
Standard_EXPORT gp_XYZ TransformedTranslation() const;
|
||||
|
||||
//! returns Scale factor in definition space(x, y, z axes)
|
||||
Standard_EXPORT gp_XYZ ScaleFactors() const;
|
||||
|
||||
//! returns Type Flag which implements the distinction between Logical
|
||||
//! design and Physical design data,and is required if both are present.
|
||||
//! Type Flag = 0 : Not specified (default)
|
||||
//! = 1 : Logical
|
||||
//! = 2 : Physical
|
||||
Standard_EXPORT Standard_Integer TypeFlag() const;
|
||||
|
||||
//! returns the primary reference designator
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) ReferenceDesignator() const;
|
||||
|
||||
//! returns True if Text Display Template Entity is specified,
|
||||
//! else False
|
||||
Standard_EXPORT Standard_Boolean HasDesignatorTemplate() const;
|
||||
|
||||
//! returns primary reference designator Text Display Template Entity,
|
||||
//! or null. If null, no Text Display Template Entity specified
|
||||
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) DesignatorTemplate() const;
|
||||
|
||||
//! returns the number of associated Connect Point Entities
|
||||
Standard_EXPORT Standard_Integer NbConnectPoints() const;
|
||||
|
||||
//! returns the Index'th associated Connect point Entity
|
||||
//! raises exception if Index <= 0 or Index > NbConnectPoints()
|
||||
Standard_EXPORT Handle(IGESDraw_ConnectPoint) ConnectPoint (const Standard_Integer Index) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_NetworkSubfigure,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESDraw_NetworkSubfigureDef) theSubfigureDefinition;
|
||||
gp_XYZ theTranslation;
|
||||
gp_XYZ theScaleFactor;
|
||||
Standard_Integer theTypeFlag;
|
||||
Handle(TCollection_HAsciiString) theDesignator;
|
||||
Handle(IGESGraph_TextDisplayTemplate) theDesignatorTemplate;
|
||||
Handle(IGESDraw_HArray1OfConnectPoint) theConnectPoints;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_NetworkSubfigure_HeaderFile
|
@@ -1,152 +0,0 @@
|
||||
-- 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 NetworkSubfigureDef from IGESDraw inherits IGESEntity
|
||||
|
||||
---Purpose : defines IGESNetworkSubfigureDef,
|
||||
-- Type <320> Form Number <0> in package IGESDraw
|
||||
--
|
||||
-- This class differs from the ordinary subfigure definition
|
||||
-- in that it defines a specialized subfigure, one whose
|
||||
-- instances may participate in networks.
|
||||
--
|
||||
-- The Number of associated(child) Connect Point Entities
|
||||
-- in the Network Subfigure Instance must match the number
|
||||
-- in the Network Subfigure Definition, their order must
|
||||
-- be identical, and any unused points of connection in
|
||||
-- the instance must be indicated by a null(zero) pointer.
|
||||
--
|
||||
|
||||
uses
|
||||
|
||||
HArray1OfIGESEntity from IGESData,
|
||||
ConnectPoint from IGESDraw,
|
||||
HArray1OfConnectPoint from IGESDraw,
|
||||
TextDisplayTemplate from IGESGraph,
|
||||
HAsciiString from TCollection
|
||||
|
||||
raises OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns NetworkSubfigureDef;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
aDepth : Integer;
|
||||
aName : HAsciiString;
|
||||
allEntities : HArray1OfIGESEntity;
|
||||
aTypeFlag : Integer;
|
||||
aDesignator : HAsciiString;
|
||||
aTemplate : TextDisplayTemplate;
|
||||
allPointEntities : HArray1OfConnectPoint);
|
||||
---Purpose : This method is used to set fields of the class
|
||||
-- NetworkSubfigureDef
|
||||
-- - aDepth : Depth of Subfigure
|
||||
-- (indicating the amount of nesting)
|
||||
-- - aName : Subfigure Name
|
||||
-- - allEntities : Associated subfigures Entities exclusive
|
||||
-- of primary reference designator and
|
||||
-- Control Points.
|
||||
-- - aTypeFlag : Type flag determines which Entity
|
||||
-- belongs in which design
|
||||
-- (Logical design or Physical design)
|
||||
-- - aDesignator : Designator HAsciiString and its Template
|
||||
-- - allPointEntities : Associated Connect Point Entities
|
||||
|
||||
Depth (me) returns Integer;
|
||||
---Purpose : returns Depth of Subfigure(indication the amount of nesting)
|
||||
-- Note : The Depth is inclusive of both Network Subfigure Definition
|
||||
-- Entity and the Ordinary Subfigure Definition Entity.
|
||||
-- Thus, the two may be nested.
|
||||
|
||||
Name (me) returns HAsciiString from TCollection;
|
||||
---Purpose : returns the Subfigure Name
|
||||
|
||||
NbEntities (me) returns Integer;
|
||||
---Purpose : returns Number of Associated(child) entries in subfigure exclusive
|
||||
-- of primary reference designator and Control Points
|
||||
|
||||
Entity (me; Index : Integer) returns IGESEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th IGESEntity in subfigure exclusive of primary
|
||||
-- reference designator and Control Points
|
||||
-- raises exception if Index <=0 or Index > NbEntities()
|
||||
|
||||
TypeFlag (me) returns Integer;
|
||||
---Purpose : return value = 0 : Not Specified
|
||||
-- = 1 : Logical design
|
||||
-- = 2 : Physical design
|
||||
|
||||
Designator (me) returns HAsciiString from TCollection;
|
||||
---Purpose : returns Primary Reference Designator
|
||||
|
||||
HasDesignatorTemplate (me) returns Boolean;
|
||||
---Purpose : returns True if Text Display Template is specified for
|
||||
-- primary designator else returns False
|
||||
|
||||
DesignatorTemplate (me) returns TextDisplayTemplate;
|
||||
---Purpose : if Text Display Template specified then return TextDisplayTemplate
|
||||
-- else return NULL Handle
|
||||
|
||||
NbPointEntities (me) returns Integer;
|
||||
---Purpose : returns the Number Of Associated(child) Connect Point Entities
|
||||
|
||||
HasPointEntity (me; Index : Integer) returns Boolean
|
||||
raises OutOfRange;
|
||||
---Purpose : returns True is Index'th Associated Connect Point Entity is present
|
||||
-- else returns False
|
||||
-- raises exception if Index is out of bound
|
||||
|
||||
PointEntity (me; Index : Integer) returns ConnectPoint
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th Associated Connect Point Entity
|
||||
-- raises exception if Index <= 0 or Index > NbPointEntities()
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_NetworkSubfigureDef
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a NetworkSubfigureDef.
|
||||
--
|
||||
-- Reminder : A NetworkSubfigureDef is defined by :
|
||||
-- - Depth of Subfigure(indicating the amount of nesting)
|
||||
-- - Subfigure Name
|
||||
-- - Associated subfigures Entities exclusive
|
||||
-- of primary reference designator and Control Points.
|
||||
-- - Type flag determines which Entity belongs in which design
|
||||
-- (Logical design or Physical design)
|
||||
-- - Designator HAsciiString and its Template
|
||||
-- - Associated Connect Point Entities
|
||||
--
|
||||
|
||||
theDepth : Integer;
|
||||
|
||||
theName : HAsciiString;
|
||||
|
||||
theEntities : HArray1OfIGESEntity;
|
||||
|
||||
theTypeFlag : Integer;
|
||||
|
||||
theDesignator : HAsciiString;
|
||||
|
||||
theDesignatorTemplate : TextDisplayTemplate;
|
||||
|
||||
thePointEntities : HArray1OfConnectPoint;
|
||||
|
||||
end NetworkSubfigureDef;
|
@@ -16,9 +16,14 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_NetworkSubfigureDef.ixx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
IGESDraw_NetworkSubfigureDef::IGESDraw_NetworkSubfigureDef () { }
|
||||
|
||||
|
149
src/IGESDraw/IGESDraw_NetworkSubfigureDef.hxx
Normal file
149
src/IGESDraw/IGESDraw_NetworkSubfigureDef.hxx
Normal file
@@ -0,0 +1,149 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_NetworkSubfigureDef_HeaderFile
|
||||
#define _IGESDraw_NetworkSubfigureDef_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESDraw_HArray1OfConnectPoint.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class TCollection_HAsciiString;
|
||||
class IGESGraph_TextDisplayTemplate;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_IGESEntity;
|
||||
class IGESDraw_ConnectPoint;
|
||||
|
||||
|
||||
class IGESDraw_NetworkSubfigureDef;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_NetworkSubfigureDef, IGESData_IGESEntity)
|
||||
|
||||
//! defines IGESNetworkSubfigureDef,
|
||||
//! Type <320> Form Number <0> in package IGESDraw
|
||||
//!
|
||||
//! This class differs from the ordinary subfigure definition
|
||||
//! in that it defines a specialized subfigure, one whose
|
||||
//! instances may participate in networks.
|
||||
//!
|
||||
//! The Number of associated(child) Connect Point Entities
|
||||
//! in the Network Subfigure Instance must match the number
|
||||
//! in the Network Subfigure Definition, their order must
|
||||
//! be identical, and any unused points of connection in
|
||||
//! the instance must be indicated by a null(zero) pointer.
|
||||
class IGESDraw_NetworkSubfigureDef : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_NetworkSubfigureDef();
|
||||
|
||||
//! This method is used to set fields of the class
|
||||
//! NetworkSubfigureDef
|
||||
//! - aDepth : Depth of Subfigure
|
||||
//! (indicating the amount of nesting)
|
||||
//! - aName : Subfigure Name
|
||||
//! - allEntities : Associated subfigures Entities exclusive
|
||||
//! of primary reference designator and
|
||||
//! Control Points.
|
||||
//! - aTypeFlag : Type flag determines which Entity
|
||||
//! belongs in which design
|
||||
//! (Logical design or Physical design)
|
||||
//! - aDesignator : Designator HAsciiString and its Template
|
||||
//! - allPointEntities : Associated Connect Point Entities
|
||||
Standard_EXPORT void Init (const Standard_Integer aDepth, const Handle(TCollection_HAsciiString)& aName, const Handle(IGESData_HArray1OfIGESEntity)& allEntities, const Standard_Integer aTypeFlag, const Handle(TCollection_HAsciiString)& aDesignator, const Handle(IGESGraph_TextDisplayTemplate)& aTemplate, const Handle(IGESDraw_HArray1OfConnectPoint)& allPointEntities);
|
||||
|
||||
//! returns Depth of Subfigure(indication the amount of nesting)
|
||||
//! Note : The Depth is inclusive of both Network Subfigure Definition
|
||||
//! Entity and the Ordinary Subfigure Definition Entity.
|
||||
//! Thus, the two may be nested.
|
||||
Standard_EXPORT Standard_Integer Depth() const;
|
||||
|
||||
//! returns the Subfigure Name
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
|
||||
|
||||
//! returns Number of Associated(child) entries in subfigure exclusive
|
||||
//! of primary reference designator and Control Points
|
||||
Standard_EXPORT Standard_Integer NbEntities() const;
|
||||
|
||||
//! returns the Index'th IGESEntity in subfigure exclusive of primary
|
||||
//! reference designator and Control Points
|
||||
//! raises exception if Index <=0 or Index > NbEntities()
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) Entity (const Standard_Integer Index) const;
|
||||
|
||||
//! return value = 0 : Not Specified
|
||||
//! = 1 : Logical design
|
||||
//! = 2 : Physical design
|
||||
Standard_EXPORT Standard_Integer TypeFlag() const;
|
||||
|
||||
//! returns Primary Reference Designator
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) Designator() const;
|
||||
|
||||
//! returns True if Text Display Template is specified for
|
||||
//! primary designator else returns False
|
||||
Standard_EXPORT Standard_Boolean HasDesignatorTemplate() const;
|
||||
|
||||
//! if Text Display Template specified then return TextDisplayTemplate
|
||||
//! else return NULL Handle
|
||||
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) DesignatorTemplate() const;
|
||||
|
||||
//! returns the Number Of Associated(child) Connect Point Entities
|
||||
Standard_EXPORT Standard_Integer NbPointEntities() const;
|
||||
|
||||
//! returns True is Index'th Associated Connect Point Entity is present
|
||||
//! else returns False
|
||||
//! raises exception if Index is out of bound
|
||||
Standard_EXPORT Standard_Boolean HasPointEntity (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th Associated Connect Point Entity
|
||||
//! raises exception if Index <= 0 or Index > NbPointEntities()
|
||||
Standard_EXPORT Handle(IGESDraw_ConnectPoint) PointEntity (const Standard_Integer Index) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_NetworkSubfigureDef,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Integer theDepth;
|
||||
Handle(TCollection_HAsciiString) theName;
|
||||
Handle(IGESData_HArray1OfIGESEntity) theEntities;
|
||||
Standard_Integer theTypeFlag;
|
||||
Handle(TCollection_HAsciiString) theDesignator;
|
||||
Handle(IGESGraph_TextDisplayTemplate) theDesignatorTemplate;
|
||||
Handle(IGESDraw_HArray1OfConnectPoint) thePointEntities;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_NetworkSubfigureDef_HeaderFile
|
@@ -1,188 +0,0 @@
|
||||
-- Created on: 1993-02-03
|
||||
-- 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 PerspectiveView from IGESDraw inherits ViewKindEntity
|
||||
|
||||
---Purpose: defines IGESPerspectiveView, Type <410> Form <1>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- Supports a perspective view.
|
||||
-- Any geometric projection is defined by a view plane
|
||||
-- and the projectors that pass through the view plane.
|
||||
-- Projectors can be visualized as rays of light that
|
||||
-- form an image by passing through the viewed object
|
||||
-- and striking the view plane.
|
||||
-- The projectors are defined via a point called the
|
||||
-- Centre-of-Projection or the eye-point.
|
||||
-- A perspective view is formed by all projectors that
|
||||
-- emanate from the Centre-of-Projection and pass
|
||||
-- through the view plane.
|
||||
|
||||
uses
|
||||
|
||||
TransfEntity from IGESData,
|
||||
Vec from gp,
|
||||
XY from gp,
|
||||
XYZ from gp,
|
||||
Pnt2d from gp,
|
||||
Pnt from gp
|
||||
|
||||
raises OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns PerspectiveView;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
aViewNumber : Integer;
|
||||
aScaleFactor : Real;
|
||||
aViewNormalVector : XYZ;
|
||||
aViewReferencePoint : XYZ;
|
||||
aCenterOfProjection : XYZ;
|
||||
aViewUpVector : XYZ;
|
||||
aViewPlaneDistance : Real;
|
||||
aTopLeft : XY;
|
||||
aBottomRight : XY;
|
||||
aDepthClip : Integer;
|
||||
aBackPlaneDistance : Real;
|
||||
aFrontPlaneDistance : Real);
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- PerspectiveView
|
||||
-- - aViewNumber : The desired view
|
||||
-- - aScaleFactor : Scale factor
|
||||
-- - aViewNormalVector : View plane normal vector (model space)
|
||||
-- - aViewReferencePoint : View reference point (model space)
|
||||
-- - aCenterOfProjection : Center Of Projection (model space)
|
||||
-- - aViewUpVector : View up vector (model space)
|
||||
-- - aViewPlaneDistance : View plane distance (model space)
|
||||
-- - aTopLeft : Top-left point of clipping window
|
||||
-- - aBottomRight : Bottom-right point of clipping window
|
||||
-- - aDepthClip : Depth clipping indicator
|
||||
-- - aBackPlaneDistance : Distance of back clipping plane
|
||||
-- - aFrontPlaneDistance : Distance of front clipping plane
|
||||
|
||||
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 the view number associated with <me>
|
||||
|
||||
ScaleFactor (me) returns Real;
|
||||
---Purpose : returns the scale factor associated with <me>
|
||||
|
||||
ViewNormalVector (me) returns Vec;
|
||||
---Purpose : returns the View plane normal vector (model space)
|
||||
|
||||
ViewReferencePoint (me) returns Pnt;
|
||||
---Purpose : returns the View reference point (model space)
|
||||
|
||||
CenterOfProjection (me) returns Pnt;
|
||||
---Purpose : returns the Center Of Projection (model space)
|
||||
|
||||
ViewUpVector (me) returns Vec;
|
||||
---Purpose : returns the View up vector (model space)
|
||||
|
||||
ViewPlaneDistance (me) returns Real;
|
||||
---Purpose : returns the View plane distance (model space)
|
||||
|
||||
TopLeft (me) returns Pnt2d;
|
||||
---Purpose : returns the top left point of the clipping window
|
||||
|
||||
BottomRight (me) returns Pnt2d;
|
||||
---Purpose : returns the bottom right point of the clipping window
|
||||
|
||||
DepthClip (me) returns Integer;
|
||||
---Purpose : returns the Depth clipping indicator
|
||||
-- 0 = No depth clipping
|
||||
-- 1 = Back clipping plane ON
|
||||
-- 2 = Front clipping plane ON
|
||||
-- 3 = Back and front clipping planes ON
|
||||
|
||||
BackPlaneDistance (me) returns Real;
|
||||
---Purpose : returns the View coordinate denoting the location of
|
||||
-- the back clipping plane
|
||||
|
||||
FrontPlaneDistance (me) returns Real;
|
||||
---Purpose : returns the View coordinate denoting the location of
|
||||
-- the front clipping plane
|
||||
|
||||
ViewMatrix (me) returns TransfEntity;
|
||||
---Purpose : returns the Transformation Matrix
|
||||
|
||||
ModelToView (me; coords : XYZ) returns XYZ;
|
||||
---Purpose : returns XYX from the Model space to the View space by
|
||||
-- applying the View Matrix
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_PerspectiveView
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a
|
||||
-- PerspectiveView Entity.
|
||||
--
|
||||
-- Reminder : A PerspectiveView Entity is defined by :
|
||||
-- - The desired view
|
||||
-- - Scale factor
|
||||
-- - View plane normal vector (model space)
|
||||
-- - View reference point (model space)
|
||||
-- - Center Of Projection (model space)
|
||||
-- - View up vector (model space)
|
||||
-- - View plane distance (model space)
|
||||
-- - Top-left point of clipping window
|
||||
-- - Bottom-right point of clipping window
|
||||
-- - Depth clipping indicator
|
||||
-- 0 = No depth clipping
|
||||
-- 1 = Back clipping plane ON
|
||||
-- 2 = Front clipping plane ON
|
||||
-- 3 = Back and front clipping planes ON
|
||||
-- - Distance of back clipping plane
|
||||
-- - Distance of front clipping plane
|
||||
--
|
||||
|
||||
theViewNumber : Integer;
|
||||
|
||||
theScaleFactor : Real;
|
||||
|
||||
theViewNormalVector : XYZ;
|
||||
|
||||
theViewReferencePoint : XYZ;
|
||||
|
||||
theCenterOfProjection : XYZ;
|
||||
|
||||
theViewUpVector : XYZ;
|
||||
|
||||
theViewPlaneDistance : Real;
|
||||
|
||||
theTopLeft : XY;
|
||||
|
||||
theBottomRight : XY;
|
||||
|
||||
theDepthClip : Integer;
|
||||
|
||||
theBackPlaneDistance : Real;
|
||||
|
||||
theFrontPlaneDistance : Real;
|
||||
|
||||
end PerspectiveView;
|
@@ -16,10 +16,17 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_PerspectiveView.ixx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_TransfEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_PerspectiveView::IGESDraw_PerspectiveView () { }
|
||||
|
||||
|
173
src/IGESDraw/IGESDraw_PerspectiveView.hxx
Normal file
173
src/IGESDraw/IGESDraw_PerspectiveView.hxx
Normal file
@@ -0,0 +1,173 @@
|
||||
// Created on: 1993-02-03
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_PerspectiveView_HeaderFile
|
||||
#define _IGESDraw_PerspectiveView_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Standard_OutOfRange;
|
||||
class gp_XYZ;
|
||||
class gp_XY;
|
||||
class IGESData_ViewKindEntity;
|
||||
class gp_Vec;
|
||||
class gp_Pnt;
|
||||
class gp_Pnt2d;
|
||||
class IGESData_TransfEntity;
|
||||
|
||||
|
||||
class IGESDraw_PerspectiveView;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_PerspectiveView, IGESData_ViewKindEntity)
|
||||
|
||||
//! defines IGESPerspectiveView, Type <410> Form <1>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! Supports a perspective view.
|
||||
//! Any geometric projection is defined by a view plane
|
||||
//! and the projectors that pass through the view plane.
|
||||
//! Projectors can be visualized as rays of light that
|
||||
//! form an image by passing through the viewed object
|
||||
//! and striking the view plane.
|
||||
//! The projectors are defined via a point called the
|
||||
//! Centre-of-Projection or the eye-point.
|
||||
//! A perspective view is formed by all projectors that
|
||||
//! emanate from the Centre-of-Projection and pass
|
||||
//! through the view plane.
|
||||
class IGESDraw_PerspectiveView : public IGESData_ViewKindEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_PerspectiveView();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! PerspectiveView
|
||||
//! - aViewNumber : The desired view
|
||||
//! - aScaleFactor : Scale factor
|
||||
//! - aViewNormalVector : View plane normal vector (model space)
|
||||
//! - aViewReferencePoint : View reference point (model space)
|
||||
//! - aCenterOfProjection : Center Of Projection (model space)
|
||||
//! - aViewUpVector : View up vector (model space)
|
||||
//! - aViewPlaneDistance : View plane distance (model space)
|
||||
//! - aTopLeft : Top-left point of clipping window
|
||||
//! - aBottomRight : Bottom-right point of clipping window
|
||||
//! - aDepthClip : Depth clipping indicator
|
||||
//! - aBackPlaneDistance : Distance of back clipping plane
|
||||
//! - aFrontPlaneDistance : Distance of front clipping plane
|
||||
Standard_EXPORT void Init (const Standard_Integer aViewNumber, const Standard_Real aScaleFactor, const gp_XYZ& aViewNormalVector, const gp_XYZ& aViewReferencePoint, const gp_XYZ& aCenterOfProjection, const gp_XYZ& aViewUpVector, const Standard_Real aViewPlaneDistance, const gp_XY& aTopLeft, const gp_XY& aBottomRight, const Standard_Integer aDepthClip, const Standard_Real aBackPlaneDistance, const Standard_Real aFrontPlaneDistance);
|
||||
|
||||
//! Returns True (for a single view)
|
||||
Standard_EXPORT Standard_Boolean IsSingle() const;
|
||||
|
||||
//! Returns 1 (single view)
|
||||
Standard_EXPORT Standard_Integer NbViews() const;
|
||||
|
||||
//! For a single view, returns <me> whatever <num>
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer num) const;
|
||||
|
||||
//! returns the view number associated with <me>
|
||||
Standard_EXPORT Standard_Integer ViewNumber() const;
|
||||
|
||||
//! returns the scale factor associated with <me>
|
||||
Standard_EXPORT Standard_Real ScaleFactor() const;
|
||||
|
||||
//! returns the View plane normal vector (model space)
|
||||
Standard_EXPORT gp_Vec ViewNormalVector() const;
|
||||
|
||||
//! returns the View reference point (model space)
|
||||
Standard_EXPORT gp_Pnt ViewReferencePoint() const;
|
||||
|
||||
//! returns the Center Of Projection (model space)
|
||||
Standard_EXPORT gp_Pnt CenterOfProjection() const;
|
||||
|
||||
//! returns the View up vector (model space)
|
||||
Standard_EXPORT gp_Vec ViewUpVector() const;
|
||||
|
||||
//! returns the View plane distance (model space)
|
||||
Standard_EXPORT Standard_Real ViewPlaneDistance() const;
|
||||
|
||||
//! returns the top left point of the clipping window
|
||||
Standard_EXPORT gp_Pnt2d TopLeft() const;
|
||||
|
||||
//! returns the bottom right point of the clipping window
|
||||
Standard_EXPORT gp_Pnt2d BottomRight() const;
|
||||
|
||||
//! returns the Depth clipping indicator
|
||||
//! 0 = No depth clipping
|
||||
//! 1 = Back clipping plane ON
|
||||
//! 2 = Front clipping plane ON
|
||||
//! 3 = Back and front clipping planes ON
|
||||
Standard_EXPORT Standard_Integer DepthClip() const;
|
||||
|
||||
//! returns the View coordinate denoting the location of
|
||||
//! the back clipping plane
|
||||
Standard_EXPORT Standard_Real BackPlaneDistance() const;
|
||||
|
||||
//! returns the View coordinate denoting the location of
|
||||
//! the front clipping plane
|
||||
Standard_EXPORT Standard_Real FrontPlaneDistance() const;
|
||||
|
||||
//! returns the Transformation Matrix
|
||||
Standard_EXPORT Handle(IGESData_TransfEntity) ViewMatrix() const;
|
||||
|
||||
//! returns XYX from the Model space to the View space by
|
||||
//! applying the View Matrix
|
||||
Standard_EXPORT gp_XYZ ModelToView (const gp_XYZ& coords) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_PerspectiveView,IGESData_ViewKindEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Integer theViewNumber;
|
||||
Standard_Real theScaleFactor;
|
||||
gp_XYZ theViewNormalVector;
|
||||
gp_XYZ theViewReferencePoint;
|
||||
gp_XYZ theCenterOfProjection;
|
||||
gp_XYZ theViewUpVector;
|
||||
Standard_Real theViewPlaneDistance;
|
||||
gp_XY theTopLeft;
|
||||
gp_XY theBottomRight;
|
||||
Standard_Integer theDepthClip;
|
||||
Standard_Real theBackPlaneDistance;
|
||||
Standard_Real theFrontPlaneDistance;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_PerspectiveView_HeaderFile
|
@@ -1,87 +0,0 @@
|
||||
-- Created on: 1993-01-09
|
||||
-- Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
-- 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 Planar from IGESDraw inherits IGESEntity
|
||||
|
||||
---Purpose: defines IGESPlanar, Type <402> Form <16>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- Indicates that a collection of entities is coplanar.The
|
||||
-- entities may be geometric, annotative, and/or structural.
|
||||
|
||||
uses
|
||||
|
||||
TransformationMatrix from IGESGeom,
|
||||
HArray1OfIGESEntity from IGESData
|
||||
|
||||
raises OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns Planar;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
nbMats : Integer;
|
||||
aTransformationMatrix : TransformationMatrix;
|
||||
allEntities : HArray1OfIGESEntity);
|
||||
---Purpose : This method is used to set the fields of the class Planar
|
||||
-- - nbMats : Number of Transformation matrices
|
||||
-- - aTransformationMatrix : Pointer to the Transformation matrix
|
||||
-- - allEntities : Pointers to the entities specified
|
||||
|
||||
NbMatrices (me) returns Integer;
|
||||
---Purpose : returns the number of Transformation matrices in <me>
|
||||
|
||||
NbEntities (me) returns Integer;
|
||||
---Purpose : returns the number of Entities in the plane pointed to by this
|
||||
-- associativity
|
||||
|
||||
IsIdentityMatrix (me) returns Boolean;
|
||||
---Purpose : returns True if TransformationMatrix is Identity Matrix,
|
||||
-- i.e:- No Matrix defined.
|
||||
|
||||
TransformMatrix (me) returns TransformationMatrix;
|
||||
---Purpose : returns the Transformation matrix moving data from the XY plane
|
||||
-- into space or zero
|
||||
|
||||
Entity (me; EntityIndex : Integer) returns IGESEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Entity on the specified plane, indicated by EntityIndex
|
||||
-- raises an exception if EntityIndex <= 0 or
|
||||
-- EntityIndex > NbEntities()
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_Planar
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a Planar Entity.
|
||||
--
|
||||
-- Reminder : A Planar Entity is defined by :
|
||||
-- - Number of Transformation matrices
|
||||
-- - Pointer to the Transformation matrix
|
||||
-- - Pointers to the entities specified
|
||||
--
|
||||
|
||||
theNbMatrices : Integer;
|
||||
|
||||
theTransformationMatrix : TransformationMatrix;
|
||||
|
||||
theEntities : HArray1OfIGESEntity;
|
||||
|
||||
end Planar;
|
@@ -16,9 +16,12 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_Planar.ixx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_Planar.hxx>
|
||||
#include <IGESGeom_TransformationMatrix.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_Planar::IGESDraw_Planar () { }
|
||||
|
||||
|
100
src/IGESDraw/IGESDraw_Planar.hxx
Normal file
100
src/IGESDraw/IGESDraw_Planar.hxx
Normal file
@@ -0,0 +1,100 @@
|
||||
// Created on: 1993-01-09
|
||||
// Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_Planar_HeaderFile
|
||||
#define _IGESDraw_Planar_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESGeom_TransformationMatrix;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_IGESEntity;
|
||||
|
||||
|
||||
class IGESDraw_Planar;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_Planar, IGESData_IGESEntity)
|
||||
|
||||
//! defines IGESPlanar, Type <402> Form <16>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! Indicates that a collection of entities is coplanar.The
|
||||
//! entities may be geometric, annotative, and/or structural.
|
||||
class IGESDraw_Planar : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_Planar();
|
||||
|
||||
//! This method is used to set the fields of the class Planar
|
||||
//! - nbMats : Number of Transformation matrices
|
||||
//! - aTransformationMatrix : Pointer to the Transformation matrix
|
||||
//! - allEntities : Pointers to the entities specified
|
||||
Standard_EXPORT void Init (const Standard_Integer nbMats, const Handle(IGESGeom_TransformationMatrix)& aTransformationMatrix, const Handle(IGESData_HArray1OfIGESEntity)& allEntities);
|
||||
|
||||
//! returns the number of Transformation matrices in <me>
|
||||
Standard_EXPORT Standard_Integer NbMatrices() const;
|
||||
|
||||
//! returns the number of Entities in the plane pointed to by this
|
||||
//! associativity
|
||||
Standard_EXPORT Standard_Integer NbEntities() const;
|
||||
|
||||
//! returns True if TransformationMatrix is Identity Matrix,
|
||||
//! i.e:- No Matrix defined.
|
||||
Standard_EXPORT Standard_Boolean IsIdentityMatrix() const;
|
||||
|
||||
//! returns the Transformation matrix moving data from the XY plane
|
||||
//! into space or zero
|
||||
Standard_EXPORT Handle(IGESGeom_TransformationMatrix) TransformMatrix() const;
|
||||
|
||||
//! returns the Entity on the specified plane, indicated by EntityIndex
|
||||
//! raises an exception if EntityIndex <= 0 or
|
||||
//! EntityIndex > NbEntities()
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) Entity (const Standard_Integer EntityIndex) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_Planar,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Integer theNbMatrices;
|
||||
Handle(IGESGeom_TransformationMatrix) theTransformationMatrix;
|
||||
Handle(IGESData_HArray1OfIGESEntity) theEntities;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_Planar_HeaderFile
|
@@ -1,41 +0,0 @@
|
||||
-- Created on: 1993-05-05
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 Protocol from IGESDraw inherits Protocol from IGESData
|
||||
|
||||
---Purpose : Description of Protocol for IGESDraw
|
||||
|
||||
uses Type, Protocol from Interface
|
||||
|
||||
is
|
||||
|
||||
Create returns Protocol from IGESDraw;
|
||||
|
||||
NbResources (me) returns Integer is redefined;
|
||||
---Purpose : Gives the count of Resource Protocol. Here, one
|
||||
-- (Protocol from IGESDimen)
|
||||
|
||||
Resource (me; num : Integer) returns Protocol from Interface is redefined;
|
||||
---Purpose : Returns a Resource, given a rank.
|
||||
|
||||
TypeNumber (me; atype : any Type) returns Integer is redefined;
|
||||
---Purpose : Returns a Case Number, specific of each recognized Type
|
||||
-- This Case Number is then used in Libraries : the various
|
||||
-- Modules attached to this class of Protocol must use them
|
||||
-- in accordance (for a given value of TypeNumber, they must
|
||||
-- consider the same Type as the Protocol defines)
|
||||
|
||||
end Protocol;
|
@@ -11,26 +11,26 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESDraw_Protocol.ixx>
|
||||
|
||||
#include <IGESDimen.hxx>
|
||||
#include <IGESDimen_Protocol.hxx>
|
||||
#include <IGESDraw_CircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_Drawing.hxx>
|
||||
#include <IGESDraw_DrawingWithRotation.hxx>
|
||||
#include <IGESDraw_Protocol.hxx>
|
||||
#include <IGESDraw_LabelDisplay.hxx>
|
||||
#include <IGESDraw_NetworkSubfigure.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
#include <IGESDraw_Planar.hxx>
|
||||
#include <IGESDraw_Protocol.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <IGESDraw_SegmentedViewsVisible.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
|
||||
#include <IGESDimen.hxx>
|
||||
#include <IGESDimen_Protocol.hxx>
|
||||
#include <Interface_Protocol.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
static int deja = 0;
|
||||
static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
|
||||
|
78
src/IGESDraw/IGESDraw_Protocol.hxx
Normal file
78
src/IGESDraw/IGESDraw_Protocol.hxx
Normal file
@@ -0,0 +1,78 @@
|
||||
// Created on: 1993-05-05
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_Protocol_HeaderFile
|
||||
#define _IGESDraw_Protocol_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
class Interface_Protocol;
|
||||
|
||||
|
||||
class IGESDraw_Protocol;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_Protocol, IGESData_Protocol)
|
||||
|
||||
//! Description of Protocol for IGESDraw
|
||||
class IGESDraw_Protocol : public IGESData_Protocol
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_Protocol();
|
||||
|
||||
//! Gives the count of Resource Protocol. Here, one
|
||||
//! (Protocol from IGESDimen)
|
||||
Standard_EXPORT virtual Standard_Integer NbResources() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns a Resource, given a rank.
|
||||
Standard_EXPORT virtual Handle(Interface_Protocol) Resource (const Standard_Integer num) const Standard_OVERRIDE;
|
||||
|
||||
//! Returns a Case Number, specific of each recognized Type
|
||||
//! This Case Number is then used in Libraries : the various
|
||||
//! Modules attached to this class of Protocol must use them
|
||||
//! in accordance (for a given value of TypeNumber, they must
|
||||
//! consider the same Type as the Protocol defines)
|
||||
Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_Protocol,IGESData_Protocol)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_Protocol_HeaderFile
|
@@ -1,45 +0,0 @@
|
||||
-- Created on: 1993-09-06
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ReadWriteModule from IGESDraw inherits ReadWriteModule from IGESData
|
||||
|
||||
---Purpose : Defines Draw File Access Module for IGESDraw (specific parts)
|
||||
-- Specific actions concern : Read and Write Own Parameters of
|
||||
-- an IGESEntity.
|
||||
|
||||
uses Transient, FileReaderData,
|
||||
IGESEntity, DirPart, IGESReaderData, ParamReader, IGESWriter
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ReadWriteModule from IGESDraw;
|
||||
---Purpose : Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
|
||||
|
||||
CaseIGES (me; typenum, formnum : Integer) returns Integer;
|
||||
---Purpose : Defines Case Numbers for Entities of IGESDraw
|
||||
|
||||
ReadOwnParams (me; CN : Integer; ent : IGESEntity;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError;
|
||||
---Purpose : Reads own parameters from file for an Entity of IGESDraw
|
||||
|
||||
WriteOwnParams (me; CN : Integer; ent : IGESEntity;
|
||||
IW : in out IGESWriter);
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
end ReadWriteModule;
|
@@ -11,9 +11,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESDraw_ReadWriteModule.ixx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESDraw_CircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_Drawing.hxx>
|
||||
@@ -23,12 +25,9 @@
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
#include <IGESDraw_Planar.hxx>
|
||||
#include <IGESDraw_ReadWriteModule.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <IGESDraw_SegmentedViewsVisible.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
|
||||
#include <IGESDraw_ToolCircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ToolConnectPoint.hxx>
|
||||
#include <IGESDraw_ToolDrawing.hxx>
|
||||
@@ -43,14 +42,16 @@
|
||||
#include <IGESDraw_ToolView.hxx>
|
||||
#include <IGESDraw_ToolViewsVisible.hxx>
|
||||
#include <IGESDraw_ToolViewsVisibleWithAttr.hxx>
|
||||
|
||||
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
// Each Module is attached to a Protocol : it must interprete Case Numbers
|
||||
// (arguments <CN> of various methods) in accordance to values returned by
|
||||
// the method TypeNumber from this Protocol
|
||||
|
||||
|
||||
IGESDraw_ReadWriteModule::IGESDraw_ReadWriteModule () { }
|
||||
|
||||
|
||||
|
79
src/IGESDraw/IGESDraw_ReadWriteModule.hxx
Normal file
79
src/IGESDraw/IGESDraw_ReadWriteModule.hxx
Normal file
@@ -0,0 +1,79 @@
|
||||
// Created on: 1993-09-06
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ReadWriteModule_HeaderFile
|
||||
#define _IGESDraw_ReadWriteModule_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESData_ReadWriteModule.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESData_IGESEntity;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
|
||||
|
||||
class IGESDraw_ReadWriteModule;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_ReadWriteModule, IGESData_ReadWriteModule)
|
||||
|
||||
//! Defines Draw File Access Module for IGESDraw (specific parts)
|
||||
//! Specific actions concern : Read and Write Own Parameters of
|
||||
//! an IGESEntity.
|
||||
class IGESDraw_ReadWriteModule : public IGESData_ReadWriteModule
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
|
||||
Standard_EXPORT IGESDraw_ReadWriteModule();
|
||||
|
||||
//! Defines Case Numbers for Entities of IGESDraw
|
||||
Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const;
|
||||
|
||||
//! Reads own parameters from file for an Entity of IGESDraw
|
||||
Standard_EXPORT void ReadOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_ReadWriteModule,IGESData_ReadWriteModule)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ReadWriteModule_HeaderFile
|
@@ -1,150 +0,0 @@
|
||||
-- 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 RectArraySubfigure from IGESDraw
|
||||
inherits IGESEntity
|
||||
|
||||
--- Purpose : Defines IGES Rectangular Array Subfigure Instance Entity,
|
||||
-- Type <412> Form Number <0> in package IGESDraw
|
||||
-- Used to produce copies of object called the base entity,
|
||||
-- arranging them in equally spaced rows and columns
|
||||
|
||||
uses
|
||||
|
||||
HArray1OfInteger from TColStd,
|
||||
XYZ from gp,
|
||||
Pnt from gp
|
||||
|
||||
|
||||
raises OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns RectArraySubfigure;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
aBase : IGESEntity;
|
||||
aScale : Real;
|
||||
aCorner : XYZ;
|
||||
nbCols : Integer;
|
||||
nbRows : Integer;
|
||||
hDisp : Real;
|
||||
vtDisp : Real;
|
||||
rotationAngle : Real;
|
||||
doDont : Integer;
|
||||
allNumPos : HArray1OfInteger);
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- RectArraySubfigure
|
||||
-- - aBase : a base entity which is replicated
|
||||
-- - aScale : Scale Factor
|
||||
-- - aCorner : lower left hand corner for the entire array
|
||||
-- - nbCols : Number of columns of the array
|
||||
-- - nbRows : Number of rows of the array
|
||||
-- - hDisp : Column separations
|
||||
-- - vtDisp : Row separation
|
||||
-- - rotationAngle : Rotation angle specified in radians
|
||||
-- - allDont : DO-DON'T flag to control which portion
|
||||
-- to display
|
||||
-- - allNumPos : List of positions to be or not to be
|
||||
-- displayed
|
||||
|
||||
BaseEntity (me) returns IGESEntity;
|
||||
---Purpose : returns the base entity, copies of which are produced
|
||||
|
||||
ScaleFactor (me) returns Real;
|
||||
---Purpose : returns the scale factor
|
||||
|
||||
LowerLeftCorner (me) returns Pnt;
|
||||
---Purpose : returns coordinates of lower left hand corner for the entire array
|
||||
|
||||
TransformedLowerLeftCorner (me) returns Pnt;
|
||||
---Purpose : returns Transformed coordinates of lower left corner for the array
|
||||
|
||||
NbColumns (me) returns Integer;
|
||||
---Purpose : returns number of columns in the array
|
||||
|
||||
NbRows (me) returns Integer;
|
||||
---Purpose : returns number of rows in the array
|
||||
|
||||
ColumnSeparation (me) returns Real;
|
||||
---Purpose : returns horizontal distance between columns
|
||||
|
||||
RowSeparation (me) returns Real;
|
||||
---Purpose : returns vertical distance between rows
|
||||
|
||||
RotationAngle (me) returns Real;
|
||||
---Purpose : returns rotation angle in radians
|
||||
|
||||
DisplayFlag (me) returns Boolean;
|
||||
---Purpose : returns True if (ListCount = 0) i.e., all elements to be displayed
|
||||
|
||||
ListCount (me) returns Integer;
|
||||
---Purpose : returns 0 if all replicated entities to be displayed
|
||||
|
||||
DoDontFlag (me) returns Boolean;
|
||||
---Purpose : returns 0 if half or fewer of the elements of the array are defined
|
||||
-- 1 if half or more of the elements are defined
|
||||
|
||||
PositionNum (me; Index : Integer) returns Boolean;
|
||||
---Purpose : returns whether Index is to be processed (DO)
|
||||
-- or not to be processed(DON'T)
|
||||
-- if (ListCount = 0) return theDoDontFlag
|
||||
|
||||
ListPosition (me; Index : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th value position
|
||||
-- raises exception if Index <= 0 or Index > ListCount()
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_RectArraySubfigure
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a RectArraySubfigure.
|
||||
--
|
||||
-- Reminder : A Rectangular Array Subfigure Instance is defined by :
|
||||
-- - a base entity which is replicated
|
||||
-- - Number of columns and rows of the array
|
||||
-- - Column and row separations
|
||||
-- - lower left hand corner for the entire array
|
||||
-- - angle of rotation specified in radians
|
||||
-- - a DO-DON'T flag to control which portion to display
|
||||
-- - List of positions.
|
||||
--
|
||||
|
||||
theBaseEntity : IGESEntity;
|
||||
|
||||
theScaleFactor : Real;
|
||||
|
||||
theLowerLeftCorner : XYZ;
|
||||
|
||||
theNbColumns : Integer;
|
||||
|
||||
theNbRows : Integer;
|
||||
|
||||
theColumnSeparation : Real;
|
||||
|
||||
theRowSeparation : Real;
|
||||
|
||||
theRotationAngle : Real;
|
||||
|
||||
theDoDontFlag : Integer;
|
||||
|
||||
thePositions : HArray1OfInteger;
|
||||
|
||||
end RectArraySubfigure;
|
@@ -16,10 +16,14 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_RectArraySubfigure.ixx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_RectArraySubfigure::IGESDraw_RectArraySubfigure () { }
|
||||
|
||||
|
145
src/IGESDraw/IGESDraw_RectArraySubfigure.hxx
Normal file
145
src/IGESDraw/IGESDraw_RectArraySubfigure.hxx
Normal file
@@ -0,0 +1,145 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_RectArraySubfigure_HeaderFile
|
||||
#define _IGESDraw_RectArraySubfigure_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESData_IGESEntity;
|
||||
class Standard_OutOfRange;
|
||||
class gp_XYZ;
|
||||
class gp_Pnt;
|
||||
|
||||
|
||||
class IGESDraw_RectArraySubfigure;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_RectArraySubfigure, IGESData_IGESEntity)
|
||||
|
||||
//! Defines IGES Rectangular Array Subfigure Instance Entity,
|
||||
//! Type <412> Form Number <0> in package IGESDraw
|
||||
//! Used to produce copies of object called the base entity,
|
||||
//! arranging them in equally spaced rows and columns
|
||||
class IGESDraw_RectArraySubfigure : public IGESData_IGESEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_RectArraySubfigure();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! RectArraySubfigure
|
||||
//! - aBase : a base entity which is replicated
|
||||
//! - aScale : Scale Factor
|
||||
//! - aCorner : lower left hand corner for the entire array
|
||||
//! - nbCols : Number of columns of the array
|
||||
//! - nbRows : Number of rows of the array
|
||||
//! - hDisp : Column separations
|
||||
//! - vtDisp : Row separation
|
||||
//! - rotationAngle : Rotation angle specified in radians
|
||||
//! - allDont : DO-DON'T flag to control which portion
|
||||
//! to display
|
||||
//! - allNumPos : List of positions to be or not to be
|
||||
//! displayed
|
||||
Standard_EXPORT void Init (const Handle(IGESData_IGESEntity)& aBase, const Standard_Real aScale, const gp_XYZ& aCorner, const Standard_Integer nbCols, const Standard_Integer nbRows, const Standard_Real hDisp, const Standard_Real vtDisp, const Standard_Real rotationAngle, const Standard_Integer doDont, const Handle(TColStd_HArray1OfInteger)& allNumPos);
|
||||
|
||||
//! returns the base entity, copies of which are produced
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) BaseEntity() const;
|
||||
|
||||
//! returns the scale factor
|
||||
Standard_EXPORT Standard_Real ScaleFactor() const;
|
||||
|
||||
//! returns coordinates of lower left hand corner for the entire array
|
||||
Standard_EXPORT gp_Pnt LowerLeftCorner() const;
|
||||
|
||||
//! returns Transformed coordinates of lower left corner for the array
|
||||
Standard_EXPORT gp_Pnt TransformedLowerLeftCorner() const;
|
||||
|
||||
//! returns number of columns in the array
|
||||
Standard_EXPORT Standard_Integer NbColumns() const;
|
||||
|
||||
//! returns number of rows in the array
|
||||
Standard_EXPORT Standard_Integer NbRows() const;
|
||||
|
||||
//! returns horizontal distance between columns
|
||||
Standard_EXPORT Standard_Real ColumnSeparation() const;
|
||||
|
||||
//! returns vertical distance between rows
|
||||
Standard_EXPORT Standard_Real RowSeparation() const;
|
||||
|
||||
//! returns rotation angle in radians
|
||||
Standard_EXPORT Standard_Real RotationAngle() const;
|
||||
|
||||
//! returns True if (ListCount = 0) i.e., all elements to be displayed
|
||||
Standard_EXPORT Standard_Boolean DisplayFlag() const;
|
||||
|
||||
//! returns 0 if all replicated entities to be displayed
|
||||
Standard_EXPORT Standard_Integer ListCount() const;
|
||||
|
||||
//! returns 0 if half or fewer of the elements of the array are defined
|
||||
//! 1 if half or more of the elements are defined
|
||||
Standard_EXPORT Standard_Boolean DoDontFlag() const;
|
||||
|
||||
//! returns whether Index is to be processed (DO)
|
||||
//! or not to be processed(DON'T)
|
||||
//! if (ListCount = 0) return theDoDontFlag
|
||||
Standard_EXPORT Standard_Boolean PositionNum (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th value position
|
||||
//! raises exception if Index <= 0 or Index > ListCount()
|
||||
Standard_EXPORT Standard_Integer ListPosition (const Standard_Integer Index) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_RectArraySubfigure,IGESData_IGESEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESData_IGESEntity) theBaseEntity;
|
||||
Standard_Real theScaleFactor;
|
||||
gp_XYZ theLowerLeftCorner;
|
||||
Standard_Integer theNbColumns;
|
||||
Standard_Integer theNbRows;
|
||||
Standard_Real theColumnSeparation;
|
||||
Standard_Real theRowSeparation;
|
||||
Standard_Real theRotationAngle;
|
||||
Standard_Integer theDoDontFlag;
|
||||
Handle(TColStd_HArray1OfInteger) thePositions;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_RectArraySubfigure_HeaderFile
|
@@ -1,176 +0,0 @@
|
||||
-- Created on: 1993-01-09
|
||||
-- Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
-- 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 SegmentedViewsVisible from IGESDraw inherits ViewKindEntity
|
||||
|
||||
---Purpose: defines IGESSegmentedViewsVisible, Type <402> Form <19>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- Permits the association of display parameters with the
|
||||
-- segments of curves in a given view
|
||||
|
||||
uses
|
||||
|
||||
HArray1OfInteger from TColStd,
|
||||
HArray1OfReal from TColStd,
|
||||
Color from IGESGraph,
|
||||
LineFontEntity from IGESData,
|
||||
HArray1OfViewKindEntity from IGESDraw,
|
||||
HArray1OfLineFontEntity from IGESBasic,
|
||||
HArray1OfColor from IGESGraph
|
||||
|
||||
raises DimensionMismatch, OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns SegmentedViewsVisible;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
allViews : HArray1OfViewKindEntity;
|
||||
allBreakpointParameters : HArray1OfReal;
|
||||
allDisplayFlags : HArray1OfInteger;
|
||||
allColorValues : HArray1OfInteger;
|
||||
allColorDefinitions : HArray1OfColor;
|
||||
allLineFontValues : HArray1OfInteger;
|
||||
allLineFontDefinitions : HArray1OfLineFontEntity;
|
||||
allLineWeights : HArray1OfInteger)
|
||||
raises DimensionMismatch;
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- SegmentedViewsVisible
|
||||
-- - allViews : Pointers to View Entities
|
||||
-- - allBreakpointParameters : Parameters of breakpoints
|
||||
-- - allDisplayFlags : Display flags
|
||||
-- - allColorValues : Color Values
|
||||
-- - allColorDefinitions : Color Definitions
|
||||
-- - allLineFontValues : LineFont values
|
||||
-- - allLineFontDefinitions : LineFont Definitions
|
||||
-- - allLineWeights : Line weights
|
||||
-- raises exception if Lengths of allViews, allBreakpointParameters,
|
||||
-- allDisplayFlags, allColorValues, allColorDefinitions,
|
||||
-- allLineFontValues, allLineFontDefinitions and allLineWeights
|
||||
-- are not same.
|
||||
|
||||
IsSingle (me) returns Boolean;
|
||||
---Purpose : Returns False (for a complex view)
|
||||
|
||||
NbViews (me) returns Integer;
|
||||
---Purpose : Returns the count of Views referenced by <me> (inherited)
|
||||
|
||||
NbSegmentBlocks (me) returns Integer;
|
||||
---Purpose : returns the number of view/segment blocks in <me>
|
||||
-- Similar to NbViews but has a more general significance
|
||||
|
||||
ViewItem (me; ViewIndex : Integer) returns ViewKindEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the View entity indicated by ViewIndex
|
||||
-- raises an exception if ViewIndex <= 0 or
|
||||
-- ViewIndex > NbSegmentBlocks()
|
||||
|
||||
BreakpointParameter (me; BreakpointIndex : Integer) returns Real
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the parameter of the breakpoint indicated by
|
||||
-- BreakpointIndex
|
||||
-- raises an exception if BreakpointIndex <= 0 or
|
||||
-- BreakpointIndex > NbSegmentBlocks().
|
||||
|
||||
DisplayFlag (me; FlagIndex : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Display flag indicated by FlagIndex
|
||||
-- raises an exception if FlagIndex <= 0 or
|
||||
-- FlagIndex > NbSegmentBlocks().
|
||||
|
||||
IsColorDefinition (me; ColorIndex : Integer) returns Boolean
|
||||
raises OutOfRange;
|
||||
---Purpose : returns True if the ColorIndex'th value of the
|
||||
-- "theColorDefinitions" field of <me> is a pointer
|
||||
-- raises an exception if ColorIndex <= 0 or
|
||||
-- ColorIndex > NbSegmentBlocks().
|
||||
|
||||
ColorValue (me; ColorIndex : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Color value indicated by ColorIndex
|
||||
-- raises an exception if ColorIndex <= 0 or
|
||||
-- ColorIndex > NbSegmentBlocks().
|
||||
|
||||
ColorDefinition (me; ColorIndex : Integer) returns Color
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Color definition entity indicated by ColorIndex
|
||||
-- raises an exception if ColorIndex <= 0 or
|
||||
-- ColorIndex > NbSegmentBlocks().
|
||||
|
||||
IsFontDefinition (me; FontIndex : Integer) returns Boolean
|
||||
raises OutOfRange;
|
||||
---Purpose : returns True if the FontIndex'th value of the
|
||||
-- "theLineFontDefinitions" field of <me> is a pointer
|
||||
-- raises an exception if FontIndex <= 0 or
|
||||
-- FontIndex > NbSegmentBlocks().
|
||||
|
||||
LineFontValue (me; FontIndex : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the LineFont value indicated by FontIndex
|
||||
-- raises an exception if FontIndex <= 0 or
|
||||
-- FontIndex > NbSegmentBlocks().
|
||||
|
||||
LineFontDefinition (me; FontIndex : Integer) returns LineFontEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the LineFont definition entity indicated by FontIndex
|
||||
-- raises an exception if FontIndex <= 0 or
|
||||
-- FontIndex > NbSegmentBlocks().
|
||||
|
||||
LineWeightItem (me; WeightIndex : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the LineWeight value indicated by WeightIndex
|
||||
-- raises an exception if WeightIndex <= 0 or
|
||||
-- WeightIndex > NbSegmentBlocks().
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_SegmentedViewsVisible
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a
|
||||
-- SegmentedViewsVisible Entity.
|
||||
--
|
||||
-- Reminder : A SegmentedViewsVisible Entity is defined by :
|
||||
-- - Pointers to View Entities
|
||||
-- - Parameters of breakpoints
|
||||
-- - Display flags
|
||||
-- - Color values
|
||||
-- - Color Definitions
|
||||
-- - LineFont values
|
||||
-- - LineFont Definitions
|
||||
-- - Line weights
|
||||
--
|
||||
|
||||
theViews : HArray1OfViewKindEntity;
|
||||
|
||||
theBreakpointParameters : HArray1OfReal;
|
||||
|
||||
theDisplayFlags : HArray1OfInteger;
|
||||
|
||||
theColorValues : HArray1OfInteger;
|
||||
|
||||
theColorDefinitions : HArray1OfColor;
|
||||
|
||||
theLineFontValues : HArray1OfInteger;
|
||||
|
||||
theLineFontDefinitions : HArray1OfLineFontEntity;
|
||||
|
||||
theLineWeights : HArray1OfInteger;
|
||||
|
||||
end SegmentedViewsVisible;
|
@@ -16,8 +16,13 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_SegmentedViewsVisible.ixx>
|
||||
|
||||
#include <IGESData_LineFontEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_SegmentedViewsVisible.hxx>
|
||||
#include <IGESGraph_Color.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_SegmentedViewsVisible::IGESDraw_SegmentedViewsVisible () { }
|
||||
|
||||
|
165
src/IGESDraw/IGESDraw_SegmentedViewsVisible.hxx
Normal file
165
src/IGESDraw/IGESDraw_SegmentedViewsVisible.hxx
Normal file
@@ -0,0 +1,165 @@
|
||||
// Created on: 1993-01-09
|
||||
// Created by: CKY / Contract Toubro-Larsen ( TCD )
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_SegmentedViewsVisible_HeaderFile
|
||||
#define _IGESDraw_SegmentedViewsVisible_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESGraph_HArray1OfColor.hxx>
|
||||
#include <IGESBasic_HArray1OfLineFontEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
class Standard_DimensionMismatch;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_ViewKindEntity;
|
||||
class IGESGraph_Color;
|
||||
class IGESData_LineFontEntity;
|
||||
|
||||
|
||||
class IGESDraw_SegmentedViewsVisible;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_SegmentedViewsVisible, IGESData_ViewKindEntity)
|
||||
|
||||
//! defines IGESSegmentedViewsVisible, Type <402> Form <19>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! Permits the association of display parameters with the
|
||||
//! segments of curves in a given view
|
||||
class IGESDraw_SegmentedViewsVisible : public IGESData_ViewKindEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_SegmentedViewsVisible();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! SegmentedViewsVisible
|
||||
//! - allViews : Pointers to View Entities
|
||||
//! - allBreakpointParameters : Parameters of breakpoints
|
||||
//! - allDisplayFlags : Display flags
|
||||
//! - allColorValues : Color Values
|
||||
//! - allColorDefinitions : Color Definitions
|
||||
//! - allLineFontValues : LineFont values
|
||||
//! - allLineFontDefinitions : LineFont Definitions
|
||||
//! - allLineWeights : Line weights
|
||||
//! raises exception if Lengths of allViews, allBreakpointParameters,
|
||||
//! allDisplayFlags, allColorValues, allColorDefinitions,
|
||||
//! allLineFontValues, allLineFontDefinitions and allLineWeights
|
||||
//! are not same.
|
||||
Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViews, const Handle(TColStd_HArray1OfReal)& allBreakpointParameters, const Handle(TColStd_HArray1OfInteger)& allDisplayFlags, const Handle(TColStd_HArray1OfInteger)& allColorValues, const Handle(IGESGraph_HArray1OfColor)& allColorDefinitions, const Handle(TColStd_HArray1OfInteger)& allLineFontValues, const Handle(IGESBasic_HArray1OfLineFontEntity)& allLineFontDefinitions, const Handle(TColStd_HArray1OfInteger)& allLineWeights);
|
||||
|
||||
//! Returns False (for a complex view)
|
||||
Standard_EXPORT Standard_Boolean IsSingle() const;
|
||||
|
||||
//! Returns the count of Views referenced by <me> (inherited)
|
||||
Standard_EXPORT Standard_Integer NbViews() const;
|
||||
|
||||
//! returns the number of view/segment blocks in <me>
|
||||
//! Similar to NbViews but has a more general significance
|
||||
Standard_EXPORT Standard_Integer NbSegmentBlocks() const;
|
||||
|
||||
//! returns the View entity indicated by ViewIndex
|
||||
//! raises an exception if ViewIndex <= 0 or
|
||||
//! ViewIndex > NbSegmentBlocks()
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer ViewIndex) const;
|
||||
|
||||
//! returns the parameter of the breakpoint indicated by
|
||||
//! BreakpointIndex
|
||||
//! raises an exception if BreakpointIndex <= 0 or
|
||||
//! BreakpointIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Standard_Real BreakpointParameter (const Standard_Integer BreakpointIndex) const;
|
||||
|
||||
//! returns the Display flag indicated by FlagIndex
|
||||
//! raises an exception if FlagIndex <= 0 or
|
||||
//! FlagIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Standard_Integer DisplayFlag (const Standard_Integer FlagIndex) const;
|
||||
|
||||
//! returns True if the ColorIndex'th value of the
|
||||
//! "theColorDefinitions" field of <me> is a pointer
|
||||
//! raises an exception if ColorIndex <= 0 or
|
||||
//! ColorIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Standard_Boolean IsColorDefinition (const Standard_Integer ColorIndex) const;
|
||||
|
||||
//! returns the Color value indicated by ColorIndex
|
||||
//! raises an exception if ColorIndex <= 0 or
|
||||
//! ColorIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Standard_Integer ColorValue (const Standard_Integer ColorIndex) const;
|
||||
|
||||
//! returns the Color definition entity indicated by ColorIndex
|
||||
//! raises an exception if ColorIndex <= 0 or
|
||||
//! ColorIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Handle(IGESGraph_Color) ColorDefinition (const Standard_Integer ColorIndex) const;
|
||||
|
||||
//! returns True if the FontIndex'th value of the
|
||||
//! "theLineFontDefinitions" field of <me> is a pointer
|
||||
//! raises an exception if FontIndex <= 0 or
|
||||
//! FontIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Standard_Boolean IsFontDefinition (const Standard_Integer FontIndex) const;
|
||||
|
||||
//! returns the LineFont value indicated by FontIndex
|
||||
//! raises an exception if FontIndex <= 0 or
|
||||
//! FontIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Standard_Integer LineFontValue (const Standard_Integer FontIndex) const;
|
||||
|
||||
//! returns the LineFont definition entity indicated by FontIndex
|
||||
//! raises an exception if FontIndex <= 0 or
|
||||
//! FontIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Handle(IGESData_LineFontEntity) LineFontDefinition (const Standard_Integer FontIndex) const;
|
||||
|
||||
//! returns the LineWeight value indicated by WeightIndex
|
||||
//! raises an exception if WeightIndex <= 0 or
|
||||
//! WeightIndex > NbSegmentBlocks().
|
||||
Standard_EXPORT Standard_Integer LineWeightItem (const Standard_Integer WeightIndex) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_SegmentedViewsVisible,IGESData_ViewKindEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESDraw_HArray1OfViewKindEntity) theViews;
|
||||
Handle(TColStd_HArray1OfReal) theBreakpointParameters;
|
||||
Handle(TColStd_HArray1OfInteger) theDisplayFlags;
|
||||
Handle(TColStd_HArray1OfInteger) theColorValues;
|
||||
Handle(IGESGraph_HArray1OfColor) theColorDefinitions;
|
||||
Handle(TColStd_HArray1OfInteger) theLineFontValues;
|
||||
Handle(IGESBasic_HArray1OfLineFontEntity) theLineFontDefinitions;
|
||||
Handle(TColStd_HArray1OfInteger) theLineWeights;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_SegmentedViewsVisible_HeaderFile
|
@@ -1,38 +0,0 @@
|
||||
-- Created on: 1993-09-07
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 SpecificModule from IGESDraw inherits SpecificModule from IGESData
|
||||
|
||||
---Purpose : Defines Services attached to IGES Entities :
|
||||
-- Dump & OwnCorrect, for IGESDraw
|
||||
|
||||
uses Messenger from Message, IGESEntity, IGESDumper
|
||||
|
||||
is
|
||||
|
||||
Create returns SpecificModule from IGESDraw;
|
||||
---Purpose : Creates a SpecificModule from IGESDraw & puts it into SpecificLib
|
||||
|
||||
OwnDump (me; CN : Integer; ent : IGESEntity;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer);
|
||||
---Purpose : Specific Dump (own parameters) for IGESDraw
|
||||
|
||||
OwnCorrect (me; CN : Integer; ent : IGESEntity)
|
||||
returns Boolean is redefined;
|
||||
---Purpose : Performs non-ambiguous Corrections on Entities which support
|
||||
-- them (Planar)
|
||||
|
||||
end SpecificModule;
|
@@ -11,9 +11,9 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESDraw_SpecificModule.ixx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_CircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_Drawing.hxx>
|
||||
@@ -25,10 +25,7 @@
|
||||
#include <IGESDraw_Planar.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <IGESDraw_SegmentedViewsVisible.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
|
||||
#include <IGESDraw_SpecificModule.hxx>
|
||||
#include <IGESDraw_ToolCircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ToolConnectPoint.hxx>
|
||||
#include <IGESDraw_ToolDrawing.hxx>
|
||||
@@ -43,14 +40,16 @@
|
||||
#include <IGESDraw_ToolView.hxx>
|
||||
#include <IGESDraw_ToolViewsVisible.hxx>
|
||||
#include <IGESDraw_ToolViewsVisibleWithAttr.hxx>
|
||||
|
||||
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
// Each Module is attached to a Protocol : it must interprete Case Numbers
|
||||
// (arguments <CN> of various methods) in accordance to values returned by
|
||||
// the method TypeNumber from this Protocol
|
||||
|
||||
|
||||
IGESDraw_SpecificModule::IGESDraw_SpecificModule() { }
|
||||
|
||||
|
||||
|
75
src/IGESDraw/IGESDraw_SpecificModule.hxx
Normal file
75
src/IGESDraw/IGESDraw_SpecificModule.hxx
Normal file
@@ -0,0 +1,75 @@
|
||||
// Created on: 1993-09-07
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_SpecificModule_HeaderFile
|
||||
#define _IGESDraw_SpecificModule_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESData_SpecificModule.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESData_IGESEntity;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
class IGESDraw_SpecificModule;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_SpecificModule, IGESData_SpecificModule)
|
||||
|
||||
//! Defines Services attached to IGES Entities :
|
||||
//! Dump & OwnCorrect, for IGESDraw
|
||||
class IGESDraw_SpecificModule : public IGESData_SpecificModule
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SpecificModule from IGESDraw & puts it into SpecificLib
|
||||
Standard_EXPORT IGESDraw_SpecificModule();
|
||||
|
||||
//! Specific Dump (own parameters) for IGESDraw
|
||||
Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
//! Performs non-ambiguous Corrections on Entities which support
|
||||
//! them (Planar)
|
||||
Standard_EXPORT virtual Standard_Boolean OwnCorrect (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_SpecificModule,IGESData_SpecificModule)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_SpecificModule_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolCircArraySubfigure from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a CircArraySubfigure. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses CircArraySubfigure from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolCircArraySubfigure;
|
||||
---Purpose : Returns a ToolCircArraySubfigure, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : CircArraySubfigure;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : CircArraySubfigure;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : CircArraySubfigure;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a CircArraySubfigure <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : CircArraySubfigure) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : CircArraySubfigure;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : CircArraySubfigure; entto : CircArraySubfigure;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : CircArraySubfigure;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolCircArraySubfigure;
|
@@ -16,14 +16,25 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolCircArraySubfigure.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESDraw_CircArraySubfigure.hxx>
|
||||
#include <IGESDraw_ToolCircArraySubfigure.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
|
||||
IGESDraw_ToolCircArraySubfigure::IGESDraw_ToolCircArraySubfigure () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolCircArraySubfigure.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolCircArraySubfigure.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolCircArraySubfigure_HeaderFile
|
||||
#define _IGESDraw_ToolCircArraySubfigure_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_CircArraySubfigure;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a CircArraySubfigure. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolCircArraySubfigure
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolCircArraySubfigure, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolCircArraySubfigure();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_CircArraySubfigure)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_CircArraySubfigure)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a CircArraySubfigure <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_CircArraySubfigure)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_CircArraySubfigure)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_CircArraySubfigure)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_CircArraySubfigure)& entfrom, const Handle(IGESDraw_CircArraySubfigure)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolCircArraySubfigure_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolConnectPoint from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a ConnectPoint. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses ConnectPoint from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolConnectPoint;
|
||||
---Purpose : Returns a ToolConnectPoint, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : ConnectPoint;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : ConnectPoint;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : ConnectPoint;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a ConnectPoint <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : ConnectPoint) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : ConnectPoint;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : ConnectPoint; entto : ConnectPoint;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : ConnectPoint;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolConnectPoint;
|
@@ -16,16 +16,27 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolConnectPoint.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_ToolConnectPoint.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
IGESDraw_ToolConnectPoint::IGESDraw_ToolConnectPoint () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolConnectPoint.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolConnectPoint.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolConnectPoint_HeaderFile
|
||||
#define _IGESDraw_ToolConnectPoint_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_ConnectPoint;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a ConnectPoint. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolConnectPoint
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolConnectPoint, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolConnectPoint();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_ConnectPoint)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_ConnectPoint)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a ConnectPoint <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_ConnectPoint)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_ConnectPoint)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_ConnectPoint)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ConnectPoint)& entfrom, const Handle(IGESDraw_ConnectPoint)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolConnectPoint_HeaderFile
|
@@ -1,72 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolDrawing from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a Drawing. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses Drawing from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolDrawing;
|
||||
---Purpose : Returns a ToolDrawing, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : Drawing;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : Drawing;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : Drawing;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a Drawing <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
OwnCorrect (me; ent : Drawing) returns Boolean is static;
|
||||
---Purpose : Sets automatic unambiguous Correction on a Drawing
|
||||
-- (Null Views are removed from list)
|
||||
|
||||
DirChecker (me; ent : Drawing) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : Drawing;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : Drawing; entto : Drawing;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : Drawing;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolDrawing;
|
@@ -16,21 +16,31 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolDrawing.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_Drawing.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
|
||||
#include <IGESDraw_ToolDrawing.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
|
||||
IGESDraw_ToolDrawing::IGESDraw_ToolDrawing () { }
|
||||
|
||||
|
102
src/IGESDraw/IGESDraw_ToolDrawing.hxx
Normal file
102
src/IGESDraw/IGESDraw_ToolDrawing.hxx
Normal file
@@ -0,0 +1,102 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolDrawing_HeaderFile
|
||||
#define _IGESDraw_ToolDrawing_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_Drawing;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a Drawing. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolDrawing
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolDrawing, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolDrawing();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_Drawing)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_Drawing)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a Drawing <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_Drawing)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Sets automatic unambiguous Correction on a Drawing
|
||||
//! (Null Views are removed from list)
|
||||
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_Drawing)& ent) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_Drawing)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_Drawing)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Drawing)& entfrom, const Handle(IGESDraw_Drawing)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolDrawing_HeaderFile
|
@@ -1,72 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolDrawingWithRotation from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a DrawingWithRotation. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses DrawingWithRotation from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolDrawingWithRotation;
|
||||
---Purpose : Returns a ToolDrawingWithRotation, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : DrawingWithRotation;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : DrawingWithRotation;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : DrawingWithRotation;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a DrawingWithRotation <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
OwnCorrect (me; ent : DrawingWithRotation) returns Boolean is static;
|
||||
---Purpose : Sets automatic unambiguous Correction on a DrawingWithRotation
|
||||
-- (Null Views are removed from list)
|
||||
|
||||
DirChecker (me; ent : DrawingWithRotation) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : DrawingWithRotation;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : DrawingWithRotation; entto : DrawingWithRotation;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : DrawingWithRotation;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolDrawingWithRotation;
|
@@ -16,21 +16,32 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolDrawingWithRotation.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_DrawingWithRotation.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
#include <IGESDraw_ToolDrawingWithRotation.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
|
||||
IGESDraw_ToolDrawingWithRotation::IGESDraw_ToolDrawingWithRotation () { }
|
||||
|
||||
|
102
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.hxx
Normal file
102
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.hxx
Normal file
@@ -0,0 +1,102 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolDrawingWithRotation_HeaderFile
|
||||
#define _IGESDraw_ToolDrawingWithRotation_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_DrawingWithRotation;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a DrawingWithRotation. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolDrawingWithRotation
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolDrawingWithRotation, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolDrawingWithRotation();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_DrawingWithRotation)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_DrawingWithRotation)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a DrawingWithRotation <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_DrawingWithRotation)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Sets automatic unambiguous Correction on a DrawingWithRotation
|
||||
//! (Null Views are removed from list)
|
||||
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_DrawingWithRotation)& ent) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_DrawingWithRotation)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_DrawingWithRotation)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_DrawingWithRotation)& entfrom, const Handle(IGESDraw_DrawingWithRotation)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolDrawingWithRotation_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolLabelDisplay from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a LabelDisplay. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses LabelDisplay from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolLabelDisplay;
|
||||
---Purpose : Returns a ToolLabelDisplay, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : LabelDisplay;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : LabelDisplay;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : LabelDisplay;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a LabelDisplay <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : LabelDisplay) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : LabelDisplay;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : LabelDisplay; entto : LabelDisplay;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : LabelDisplay;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolLabelDisplay;
|
@@ -16,22 +16,33 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolLabelDisplay.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDimen_HArray1OfLeaderArrow.hxx>
|
||||
#include <IGESDimen_LeaderArrow.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <TColgp_HArray1OfXYZ.hxx>
|
||||
#include <IGESDimen_HArray1OfLeaderArrow.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESDraw_LabelDisplay.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
#include <IGESDraw_ToolLabelDisplay.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TColgp_HArray1OfXYZ.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
|
||||
IGESDraw_ToolLabelDisplay::IGESDraw_ToolLabelDisplay () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolLabelDisplay.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolLabelDisplay.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolLabelDisplay_HeaderFile
|
||||
#define _IGESDraw_ToolLabelDisplay_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_LabelDisplay;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a LabelDisplay. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolLabelDisplay
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolLabelDisplay, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolLabelDisplay();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_LabelDisplay)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_LabelDisplay)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a LabelDisplay <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_LabelDisplay)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_LabelDisplay)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_LabelDisplay)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_LabelDisplay)& entfrom, const Handle(IGESDraw_LabelDisplay)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolLabelDisplay_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolNetworkSubfigure from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a NetworkSubfigure. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses NetworkSubfigure from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolNetworkSubfigure;
|
||||
---Purpose : Returns a ToolNetworkSubfigure, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : NetworkSubfigure;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : NetworkSubfigure;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : NetworkSubfigure;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a NetworkSubfigure <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : NetworkSubfigure) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : NetworkSubfigure;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : NetworkSubfigure; entto : NetworkSubfigure;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : NetworkSubfigure;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolNetworkSubfigure;
|
@@ -16,17 +16,28 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolNetworkSubfigure.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESDraw_HArray1OfConnectPoint.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_HArray1OfConnectPoint.hxx>
|
||||
#include <IGESDraw_NetworkSubfigure.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESDraw_ToolNetworkSubfigure.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
IGESDraw_ToolNetworkSubfigure::IGESDraw_ToolNetworkSubfigure () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolNetworkSubfigure_HeaderFile
|
||||
#define _IGESDraw_ToolNetworkSubfigure_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_NetworkSubfigure;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a NetworkSubfigure. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolNetworkSubfigure
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolNetworkSubfigure, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolNetworkSubfigure();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_NetworkSubfigure)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_NetworkSubfigure)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a NetworkSubfigure <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_NetworkSubfigure)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_NetworkSubfigure)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_NetworkSubfigure)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigure)& entfrom, const Handle(IGESDraw_NetworkSubfigure)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolNetworkSubfigure_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolNetworkSubfigureDef from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a NetworkSubfigureDef. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses NetworkSubfigureDef from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolNetworkSubfigureDef;
|
||||
---Purpose : Returns a ToolNetworkSubfigureDef, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : NetworkSubfigureDef;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : NetworkSubfigureDef;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : NetworkSubfigureDef;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a NetworkSubfigureDef <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : NetworkSubfigureDef) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : NetworkSubfigureDef;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : NetworkSubfigureDef; entto : NetworkSubfigureDef;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : NetworkSubfigureDef;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolNetworkSubfigureDef;
|
@@ -16,17 +16,28 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolNetworkSubfigureDef.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESDraw_HArray1OfConnectPoint.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESDraw_ConnectPoint.hxx>
|
||||
#include <IGESDraw_HArray1OfConnectPoint.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESDraw_ToolNetworkSubfigureDef.hxx>
|
||||
#include <IGESGraph_TextDisplayTemplate.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
IGESDraw_ToolNetworkSubfigureDef::IGESDraw_ToolNetworkSubfigureDef () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolNetworkSubfigureDef_HeaderFile
|
||||
#define _IGESDraw_ToolNetworkSubfigureDef_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_NetworkSubfigureDef;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a NetworkSubfigureDef. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolNetworkSubfigureDef
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolNetworkSubfigureDef, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolNetworkSubfigureDef();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_NetworkSubfigureDef)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a NetworkSubfigureDef <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_NetworkSubfigureDef)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_NetworkSubfigureDef)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigureDef)& entfrom, const Handle(IGESDraw_NetworkSubfigureDef)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolNetworkSubfigureDef_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolPerspectiveView from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a PerspectiveView. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses PerspectiveView from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolPerspectiveView;
|
||||
---Purpose : Returns a ToolPerspectiveView, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : PerspectiveView;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : PerspectiveView;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : PerspectiveView;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a PerspectiveView <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : PerspectiveView) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : PerspectiveView;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : PerspectiveView; entto : PerspectiveView;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : PerspectiveView;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolPerspectiveView;
|
@@ -16,16 +16,27 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolPerspectiveView.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_TransfEntity.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_TransfEntity.hxx>
|
||||
#include <IGESDraw_PerspectiveView.hxx>
|
||||
#include <IGESDraw_ToolPerspectiveView.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
IGESDraw_ToolPerspectiveView::IGESDraw_ToolPerspectiveView () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolPerspectiveView.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolPerspectiveView.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolPerspectiveView_HeaderFile
|
||||
#define _IGESDraw_ToolPerspectiveView_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_PerspectiveView;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a PerspectiveView. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolPerspectiveView
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolPerspectiveView, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolPerspectiveView();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_PerspectiveView)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_PerspectiveView)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a PerspectiveView <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_PerspectiveView)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_PerspectiveView)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_PerspectiveView)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_PerspectiveView)& entfrom, const Handle(IGESDraw_PerspectiveView)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolPerspectiveView_HeaderFile
|
@@ -1,72 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolPlanar from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a Planar. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses Planar from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolPlanar;
|
||||
---Purpose : Returns a ToolPlanar, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : Planar;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : Planar;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : Planar;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a Planar <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
OwnCorrect (me; ent : Planar) returns Boolean is static;
|
||||
---Purpose : Sets automatic unambiguous Correction on a Planar
|
||||
-- (NbMatrices forced to 1)
|
||||
|
||||
DirChecker (me; ent : Planar) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : Planar;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : Planar; entto : Planar;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : Planar;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolPlanar;
|
@@ -16,14 +16,25 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolPlanar.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGeom_TransformationMatrix.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESDraw_Planar.hxx>
|
||||
#include <IGESDraw_ToolPlanar.hxx>
|
||||
#include <IGESGeom_TransformationMatrix.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
IGESDraw_ToolPlanar::IGESDraw_ToolPlanar () { }
|
||||
|
||||
|
102
src/IGESDraw/IGESDraw_ToolPlanar.hxx
Normal file
102
src/IGESDraw/IGESDraw_ToolPlanar.hxx
Normal file
@@ -0,0 +1,102 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolPlanar_HeaderFile
|
||||
#define _IGESDraw_ToolPlanar_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_Planar;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a Planar. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolPlanar
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolPlanar, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolPlanar();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_Planar)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_Planar)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a Planar <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_Planar)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Sets automatic unambiguous Correction on a Planar
|
||||
//! (NbMatrices forced to 1)
|
||||
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_Planar)& ent) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_Planar)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_Planar)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Planar)& entfrom, const Handle(IGESDraw_Planar)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolPlanar_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolRectArraySubfigure from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a RectArraySubfigure. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses RectArraySubfigure from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolRectArraySubfigure;
|
||||
---Purpose : Returns a ToolRectArraySubfigure, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : RectArraySubfigure;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : RectArraySubfigure;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : RectArraySubfigure;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a RectArraySubfigure <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : RectArraySubfigure) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : RectArraySubfigure;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : RectArraySubfigure; entto : RectArraySubfigure;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : RectArraySubfigure;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolRectArraySubfigure;
|
@@ -16,15 +16,26 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolRectArraySubfigure.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <IGESDraw_ToolRectArraySubfigure.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
|
||||
IGESDraw_ToolRectArraySubfigure::IGESDraw_ToolRectArraySubfigure () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolRectArraySubfigure_HeaderFile
|
||||
#define _IGESDraw_ToolRectArraySubfigure_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_RectArraySubfigure;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a RectArraySubfigure. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolRectArraySubfigure
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolRectArraySubfigure, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolRectArraySubfigure();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_RectArraySubfigure)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_RectArraySubfigure)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a RectArraySubfigure <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_RectArraySubfigure)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_RectArraySubfigure)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_RectArraySubfigure)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_RectArraySubfigure)& entfrom, const Handle(IGESDraw_RectArraySubfigure)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolRectArraySubfigure_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolSegmentedViewsVisible from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a SegmentedViewsVisible. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses SegmentedViewsVisible from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolSegmentedViewsVisible;
|
||||
---Purpose : Returns a ToolSegmentedViewsVisible, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : SegmentedViewsVisible;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : SegmentedViewsVisible;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : SegmentedViewsVisible;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a SegmentedViewsVisible <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : SegmentedViewsVisible) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : SegmentedViewsVisible;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : SegmentedViewsVisible; entto : SegmentedViewsVisible;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : SegmentedViewsVisible;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolSegmentedViewsVisible;
|
@@ -16,18 +16,29 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolSegmentedViewsVisible.ixx>
|
||||
#include <IGESBasic_HArray1OfLineFontEntity.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_LineFontEntity.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESDraw_SegmentedViewsVisible.hxx>
|
||||
#include <IGESDraw_ToolSegmentedViewsVisible.hxx>
|
||||
#include <IGESGraph_Color.hxx>
|
||||
#include <IGESGraph_HArray1OfColor.hxx>
|
||||
#include <IGESData_LineFontEntity.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <IGESBasic_HArray1OfLineFontEntity.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
|
||||
IGESDraw_ToolSegmentedViewsVisible::IGESDraw_ToolSegmentedViewsVisible () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolSegmentedViewsVisible_HeaderFile
|
||||
#define _IGESDraw_ToolSegmentedViewsVisible_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_SegmentedViewsVisible;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a SegmentedViewsVisible. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolSegmentedViewsVisible
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolSegmentedViewsVisible, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolSegmentedViewsVisible();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_SegmentedViewsVisible)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a SegmentedViewsVisible <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_SegmentedViewsVisible)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_SegmentedViewsVisible)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_SegmentedViewsVisible)& entfrom, const Handle(IGESDraw_SegmentedViewsVisible)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolSegmentedViewsVisible_HeaderFile
|
@@ -1,68 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolView from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a View. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses View from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolView;
|
||||
---Purpose : Returns a ToolView, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : View;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : View;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : View;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a View <ent>, from
|
||||
-- its specific (own) parameters
|
||||
|
||||
DirChecker (me; ent : View) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : View;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : View; entto : View;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters
|
||||
|
||||
|
||||
OwnDump (me; ent : View;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
end ToolView;
|
@@ -16,12 +16,23 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolView.ixx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_TransfEntity.hxx>
|
||||
#include <IGESDraw_ToolView.hxx>
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESGeom_Plane.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
IGESDraw_ToolView::IGESDraw_ToolView () { }
|
||||
|
||||
|
97
src/IGESDraw/IGESDraw_ToolView.hxx
Normal file
97
src/IGESDraw/IGESDraw_ToolView.hxx
Normal file
@@ -0,0 +1,97 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolView_HeaderFile
|
||||
#define _IGESDraw_ToolView_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_View;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a View. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolView
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolView, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolView();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_View)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_View)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a View <ent>, from
|
||||
//! its specific (own) parameters
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_View)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_View)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_View)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_View)& entfrom, const Handle(IGESDraw_View)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolView_HeaderFile
|
@@ -1,89 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolViewsVisible from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a ViewsVisible. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses ViewsVisible from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolViewsVisible;
|
||||
---Purpose : Returns a ToolViewsVisible, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : ViewsVisible;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : ViewsVisible;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : ViewsVisible;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a ViewsVisible <ent>, from
|
||||
-- its specific (own) parameters shared not implied (the Views)
|
||||
|
||||
OwnImplied (me; ent : ViewsVisible;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a ViewsVisible <ent>, from
|
||||
-- its specific (own) implied parameters : the Displayed Entities
|
||||
|
||||
|
||||
DirChecker (me; ent : ViewsVisible) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : ViewsVisible;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : ViewsVisible; entto : ViewsVisible;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters shared not implied, i.e. all but
|
||||
-- the Displayed Entities
|
||||
|
||||
OwnRenew (me; entfrom : ViewsVisible; entto : ViewsVisible;
|
||||
TC : CopyTool) is static;
|
||||
---Purpose : Copies Specific implied Parameters : the Displayed Entities
|
||||
-- which have already been copied
|
||||
|
||||
OwnWhenDelete (me; ent : ViewsVisible) is static;
|
||||
---Purpose : Clears specific implied parameters, which cause looping
|
||||
-- structures; required for deletion
|
||||
|
||||
|
||||
OwnDump (me; ent : ViewsVisible;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
OwnCorrect (me; ent : ViewsVisible) returns Boolean is static;
|
||||
---Purpose : Sets automatic unambiguous Correction on a ViewsVisible
|
||||
-- (all displayed entities must refer to <ent> in directory part,
|
||||
-- else the list is cleared)
|
||||
|
||||
end ToolViewsVisible;
|
@@ -16,17 +16,28 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolViewsVisible.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESDraw_ToolViewsVisible.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
IGESDraw_ToolViewsVisible::IGESDraw_ToolViewsVisible () { }
|
||||
|
||||
|
||||
|
116
src/IGESDraw/IGESDraw_ToolViewsVisible.hxx
Normal file
116
src/IGESDraw/IGESDraw_ToolViewsVisible.hxx
Normal file
@@ -0,0 +1,116 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolViewsVisible_HeaderFile
|
||||
#define _IGESDraw_ToolViewsVisible_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_ViewsVisible;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a ViewsVisible. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolViewsVisible
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolViewsVisible, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolViewsVisible();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_ViewsVisible)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_ViewsVisible)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a ViewsVisible <ent>, from
|
||||
//! its specific (own) parameters shared not implied (the Views)
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_ViewsVisible)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Lists the Entities shared by a ViewsVisible <ent>, from
|
||||
//! its specific (own) implied parameters : the Displayed Entities
|
||||
Standard_EXPORT void OwnImplied (const Handle(IGESDraw_ViewsVisible)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_ViewsVisible)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_ViewsVisible)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters shared not implied, i.e. all but
|
||||
//! the Displayed Entities
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ViewsVisible)& entfrom, const Handle(IGESDraw_ViewsVisible)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Copies Specific implied Parameters : the Displayed Entities
|
||||
//! which have already been copied
|
||||
Standard_EXPORT void OwnRenew (const Handle(IGESDraw_ViewsVisible)& entfrom, const Handle(IGESDraw_ViewsVisible)& entto, const Interface_CopyTool& TC) const;
|
||||
|
||||
//! Clears specific implied parameters, which cause looping
|
||||
//! structures; required for deletion
|
||||
Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisible)& ent) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
//! Sets automatic unambiguous Correction on a ViewsVisible
|
||||
//! (all displayed entities must refer to <ent> in directory part,
|
||||
//! else the list is cleared)
|
||||
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_ViewsVisible)& ent) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolViewsVisible_HeaderFile
|
@@ -1,89 +0,0 @@
|
||||
-- Created on: 1993-10-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- 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 ToolViewsVisibleWithAttr from IGESDraw
|
||||
|
||||
---Purpose : Tool to work on a ViewsVisibleWithAttr. Called by various Modules
|
||||
-- (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
|
||||
uses ViewsVisibleWithAttr from IGESDraw,
|
||||
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
|
||||
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
|
||||
|
||||
raises DomainError
|
||||
|
||||
is
|
||||
|
||||
Create returns ToolViewsVisibleWithAttr;
|
||||
---Purpose : Returns a ToolViewsVisibleWithAttr, ready to work
|
||||
|
||||
|
||||
ReadOwnParams (me; ent : ViewsVisibleWithAttr;
|
||||
IR : IGESReaderData; PR : in out ParamReader)
|
||||
raises DomainError is static;
|
||||
---Purpose : Reads own parameters from file. <PR> gives access to them,
|
||||
-- <IR> detains parameter types and values
|
||||
|
||||
WriteOwnParams (me; ent : ViewsVisibleWithAttr;
|
||||
IW : in out IGESWriter) is static;
|
||||
---Purpose : Writes own parameters to IGESWriter
|
||||
|
||||
|
||||
OwnShared (me; ent : ViewsVisibleWithAttr;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a ViewsVisibleWithAttr <ent>, from
|
||||
-- its specific (own) parameters shared not implied, i.e. all but
|
||||
-- the Displayed Entities
|
||||
|
||||
OwnImplied (me; ent : ViewsVisibleWithAttr;
|
||||
iter : in out EntityIterator) is static;
|
||||
---Purpose : Lists the Entities shared by a ViewsVisible <ent>, from
|
||||
-- its specific (own) implied parameters : the Displayed Entities
|
||||
|
||||
DirChecker (me; ent : ViewsVisibleWithAttr) returns DirChecker is static;
|
||||
---Purpose : Returns specific DirChecker
|
||||
|
||||
OwnCheck (me; ent : ViewsVisibleWithAttr;
|
||||
shares : ShareTool; ach : in out Check) is static;
|
||||
---Purpose : Performs Specific Semantic Check
|
||||
|
||||
|
||||
OwnCopy (me; entfrom : ViewsVisibleWithAttr; entto : ViewsVisibleWithAttr;
|
||||
TC : in out CopyTool) is static;
|
||||
---Purpose : Copies Specific Parameters shared not implied, i.e. all but
|
||||
-- the Displayed Entities
|
||||
|
||||
OwnRenew (me; entfrom : ViewsVisibleWithAttr; entto : ViewsVisibleWithAttr;
|
||||
TC : CopyTool) is static;
|
||||
---Purpose : Copies Specific implied Parameters : the Displayed Entities
|
||||
-- which have already been copied
|
||||
|
||||
OwnWhenDelete (me; ent : ViewsVisibleWithAttr) is static;
|
||||
---Purpose : Clears specific implied parameters, which cause looping
|
||||
-- structures; required for deletion
|
||||
|
||||
|
||||
OwnDump (me; ent : ViewsVisibleWithAttr;
|
||||
dumper : IGESDumper; S : Messenger from Message; own : Integer)
|
||||
is static;
|
||||
---Purpose : Dump of Specific Parameters
|
||||
|
||||
OwnCorrect (me; ent : ViewsVisibleWithAttr) returns Boolean is static;
|
||||
---Purpose : Sets automatic unambiguous Correction on a ViewsVisibleWithAttr
|
||||
-- (all displayed entities must refer to <ent> in directory part,
|
||||
-- else the list is cleared)
|
||||
|
||||
end ToolViewsVisibleWithAttr;
|
@@ -16,22 +16,33 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ToolViewsVisibleWithAttr.ixx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESBasic_HArray1OfLineFontEntity.hxx>
|
||||
#include <IGESData_DirChecker.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESDumper.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGraph_Color.hxx>
|
||||
#include <IGESData_IGESReaderData.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESData_LineFontEntity.hxx>
|
||||
#include <IGESData_ParamCursor.hxx>
|
||||
#include <IGESData_ParamReader.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESDraw_ToolViewsVisibleWithAttr.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
#include <IGESGraph_Color.hxx>
|
||||
#include <IGESGraph_HArray1OfColor.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESBasic_HArray1OfLineFontEntity.hxx>
|
||||
#include <IGESData_Dump.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_ShareTool.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_DomainError.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
IGESDraw_ToolViewsVisibleWithAttr::IGESDraw_ToolViewsVisibleWithAttr () { }
|
||||
|
||||
|
||||
|
117
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.hxx
Normal file
117
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.hxx
Normal file
@@ -0,0 +1,117 @@
|
||||
// Created on: 1993-10-14
|
||||
// Created by: Christian CAILLET
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ToolViewsVisibleWithAttr_HeaderFile
|
||||
#define _IGESDraw_ToolViewsVisibleWithAttr_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Standard_DomainError;
|
||||
class IGESDraw_ViewsVisibleWithAttr;
|
||||
class IGESData_IGESReaderData;
|
||||
class IGESData_ParamReader;
|
||||
class IGESData_IGESWriter;
|
||||
class Interface_EntityIterator;
|
||||
class IGESData_DirChecker;
|
||||
class Interface_ShareTool;
|
||||
class Interface_Check;
|
||||
class Interface_CopyTool;
|
||||
class IGESData_IGESDumper;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
//! Tool to work on a ViewsVisibleWithAttr. Called by various Modules
|
||||
//! (ReadWriteModule, GeneralModule, SpecificModule)
|
||||
class IGESDraw_ToolViewsVisibleWithAttr
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Returns a ToolViewsVisibleWithAttr, ready to work
|
||||
Standard_EXPORT IGESDraw_ToolViewsVisibleWithAttr();
|
||||
|
||||
//! Reads own parameters from file. <PR> gives access to them,
|
||||
//! <IR> detains parameter types and values
|
||||
Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
|
||||
|
||||
//! Writes own parameters to IGESWriter
|
||||
Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, IGESData_IGESWriter& IW) const;
|
||||
|
||||
//! Lists the Entities shared by a ViewsVisibleWithAttr <ent>, from
|
||||
//! its specific (own) parameters shared not implied, i.e. all but
|
||||
//! the Displayed Entities
|
||||
Standard_EXPORT void OwnShared (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Lists the Entities shared by a ViewsVisible <ent>, from
|
||||
//! its specific (own) implied parameters : the Displayed Entities
|
||||
Standard_EXPORT void OwnImplied (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, Interface_EntityIterator& iter) const;
|
||||
|
||||
//! Returns specific DirChecker
|
||||
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const;
|
||||
|
||||
//! Performs Specific Semantic Check
|
||||
Standard_EXPORT void OwnCheck (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
|
||||
|
||||
//! Copies Specific Parameters shared not implied, i.e. all but
|
||||
//! the Displayed Entities
|
||||
Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ViewsVisibleWithAttr)& entfrom, const Handle(IGESDraw_ViewsVisibleWithAttr)& entto, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Copies Specific implied Parameters : the Displayed Entities
|
||||
//! which have already been copied
|
||||
Standard_EXPORT void OwnRenew (const Handle(IGESDraw_ViewsVisibleWithAttr)& entfrom, const Handle(IGESDraw_ViewsVisibleWithAttr)& entto, const Interface_CopyTool& TC) const;
|
||||
|
||||
//! Clears specific implied parameters, which cause looping
|
||||
//! structures; required for deletion
|
||||
Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const;
|
||||
|
||||
//! Dump of Specific Parameters
|
||||
Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
|
||||
|
||||
//! Sets automatic unambiguous Correction on a ViewsVisibleWithAttr
|
||||
//! (all displayed entities must refer to <ent> in directory part,
|
||||
//! else the list is cleared)
|
||||
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ToolViewsVisibleWithAttr_HeaderFile
|
@@ -1,151 +0,0 @@
|
||||
-- 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;
|
@@ -16,10 +16,14 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_View.ixx>
|
||||
#include <gp_GTrsf.hxx>
|
||||
#include <gp_XYZ.hxx>
|
||||
#include <IGESData_TransfEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
|
||||
#include <IGESDraw_View.hxx>
|
||||
#include <IGESGeom_Plane.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_View::IGESDraw_View () { }
|
||||
|
||||
|
153
src/IGESDraw/IGESDraw_View.hxx
Normal file
153
src/IGESDraw/IGESDraw_View.hxx
Normal file
@@ -0,0 +1,153 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_View_HeaderFile
|
||||
#define _IGESDraw_View_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESGeom_Plane;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_ViewKindEntity;
|
||||
class IGESData_TransfEntity;
|
||||
class gp_XYZ;
|
||||
|
||||
|
||||
class IGESDraw_View;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_View, IGESData_ViewKindEntity)
|
||||
|
||||
//! 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.
|
||||
class IGESDraw_View : public IGESData_ViewKindEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_View();
|
||||
|
||||
//! 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
|
||||
Standard_EXPORT void Init (const Standard_Integer aViewNum, const Standard_Real aScale, const Handle(IGESGeom_Plane)& aLeftPlane, const Handle(IGESGeom_Plane)& aTopPlane, const Handle(IGESGeom_Plane)& aRightPlane, const Handle(IGESGeom_Plane)& aBottomPlane, const Handle(IGESGeom_Plane)& aBackPlane, const Handle(IGESGeom_Plane)& aFrontPlane);
|
||||
|
||||
//! Returns True (for a single view)
|
||||
Standard_EXPORT Standard_Boolean IsSingle() const;
|
||||
|
||||
//! Returns 1 (single view)
|
||||
Standard_EXPORT Standard_Integer NbViews() const;
|
||||
|
||||
//! For a single view, returns <me> whatever <num>
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer num) const;
|
||||
|
||||
//! returns integer number identifying view orientation
|
||||
Standard_EXPORT Standard_Integer ViewNumber() const;
|
||||
|
||||
//! returns the scale factor(Default = 1.0)
|
||||
Standard_EXPORT Standard_Real ScaleFactor() const;
|
||||
|
||||
//! returns False if left side of view volume is not present
|
||||
Standard_EXPORT Standard_Boolean HasLeftPlane() const;
|
||||
|
||||
//! returns the left side of view volume, or null handle
|
||||
Standard_EXPORT Handle(IGESGeom_Plane) LeftPlane() const;
|
||||
|
||||
//! returns False if top of view volume is not present
|
||||
Standard_EXPORT Standard_Boolean HasTopPlane() const;
|
||||
|
||||
//! returns the top of view volume, or null handle
|
||||
Standard_EXPORT Handle(IGESGeom_Plane) TopPlane() const;
|
||||
|
||||
//! returns False if right side of view volume is not present
|
||||
Standard_EXPORT Standard_Boolean HasRightPlane() const;
|
||||
|
||||
//! returns the right side of view volume, or null handle
|
||||
Standard_EXPORT Handle(IGESGeom_Plane) RightPlane() const;
|
||||
|
||||
//! returns False if bottom of view volume is not present
|
||||
Standard_EXPORT Standard_Boolean HasBottomPlane() const;
|
||||
|
||||
//! returns the bottom of view volume, or null handle
|
||||
Standard_EXPORT Handle(IGESGeom_Plane) BottomPlane() const;
|
||||
|
||||
//! returns False if back of view volume is not present
|
||||
Standard_EXPORT Standard_Boolean HasBackPlane() const;
|
||||
|
||||
//! returns the back of view volume, or null handle
|
||||
Standard_EXPORT Handle(IGESGeom_Plane) BackPlane() const;
|
||||
|
||||
//! returns False if front of view volume is not present
|
||||
Standard_EXPORT Standard_Boolean HasFrontPlane() const;
|
||||
|
||||
//! returns the front of view volume, or null handle
|
||||
Standard_EXPORT Handle(IGESGeom_Plane) FrontPlane() const;
|
||||
|
||||
//! returns the Transformation Matrix
|
||||
Standard_EXPORT Handle(IGESData_TransfEntity) ViewMatrix() const;
|
||||
|
||||
//! returns XYZ from the Model space to the View space by
|
||||
//! applying the View Matrix
|
||||
Standard_EXPORT gp_XYZ ModelToView (const gp_XYZ& coords) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_View,IGESData_ViewKindEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Integer theViewNumber;
|
||||
Standard_Real theScaleFactor;
|
||||
Handle(IGESGeom_Plane) theLeftPlane;
|
||||
Handle(IGESGeom_Plane) theTopPlane;
|
||||
Handle(IGESGeom_Plane) theRightPlane;
|
||||
Handle(IGESGeom_Plane) theBottomPlane;
|
||||
Handle(IGESGeom_Plane) theBackPlane;
|
||||
Handle(IGESGeom_Plane) theFrontPlane;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_View_HeaderFile
|
@@ -1,91 +0,0 @@
|
||||
-- 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 ViewsVisible from IGESDraw inherits ViewKindEntity
|
||||
|
||||
---Purpose : Defines IGESViewsVisible, Type <402>, Form <3>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- If an entity is to be displayed in more than one views,
|
||||
-- this class instance is used, which contains the Visible
|
||||
-- views and the associated entity Displays.
|
||||
|
||||
uses
|
||||
|
||||
IGESEntity from IGESData,
|
||||
HArray1OfIGESEntity from IGESData,
|
||||
HArray1OfViewKindEntity from IGESDraw
|
||||
|
||||
raises OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns ViewsVisible;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
allViewEntities : HArray1OfViewKindEntity;
|
||||
allDisplayEntity : HArray1OfIGESEntity);
|
||||
---Purpose : This method is used to set the fields of the class
|
||||
-- ViewsVisible
|
||||
-- - allViewEntities : All View kind entities
|
||||
-- - allDisplayEntity : All entities whose display is specified
|
||||
|
||||
InitImplied (me : mutable; allDisplayEntity : HArray1OfIGESEntity);
|
||||
---Purpose : Changes only the list of Displayed Entities (Null allowed)
|
||||
|
||||
IsSingle (me) returns Boolean;
|
||||
---Purpose : Returns False (for a complex view)
|
||||
|
||||
NbViews (me) returns Integer;
|
||||
---Purpose : returns the Number of views visible
|
||||
|
||||
|
||||
NbDisplayedEntities (me) returns Integer;
|
||||
---Purpose : returns the number of entities displayed in the Views or zero if
|
||||
-- no Entities specified in these Views
|
||||
|
||||
ViewItem (me; Index : Integer) returns ViewKindEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th ViewKindEntity Entity
|
||||
-- raises exception if Index <= 0 or Index > NbViewsVisible()
|
||||
|
||||
DisplayedEntity (me; Index : Integer) returns IGESEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th entity whose display is being specified by
|
||||
-- this associativity instance
|
||||
-- raises exception if Index <= 0 or Index > NbEntityDisplayed()
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_ViewsVisible
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a ViewsVisible.
|
||||
--
|
||||
-- Reminder : A ViewsVisible is defined by :
|
||||
-- - Number of View visible
|
||||
-- - Pointer to each of the view entity visible
|
||||
-- - Number of entities whose display is specified
|
||||
-- - Pointer to each of those entities
|
||||
--
|
||||
|
||||
theViewEntities : HArray1OfViewKindEntity;
|
||||
|
||||
theDisplayEntity : HArray1OfIGESEntity;
|
||||
|
||||
end ViewsVisible;
|
@@ -16,9 +16,12 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ViewsVisible.ixx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_ViewsVisible.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_ViewsVisible::IGESDraw_ViewsVisible () { }
|
||||
|
||||
|
103
src/IGESDraw/IGESDraw_ViewsVisible.hxx
Normal file
103
src/IGESDraw/IGESDraw_ViewsVisible.hxx
Normal file
@@ -0,0 +1,103 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ViewsVisible_HeaderFile
|
||||
#define _IGESDraw_ViewsVisible_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_ViewKindEntity;
|
||||
class IGESData_IGESEntity;
|
||||
|
||||
|
||||
class IGESDraw_ViewsVisible;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_ViewsVisible, IGESData_ViewKindEntity)
|
||||
|
||||
//! Defines IGESViewsVisible, Type <402>, Form <3>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! If an entity is to be displayed in more than one views,
|
||||
//! this class instance is used, which contains the Visible
|
||||
//! views and the associated entity Displays.
|
||||
class IGESDraw_ViewsVisible : public IGESData_ViewKindEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_ViewsVisible();
|
||||
|
||||
//! This method is used to set the fields of the class
|
||||
//! ViewsVisible
|
||||
//! - allViewEntities : All View kind entities
|
||||
//! - allDisplayEntity : All entities whose display is specified
|
||||
Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViewEntities, const Handle(IGESData_HArray1OfIGESEntity)& allDisplayEntity);
|
||||
|
||||
//! Changes only the list of Displayed Entities (Null allowed)
|
||||
Standard_EXPORT void InitImplied (const Handle(IGESData_HArray1OfIGESEntity)& allDisplayEntity);
|
||||
|
||||
//! Returns False (for a complex view)
|
||||
Standard_EXPORT Standard_Boolean IsSingle() const;
|
||||
|
||||
//! returns the Number of views visible
|
||||
Standard_EXPORT Standard_Integer NbViews() const;
|
||||
|
||||
//! returns the number of entities displayed in the Views or zero if
|
||||
//! no Entities specified in these Views
|
||||
Standard_EXPORT Standard_Integer NbDisplayedEntities() const;
|
||||
|
||||
//! returns the Index'th ViewKindEntity Entity
|
||||
//! raises exception if Index <= 0 or Index > NbViewsVisible()
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th entity whose display is being specified by
|
||||
//! this associativity instance
|
||||
//! raises exception if Index <= 0 or Index > NbEntityDisplayed()
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) DisplayedEntity (const Standard_Integer Index) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_ViewsVisible,IGESData_ViewKindEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESDraw_HArray1OfViewKindEntity) theViewEntities;
|
||||
Handle(IGESData_HArray1OfIGESEntity) theDisplayEntity;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ViewsVisible_HeaderFile
|
@@ -1,163 +0,0 @@
|
||||
-- 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 ViewsVisibleWithAttr from IGESDraw inherits ViewKindEntity
|
||||
|
||||
---Purpose : defines IGESViewsVisibleWithAttr, Type <402>, Form <4>
|
||||
-- in package IGESDraw
|
||||
--
|
||||
-- This class is extension of Class ViewsVisible. It is used
|
||||
-- for those entities that are visible in multiple views, but
|
||||
-- must have a different line font, color number, or
|
||||
-- line weight in each view.
|
||||
|
||||
uses
|
||||
|
||||
IGESEntity from IGESData,
|
||||
Color from IGESGraph,
|
||||
HArray1OfInteger from TColStd,
|
||||
LineFontEntity from IGESData,
|
||||
HArray1OfViewKindEntity from IGESDraw,
|
||||
HArray1OfIGESEntity from IGESData,
|
||||
HArray1OfLineFontEntity from IGESBasic,
|
||||
HArray1OfColor from IGESGraph
|
||||
|
||||
raises DimensionMismatch, OutOfRange
|
||||
|
||||
is
|
||||
|
||||
Create returns ViewsVisibleWithAttr;
|
||||
|
||||
-- Specific Methods pertaining to the class
|
||||
|
||||
Init (me : mutable;
|
||||
allViewEntities : HArray1OfViewKindEntity;
|
||||
allLineFonts : HArray1OfInteger;
|
||||
allLineDefinitions : HArray1OfLineFontEntity;
|
||||
allColorValues : HArray1OfInteger;
|
||||
allColorDefinitions : HArray1OfColor;
|
||||
allLineWeights : HArray1OfInteger;
|
||||
allDisplayEntities : HArray1OfIGESEntity)
|
||||
raises DimensionMismatch;
|
||||
---Purpose : This method is used to set fields of the class
|
||||
-- ViewsVisibleWithAttr
|
||||
-- - allViewEntities : All View kind entities
|
||||
-- - allLineFonts : All Line Font values or zero(0)
|
||||
-- - allLineDefinitions : Line Font Definition
|
||||
-- (if Line Font value = 0)
|
||||
-- - allColorValues : All Color values
|
||||
-- - allColorDefinitions : All Color Definition Entities
|
||||
-- - allLineWeights : All Line Weight values
|
||||
-- - allDisplayEntities : Entities which are member of
|
||||
-- this associativity
|
||||
-- raises exception if Lengths of allViewEntities, allLineFonts,
|
||||
-- allColorValues,allColorDefinitions, allLineWeights are not same
|
||||
|
||||
InitImplied (me : mutable; allDisplayEntity : HArray1OfIGESEntity);
|
||||
---Purpose : Changes only the list of Displayed Entities (Null allowed)
|
||||
|
||||
IsSingle (me) returns Boolean;
|
||||
---Purpose : Returns False (for a complex view)
|
||||
|
||||
NbViews (me) returns Integer;
|
||||
---Purpose : returns the number of Views containing the view visible, line font,
|
||||
-- color number, and line weight information
|
||||
|
||||
|
||||
NbDisplayedEntities (me) returns Integer;
|
||||
---Purpose : returns the number of entities which have this particular set of
|
||||
-- display characteristic, or zero if no Entities specified
|
||||
|
||||
ViewItem (me; Index : Integer) returns ViewKindEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th ViewKindEntity entity
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
LineFontValue (me; Index : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th Line font value or zero
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
IsFontDefinition (me; Index : Integer) returns Boolean
|
||||
raises OutOfRange;
|
||||
---Purpose : returns True if the Index'th Line Font Definition is specified
|
||||
-- else returns False
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
FontDefinition (me; Index : Integer) returns LineFontEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th Line Font Definition Entity or NULL(0)
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
ColorValue (me; Index: Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th Color number value
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
IsColorDefinition (me; Index : Integer) returns Boolean
|
||||
raises OutOfRange;
|
||||
---Purpose : returns True if Index'th Color Definition is specified
|
||||
-- else returns False
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
ColorDefinition (me; Index : Integer) returns Color
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th Color Definition Entity
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
LineWeightItem (me; Index : Integer) returns Integer
|
||||
raises OutOfRange;
|
||||
---Purpose : returns the Index'th Color Line Weight
|
||||
-- raises exception if Index <= 0 or Index > NbViews()
|
||||
|
||||
DisplayedEntity (me; Index : Integer) returns IGESEntity
|
||||
raises OutOfRange;
|
||||
---Purpose : returns Index'th Display entity with this particular characteristics
|
||||
-- raises exception if Index <= 0 or Index > NbEntities()
|
||||
|
||||
fields
|
||||
|
||||
--
|
||||
-- Class : IGESDraw_ViewsVisibleWithAttr
|
||||
--
|
||||
-- Purpose : Declaration of the variables specific to a ViewsVisibleWithAttr.
|
||||
--
|
||||
-- Reminder : A ViewsVisibleWithAttr is defined by :
|
||||
-- - the number of blocks containing Views visible, line font,
|
||||
-- color number, or the line weight in each view
|
||||
-- - Number of Entities which have this characteristics
|
||||
-- - Line Font value or zero(0)
|
||||
-- - Pointer to Line Font Definition if Line Font value = 0
|
||||
-- - Color value or pointer to Color Definition Entity
|
||||
-- - Line Weight value
|
||||
-- - Entities which are member of this associativity
|
||||
--
|
||||
|
||||
theViewEntities : HArray1OfViewKindEntity;
|
||||
|
||||
theLineFonts : HArray1OfInteger;
|
||||
|
||||
theLineDefinitions : HArray1OfLineFontEntity;
|
||||
|
||||
theColorValues : HArray1OfInteger;
|
||||
|
||||
theColorDefinitions : HArray1OfColor;
|
||||
|
||||
theLineWeights : HArray1OfInteger;
|
||||
|
||||
theDisplayEntities : HArray1OfIGESEntity;
|
||||
|
||||
end ViewsVisibleWithAttr;
|
@@ -16,8 +16,14 @@
|
||||
//--------------------------------------------------------------------
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.ixx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_LineFontEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_ViewsVisibleWithAttr.hxx>
|
||||
#include <IGESGraph_Color.hxx>
|
||||
#include <Standard_DimensionMismatch.hxx>
|
||||
#include <Standard_OutOfRange.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IGESDraw_ViewsVisibleWithAttr::IGESDraw_ViewsVisibleWithAttr () { }
|
||||
|
||||
|
154
src/IGESDraw/IGESDraw_ViewsVisibleWithAttr.hxx
Normal file
154
src/IGESDraw/IGESDraw_ViewsVisibleWithAttr.hxx
Normal file
@@ -0,0 +1,154 @@
|
||||
// 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.
|
||||
|
||||
#ifndef _IGESDraw_ViewsVisibleWithAttr_HeaderFile
|
||||
#define _IGESDraw_ViewsVisibleWithAttr_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IGESBasic_HArray1OfLineFontEntity.hxx>
|
||||
#include <IGESGraph_HArray1OfColor.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_DimensionMismatch;
|
||||
class Standard_OutOfRange;
|
||||
class IGESData_ViewKindEntity;
|
||||
class IGESData_LineFontEntity;
|
||||
class IGESGraph_Color;
|
||||
class IGESData_IGESEntity;
|
||||
|
||||
|
||||
class IGESDraw_ViewsVisibleWithAttr;
|
||||
DEFINE_STANDARD_HANDLE(IGESDraw_ViewsVisibleWithAttr, IGESData_ViewKindEntity)
|
||||
|
||||
//! defines IGESViewsVisibleWithAttr, Type <402>, Form <4>
|
||||
//! in package IGESDraw
|
||||
//!
|
||||
//! This class is extension of Class ViewsVisible. It is used
|
||||
//! for those entities that are visible in multiple views, but
|
||||
//! must have a different line font, color number, or
|
||||
//! line weight in each view.
|
||||
class IGESDraw_ViewsVisibleWithAttr : public IGESData_ViewKindEntity
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESDraw_ViewsVisibleWithAttr();
|
||||
|
||||
//! This method is used to set fields of the class
|
||||
//! ViewsVisibleWithAttr
|
||||
//! - allViewEntities : All View kind entities
|
||||
//! - allLineFonts : All Line Font values or zero(0)
|
||||
//! - allLineDefinitions : Line Font Definition
|
||||
//! (if Line Font value = 0)
|
||||
//! - allColorValues : All Color values
|
||||
//! - allColorDefinitions : All Color Definition Entities
|
||||
//! - allLineWeights : All Line Weight values
|
||||
//! - allDisplayEntities : Entities which are member of
|
||||
//! this associativity
|
||||
//! raises exception if Lengths of allViewEntities, allLineFonts,
|
||||
//! allColorValues,allColorDefinitions, allLineWeights are not same
|
||||
Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViewEntities, const Handle(TColStd_HArray1OfInteger)& allLineFonts, const Handle(IGESBasic_HArray1OfLineFontEntity)& allLineDefinitions, const Handle(TColStd_HArray1OfInteger)& allColorValues, const Handle(IGESGraph_HArray1OfColor)& allColorDefinitions, const Handle(TColStd_HArray1OfInteger)& allLineWeights, const Handle(IGESData_HArray1OfIGESEntity)& allDisplayEntities);
|
||||
|
||||
//! Changes only the list of Displayed Entities (Null allowed)
|
||||
Standard_EXPORT void InitImplied (const Handle(IGESData_HArray1OfIGESEntity)& allDisplayEntity);
|
||||
|
||||
//! Returns False (for a complex view)
|
||||
Standard_EXPORT Standard_Boolean IsSingle() const;
|
||||
|
||||
//! returns the number of Views containing the view visible, line font,
|
||||
//! color number, and line weight information
|
||||
Standard_EXPORT Standard_Integer NbViews() const;
|
||||
|
||||
//! returns the number of entities which have this particular set of
|
||||
//! display characteristic, or zero if no Entities specified
|
||||
Standard_EXPORT Standard_Integer NbDisplayedEntities() const;
|
||||
|
||||
//! returns the Index'th ViewKindEntity entity
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th Line font value or zero
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Standard_Integer LineFontValue (const Standard_Integer Index) const;
|
||||
|
||||
//! returns True if the Index'th Line Font Definition is specified
|
||||
//! else returns False
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Standard_Boolean IsFontDefinition (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th Line Font Definition Entity or NULL(0)
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Handle(IGESData_LineFontEntity) FontDefinition (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th Color number value
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Standard_Integer ColorValue (const Standard_Integer Index) const;
|
||||
|
||||
//! returns True if Index'th Color Definition is specified
|
||||
//! else returns False
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Standard_Boolean IsColorDefinition (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th Color Definition Entity
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Handle(IGESGraph_Color) ColorDefinition (const Standard_Integer Index) const;
|
||||
|
||||
//! returns the Index'th Color Line Weight
|
||||
//! raises exception if Index <= 0 or Index > NbViews()
|
||||
Standard_EXPORT Standard_Integer LineWeightItem (const Standard_Integer Index) const;
|
||||
|
||||
//! returns Index'th Display entity with this particular characteristics
|
||||
//! raises exception if Index <= 0 or Index > NbEntities()
|
||||
Standard_EXPORT Handle(IGESData_IGESEntity) DisplayedEntity (const Standard_Integer Index) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESDraw_ViewsVisibleWithAttr,IGESData_ViewKindEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESDraw_HArray1OfViewKindEntity) theViewEntities;
|
||||
Handle(TColStd_HArray1OfInteger) theLineFonts;
|
||||
Handle(IGESBasic_HArray1OfLineFontEntity) theLineDefinitions;
|
||||
Handle(TColStd_HArray1OfInteger) theColorValues;
|
||||
Handle(IGESGraph_HArray1OfColor) theColorDefinitions;
|
||||
Handle(TColStd_HArray1OfInteger) theLineWeights;
|
||||
Handle(IGESData_HArray1OfIGESEntity) theDisplayEntities;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESDraw_ViewsVisibleWithAttr_HeaderFile
|
Reference in New Issue
Block a user