1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

View File

@@ -1,6 +1,72 @@
IGESGraph.cxx
IGESGraph.hxx
IGESGraph_Array1OfColor.hxx
IGESGraph_Array1OfTextDisplayTemplate.hxx
IGESGraph_Array1OfTextFontDef.hxx
IGESGraph_Color.cxx
IGESGraph_Color.hxx
IGESGraph_DefinitionLevel.cxx
IGESGraph_DefinitionLevel.hxx
IGESGraph_DrawingSize.cxx
IGESGraph_DrawingSize.hxx
IGESGraph_DrawingUnits.cxx
IGESGraph_DrawingUnits.hxx
IGESGraph_GeneralModule.cxx
IGESGraph_GeneralModule.hxx
IGESGraph_HArray1OfColor.hxx
IGESGraph_HArray1OfTextDisplayTemplate.hxx
IGESGraph_HArray1OfTextFontDef.hxx
IGESGraph_HighLight.cxx
IGESGraph_HighLight.hxx
IGESGraph_IntercharacterSpacing.cxx
IGESGraph_IntercharacterSpacing.hxx
IGESGraph_LineFontDefPattern.cxx
IGESGraph_LineFontDefPattern.hxx
IGESGraph_LineFontDefTemplate.cxx
IGESGraph_LineFontDefTemplate.hxx
IGESGraph_LineFontPredefined.cxx
IGESGraph_LineFontPredefined.hxx
IGESGraph_NominalSize.cxx
IGESGraph_NominalSize.hxx
IGESGraph_Pick.cxx
IGESGraph_Pick.hxx
IGESGraph_Protocol.cxx
IGESGraph_Protocol.hxx
IGESGraph_ReadWriteModule.cxx
IGESGraph_ReadWriteModule.hxx
IGESGraph_SpecificModule.cxx
IGESGraph_SpecificModule.hxx
IGESGraph_TextDisplayTemplate.cxx
IGESGraph_TextDisplayTemplate.hxx
IGESGraph_TextFontDef.cxx
IGESGraph_TextFontDef.hxx
IGESGraph_ToolColor.cxx
IGESGraph_ToolColor.hxx
IGESGraph_ToolDefinitionLevel.cxx
IGESGraph_ToolDefinitionLevel.hxx
IGESGraph_ToolDrawingSize.cxx
IGESGraph_ToolDrawingSize.hxx
IGESGraph_ToolDrawingUnits.cxx
IGESGraph_ToolDrawingUnits.hxx
IGESGraph_ToolHighLight.cxx
IGESGraph_ToolHighLight.hxx
IGESGraph_ToolIntercharacterSpacing.cxx
IGESGraph_ToolIntercharacterSpacing.hxx
IGESGraph_ToolLineFontDefPattern.cxx
IGESGraph_ToolLineFontDefPattern.hxx
IGESGraph_ToolLineFontDefTemplate.cxx
IGESGraph_ToolLineFontDefTemplate.hxx
IGESGraph_ToolLineFontPredefined.cxx
IGESGraph_ToolLineFontPredefined.hxx
IGESGraph_ToolNominalSize.cxx
IGESGraph_ToolNominalSize.hxx
IGESGraph_ToolPick.cxx
IGESGraph_ToolPick.hxx
IGESGraph_ToolTextDisplayTemplate.cxx
IGESGraph_ToolTextDisplayTemplate.hxx
IGESGraph_ToolTextFontDef.cxx
IGESGraph_ToolTextFontDef.hxx
IGESGraph_ToolUniformRectGrid.cxx
IGESGraph_ToolUniformRectGrid.hxx
IGESGraph_UniformRectGrid.cxx
IGESGraph_UniformRectGrid.hxx

View File

@@ -1,107 +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.
package IGESGraph
---Purpose : This package contains the group of classes necessary
-- to define Graphic data among Structure Entities.
-- (e.g., Fonts, Colors, Screen management ...)
uses
Standard,
TCollection,
gp,
TColgp,
TColStd,
Message,
Interface,
IGESData,
IGESBasic
is
class LineFontDefTemplate;
class LineFontDefPattern;
class TextFontDef;
class TextDisplayTemplate;
class Color;
class DefinitionLevel;
class NominalSize;
class DrawingSize;
class DrawingUnits;
class IntercharacterSpacing;
class LineFontPredefined;
class HighLight;
class Pick;
class UniformRectGrid;
-- Tools for Entities --
class ToolLineFontDefTemplate;
class ToolLineFontDefPattern;
class ToolTextFontDef;
class ToolTextDisplayTemplate;
class ToolColor;
class ToolDefinitionLevel;
class ToolNominalSize;
class ToolDrawingSize;
class ToolDrawingUnits;
class ToolIntercharacterSpacing;
class ToolLineFontPredefined;
class ToolHighLight;
class ToolPick;
class ToolUniformRectGrid;
-- Definition and Exploitation of Entities defined in this Package
class Protocol;
class ReadWriteModule;
class GeneralModule;
class SpecificModule;
-- The class instantiations :
imported Array1OfColor;
imported Array1OfTextDisplayTemplate;
imported Array1OfTextFontDef;
imported transient class HArray1OfColor;
imported transient class HArray1OfTextDisplayTemplate;
imported transient class HArray1OfTextFontDef;
-- Package Methods
Init;
---Purpose : Prepares dynamic data (Protocol, Modules) for this package
Protocol returns Protocol from IGESGraph;
---Purpose : Returns the Protocol for this Package
end IGESGraph;

View File

@@ -11,20 +11,20 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESGraph.ixx>
#include <IGESGraph_Protocol.hxx>
#include <IGESBasic.hxx>
#include <IGESData_SpecificLib.hxx>
#include <IGESData_WriterLib.hxx>
#include <IGESGraph.hxx>
#include <IGESGraph_GeneralModule.hxx>
#include <IGESGraph_Protocol.hxx>
#include <IGESGraph_ReadWriteModule.hxx>
#include <IGESGraph_SpecificModule.hxx>
#include <Interface_GeneralLib.hxx>
#include <Interface_ReaderLib.hxx>
#include <IGESData_WriterLib.hxx>
#include <IGESData_SpecificLib.hxx>
#include <IGESBasic.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(IGESGraph_Protocol) protocol;

130
src/IGESGraph/IGESGraph.hxx Normal file
View File

@@ -0,0 +1,130 @@
// 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 _IGESGraph_HeaderFile
#define _IGESGraph_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class IGESGraph_Protocol;
class IGESGraph_LineFontDefTemplate;
class IGESGraph_LineFontDefPattern;
class IGESGraph_TextFontDef;
class IGESGraph_TextDisplayTemplate;
class IGESGraph_Color;
class IGESGraph_DefinitionLevel;
class IGESGraph_NominalSize;
class IGESGraph_DrawingSize;
class IGESGraph_DrawingUnits;
class IGESGraph_IntercharacterSpacing;
class IGESGraph_LineFontPredefined;
class IGESGraph_HighLight;
class IGESGraph_Pick;
class IGESGraph_UniformRectGrid;
class IGESGraph_ToolLineFontDefTemplate;
class IGESGraph_ToolLineFontDefPattern;
class IGESGraph_ToolTextFontDef;
class IGESGraph_ToolTextDisplayTemplate;
class IGESGraph_ToolColor;
class IGESGraph_ToolDefinitionLevel;
class IGESGraph_ToolNominalSize;
class IGESGraph_ToolDrawingSize;
class IGESGraph_ToolDrawingUnits;
class IGESGraph_ToolIntercharacterSpacing;
class IGESGraph_ToolLineFontPredefined;
class IGESGraph_ToolHighLight;
class IGESGraph_ToolPick;
class IGESGraph_ToolUniformRectGrid;
class IGESGraph_Protocol;
class IGESGraph_ReadWriteModule;
class IGESGraph_GeneralModule;
class IGESGraph_SpecificModule;
//! This package contains the group of classes necessary
//! to define Graphic data among Structure Entities.
//! (e.g., Fonts, Colors, Screen management ...)
class IGESGraph
{
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(IGESGraph_Protocol) Protocol();
protected:
private:
friend class IGESGraph_LineFontDefTemplate;
friend class IGESGraph_LineFontDefPattern;
friend class IGESGraph_TextFontDef;
friend class IGESGraph_TextDisplayTemplate;
friend class IGESGraph_Color;
friend class IGESGraph_DefinitionLevel;
friend class IGESGraph_NominalSize;
friend class IGESGraph_DrawingSize;
friend class IGESGraph_DrawingUnits;
friend class IGESGraph_IntercharacterSpacing;
friend class IGESGraph_LineFontPredefined;
friend class IGESGraph_HighLight;
friend class IGESGraph_Pick;
friend class IGESGraph_UniformRectGrid;
friend class IGESGraph_ToolLineFontDefTemplate;
friend class IGESGraph_ToolLineFontDefPattern;
friend class IGESGraph_ToolTextFontDef;
friend class IGESGraph_ToolTextDisplayTemplate;
friend class IGESGraph_ToolColor;
friend class IGESGraph_ToolDefinitionLevel;
friend class IGESGraph_ToolNominalSize;
friend class IGESGraph_ToolDrawingSize;
friend class IGESGraph_ToolDrawingUnits;
friend class IGESGraph_ToolIntercharacterSpacing;
friend class IGESGraph_ToolLineFontPredefined;
friend class IGESGraph_ToolHighLight;
friend class IGESGraph_ToolPick;
friend class IGESGraph_ToolUniformRectGrid;
friend class IGESGraph_Protocol;
friend class IGESGraph_ReadWriteModule;
friend class IGESGraph_GeneralModule;
friend class IGESGraph_SpecificModule;
};
#endif // _IGESGraph_HeaderFile

View File

@@ -1,106 +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 Color from IGESGraph inherits ColorEntity
---Purpose : defines IGESColor, Type <314> Form <0>
-- in package IGESGraph
--
-- The Color Definition Entity is used to communicate the
-- relationship of primary colors to the intensity level of
-- the respective graphics devices as a percent of full
-- intensity range.
uses
IGESEntity from IGESData,
HAsciiString from TCollection
is
Create returns Color;
-- Specific Methods pertaining to class
Init (me : mutable;
red : Real;
green : Real;
blue : Real;
aColorName : HAsciiString);
---Purpose : This method is used to set the fields of the class Color
-- - red : Red color intensity (range 0.0 to 100.0)
-- - green : Green color intensity (range 0.0 to 100.0)
-- - blue : Blue color intensity (range 0.0 to 100.0)
-- - aColorName : Name of the color (optional)
RGBIntensity (me; Red, Green, Blue : out Real);
-- returns the RGB intensities in the Red, Green, Blue
-- fields respectively
CMYIntensity (me; Cyan, Magenta, Yellow : out Real);
-- returns the CMY equivalents of RGB intensities.
--
-- The algorithm used for getting CMY from RGB is :
--
-- C = 100.0 - R where : R = red C = cyan
-- G = 100.0 - M G = green M = magenta
-- B = 100.0 - Y B = blue Y = yellow
--
HLSPercentage (me; Hue, Lightness, Saturation : out Real);
-- returns the HLS equivalents of RGB intensities.
--
-- The algorithm used for getting HLS from RGB is :
--
-- H = (1/(2*PI))*ARCTAN((2*R - G - B) / (SQUAREROOT(3)*(G - B)))
-- L = (1 / 3)*(R + G + B)
-- S = SQUAREROOT(R*R + G*G + B*B - R*G - R*B - B*G)
--
-- where H = Hue, L = Lightness, S = Saturation,
-- PI = 3.14... (constant)
--
HasColorName (me) returns Boolean;
---Purpose : returns True if optional character string is assigned,
-- False otherwise.
ColorName (me) returns HAsciiString from TCollection;
---Purpose : if HasColorName() is True returns the Verbal description of
-- the Color.
fields
--
-- Class : IGESGraph_Color
--
-- Purpose : Declaration of the variables specific to Color
--
-- Reminder : A Color is defined by :
-- - Red color intensity
-- - Green color intensity
-- - Blue color intensity
-- - Optional name of the color
--
theRed : Real;
theGreen : Real;
theBlue : Real;
theColorName : HAsciiString;
end Color;

View File

@@ -16,8 +16,9 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_Color.ixx>
#include <IGESGraph_Color.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IGESGraph_Color::IGESGraph_Color () { }

View File

@@ -0,0 +1,95 @@
// 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 _IGESGraph_Color_HeaderFile
#define _IGESGraph_Color_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Real.hxx>
#include <IGESData_ColorEntity.hxx>
#include <Standard_Boolean.hxx>
class TCollection_HAsciiString;
class IGESGraph_Color;
DEFINE_STANDARD_HANDLE(IGESGraph_Color, IGESData_ColorEntity)
//! defines IGESColor, Type <314> Form <0>
//! in package IGESGraph
//!
//! The Color Definition Entity is used to communicate the
//! relationship of primary colors to the intensity level of
//! the respective graphics devices as a percent of full
//! intensity range.
class IGESGraph_Color : public IGESData_ColorEntity
{
public:
Standard_EXPORT IGESGraph_Color();
//! This method is used to set the fields of the class Color
//! - red : Red color intensity (range 0.0 to 100.0)
//! - green : Green color intensity (range 0.0 to 100.0)
//! - blue : Blue color intensity (range 0.0 to 100.0)
//! - aColorName : Name of the color (optional)
Standard_EXPORT void Init (const Standard_Real red, const Standard_Real green, const Standard_Real blue, const Handle(TCollection_HAsciiString)& aColorName);
Standard_EXPORT void RGBIntensity (Standard_Real& Red, Standard_Real& Green, Standard_Real& Blue) const;
Standard_EXPORT void CMYIntensity (Standard_Real& Cyan, Standard_Real& Magenta, Standard_Real& Yellow) const;
Standard_EXPORT void HLSPercentage (Standard_Real& Hue, Standard_Real& Lightness, Standard_Real& Saturation) const;
//! returns True if optional character string is assigned,
//! False otherwise.
Standard_EXPORT Standard_Boolean HasColorName() const;
//! if HasColorName() is True returns the Verbal description of
//! the Color.
Standard_EXPORT Handle(TCollection_HAsciiString) ColorName() const;
DEFINE_STANDARD_RTTI(IGESGraph_Color,IGESData_ColorEntity)
protected:
private:
Standard_Real theRed;
Standard_Real theGreen;
Standard_Real theBlue;
Handle(TCollection_HAsciiString) theColorName;
};
#endif // _IGESGraph_Color_HeaderFile

View File

@@ -1,68 +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 DefinitionLevel from IGESGraph inherits LevelListEntity
---Purpose: defines IGESDefinitionLevel, Type <406> Form <1>
-- in package IGESGraph
--
-- Indicates the no. of levels on which an entity is
-- defined
uses
IGESEntity from IGESData,
HArray1OfInteger from TColStd
raises OutOfRange
is
Create returns DefinitionLevel;
-- Specific Methods pertaining to the class
Init (me : mutable;
allLevelNumbers : HArray1OfInteger);
---Purpose : This method is used to set the fields of the class
-- DefinitionLevel
-- - allLevelNumbers : Values of Level Numbers
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>
NbLevelNumbers (me) returns Integer;
---Purpose : Must return the count of levels (== NbPropertyValues)
LevelNumber (me; LevelIndex : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the Level Number of <me> indicated by <LevelIndex>
-- raises an exception if LevelIndex is <= 0 or
-- LevelIndex > NbPropertyValues
fields
--
-- Class : IGESGraph_DefinitionLevel
--
-- Purpose : Declaration of the variables specific to a Definition Level.
--
-- Reminder : A Definition Level is defined by :
-- - Level Numbers
theLevelNumbers : HArray1OfInteger;
end DefinitionLevel;

View File

@@ -16,9 +16,10 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_DefinitionLevel.ixx>
#include <IGESGraph_DefinitionLevel.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
IGESGraph_DefinitionLevel::IGESGraph_DefinitionLevel () { }

View File

@@ -0,0 +1,85 @@
// 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 _IGESGraph_DefinitionLevel_HeaderFile
#define _IGESGraph_DefinitionLevel_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_LevelListEntity.hxx>
#include <Standard_Integer.hxx>
class Standard_OutOfRange;
class IGESGraph_DefinitionLevel;
DEFINE_STANDARD_HANDLE(IGESGraph_DefinitionLevel, IGESData_LevelListEntity)
//! defines IGESDefinitionLevel, Type <406> Form <1>
//! in package IGESGraph
//!
//! Indicates the no. of levels on which an entity is
//! defined
class IGESGraph_DefinitionLevel : public IGESData_LevelListEntity
{
public:
Standard_EXPORT IGESGraph_DefinitionLevel();
//! This method is used to set the fields of the class
//! DefinitionLevel
//! - allLevelNumbers : Values of Level Numbers
Standard_EXPORT void Init (const Handle(TColStd_HArray1OfInteger)& allLevelNumbers);
//! returns the number of property values in <me>
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! Must return the count of levels (== NbPropertyValues)
Standard_EXPORT Standard_Integer NbLevelNumbers() const;
//! returns the Level Number of <me> indicated by <LevelIndex>
//! raises an exception if LevelIndex is <= 0 or
//! LevelIndex > NbPropertyValues
Standard_EXPORT Standard_Integer LevelNumber (const Standard_Integer LevelIndex) const;
DEFINE_STANDARD_RTTI(IGESGraph_DefinitionLevel,IGESData_LevelListEntity)
protected:
private:
Handle(TColStd_HArray1OfInteger) theLevelNumbers;
};
#endif // _IGESGraph_DefinitionLevel_HeaderFile

View File

@@ -1,75 +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 DrawingSize from IGESGraph inherits IGESEntity
---Purpose: defines IGESDrawingSize, Type <406> Form <16>
-- in package IGESGraph
--
-- Specifies the drawing size in drawing units. The
-- origin of the drawing is defined to be (0,0) in
-- drawing space
uses Integer, Real -- no one specific type
is
Create returns DrawingSize;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
aXSize : Real;
aYSize : Real);
---Purpose : This method is used to set the fields of the class
-- DrawingSize
-- - nbProps : Number of property values (NP = 2)
-- - aXSize : Extent of Drawing along positive XD axis
-- - aYSize : Extent of Drawing along positive YD axis
-- Specific Access Methods : According to each type of Entity
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me> (NP = 2)
XSize (me) returns Real;
---Purpose : returns the extent of Drawing along positive XD axis
YSize (me) returns Real;
---Purpose : returns the extent of Drawing along positive YD axis
fields
--
-- Class : IGESGraph_DrawingSize
--
-- Purpose : Declaration of the variables specific to a Drawing Size.
--
-- Reminder : A Drawing Size is defined by :
-- - Number of property values
-- - X Size
-- - Y Size
--
theNbPropertyValues : Integer;
theXSize : Real;
theYSize : Real;
end DrawingSize;

View File

@@ -16,7 +16,8 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_DrawingSize.ixx>
#include <IGESGraph_DrawingSize.hxx>
#include <Standard_Type.hxx>
IGESGraph_DrawingSize::IGESGraph_DrawingSize () { }

View File

@@ -0,0 +1,87 @@
// 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 _IGESGraph_DrawingSize_HeaderFile
#define _IGESGraph_DrawingSize_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESGraph_DrawingSize;
DEFINE_STANDARD_HANDLE(IGESGraph_DrawingSize, IGESData_IGESEntity)
//! defines IGESDrawingSize, Type <406> Form <16>
//! in package IGESGraph
//!
//! Specifies the drawing size in drawing units. The
//! origin of the drawing is defined to be (0,0) in
//! drawing space
class IGESGraph_DrawingSize : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_DrawingSize();
//! This method is used to set the fields of the class
//! DrawingSize
//! - nbProps : Number of property values (NP = 2)
//! - aXSize : Extent of Drawing along positive XD axis
//! - aYSize : Extent of Drawing along positive YD axis
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Real aXSize, const Standard_Real aYSize);
//! returns the number of property values in <me> (NP = 2)
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns the extent of Drawing along positive XD axis
Standard_EXPORT Standard_Real XSize() const;
//! returns the extent of Drawing along positive YD axis
Standard_EXPORT Standard_Real YSize() const;
DEFINE_STANDARD_RTTI(IGESGraph_DrawingSize,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Real theXSize;
Standard_Real theYSize;
};
#endif // _IGESGraph_DrawingSize_HeaderFile

View File

@@ -1,79 +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 DrawingUnits from IGESGraph inherits IGESEntity
---Purpose: defines IGESDrawingUnits, Type <406> Form <17>
-- in package IGESGraph
--
-- Specifies the drawing space units as outlined
-- in the Drawing entity
uses
HAsciiString from TCollection
is
Create returns DrawingUnits;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
aFlag : Integer;
aUnit : HAsciiString from TCollection);
---Purpose : This method is used to set the fields of the class
-- DrawingUnits
-- - nbProps : Number of property values (NP = 2)
-- - aFlag : DrawingUnits Flag
-- - aUnit : DrawingUnits Name
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>
Flag (me) returns Integer;
---Purpose : returns the drawing space units of <me>
Unit (me) returns HAsciiString from TCollection;
---Purpose : returns the name of the drawing space units of <me>
-- additionnal information, deducted from Flag
UnitValue (me) returns Real;
---Purpose : Computes the value of the unit, in meters, according Flag
-- (same values as for GlobalSection from IGESData)
fields
--
-- Class : IGESGraph_DrawingUnits
--
-- Purpose : Declaration of the variables specific to a Drawing Unit.
--
-- Reminder : A Drawing Unit is defined by :
-- - Number of property values (NP = 2)
-- - Units Flag
-- - Units Name
--
theNbPropertyValues : Integer;
theFlag : Integer;
theUnit : HAsciiString from TCollection;
end DrawingUnits;

View File

@@ -16,8 +16,9 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_DrawingUnits.ixx>
#include <IGESGraph_DrawingUnits.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IGESGraph_DrawingUnits::IGESGraph_DrawingUnits () { }

View File

@@ -0,0 +1,91 @@
// 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 _IGESGraph_DrawingUnits_HeaderFile
#define _IGESGraph_DrawingUnits_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Real.hxx>
class TCollection_HAsciiString;
class IGESGraph_DrawingUnits;
DEFINE_STANDARD_HANDLE(IGESGraph_DrawingUnits, IGESData_IGESEntity)
//! defines IGESDrawingUnits, Type <406> Form <17>
//! in package IGESGraph
//!
//! Specifies the drawing space units as outlined
//! in the Drawing entity
class IGESGraph_DrawingUnits : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_DrawingUnits();
//! This method is used to set the fields of the class
//! DrawingUnits
//! - nbProps : Number of property values (NP = 2)
//! - aFlag : DrawingUnits Flag
//! - aUnit : DrawingUnits Name
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Integer aFlag, const Handle(TCollection_HAsciiString)& aUnit);
//! returns the number of property values in <me>
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns the drawing space units of <me>
Standard_EXPORT Standard_Integer Flag() const;
//! returns the name of the drawing space units of <me>
Standard_EXPORT Handle(TCollection_HAsciiString) Unit() const;
//! Computes the value of the unit, in meters, according Flag
//! (same values as for GlobalSection from IGESData)
Standard_EXPORT Standard_Real UnitValue() const;
DEFINE_STANDARD_RTTI(IGESGraph_DrawingUnits,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer theFlag;
Handle(TCollection_HAsciiString) theUnit;
};
#endif // _IGESGraph_DrawingUnits_HeaderFile

View File

@@ -1,60 +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 IGESGraph inherits GeneralModule from IGESData
---Purpose : Definition of General Services for IGESGraph (specific part)
-- This Services comprise : Shared & Implied Lists, Copy, Check
uses OStream,
Check, ShareTool, EntityIterator, CopyTool,
IGESEntity, DirChecker
is
Create returns GeneralModule from IGESGraph;
---Purpose : Creates a GeneralModule from IGESGraph 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
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
CategoryNumber (me; CN : Integer; ent : Transient; shares : ShareTool)
returns Integer is redefined;
---Purpose : Returns a category number which characterizes an entity
-- Drawing for all
end GeneralModule;

View File

@@ -11,25 +11,23 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESGraph_GeneralModule.ixx>
#include <Interface_Macros.hxx>
#include <Interface_Category.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESGraph_Color.hxx>
#include <IGESGraph_DefinitionLevel.hxx>
#include <IGESGraph_DrawingSize.hxx>
#include <IGESGraph_DrawingUnits.hxx>
#include <IGESGraph_GeneralModule.hxx>
#include <IGESGraph_HighLight.hxx>
#include <IGESGraph_IntercharacterSpacing.hxx>
#include <IGESGraph_LineFontDefPattern.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_LineFontDefTemplate.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_NominalSize.hxx>
#include <IGESGraph_Pick.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <IGESGraph_UniformRectGrid.hxx>
#include <IGESGraph_ToolColor.hxx>
#include <IGESGraph_ToolDefinitionLevel.hxx>
#include <IGESGraph_ToolDrawingSize.hxx>
@@ -37,21 +35,26 @@
#include <IGESGraph_ToolHighLight.hxx>
#include <IGESGraph_ToolIntercharacterSpacing.hxx>
#include <IGESGraph_ToolLineFontDefPattern.hxx>
#include <IGESGraph_ToolLineFontPredefined.hxx>
#include <IGESGraph_ToolLineFontDefTemplate.hxx>
#include <IGESGraph_ToolLineFontPredefined.hxx>
#include <IGESGraph_ToolNominalSize.hxx>
#include <IGESGraph_ToolPick.hxx>
#include <IGESGraph_ToolTextDisplayTemplate.hxx>
#include <IGESGraph_ToolTextFontDef.hxx>
#include <IGESGraph_ToolUniformRectGrid.hxx>
#include <IGESGraph_UniformRectGrid.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
IGESGraph_GeneralModule::IGESGraph_GeneralModule () { }

View File

@@ -0,0 +1,94 @@
// 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 _IGESGraph_GeneralModule_HeaderFile
#define _IGESGraph_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 IGESGraph_GeneralModule;
DEFINE_STANDARD_HANDLE(IGESGraph_GeneralModule, IGESData_GeneralModule)
//! Definition of General Services for IGESGraph (specific part)
//! This Services comprise : Shared & Implied Lists, Copy, Check
class IGESGraph_GeneralModule : public IGESData_GeneralModule
{
public:
//! Creates a GeneralModule from IGESGraph and puts it into GeneralLib
Standard_EXPORT IGESGraph_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;
//! 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;
//! Returns a category number which characterizes an entity
//! Drawing for all
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(IGESGraph_GeneralModule,IGESData_GeneralModule)
protected:
private:
};
#endif // _IGESGraph_GeneralModule_HeaderFile

View File

@@ -1,69 +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 HighLight from IGESGraph inherits IGESEntity
---Purpose: defines IGESHighLight, Type <406> Form <20>
-- in package IGESGraph
--
-- Attaches information that an entity is to be
-- displayed in some system dependent manner
uses Integer -- no one specific type
is
Create returns HighLight;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
aHighLightStatus : Integer);
---Purpose : This method is used to set the fields of the class
-- HighLight
-- - nbProps : Number of property values (NP = 1)
-- - aHighLightStatus : HighLight Flag
NbPropertyValues(me) returns Integer;
---Purpose : returns the number of property values in <me>
HighLightStatus(me) returns Integer;
---Purpose : returns 0 if <me> is not highlighted(default),
-- 1 if <me> is highlighted
IsHighLighted(me) returns Boolean;
---Purpose : returns True if entity is highlighted
fields
--
-- Class : IGESGraph_HighLight
--
-- Purpose : Declaration of the variables specific to a
-- HighLight property.
--
-- Reminder : A HighLight property is defined by :
-- - Number of property values (NP=1)
-- - Flag
--
theNbPropertyValues : Integer;
theHighLight : Integer;
end HighLight;

View File

@@ -16,7 +16,8 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_HighLight.ixx>
#include <IGESGraph_HighLight.hxx>
#include <Standard_Type.hxx>
IGESGraph_HighLight::IGESGraph_HighLight () { }

View File

@@ -0,0 +1,85 @@
// 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 _IGESGraph_HighLight_HeaderFile
#define _IGESGraph_HighLight_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class IGESGraph_HighLight;
DEFINE_STANDARD_HANDLE(IGESGraph_HighLight, IGESData_IGESEntity)
//! defines IGESHighLight, Type <406> Form <20>
//! in package IGESGraph
//!
//! Attaches information that an entity is to be
//! displayed in some system dependent manner
class IGESGraph_HighLight : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_HighLight();
//! This method is used to set the fields of the class
//! HighLight
//! - nbProps : Number of property values (NP = 1)
//! - aHighLightStatus : HighLight Flag
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Integer aHighLightStatus);
//! returns the number of property values in <me>
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns 0 if <me> is not highlighted(default),
//! 1 if <me> is highlighted
Standard_EXPORT Standard_Integer HighLightStatus() const;
//! returns True if entity is highlighted
Standard_EXPORT Standard_Boolean IsHighLighted() const;
DEFINE_STANDARD_RTTI(IGESGraph_HighLight,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer theHighLight;
};
#endif // _IGESGraph_HighLight_HeaderFile

View File

@@ -1,66 +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 IntercharacterSpacing from IGESGraph inherits IGESEntity
---Purpose: defines IGESIntercharacterSpacing, Type <406> Form <18>
-- in package IGESGraph
--
-- Specifies the gap between letters when fixed-pitch
-- spacing is used
uses Integer, Real -- no one specific type
is
Create returns IntercharacterSpacing;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
anISpace : Real);
---Purpose : This method is used to set the fields of the class
-- IntercharacterSpacing
-- - nbProps : Number of property values (NP = 1)
-- - anISpace : Intercharacter spacing percentage
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>
ISpace (me) returns Real;
---Purpose : returns the Intercharacter Space of <me> in percentage
-- of the text height (Range = 0..100)
fields
--
-- Class : IGESGraph_IntercharacterSpacing
--
-- Purpose : Declaration of the variables specific to a
-- Intercharacter Spacing property.
--
-- Reminder : An Intercharacter spacing property is defined by :
-- - Number of property values (NP=1)
-- - ISpace
--
theNbPropertyValues : Integer;
theISpace : Real;
end IntercharacterSpacing;

View File

@@ -16,7 +16,8 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_IntercharacterSpacing.ixx>
#include <IGESGraph_IntercharacterSpacing.hxx>
#include <Standard_Type.hxx>
IGESGraph_IntercharacterSpacing::IGESGraph_IntercharacterSpacing () { }

View File

@@ -0,0 +1,82 @@
// 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 _IGESGraph_IntercharacterSpacing_HeaderFile
#define _IGESGraph_IntercharacterSpacing_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESGraph_IntercharacterSpacing;
DEFINE_STANDARD_HANDLE(IGESGraph_IntercharacterSpacing, IGESData_IGESEntity)
//! defines IGESIntercharacterSpacing, Type <406> Form <18>
//! in package IGESGraph
//!
//! Specifies the gap between letters when fixed-pitch
//! spacing is used
class IGESGraph_IntercharacterSpacing : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_IntercharacterSpacing();
//! This method is used to set the fields of the class
//! IntercharacterSpacing
//! - nbProps : Number of property values (NP = 1)
//! - anISpace : Intercharacter spacing percentage
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Real anISpace);
//! returns the number of property values in <me>
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns the Intercharacter Space of <me> in percentage
//! of the text height (Range = 0..100)
Standard_EXPORT Standard_Real ISpace() const;
DEFINE_STANDARD_RTTI(IGESGraph_IntercharacterSpacing,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Real theISpace;
};
#endif // _IGESGraph_IntercharacterSpacing_HeaderFile

View File

@@ -1,89 +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 LineFontDefPattern from IGESGraph inherits LineFontEntity
---Purpose : defines IGESLineFontDefPattern, Type <304> Form <2>
-- in package IGESGraph
--
-- Line Font may be defined by repetition of a basic pattern
-- of visible-blank(or, on-off) segments superimposed on
-- a line or a curve. The line or curve is then displayed
-- according to the basic pattern.
uses
IGESEntity from IGESData,
HAsciiString from TCollection,
HArray1OfReal from TColStd
raises OutOfRange
is
Create returns LineFontDefPattern;
-- Specific Methods pertaining to class
Init (me : mutable;
allSegLength : HArray1OfReal;
aPattern : HAsciiString);
---Purpose : This method is used to set the fields of the class
-- LineFontDefPattern
-- - allSegLength : Containing lengths of respective segments
-- - aPattern : HAsciiString indicating visible-blank segments
NbSegments (me) returns Integer;
---Purpose : returns the number of segments in the visible-blank pattern
Length (me; Index : Integer) returns Real
raises OutOfRange;
---Purpose : returns the Length of Index'th segment of the basic pattern
-- raises exception if Index <= 0 or Index > NbSegments
DisplayPattern (me) returns HAsciiString from TCollection;
---Purpose : returns the string indicating which segments of the basic
-- pattern are visible and which are blanked.
-- e.g:
-- theNbSegments = 5 and if Bit Pattern = 10110, which means that
-- segments 2, 3 and 5 are visible, whereas segments 1 and 4 are
-- blank. The method returns "2H16" as the HAsciiString.
-- Note: The bits are right justified. (16h = 10110)
IsVisible (me; Index : Integer) returns Boolean;
---Purpose : The Display Pattern is decrypted to
-- return True if the Index'th basic pattern is Visible,
-- False otherwise.
-- If Index > NbSegments or Index <= 0 then return value is
-- False.
fields
--
-- Class : IGESGraph_LineFontDefPattern
--
-- Purpose : Declaration of the variables specific to Line Font Patterns.
--
-- Reminder : A Line Font Pattern is defined by :
-- - Length of each Segment
-- - Visible-Blank Pattern Bitmap
--
theSegmentLengths : HArray1OfReal;
theDisplayPattern : HAsciiString;
end LineFontDefPattern;

View File

@@ -16,9 +16,11 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_LineFontDefPattern.ixx>
#include <IGESGraph_LineFontDefPattern.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IGESGraph_LineFontDefPattern::IGESGraph_LineFontDefPattern () { }

View File

@@ -0,0 +1,104 @@
// 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 _IGESGraph_LineFontDefPattern_HeaderFile
#define _IGESGraph_LineFontDefPattern_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <IGESData_LineFontEntity.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
class TCollection_HAsciiString;
class Standard_OutOfRange;
class IGESGraph_LineFontDefPattern;
DEFINE_STANDARD_HANDLE(IGESGraph_LineFontDefPattern, IGESData_LineFontEntity)
//! defines IGESLineFontDefPattern, Type <304> Form <2>
//! in package IGESGraph
//!
//! Line Font may be defined by repetition of a basic pattern
//! of visible-blank(or, on-off) segments superimposed on
//! a line or a curve. The line or curve is then displayed
//! according to the basic pattern.
class IGESGraph_LineFontDefPattern : public IGESData_LineFontEntity
{
public:
Standard_EXPORT IGESGraph_LineFontDefPattern();
//! This method is used to set the fields of the class
//! LineFontDefPattern
//! - allSegLength : Containing lengths of respective segments
//! - aPattern : HAsciiString indicating visible-blank segments
Standard_EXPORT void Init (const Handle(TColStd_HArray1OfReal)& allSegLength, const Handle(TCollection_HAsciiString)& aPattern);
//! returns the number of segments in the visible-blank pattern
Standard_EXPORT Standard_Integer NbSegments() const;
//! returns the Length of Index'th segment of the basic pattern
//! raises exception if Index <= 0 or Index > NbSegments
Standard_EXPORT Standard_Real Length (const Standard_Integer Index) const;
//! returns the string indicating which segments of the basic
//! pattern are visible and which are blanked.
//! e.g:
//! theNbSegments = 5 and if Bit Pattern = 10110, which means that
//! segments 2, 3 and 5 are visible, whereas segments 1 and 4 are
//! blank. The method returns "2H16" as the HAsciiString.
//! Note: The bits are right justified. (16h = 10110)
Standard_EXPORT Handle(TCollection_HAsciiString) DisplayPattern() const;
//! The Display Pattern is decrypted to
//! return True if the Index'th basic pattern is Visible,
//! False otherwise.
//! If Index > NbSegments or Index <= 0 then return value is
//! False.
Standard_EXPORT Standard_Boolean IsVisible (const Standard_Integer Index) const;
DEFINE_STANDARD_RTTI(IGESGraph_LineFontDefPattern,IGESData_LineFontEntity)
protected:
private:
Handle(TColStd_HArray1OfReal) theSegmentLengths;
Handle(TCollection_HAsciiString) theDisplayPattern;
};
#endif // _IGESGraph_LineFontDefPattern_HeaderFile

View File

@@ -1,96 +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 LineFontDefTemplate from IGESGraph inherits LineFontEntity
---Purpose : defines IGESLineFontDefTemplate, Type <304> Form <1>
-- in package IGESGraph
--
-- Line Font can be defined as a repetition od Template figure
-- that is displayed at regularly spaced locations along a
-- planer anchoring curve. The anchoring curve itself has
-- no visual purpose.
uses
IGESEntity from IGESData,
SubfigureDef from IGESBasic
is
Create returns LineFontDefTemplate;
-- Specific Methods pertaining to class
Init (me : mutable;
anOrientation : Integer;
aTemplate : SubfigureDef;
aDistance : Real;
aScale : Real);
---Purpose : This method is used to set the fields of the class
-- LineFontDefTemplate
-- - anOrientation : Orientation of Template figure on
-- anchoring curve
-- - aTemplate : SubfigureDef entity used as Template figure
-- - aDistance : Distance between the neighbouring Template
-- figures
-- - aScale : Scale factor applied to the Template figure
Orientation (me) returns Integer;
---Purpose : if return value = 0, Each Template display is oriented by aligning
-- the axis of the SubfigureDef with the axis of
-- the definition space of the anchoring curve.
-- = 1, Each Template display is oriented by aligning
-- X-axis of the SubfigureDef with the tangent
-- vector of the anchoring curve at the point of
-- incidence of the curve and the origin of
-- subfigure.
-- Similarly Z-axis is aligned.
TemplateEntity (me) returns SubfigureDef;
---Purpose : returns SubfigureDef as the Entity used as Template figure.
Distance (me) returns Real;
---Purpose : returns the Distance between any two Template figures on the
-- anchoring curve.
Scale (me) returns Real;
---Purpose : returns the Scaling factor applied to SubfigureDef to form
-- Template figure.
fields
--
-- Class : IGESGraph_LineFontDefTemplate
--
-- Purpose : Declaration of the variables specific to Line Font Templates.
--
-- Reminder : A Line Font Template is defined by :
-- - Orientation of Template figure on the anchoring curve
-- - Sub Figure definition entity used as Template figure
-- - Distance between the neighbouring Template figures
-- - Scale factor applied to the Template figure
--
theOrientation : Integer;
theTemplateEntity : SubfigureDef;
theDistance : Real;
theScale : Real;
end LineFontDefTemplate;

View File

@@ -16,8 +16,9 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_LineFontDefTemplate.ixx>
#include <IGESBasic_SubfigureDef.hxx>
#include <IGESGraph_LineFontDefTemplate.hxx>
#include <Standard_Type.hxx>
IGESGraph_LineFontDefTemplate::IGESGraph_LineFontDefTemplate () { }

View File

@@ -0,0 +1,106 @@
// 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 _IGESGraph_LineFontDefTemplate_HeaderFile
#define _IGESGraph_LineFontDefTemplate_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <IGESData_LineFontEntity.hxx>
class IGESBasic_SubfigureDef;
class IGESGraph_LineFontDefTemplate;
DEFINE_STANDARD_HANDLE(IGESGraph_LineFontDefTemplate, IGESData_LineFontEntity)
//! defines IGESLineFontDefTemplate, Type <304> Form <1>
//! in package IGESGraph
//!
//! Line Font can be defined as a repetition od Template figure
//! that is displayed at regularly spaced locations along a
//! planer anchoring curve. The anchoring curve itself has
//! no visual purpose.
class IGESGraph_LineFontDefTemplate : public IGESData_LineFontEntity
{
public:
Standard_EXPORT IGESGraph_LineFontDefTemplate();
//! This method is used to set the fields of the class
//! LineFontDefTemplate
//! - anOrientation : Orientation of Template figure on
//! anchoring curve
//! - aTemplate : SubfigureDef entity used as Template figure
//! - aDistance : Distance between the neighbouring Template
//! figures
//! - aScale : Scale factor applied to the Template figure
Standard_EXPORT void Init (const Standard_Integer anOrientation, const Handle(IGESBasic_SubfigureDef)& aTemplate, const Standard_Real aDistance, const Standard_Real aScale);
//! if return value = 0, Each Template display is oriented by aligning
//! the axis of the SubfigureDef with the axis of
//! the definition space of the anchoring curve.
//! = 1, Each Template display is oriented by aligning
//! X-axis of the SubfigureDef with the tangent
//! vector of the anchoring curve at the point of
//! incidence of the curve and the origin of
//! subfigure.
//! Similarly Z-axis is aligned.
Standard_EXPORT Standard_Integer Orientation() const;
//! returns SubfigureDef as the Entity used as Template figure.
Standard_EXPORT Handle(IGESBasic_SubfigureDef) TemplateEntity() const;
//! returns the Distance between any two Template figures on the
//! anchoring curve.
Standard_EXPORT Standard_Real Distance() const;
//! returns the Scaling factor applied to SubfigureDef to form
//! Template figure.
Standard_EXPORT Standard_Real Scale() const;
DEFINE_STANDARD_RTTI(IGESGraph_LineFontDefTemplate,IGESData_LineFontEntity)
protected:
private:
Standard_Integer theOrientation;
Handle(IGESBasic_SubfigureDef) theTemplateEntity;
Standard_Real theDistance;
Standard_Real theScale;
};
#endif // _IGESGraph_LineFontDefTemplate_HeaderFile

View File

@@ -1,68 +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 LineFontPredefined from IGESGraph inherits IGESEntity
---Purpose: defines IGESLineFontPredefined, Type <406> Form <19>
-- in package IGESGraph
--
-- Provides the ability to specify a line font pattern
-- from a predefined list rather than from
-- Directory Entry Field 4
uses Integer -- no one specific type
is
Create returns LineFontPredefined;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
aLineFontPatternCode : Integer);
---Purpose : This method is used to set the fields of the class
-- LineFontPredefined
-- - nbProps : Number of property values (NP = 1)
-- - aLineFontPatternCode : Line Font Pattern Code
-- Specific Access Methods : According to each type of Entity
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>
LineFontPatternCode (me) returns Integer;
---Purpose : returns the Line Font Pattern Code of <me>
fields
--
-- Class : IGESGraph_LineFontPredefined
--
-- Purpose : Declaration of the variables specific to a
-- LineFontPredefined property.
--
-- Reminder : A LineFontPredefined property is defined by :
-- - Number of property values
-- - Line Font Pattern Code
--
theNbPropertyValues : Integer;
theLineFontPatternCode : Integer;
end LineFontPredefined;

View File

@@ -16,7 +16,8 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_LineFontPredefined.ixx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <Standard_Type.hxx>
IGESGraph_LineFontPredefined::IGESGraph_LineFontPredefined () { }

View File

@@ -0,0 +1,81 @@
// 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 _IGESGraph_LineFontPredefined_HeaderFile
#define _IGESGraph_LineFontPredefined_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESGraph_LineFontPredefined;
DEFINE_STANDARD_HANDLE(IGESGraph_LineFontPredefined, IGESData_IGESEntity)
//! defines IGESLineFontPredefined, Type <406> Form <19>
//! in package IGESGraph
//!
//! Provides the ability to specify a line font pattern
//! from a predefined list rather than from
//! Directory Entry Field 4
class IGESGraph_LineFontPredefined : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_LineFontPredefined();
//! This method is used to set the fields of the class
//! LineFontPredefined
//! - nbProps : Number of property values (NP = 1)
//! - aLineFontPatternCode : Line Font Pattern Code
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Integer aLineFontPatternCode);
//! returns the number of property values in <me>
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns the Line Font Pattern Code of <me>
Standard_EXPORT Standard_Integer LineFontPatternCode() const;
DEFINE_STANDARD_RTTI(IGESGraph_LineFontPredefined,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer theLineFontPatternCode;
};
#endif // _IGESGraph_LineFontPredefined_HeaderFile

View File

@@ -1,85 +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 NominalSize from IGESGraph inherits IGESEntity
---Purpose: defines IGESNominalSize, Type <406> Form <13>
-- in package IGESGraph
--
-- Specifies a value, a name, and optionally a
-- reference to an engineering standard
uses
HAsciiString from TCollection
is
Create returns NominalSize;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
aNominalSizeValue : Real;
aNominalSizeName : HAsciiString from TCollection;
aStandardName : HAsciiString from TCollection);
---Purpose : This method is used to set the fields of the class
-- NominalSize
-- - nbProps : Number of property values (2 or 3)
-- - aNominalSizeValue : NominalSize Value
-- - aNominalSizeName : NominalSize Name
-- - aStandardName : Name of relevant engineering standard
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>
NominalSizeValue (me) returns Real;
---Purpose : returns the value of <me>
NominalSizeName (me) returns HAsciiString from TCollection;
---Purpose : returns the name of <me>
HasStandardName (me) returns Boolean;
---Purpose : returns True if an engineering Standard is defined for <me>
-- else, returns False
StandardName (me) returns HAsciiString from TCollection;
---Purpose : returns the name of the relevant engineering standard of <me>
fields
--
-- Class : IGESGraph_NominalSize
--
-- Purpose : Declaration of the variables specific to a Nominal Size.
--
-- Reminder : A Nominal Size is defined by :
-- - Number of property values
-- - Value
-- - Name
-- - Name of relevant engineering standard
--
theNbPropertyValues : Integer;
theNominalSizeValue : Real;
theNominalSizeName : HAsciiString from TCollection;
theStandardName : HAsciiString from TCollection;
end NominalSize;

View File

@@ -16,8 +16,9 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_NominalSize.ixx>
#include <IGESGraph_NominalSize.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IGESGraph_NominalSize::IGESGraph_NominalSize () { }

View File

@@ -0,0 +1,97 @@
// 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 _IGESGraph_NominalSize_HeaderFile
#define _IGESGraph_NominalSize_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class TCollection_HAsciiString;
class IGESGraph_NominalSize;
DEFINE_STANDARD_HANDLE(IGESGraph_NominalSize, IGESData_IGESEntity)
//! defines IGESNominalSize, Type <406> Form <13>
//! in package IGESGraph
//!
//! Specifies a value, a name, and optionally a
//! reference to an engineering standard
class IGESGraph_NominalSize : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_NominalSize();
//! This method is used to set the fields of the class
//! NominalSize
//! - nbProps : Number of property values (2 or 3)
//! - aNominalSizeValue : NominalSize Value
//! - aNominalSizeName : NominalSize Name
//! - aStandardName : Name of relevant engineering standard
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Real aNominalSizeValue, const Handle(TCollection_HAsciiString)& aNominalSizeName, const Handle(TCollection_HAsciiString)& aStandardName);
//! returns the number of property values in <me>
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns the value of <me>
Standard_EXPORT Standard_Real NominalSizeValue() const;
//! returns the name of <me>
Standard_EXPORT Handle(TCollection_HAsciiString) NominalSizeName() const;
//! returns True if an engineering Standard is defined for <me>
//! else, returns False
Standard_EXPORT Standard_Boolean HasStandardName() const;
//! returns the name of the relevant engineering standard of <me>
Standard_EXPORT Handle(TCollection_HAsciiString) StandardName() const;
DEFINE_STANDARD_RTTI(IGESGraph_NominalSize,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Real theNominalSizeValue;
Handle(TCollection_HAsciiString) theNominalSizeName;
Handle(TCollection_HAsciiString) theStandardName;
};
#endif // _IGESGraph_NominalSize_HeaderFile

View File

@@ -1,71 +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 Pick from IGESGraph inherits IGESEntity
---Purpose: defines IGESPick, Type <406> Form <21>
-- in package IGESGraph
--
-- Attaches information that an entity may be picked
-- by whatever pick device is used in the receiving
-- system
uses Integer -- no one specific type
is
Create returns Pick;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
aPickStatus : Integer);
---Purpose : This method is used to set the fields of the class Pick
-- - nbProps : Number of property values (NP = 1)
-- - aPickStatus : Pick Flag
-- Specific Access Methods : According to each type of Entity
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>.
PickFlag(me) returns Integer;
---Purpose : returns 0 if <me> is pickable(default),
-- 1 if <me> is not pickable.
IsPickable(me) returns Boolean;
---Purpose : returns True if thePick is 0.
fields
--
-- Class : IGESGraph_Pick
--
-- Purpose : Declaration of the variables specific to a Pick property.
--
-- Reminder : A Pick property is defined by :
-- - Number of property values
-- - Flag 0 = entity is pickable(default)
-- 1 = entity is not pickable
--
theNbPropertyValues : Integer;
thePick : Integer;
end Pick;

View File

@@ -16,7 +16,8 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_Pick.ixx>
#include <IGESGraph_Pick.hxx>
#include <Standard_Type.hxx>
IGESGraph_Pick::IGESGraph_Pick () { }

View File

@@ -0,0 +1,85 @@
// 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 _IGESGraph_Pick_HeaderFile
#define _IGESGraph_Pick_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class IGESGraph_Pick;
DEFINE_STANDARD_HANDLE(IGESGraph_Pick, IGESData_IGESEntity)
//! defines IGESPick, Type <406> Form <21>
//! in package IGESGraph
//!
//! Attaches information that an entity may be picked
//! by whatever pick device is used in the receiving
//! system
class IGESGraph_Pick : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_Pick();
//! This method is used to set the fields of the class Pick
//! - nbProps : Number of property values (NP = 1)
//! - aPickStatus : Pick Flag
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Integer aPickStatus);
//! returns the number of property values in <me>.
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns 0 if <me> is pickable(default),
//! 1 if <me> is not pickable.
Standard_EXPORT Standard_Integer PickFlag() const;
//! returns True if thePick is 0.
Standard_EXPORT Standard_Boolean IsPickable() const;
DEFINE_STANDARD_RTTI(IGESGraph_Pick,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer thePick;
};
#endif // _IGESGraph_Pick_HeaderFile

View File

@@ -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 IGESGraph inherits Protocol from IGESData
---Purpose : Description of Protocol for IGESGraph
uses Type, Protocol from Interface
is
Create returns Protocol from IGESGraph;
NbResources (me) returns Integer is redefined;
---Purpose : Gives the count of Resource Protocol. Here, one
-- (Protocol from IGESBasic)
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;

View File

@@ -11,25 +11,26 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESGraph_Protocol.ixx>
#include <IGESGraph_LineFontDefPattern.hxx>
#include <IGESGraph_Color.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_DefinitionLevel.hxx>
#include <IGESGraph_LineFontDefTemplate.hxx>
#include <IGESGraph_DrawingSize.hxx>
#include <IGESGraph_NominalSize.hxx>
#include <IGESGraph_DrawingUnits.hxx>
#include <IGESGraph_Pick.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <IGESGraph_HighLight.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <IGESGraph_IntercharacterSpacing.hxx>
#include <IGESGraph_UniformRectGrid.hxx>
#include <IGESBasic.hxx>
#include <IGESBasic_Protocol.hxx>
#include <IGESGraph_Color.hxx>
#include <IGESGraph_DefinitionLevel.hxx>
#include <IGESGraph_DrawingSize.hxx>
#include <IGESGraph_DrawingUnits.hxx>
#include <IGESGraph_HighLight.hxx>
#include <IGESGraph_IntercharacterSpacing.hxx>
#include <IGESGraph_LineFontDefPattern.hxx>
#include <IGESGraph_LineFontDefTemplate.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_NominalSize.hxx>
#include <IGESGraph_Pick.hxx>
#include <IGESGraph_Protocol.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <IGESGraph_UniformRectGrid.hxx>
#include <Interface_Protocol.hxx>
#include <Standard_Type.hxx>
static int deja = 0;
static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,

View 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 _IGESGraph_Protocol_HeaderFile
#define _IGESGraph_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 IGESGraph_Protocol;
DEFINE_STANDARD_HANDLE(IGESGraph_Protocol, IGESData_Protocol)
//! Description of Protocol for IGESGraph
class IGESGraph_Protocol : public IGESData_Protocol
{
public:
Standard_EXPORT IGESGraph_Protocol();
//! Gives the count of Resource Protocol. Here, one
//! (Protocol from IGESBasic)
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(IGESGraph_Protocol,IGESData_Protocol)
protected:
private:
};
#endif // _IGESGraph_Protocol_HeaderFile

View File

@@ -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 IGESGraph inherits ReadWriteModule from IGESData
---Purpose : Defines Graph File Access Module for IGESGraph (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 IGESGraph;
---Purpose : Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
CaseIGES (me; typenum, formnum : Integer) returns Integer;
---Purpose : Defines Case Numbers for Entities of IGESGraph
ReadOwnParams (me; CN : Integer; ent : IGESEntity;
IR : IGESReaderData; PR : in out ParamReader)
raises DomainError;
---Purpose : Reads own parameters from file for an Entity of IGESGraph
WriteOwnParams (me; CN : Integer; ent : IGESEntity;
IW : in out IGESWriter);
---Purpose : Writes own parameters to IGESWriter
end ReadWriteModule;

View File

@@ -11,9 +11,11 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESGraph_ReadWriteModule.ixx>
#include <Interface_Macros.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESData_IGESReaderData.hxx>
#include <IGESData_IGESWriter.hxx>
#include <IGESData_ParamReader.hxx>
#include <IGESGraph_Color.hxx>
#include <IGESGraph_DefinitionLevel.hxx>
#include <IGESGraph_DrawingSize.hxx>
@@ -21,14 +23,13 @@
#include <IGESGraph_HighLight.hxx>
#include <IGESGraph_IntercharacterSpacing.hxx>
#include <IGESGraph_LineFontDefPattern.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_LineFontDefTemplate.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_NominalSize.hxx>
#include <IGESGraph_Pick.hxx>
#include <IGESGraph_ReadWriteModule.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <IGESGraph_UniformRectGrid.hxx>
#include <IGESGraph_ToolColor.hxx>
#include <IGESGraph_ToolDefinitionLevel.hxx>
#include <IGESGraph_ToolDrawingSize.hxx>
@@ -36,21 +37,21 @@
#include <IGESGraph_ToolHighLight.hxx>
#include <IGESGraph_ToolIntercharacterSpacing.hxx>
#include <IGESGraph_ToolLineFontDefPattern.hxx>
#include <IGESGraph_ToolLineFontPredefined.hxx>
#include <IGESGraph_ToolLineFontDefTemplate.hxx>
#include <IGESGraph_ToolLineFontPredefined.hxx>
#include <IGESGraph_ToolNominalSize.hxx>
#include <IGESGraph_ToolPick.hxx>
#include <IGESGraph_ToolTextDisplayTemplate.hxx>
#include <IGESGraph_ToolTextFontDef.hxx>
#include <IGESGraph_ToolUniformRectGrid.hxx>
#include <IGESGraph_UniformRectGrid.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
IGESGraph_ReadWriteModule::IGESGraph_ReadWriteModule () { }

View 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 _IGESGraph_ReadWriteModule_HeaderFile
#define _IGESGraph_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 IGESGraph_ReadWriteModule;
DEFINE_STANDARD_HANDLE(IGESGraph_ReadWriteModule, IGESData_ReadWriteModule)
//! Defines Graph File Access Module for IGESGraph (specific parts)
//! Specific actions concern : Read and Write Own Parameters of
//! an IGESEntity.
class IGESGraph_ReadWriteModule : public IGESData_ReadWriteModule
{
public:
//! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
Standard_EXPORT IGESGraph_ReadWriteModule();
//! Defines Case Numbers for Entities of IGESGraph
Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const;
//! Reads own parameters from file for an Entity of IGESGraph
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(IGESGraph_ReadWriteModule,IGESData_ReadWriteModule)
protected:
private:
};
#endif // _IGESGraph_ReadWriteModule_HeaderFile

View File

@@ -1,39 +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 IGESGraph inherits SpecificModule from IGESData
---Purpose : Defines Services attached to IGES Entities :
-- Dump & OwnCorrect, for IGESGraph
uses Messenger from Message, IGESEntity, IGESDumper
is
Create returns SpecificModule from IGESGraph;
---Purpose : Creates a SpecificModule from IGESGraph & puts it into SpecificLib
OwnDump (me; CN : Integer; ent : IGESEntity;
dumper : IGESDumper; S : Messenger from Message; own : Integer);
---Purpose : Specific Dump (own parameters) for IGESGraph
OwnCorrect (me; CN : Integer; ent : IGESEntity)
returns Boolean is redefined;
---Purpose : Performs non-ambiguous Corrections on Entities which support
-- them (DrawingSize,DrawingUnits,HighLight,IntercharacterSpacing,
-- LineFontPredefined,NominalSize,Pick,UniformRectGrid)
end SpecificModule;

View File

@@ -11,9 +11,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESGraph_SpecificModule.ixx>
#include <Interface_Macros.hxx>
#include <IGESData_IGESDumper.hxx>
#include <IGESData_IGESEntity.hxx>
#include <IGESGraph_Color.hxx>
#include <IGESGraph_DefinitionLevel.hxx>
#include <IGESGraph_DrawingSize.hxx>
@@ -21,14 +21,13 @@
#include <IGESGraph_HighLight.hxx>
#include <IGESGraph_IntercharacterSpacing.hxx>
#include <IGESGraph_LineFontDefPattern.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_LineFontDefTemplate.hxx>
#include <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_NominalSize.hxx>
#include <IGESGraph_Pick.hxx>
#include <IGESGraph_SpecificModule.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <IGESGraph_UniformRectGrid.hxx>
#include <IGESGraph_ToolColor.hxx>
#include <IGESGraph_ToolDefinitionLevel.hxx>
#include <IGESGraph_ToolDrawingSize.hxx>
@@ -36,21 +35,21 @@
#include <IGESGraph_ToolHighLight.hxx>
#include <IGESGraph_ToolIntercharacterSpacing.hxx>
#include <IGESGraph_ToolLineFontDefPattern.hxx>
#include <IGESGraph_ToolLineFontPredefined.hxx>
#include <IGESGraph_ToolLineFontDefTemplate.hxx>
#include <IGESGraph_ToolLineFontPredefined.hxx>
#include <IGESGraph_ToolNominalSize.hxx>
#include <IGESGraph_ToolPick.hxx>
#include <IGESGraph_ToolTextDisplayTemplate.hxx>
#include <IGESGraph_ToolTextFontDef.hxx>
#include <IGESGraph_ToolUniformRectGrid.hxx>
#include <IGESGraph_UniformRectGrid.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
IGESGraph_SpecificModule::IGESGraph_SpecificModule() { }

View File

@@ -0,0 +1,76 @@
// 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 _IGESGraph_SpecificModule_HeaderFile
#define _IGESGraph_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 IGESGraph_SpecificModule;
DEFINE_STANDARD_HANDLE(IGESGraph_SpecificModule, IGESData_SpecificModule)
//! Defines Services attached to IGES Entities :
//! Dump & OwnCorrect, for IGESGraph
class IGESGraph_SpecificModule : public IGESData_SpecificModule
{
public:
//! Creates a SpecificModule from IGESGraph & puts it into SpecificLib
Standard_EXPORT IGESGraph_SpecificModule();
//! Specific Dump (own parameters) for IGESGraph
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 (DrawingSize,DrawingUnits,HighLight,IntercharacterSpacing,
//! LineFontPredefined,NominalSize,Pick,UniformRectGrid)
Standard_EXPORT virtual Standard_Boolean OwnCorrect (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(IGESGraph_SpecificModule,IGESData_SpecificModule)
protected:
private:
};
#endif // _IGESGraph_SpecificModule_HeaderFile

View File

@@ -1,178 +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 TextDisplayTemplate from IGESGraph inherits IGESEntity
---Purpose: defines IGES TextDisplayTemplate Entity,
-- Type <312>, form <0, 1> in package IGESGraph
--
-- Used to set parameters for display of information
-- which has been logically included in another entity
-- as a parameter value
uses
TextFontDef from IGESGraph,
Pnt from gp,
XYZ from gp
is
Create returns TextDisplayTemplate;
-- specific for the entity
Init (me : mutable;
aWidth : Real;
aHeight : Real;
aFontCode : Integer;
aFontEntity : TextFontDef;
aSlantAngle : Real;
aRotationAngle : Real;
aMirrorFlag : Integer;
aRotationFlag : Integer;
aCorner : XYZ);
---Purpose : This method is used to set the fields of the class
-- TextDisplayTemplate
-- - aWidth : Character box width
-- - aHeight : Character box height
-- - afontCode : Font code
-- - aFontEntity : Text Font Definition Entity
-- - aSlantAngle : Slant angle
-- - aRotationAngle : Rotation angle
-- - aMirrorFlag : Mirror Flag
-- - aRotationFlag : Rotate internal text flag
-- - aCorner : Lower left corner coordinates(Form No. 0),
-- Increments from coordinates (Form No. 1)
SetIncremental (me : mutable; mode : Boolean);
---Purpose : Sets <me> to be Incremental (Form 1) if <mode> is True,
-- or Basolute (Form 0) else
IsIncremental (me) returns Boolean;
---Purpose : returns True if entity is Incremental (Form 1).
-- False if entity is Absolute (Form 0).
BoxWidth (me) returns Real;
---Purpose : returns Character Box Width.
BoxHeight (me) returns Real;
---Purpose : returns Character Box Height.
IsFontEntity (me) returns Boolean;
---Purpose : returns False if theFontEntity is Null, True otherwise.
FontCode (me) returns Integer;
---Purpose : returns the font code.
FontEntity (me) returns TextFontDef;
---Purpose : returns Text Font Definition Entity used to define the font.
SlantAngle (me) returns Real;
---Purpose : returns slant angle of character in radians.
RotationAngle (me) returns Real;
---Purpose : returns Rotation angle of text block in radians.
MirrorFlag (me) returns Integer;
---Purpose : returns Mirror flag
-- Mirror flag : 0 = no mirroring.
-- 1 = mirror axis perpendicular to text base line.
-- 2 = mirror axis is text base line.
RotateFlag (me) returns Integer;
---Purpose : returns Rotate internal text flag.
-- Rotate internal text flag : 0 = text horizontal.
-- 1 = text vertical.
StartingCorner (me) returns Pnt;
---Purpose : If IsIncremental() returns False,
-- gets coordinates of lower left corner
-- of first character box.
-- If IsIncremental() returns True,
-- gets increments from X, Y, Z coordinates
-- found in parent entity.
TransformedStartingCorner (me) returns Pnt;
---Purpose : If IsIncremental() returns False,
-- gets coordinates of lower left corner
-- of first character box.
-- If IsIncremental() returns True,
-- gets increments from X, Y, Z coordinates
-- found in parent entity.
fields
-- Class : IGESDraw_TextDisplayTemplate
--
-- Purpose : Declaration of the variables specific to a
-- TextDisplayTemplate.
--
-- Reminder : A Text Display Template Entity is defined by :
-- - character box width,
-- - character box height,
-- - a font code or pointer to TextFontDef
-- used to define the font,
-- - slant angle of each individual character,
-- - rotation angle of text block,
-- - a mirroring axis,
-- - a rotate internal text flag,
-- - coordinates of lower left corner of first character
-- box if form number = 0, or
-- increments in corresponding coordinates found in
-- parent entity, if form number = 1
theBoxWidth : Real;
theBoxHeight : Real;
theFontCode : Integer;
-- one of the predefined font codes
theFontEntity : TextFontDef;
-- Text Font Definition Entity used to define the font
theSlantAngle : Real;
-- slant angle of each individual character
-- For horizontal text, slant angle is measured from the XT axis
-- in a counterclockwise direction.
-- For Vertical Text, it is measured from the YT axis
theRotationAngle : Real;
-- rotation angle of the text block
-- The rotation angle is applied in a counterclockwise direction about
-- the text start point. The plane of rotation is the XT,YT plane.
theMirrorFlag : Integer;
-- specifies the mirroring axis
-- Mirror flag : 0 = no mirroring
-- 1 = mirror axis perpendicular to text base line
-- 2 = mirror axis is text base line
theRotateFlag : Integer;
-- specifies whether text box is filled with horizontal text or vertical
-- text
-- Rotate internal text flag : 0 = text horizontal
-- 1 = text vertical
theCorner : XYZ;
-- theCorner specifies the coordinates of lower left corner of first
-- character box if form-number = 0.
-- If form-number = 1, it gives the increments in X, Y, Z from X, Y, Z
-- coordinates found in parent entity.
end TextDisplayTemplate;

View File

@@ -16,9 +16,12 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_TextDisplayTemplate.ixx>
#include <gp_GTrsf.hxx>
#include <gp_Pnt.hxx>
#include <gp_XYZ.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <Standard_Type.hxx>
IGESGraph_TextDisplayTemplate::IGESGraph_TextDisplayTemplate () { }

View File

@@ -0,0 +1,152 @@
// 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 _IGESGraph_TextDisplayTemplate_HeaderFile
#define _IGESGraph_TextDisplayTemplate_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Real.hxx>
#include <Standard_Integer.hxx>
#include <gp_XYZ.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class IGESGraph_TextFontDef;
class gp_XYZ;
class gp_Pnt;
class IGESGraph_TextDisplayTemplate;
DEFINE_STANDARD_HANDLE(IGESGraph_TextDisplayTemplate, IGESData_IGESEntity)
//! defines IGES TextDisplayTemplate Entity,
//! Type <312>, form <0, 1> in package IGESGraph
//!
//! Used to set parameters for display of information
//! which has been logically included in another entity
//! as a parameter value
class IGESGraph_TextDisplayTemplate : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_TextDisplayTemplate();
//! This method is used to set the fields of the class
//! TextDisplayTemplate
//! - aWidth : Character box width
//! - aHeight : Character box height
//! - afontCode : Font code
//! - aFontEntity : Text Font Definition Entity
//! - aSlantAngle : Slant angle
//! - aRotationAngle : Rotation angle
//! - aMirrorFlag : Mirror Flag
//! - aRotationFlag : Rotate internal text flag
//! - aCorner : Lower left corner coordinates(Form No. 0),
//! Increments from coordinates (Form No. 1)
Standard_EXPORT void Init (const Standard_Real aWidth, const Standard_Real aHeight, const Standard_Integer aFontCode, const Handle(IGESGraph_TextFontDef)& aFontEntity, const Standard_Real aSlantAngle, const Standard_Real aRotationAngle, const Standard_Integer aMirrorFlag, const Standard_Integer aRotationFlag, const gp_XYZ& aCorner);
//! Sets <me> to be Incremental (Form 1) if <mode> is True,
//! or Basolute (Form 0) else
Standard_EXPORT void SetIncremental (const Standard_Boolean mode);
//! returns True if entity is Incremental (Form 1).
//! False if entity is Absolute (Form 0).
Standard_EXPORT Standard_Boolean IsIncremental() const;
//! returns Character Box Width.
Standard_EXPORT Standard_Real BoxWidth() const;
//! returns Character Box Height.
Standard_EXPORT Standard_Real BoxHeight() const;
//! returns False if theFontEntity is Null, True otherwise.
Standard_EXPORT Standard_Boolean IsFontEntity() const;
//! returns the font code.
Standard_EXPORT Standard_Integer FontCode() const;
//! returns Text Font Definition Entity used to define the font.
Standard_EXPORT Handle(IGESGraph_TextFontDef) FontEntity() const;
//! returns slant angle of character in radians.
Standard_EXPORT Standard_Real SlantAngle() const;
//! returns Rotation angle of text block in radians.
Standard_EXPORT Standard_Real RotationAngle() const;
//! returns Mirror flag
//! Mirror flag : 0 = no mirroring.
//! 1 = mirror axis perpendicular to text base line.
//! 2 = mirror axis is text base line.
Standard_EXPORT Standard_Integer MirrorFlag() const;
//! returns Rotate internal text flag.
//! Rotate internal text flag : 0 = text horizontal.
//! 1 = text vertical.
Standard_EXPORT Standard_Integer RotateFlag() const;
//! If IsIncremental() returns False,
//! gets coordinates of lower left corner
//! of first character box.
//! If IsIncremental() returns True,
//! gets increments from X, Y, Z coordinates
//! found in parent entity.
Standard_EXPORT gp_Pnt StartingCorner() const;
//! If IsIncremental() returns False,
//! gets coordinates of lower left corner
//! of first character box.
//! If IsIncremental() returns True,
//! gets increments from X, Y, Z coordinates
//! found in parent entity.
Standard_EXPORT gp_Pnt TransformedStartingCorner() const;
DEFINE_STANDARD_RTTI(IGESGraph_TextDisplayTemplate,IGESData_IGESEntity)
protected:
private:
Standard_Real theBoxWidth;
Standard_Real theBoxHeight;
Standard_Integer theFontCode;
Handle(IGESGraph_TextFontDef) theFontEntity;
Standard_Real theSlantAngle;
Standard_Real theRotationAngle;
Standard_Integer theMirrorFlag;
Standard_Integer theRotateFlag;
gp_XYZ theCorner;
};
#endif // _IGESGraph_TextDisplayTemplate_HeaderFile

View File

@@ -1,178 +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 TextFontDef from IGESGraph inherits IGESEntity
---Purpose : defines IGES Text Font Definition Entity, Type <310>
-- in package IGESGraph
--
-- Used to define the appearance of characters in a text font.
-- It may be used to describe a complete font or a
-- modification to a subset of characters in another font.
uses
HAsciiString from TCollection,
HArray1OfInteger from TColStd,
HArray1OfHArray1OfInteger from IGESBasic
raises DimensionMismatch, OutOfRange
is
Create returns TextFontDef;
-- specific for the entity
Init (me : mutable;
aFontCode : Integer;
aFontName : HAsciiString;
aSupersededFont : Integer;
aSupersededEntity : TextFontDef;
aScale : Integer;
allASCIICodes : HArray1OfInteger;
allNextCharX : HArray1OfInteger;
allNextCharY : HArray1OfInteger;
allPenMotions : HArray1OfInteger;
allPenFlags : HArray1OfHArray1OfInteger;
allMovePenToX : HArray1OfHArray1OfInteger;
allMovePenToY : HArray1OfHArray1OfInteger)
raises DimensionMismatch;
---Purpose : This method is used to set the fields of the class
-- TextFontDef
-- - aFontCode : Font Code
-- - aFontName : Font Name
-- - aSupersededFont : Number of superseded font
-- - aSupersededEntity : Text Definition Entity
-- - aScale : No. of grid units = 1 text height unit
-- - allASCIICodes : ASCII codes for characters
-- - allNextCharX & Y : Grid locations of the next
-- character's origin (Integer vals)
-- - allPenMotions : No. of pen motions for the characters
-- - allPenFlags : Pen up/down flags,
-- 0 = Down (default), 1 = Up
-- - allMovePenToX & Y : Grid locations the pen will move to
-- This method initializes the fields of the class TextFontDef.
-- An exception is raised if the lengths of allASCIICodes,
-- allNextChars, allPenMotions, allPenFlags and allMovePenTo
-- are not same.
FontCode (me) returns Integer;
---Purpose : returns the font code.
FontName (me) returns HAsciiString from TCollection;
---Purpose : returns the font name.
IsSupersededFontEntity (me) returns Boolean;
---Purpose : True if this definition supersedes another
-- TextFontDefinition Entity,
-- False if it supersedes value.
SupersededFontCode (me) returns Integer;
---Purpose : returns the font number which this entity modifies.
SupersededFontEntity (me) returns TextFontDef;
---Purpose : returns the font entity which this entity modifies.
Scale (me) returns Integer;
---Purpose : returns the number of grid units which equal one text height unit.
NbCharacters (me) returns Integer;
---Purpose : returns the number of characters in this definition.
ASCIICode (me; Chnum : Integer) returns Integer
raises OutOfRange;
---Purpose : returns the ASCII code of Chnum'th character.
-- Exception OutOfRange is raised if Chnum <= 0 or Chnum > NbCharacters
NextCharOrigin (me; Chnum : Integer; NX,NY : out Integer)
raises OutOfRange;
---Purpose : returns grid location of origin of character next to Chnum'th char.
-- Exception OutOfRange is raised if Chnum <= 0 or Chnum > NbCharacters
NbPenMotions (me; Chnum : Integer) returns Integer
raises OutOfRange;
---Purpose : returns number of pen motions for Chnum'th character.
-- Exception OutOfRange is raised if Chnum <= 0 or Chnum > NbCharacters
IsPenUp (me; Chnum : Integer; Motionnum : Integer) returns Boolean
raises OutOfRange;
---Purpose : returns pen status(True if 1, False if 0) of Motionnum'th motion
-- of Chnum'th character.
-- Exception raised if Chnum <= 0 or Chnum > NbCharacters or
-- Motionnum <= 0 or Motionnum > NbPenMotions
NextPenPosition (me; Chnum : Integer; Motionnum : Integer;
IX,IY : out Integer)
raises OutOfRange;
-- returns, for Motionnum'th motion of Chnum'th character,
-- the grid location to which the pen is to move.
-- Exception raised if Chnum <= 0 or Chnum > NbCharacters or
-- Motionnum <= 0 or Motionnum > NbPenMotions
fields
-- Class : IGESDraw_TextFontDef
--
-- Purpose : Declaration of the variables specific to a TextFontDef.
--
-- Reminder : A Text Font Definition Entity is defined by :
-- - a font code,
-- - a font name,
-- - number of the font or pointer to the TextFontDef which
-- this definition supersedes,
-- - number of grid units which equal one text height unit,
-- - ASCII codes for each character in this definition,
-- - Grid locations of next character's origin, for each char
-- - number of pen motions for each character,
-- - status of pen flag for each motion of each character,
-- - Grid location to which pen is to move, for each motion
-- of each character
--
theFontCode : Integer;
theFontName : HAsciiString;
theSupersededFontCode : Integer;
theSupersededFontEntity : TextFontDef;
theScale : Integer;
theASCIICodes : HArray1OfInteger;
-- ASCII code for each character
theNextCharOriginX : HArray1OfInteger;
theNextCharOriginY : HArray1OfInteger;
-- For each character, Grid location of next character's origin
theNbPenMotions : HArray1OfInteger;
-- Number of pen motions for each character(Length = NbCharacters)
-- is (NM1 ,NM2 ....... NMn)
thePenMotions : HArray1OfHArray1OfInteger;
-- Status of Pen up/down flag for each character
-- flag : 0 = Down(Default)
-- 1 = Up
-- Note : Inner HArray1 are of lengths NM1, NM2... NMn respectively
thePenMovesToX : HArray1OfHArray1OfInteger;
thePenMovesToY : HArray1OfHArray1OfInteger;
-- For each character, Grid location to which the pen is to move
-- Note : Inner HArray1 are of lengths NM1, NM2... NMn respectively
end TextFontDef;

View File

@@ -16,8 +16,12 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_TextFontDef.ixx>
#include <IGESBasic_HArray1OfHArray1OfInteger.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IGESGraph_TextFontDef::IGESGraph_TextFontDef () { }

View File

@@ -0,0 +1,148 @@
// 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 _IGESGraph_TextFontDef_HeaderFile
#define _IGESGraph_TextFontDef_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class TCollection_HAsciiString;
class IGESBasic_HArray1OfHArray1OfInteger;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class IGESGraph_TextFontDef;
DEFINE_STANDARD_HANDLE(IGESGraph_TextFontDef, IGESData_IGESEntity)
//! defines IGES Text Font Definition Entity, Type <310>
//! in package IGESGraph
//!
//! Used to define the appearance of characters in a text font.
//! It may be used to describe a complete font or a
//! modification to a subset of characters in another font.
class IGESGraph_TextFontDef : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_TextFontDef();
//! This method is used to set the fields of the class
//! TextFontDef
//! - aFontCode : Font Code
//! - aFontName : Font Name
//! - aSupersededFont : Number of superseded font
//! - aSupersededEntity : Text Definition Entity
//! - aScale : No. of grid units = 1 text height unit
//! - allASCIICodes : ASCII codes for characters
//! - allNextCharX & Y : Grid locations of the next
//! character's origin (Integer vals)
//! - allPenMotions : No. of pen motions for the characters
//! - allPenFlags : Pen up/down flags,
//! 0 = Down (default), 1 = Up
//! - allMovePenToX & Y : Grid locations the pen will move to
//! This method initializes the fields of the class TextFontDef.
//! An exception is raised if the lengths of allASCIICodes,
//! allNextChars, allPenMotions, allPenFlags and allMovePenTo
//! are not same.
Standard_EXPORT void Init (const Standard_Integer aFontCode, const Handle(TCollection_HAsciiString)& aFontName, const Standard_Integer aSupersededFont, const Handle(IGESGraph_TextFontDef)& aSupersededEntity, const Standard_Integer aScale, const Handle(TColStd_HArray1OfInteger)& allASCIICodes, const Handle(TColStd_HArray1OfInteger)& allNextCharX, const Handle(TColStd_HArray1OfInteger)& allNextCharY, const Handle(TColStd_HArray1OfInteger)& allPenMotions, const Handle(IGESBasic_HArray1OfHArray1OfInteger)& allPenFlags, const Handle(IGESBasic_HArray1OfHArray1OfInteger)& allMovePenToX, const Handle(IGESBasic_HArray1OfHArray1OfInteger)& allMovePenToY);
//! returns the font code.
Standard_EXPORT Standard_Integer FontCode() const;
//! returns the font name.
Standard_EXPORT Handle(TCollection_HAsciiString) FontName() const;
//! True if this definition supersedes another
//! TextFontDefinition Entity,
//! False if it supersedes value.
Standard_EXPORT Standard_Boolean IsSupersededFontEntity() const;
//! returns the font number which this entity modifies.
Standard_EXPORT Standard_Integer SupersededFontCode() const;
//! returns the font entity which this entity modifies.
Standard_EXPORT Handle(IGESGraph_TextFontDef) SupersededFontEntity() const;
//! returns the number of grid units which equal one text height unit.
Standard_EXPORT Standard_Integer Scale() const;
//! returns the number of characters in this definition.
Standard_EXPORT Standard_Integer NbCharacters() const;
//! returns the ASCII code of Chnum'th character.
//! Exception OutOfRange is raised if Chnum <= 0 or Chnum > NbCharacters
Standard_EXPORT Standard_Integer ASCIICode (const Standard_Integer Chnum) const;
//! returns grid location of origin of character next to Chnum'th char.
//! Exception OutOfRange is raised if Chnum <= 0 or Chnum > NbCharacters
Standard_EXPORT void NextCharOrigin (const Standard_Integer Chnum, Standard_Integer& NX, Standard_Integer& NY) const;
//! returns number of pen motions for Chnum'th character.
//! Exception OutOfRange is raised if Chnum <= 0 or Chnum > NbCharacters
Standard_EXPORT Standard_Integer NbPenMotions (const Standard_Integer Chnum) const;
//! returns pen status(True if 1, False if 0) of Motionnum'th motion
//! of Chnum'th character.
//! Exception raised if Chnum <= 0 or Chnum > NbCharacters or
//! Motionnum <= 0 or Motionnum > NbPenMotions
Standard_EXPORT Standard_Boolean IsPenUp (const Standard_Integer Chnum, const Standard_Integer Motionnum) const;
Standard_EXPORT void NextPenPosition (const Standard_Integer Chnum, const Standard_Integer Motionnum, Standard_Integer& IX, Standard_Integer& IY) const;
DEFINE_STANDARD_RTTI(IGESGraph_TextFontDef,IGESData_IGESEntity)
protected:
private:
Standard_Integer theFontCode;
Handle(TCollection_HAsciiString) theFontName;
Standard_Integer theSupersededFontCode;
Handle(IGESGraph_TextFontDef) theSupersededFontEntity;
Standard_Integer theScale;
Handle(TColStd_HArray1OfInteger) theASCIICodes;
Handle(TColStd_HArray1OfInteger) theNextCharOriginX;
Handle(TColStd_HArray1OfInteger) theNextCharOriginY;
Handle(TColStd_HArray1OfInteger) theNbPenMotions;
Handle(IGESBasic_HArray1OfHArray1OfInteger) thePenMotions;
Handle(IGESBasic_HArray1OfHArray1OfInteger) thePenMovesToX;
Handle(IGESBasic_HArray1OfHArray1OfInteger) thePenMovesToY;
};
#endif // _IGESGraph_TextFontDef_HeaderFile

View File

@@ -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 ToolColor from IGESGraph
---Purpose : Tool to work on a Color. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses Color from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolColor;
---Purpose : Returns a ToolColor, ready to work
ReadOwnParams (me; ent : Color;
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 : Color;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : Color;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a Color <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : Color) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : Color;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : Color; entto : Color;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : Color;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolColor;

View File

@@ -16,12 +16,23 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolColor.ixx>
#include <IGESData_ParamCursor.hxx>
#include <TCollection_HAsciiString.hxx>
#include <Interface_Macros.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 <IGESGraph_Color.hxx>
#include <IGESGraph_ToolColor.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>
IGESGraph_ToolColor::IGESGraph_ToolColor () { }

View 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 _IGESGraph_ToolColor_HeaderFile
#define _IGESGraph_ToolColor_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_Color;
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 Color. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolColor
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolColor, ready to work
Standard_EXPORT IGESGraph_ToolColor();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_Color)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_Color)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a Color <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_Color)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_Color)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_Color)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Color)& entfrom, const Handle(IGESGraph_Color)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolColor_HeaderFile

View File

@@ -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 ToolDefinitionLevel from IGESGraph
---Purpose : Tool to work on a DefinitionLevel. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses DefinitionLevel from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolDefinitionLevel;
---Purpose : Returns a ToolDefinitionLevel, ready to work
ReadOwnParams (me; ent : DefinitionLevel;
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 : DefinitionLevel;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : DefinitionLevel;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a DefinitionLevel <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : DefinitionLevel) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : DefinitionLevel;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : DefinitionLevel; entto : DefinitionLevel;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : DefinitionLevel;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolDefinitionLevel;

View File

@@ -16,12 +16,23 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <Interface_Macros.hxx>
#include <IGESGraph_ToolDefinitionLevel.ixx>
#include <IGESData_ParamCursor.hxx>
#include <TColStd_HArray1OfInteger.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 <IGESGraph_DefinitionLevel.hxx>
#include <IGESGraph_ToolDefinitionLevel.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>
IGESGraph_ToolDefinitionLevel::IGESGraph_ToolDefinitionLevel () { }

View 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 _IGESGraph_ToolDefinitionLevel_HeaderFile
#define _IGESGraph_ToolDefinitionLevel_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_DefinitionLevel;
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 DefinitionLevel. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolDefinitionLevel
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolDefinitionLevel, ready to work
Standard_EXPORT IGESGraph_ToolDefinitionLevel();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_DefinitionLevel)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_DefinitionLevel)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a DefinitionLevel <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_DefinitionLevel)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_DefinitionLevel)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_DefinitionLevel)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DefinitionLevel)& entfrom, const Handle(IGESGraph_DefinitionLevel)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolDefinitionLevel_HeaderFile

View File

@@ -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 ToolDrawingSize from IGESGraph
---Purpose : Tool to work on a DrawingSize. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses DrawingSize from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolDrawingSize;
---Purpose : Returns a ToolDrawingSize, ready to work
ReadOwnParams (me; ent : DrawingSize;
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 : DrawingSize;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : DrawingSize;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a DrawingSize <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : DrawingSize) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a DrawingSize
-- (NbPropertyValues forced to 2)
DirChecker (me; ent : DrawingSize) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : DrawingSize;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : DrawingSize; entto : DrawingSize;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : DrawingSize;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolDrawingSize;

View File

@@ -16,9 +16,20 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolDrawingSize.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 <IGESGraph_DrawingSize.hxx>
#include <IGESGraph_ToolDrawingSize.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolDrawingSize::IGESGraph_ToolDrawingSize () { }

View 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 _IGESGraph_ToolDrawingSize_HeaderFile
#define _IGESGraph_ToolDrawingSize_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_DrawingSize;
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 DrawingSize. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolDrawingSize
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolDrawingSize, ready to work
Standard_EXPORT IGESGraph_ToolDrawingSize();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_DrawingSize)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_DrawingSize)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a DrawingSize <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_DrawingSize)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a DrawingSize
//! (NbPropertyValues forced to 2)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_DrawingSize)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_DrawingSize)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_DrawingSize)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingSize)& entfrom, const Handle(IGESGraph_DrawingSize)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolDrawingSize_HeaderFile

View File

@@ -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 ToolDrawingUnits from IGESGraph
---Purpose : Tool to work on a DrawingUnits. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses DrawingUnits from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolDrawingUnits;
---Purpose : Returns a ToolDrawingUnits, ready to work
ReadOwnParams (me; ent : DrawingUnits;
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 : DrawingUnits;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : DrawingUnits;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a DrawingUnits <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : DrawingUnits) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a DrawingUnits
-- (NbPropertyValues forced to 2)
DirChecker (me; ent : DrawingUnits) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : DrawingUnits;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : DrawingUnits; entto : DrawingUnits;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : DrawingUnits;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolDrawingUnits;

View File

@@ -16,12 +16,23 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolDrawingUnits.ixx>
#include <IGESData_ParamCursor.hxx>
#include <TCollection_HAsciiString.hxx>
#include <Interface_Macros.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 <IGESGraph_DrawingUnits.hxx>
#include <IGESGraph_ToolDrawingUnits.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>
IGESGraph_ToolDrawingUnits::IGESGraph_ToolDrawingUnits () { }

View 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 _IGESGraph_ToolDrawingUnits_HeaderFile
#define _IGESGraph_ToolDrawingUnits_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_DrawingUnits;
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 DrawingUnits. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolDrawingUnits
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolDrawingUnits, ready to work
Standard_EXPORT IGESGraph_ToolDrawingUnits();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_DrawingUnits)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_DrawingUnits)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a DrawingUnits <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_DrawingUnits)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a DrawingUnits
//! (NbPropertyValues forced to 2)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_DrawingUnits)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_DrawingUnits)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_DrawingUnits)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingUnits)& entfrom, const Handle(IGESGraph_DrawingUnits)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolDrawingUnits_HeaderFile

View File

@@ -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 ToolHighLight from IGESGraph
---Purpose : Tool to work on a HighLight. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses HighLight from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolHighLight;
---Purpose : Returns a ToolHighLight, ready to work
ReadOwnParams (me; ent : HighLight;
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 : HighLight;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : HighLight;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a HighLight <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : HighLight) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a HighLight
-- (NbPropertyValues forced to 1)
DirChecker (me; ent : HighLight) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : HighLight;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : HighLight; entto : HighLight;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : HighLight;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolHighLight;

View File

@@ -16,9 +16,20 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolHighLight.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 <IGESGraph_HighLight.hxx>
#include <IGESGraph_ToolHighLight.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolHighLight::IGESGraph_ToolHighLight () { }

View 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 _IGESGraph_ToolHighLight_HeaderFile
#define _IGESGraph_ToolHighLight_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_HighLight;
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 HighLight. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolHighLight
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolHighLight, ready to work
Standard_EXPORT IGESGraph_ToolHighLight();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_HighLight)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_HighLight)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a HighLight <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_HighLight)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a HighLight
//! (NbPropertyValues forced to 1)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_HighLight)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_HighLight)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_HighLight)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_HighLight)& entfrom, const Handle(IGESGraph_HighLight)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolHighLight_HeaderFile

View File

@@ -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 ToolIntercharacterSpacing from IGESGraph
---Purpose : Tool to work on a IntercharacterSpacing. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses IntercharacterSpacing from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolIntercharacterSpacing;
---Purpose : Returns a ToolIntercharacterSpacing, ready to work
ReadOwnParams (me; ent : IntercharacterSpacing;
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 : IntercharacterSpacing;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : IntercharacterSpacing;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a IntercharacterSpacing <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : IntercharacterSpacing) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a IntercharacterSpacing
-- (NbPropertyValues forced to 1)
DirChecker (me; ent : IntercharacterSpacing) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : IntercharacterSpacing;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : IntercharacterSpacing; entto : IntercharacterSpacing;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : IntercharacterSpacing;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolIntercharacterSpacing;

View File

@@ -16,9 +16,20 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolIntercharacterSpacing.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 <IGESGraph_IntercharacterSpacing.hxx>
#include <IGESGraph_ToolIntercharacterSpacing.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolIntercharacterSpacing::IGESGraph_ToolIntercharacterSpacing ()
{ }

View 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 _IGESGraph_ToolIntercharacterSpacing_HeaderFile
#define _IGESGraph_ToolIntercharacterSpacing_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_IntercharacterSpacing;
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 IntercharacterSpacing. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolIntercharacterSpacing
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolIntercharacterSpacing, ready to work
Standard_EXPORT IGESGraph_ToolIntercharacterSpacing();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_IntercharacterSpacing)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_IntercharacterSpacing)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a IntercharacterSpacing <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_IntercharacterSpacing)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a IntercharacterSpacing
//! (NbPropertyValues forced to 1)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_IntercharacterSpacing)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_IntercharacterSpacing)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_IntercharacterSpacing)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_IntercharacterSpacing)& entfrom, const Handle(IGESGraph_IntercharacterSpacing)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolIntercharacterSpacing_HeaderFile

View File

@@ -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 ToolLineFontDefPattern from IGESGraph
---Purpose : Tool to work on a LineFontDefPattern. Called by various
-- Modules (ReadWriteModule, GeneralModule, SpecificModule)
uses LineFontDefPattern from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolLineFontDefPattern;
---Purpose : Returns a ToolLineFontDefPattern, ready to work
ReadOwnParams (me; ent : LineFontDefPattern;
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 : LineFontDefPattern;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : LineFontDefPattern;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a LineFontDefPattern <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : LineFontDefPattern) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : LineFontDefPattern;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : LineFontDefPattern; entto : LineFontDefPattern;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : LineFontDefPattern;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolLineFontDefPattern;

View File

@@ -16,13 +16,24 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolLineFontDefPattern.ixx>
#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 <IGESGraph_LineFontDefPattern.hxx>
#include <IGESGraph_ToolLineFontDefPattern.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>
#include <TColStd_HArray1OfReal.hxx>
#include <IGESData_Dump.hxx>
#include <Interface_Macros.hxx>
IGESGraph_ToolLineFontDefPattern::IGESGraph_ToolLineFontDefPattern () { }

View 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 _IGESGraph_ToolLineFontDefPattern_HeaderFile
#define _IGESGraph_ToolLineFontDefPattern_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_LineFontDefPattern;
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 LineFontDefPattern. Called by various
//! Modules (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolLineFontDefPattern
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolLineFontDefPattern, ready to work
Standard_EXPORT IGESGraph_ToolLineFontDefPattern();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_LineFontDefPattern)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_LineFontDefPattern)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a LineFontDefPattern <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_LineFontDefPattern)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_LineFontDefPattern)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_LineFontDefPattern)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefPattern)& entfrom, const Handle(IGESGraph_LineFontDefPattern)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolLineFontDefPattern_HeaderFile

View File

@@ -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 ToolLineFontDefTemplate from IGESGraph
---Purpose : Tool to work on a LineFontDefTemplate. Called by various
-- Modules (ReadWriteModule, GeneralModule, SpecificModule)
uses LineFontDefTemplate from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolLineFontDefTemplate;
---Purpose : Returns a ToolLineFontDefTemplate, ready to work
ReadOwnParams (me; ent : LineFontDefTemplate;
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 : LineFontDefTemplate;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : LineFontDefTemplate;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a LineFontDefTemplate <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : LineFontDefTemplate) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : LineFontDefTemplate;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : LineFontDefTemplate; entto : LineFontDefTemplate;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : LineFontDefTemplate;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolLineFontDefTemplate;

View File

@@ -16,11 +16,22 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolLineFontDefTemplate.ixx>
#include <IGESData_ParamCursor.hxx>
#include <IGESBasic_SubfigureDef.hxx>
#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 <IGESGraph_LineFontDefTemplate.hxx>
#include <IGESGraph_ToolLineFontDefTemplate.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>
IGESGraph_ToolLineFontDefTemplate::IGESGraph_ToolLineFontDefTemplate () { }

View 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 _IGESGraph_ToolLineFontDefTemplate_HeaderFile
#define _IGESGraph_ToolLineFontDefTemplate_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_LineFontDefTemplate;
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 LineFontDefTemplate. Called by various
//! Modules (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolLineFontDefTemplate
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolLineFontDefTemplate, ready to work
Standard_EXPORT IGESGraph_ToolLineFontDefTemplate();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_LineFontDefTemplate)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_LineFontDefTemplate)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a LineFontDefTemplate <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_LineFontDefTemplate)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_LineFontDefTemplate)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_LineFontDefTemplate)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefTemplate)& entfrom, const Handle(IGESGraph_LineFontDefTemplate)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolLineFontDefTemplate_HeaderFile

View File

@@ -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 ToolLineFontPredefined from IGESGraph
---Purpose : Tool to work on a LineFontPredefined. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses LineFontPredefined from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolLineFontPredefined;
---Purpose : Returns a ToolLineFontPredefined, ready to work
ReadOwnParams (me; ent : LineFontPredefined;
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 : LineFontPredefined;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : LineFontPredefined;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a LineFontPredefined <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : LineFontPredefined) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a LineFontPredefined
-- (NbPropertyValues forced to 1)
DirChecker (me; ent : LineFontPredefined) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : LineFontPredefined;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : LineFontPredefined; entto : LineFontPredefined;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : LineFontPredefined;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolLineFontPredefined;

View File

@@ -16,9 +16,20 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolLineFontPredefined.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 <IGESGraph_LineFontPredefined.hxx>
#include <IGESGraph_ToolLineFontPredefined.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolLineFontPredefined::IGESGraph_ToolLineFontPredefined () { }

View 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 _IGESGraph_ToolLineFontPredefined_HeaderFile
#define _IGESGraph_ToolLineFontPredefined_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_LineFontPredefined;
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 LineFontPredefined. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolLineFontPredefined
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolLineFontPredefined, ready to work
Standard_EXPORT IGESGraph_ToolLineFontPredefined();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_LineFontPredefined)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_LineFontPredefined)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a LineFontPredefined <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_LineFontPredefined)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a LineFontPredefined
//! (NbPropertyValues forced to 1)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_LineFontPredefined)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_LineFontPredefined)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_LineFontPredefined)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontPredefined)& entfrom, const Handle(IGESGraph_LineFontPredefined)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolLineFontPredefined_HeaderFile

View File

@@ -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 ToolNominalSize from IGESGraph
---Purpose : Tool to work on a NominalSize. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses NominalSize from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolNominalSize;
---Purpose : Returns a ToolNominalSize, ready to work
ReadOwnParams (me; ent : NominalSize;
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 : NominalSize;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : NominalSize;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a NominalSize <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : NominalSize) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a NominalSize
-- (NbPropertyValues forced to 2 or 3 according HasStandardName)
DirChecker (me; ent : NominalSize) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : NominalSize;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : NominalSize; entto : NominalSize;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : NominalSize;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolNominalSize;

View File

@@ -16,12 +16,23 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolNominalSize.ixx>
#include <IGESData_ParamCursor.hxx>
#include <TCollection_HAsciiString.hxx>
#include <Interface_Macros.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 <IGESGraph_NominalSize.hxx>
#include <IGESGraph_ToolNominalSize.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>
IGESGraph_ToolNominalSize::IGESGraph_ToolNominalSize () { }

View 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 _IGESGraph_ToolNominalSize_HeaderFile
#define _IGESGraph_ToolNominalSize_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_NominalSize;
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 NominalSize. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolNominalSize
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolNominalSize, ready to work
Standard_EXPORT IGESGraph_ToolNominalSize();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_NominalSize)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_NominalSize)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a NominalSize <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_NominalSize)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a NominalSize
//! (NbPropertyValues forced to 2 or 3 according HasStandardName)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_NominalSize)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_NominalSize)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_NominalSize)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_NominalSize)& entfrom, const Handle(IGESGraph_NominalSize)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolNominalSize_HeaderFile

View File

@@ -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 ToolPick from IGESGraph
---Purpose : Tool to work on a Pick. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses Pick from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolPick;
---Purpose : Returns a ToolPick, ready to work
ReadOwnParams (me; ent : Pick;
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 : Pick;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : Pick;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a Pick <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : Pick) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a Pick
-- (NbPropertyValues forced to 1)
DirChecker (me; ent : Pick) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : Pick;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : Pick; entto : Pick;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : Pick;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolPick;

View File

@@ -16,9 +16,20 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolPick.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 <IGESGraph_Pick.hxx>
#include <IGESGraph_ToolPick.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolPick::IGESGraph_ToolPick () { }

View 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 _IGESGraph_ToolPick_HeaderFile
#define _IGESGraph_ToolPick_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_Pick;
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 Pick. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolPick
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolPick, ready to work
Standard_EXPORT IGESGraph_ToolPick();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_Pick)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_Pick)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a Pick <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_Pick)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a Pick
//! (NbPropertyValues forced to 1)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_Pick)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_Pick)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_Pick)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Pick)& entfrom, const Handle(IGESGraph_Pick)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolPick_HeaderFile

View File

@@ -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 ToolTextDisplayTemplate from IGESGraph
---Purpose : Tool to work on a TextDisplayTemplate. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses TextDisplayTemplate from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolTextDisplayTemplate;
---Purpose : Returns a ToolTextDisplayTemplate, ready to work
ReadOwnParams (me; ent : TextDisplayTemplate;
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 : TextDisplayTemplate;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : TextDisplayTemplate;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a TextDisplayTemplate <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : TextDisplayTemplate) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : TextDisplayTemplate;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : TextDisplayTemplate; entto : TextDisplayTemplate;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : TextDisplayTemplate;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolTextDisplayTemplate;

View File

@@ -16,15 +16,26 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolTextDisplayTemplate.ixx>
#include <IGESData_ParamCursor.hxx>
#include <gp_XYZ.hxx>
#include <gp_Pnt.hxx>
#include <gp_GTrsf.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <gp_Pnt.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 <IGESGraph_TextDisplayTemplate.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <IGESGraph_ToolTextDisplayTemplate.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>
IGESGraph_ToolTextDisplayTemplate::IGESGraph_ToolTextDisplayTemplate () { }

View 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 _IGESGraph_ToolTextDisplayTemplate_HeaderFile
#define _IGESGraph_ToolTextDisplayTemplate_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_TextDisplayTemplate;
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 TextDisplayTemplate. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolTextDisplayTemplate
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolTextDisplayTemplate, ready to work
Standard_EXPORT IGESGraph_ToolTextDisplayTemplate();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_TextDisplayTemplate)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_TextDisplayTemplate)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a TextDisplayTemplate <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_TextDisplayTemplate)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_TextDisplayTemplate)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_TextDisplayTemplate)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextDisplayTemplate)& entfrom, const Handle(IGESGraph_TextDisplayTemplate)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolTextDisplayTemplate_HeaderFile

View File

@@ -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 ToolTextFontDef from IGESGraph
---Purpose : Tool to work on a TextFontDef. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses TextFontDef from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolTextFontDef;
---Purpose : Returns a ToolTextFontDef, ready to work
ReadOwnParams (me; ent : TextFontDef;
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 : TextFontDef;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : TextFontDef;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a TextFontDef <ent>, from
-- its specific (own) parameters
DirChecker (me; ent : TextFontDef) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : TextFontDef;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : TextFontDef; entto : TextFontDef;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : TextFontDef;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolTextFontDef;

View File

@@ -16,21 +16,30 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolTextFontDef.ixx>
#include <IGESData_ParamCursor.hxx>
#include <gp_GTrsf.hxx>
#include <gp_XY.hxx>
#include <gp_Pnt2d.hxx>
#include <TCollection_HAsciiString.hxx>
#include <IGESGraph_TextFontDef.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColgp_HArray1OfXY.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <gp_XY.hxx>
#include <IGESBasic_HArray1OfHArray1OfInteger.hxx>
#include <IGESBasic_HArray1OfHArray1OfXY.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 <IGESGraph_TextFontDef.hxx>
#include <IGESGraph_ToolTextFontDef.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 <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
IGESGraph_ToolTextFontDef::IGESGraph_ToolTextFontDef () { }

View 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 _IGESGraph_ToolTextFontDef_HeaderFile
#define _IGESGraph_ToolTextFontDef_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_TextFontDef;
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 TextFontDef. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolTextFontDef
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolTextFontDef, ready to work
Standard_EXPORT IGESGraph_ToolTextFontDef();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_TextFontDef)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_TextFontDef)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a TextFontDef <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_TextFontDef)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_TextFontDef)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_TextFontDef)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextFontDef)& entfrom, const Handle(IGESGraph_TextFontDef)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolTextFontDef_HeaderFile

View File

@@ -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 ToolUniformRectGrid from IGESGraph
---Purpose : Tool to work on a UniformRectGrid. Called by various Modules
-- (ReadWriteModule, GeneralModule, SpecificModule)
uses UniformRectGrid from IGESGraph,
IGESReaderData, ParamReader, IGESWriter, EntityIterator,
DirChecker, ShareTool, Check, CopyTool, IGESDumper, Messenger from Message
raises DomainError
is
Create returns ToolUniformRectGrid;
---Purpose : Returns a ToolUniformRectGrid, ready to work
ReadOwnParams (me; ent : UniformRectGrid;
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 : UniformRectGrid;
IW : in out IGESWriter) is static;
---Purpose : Writes own parameters to IGESWriter
OwnShared (me; ent : UniformRectGrid;
iter : in out EntityIterator) is static;
---Purpose : Lists the Entities shared by a UniformRectGrid <ent>, from
-- its specific (own) parameters
OwnCorrect (me; ent : UniformRectGrid) returns Boolean is static;
---Purpose : Sets automatic unambiguous Correction on a UniformRectGrid
-- (NbPropertyValues forced to 9)
DirChecker (me; ent : UniformRectGrid) returns DirChecker is static;
---Purpose : Returns specific DirChecker
OwnCheck (me; ent : UniformRectGrid;
shares : ShareTool; ach : in out Check) is static;
---Purpose : Performs Specific Semantic Check
OwnCopy (me; entfrom : UniformRectGrid; entto : UniformRectGrid;
TC : in out CopyTool) is static;
---Purpose : Copies Specific Parameters
OwnDump (me; ent : UniformRectGrid;
dumper : IGESDumper; S : Messenger from Message; own : Integer)
is static;
---Purpose : Dump of Specific Parameters
end ToolUniformRectGrid;

View File

@@ -16,13 +16,24 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_ToolUniformRectGrid.ixx>
#include <IGESData_ParamCursor.hxx>
#include <gp_XY.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <gp_XY.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 <IGESGraph_ToolUniformRectGrid.hxx>
#include <IGESGraph_UniformRectGrid.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESGraph_ToolUniformRectGrid::IGESGraph_ToolUniformRectGrid () { }

View 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 _IGESGraph_ToolUniformRectGrid_HeaderFile
#define _IGESGraph_ToolUniformRectGrid_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESGraph_UniformRectGrid;
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 UniformRectGrid. Called by various Modules
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESGraph_ToolUniformRectGrid
{
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolUniformRectGrid, ready to work
Standard_EXPORT IGESGraph_ToolUniformRectGrid();
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
Standard_EXPORT void ReadOwnParams (const Handle(IGESGraph_UniformRectGrid)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESGraph_UniformRectGrid)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a UniformRectGrid <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESGraph_UniformRectGrid)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a UniformRectGrid
//! (NbPropertyValues forced to 9)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESGraph_UniformRectGrid)& ent) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESGraph_UniformRectGrid)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESGraph_UniformRectGrid)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESGraph_UniformRectGrid)& entfrom, const Handle(IGESGraph_UniformRectGrid)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESGraph_ToolUniformRectGrid_HeaderFile

View File

@@ -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 UniformRectGrid from IGESGraph inherits IGESEntity
---Purpose: defines IGESUniformRectGrid, Type <406> Form <22>
-- in package IGESGraph
--
-- Stores sufficient information for the creation of
-- a uniform rectangular grid within a drawing
uses
XY from gp,
Pnt2d from gp,
Vec2d from gp
is
Create returns UniformRectGrid;
-- Specific Methods pertaining to the class
Init (me : mutable;
nbProps : Integer;
finite : Integer;
line : Integer;
weighted : Integer;
aGridPoint : XY;
aGridSpacing : XY;
pointsX : Integer;
pointsY : Integer);
---Purpose : This method is used to set the fields of the class
-- UniformRectGrid
-- - nbProps : Number of property values (NP = 9)
-- - finite : Finite/Infinite grid flag
-- - line : Line/Point grid flag
-- - weighted : Weighted/Unweighted grid flag
-- - aGridPoint : Point on the grid
-- - aGridSpacing : Grid spacing
-- - pointsX : No. of points/lines in X Direction
-- - pointsY : No. of points/lines in Y Direction
NbPropertyValues (me) returns Integer;
---Purpose : returns the number of property values in <me>.
IsFinite (me) returns Boolean;
---Purpose : returns False if <me> is an infinite grid,
-- True if <me> is a finite grid.
IsLine (me) returns Boolean;
---Purpose : returns False if <me> is a Point grid,
-- True if <me> is a Line grid.
IsWeighted (me) returns Boolean;
---Purpose : returns False if <me> is a Weighted grid,
-- True if <me> is not a Weighted grid.
GridPoint (me) returns Pnt2d;
---Purpose : returns coordinates of lower left corner,
-- if <me> is a finite grid,
-- coordinates of an arbitrary point,
-- if <me> is an infinite grid.
GridSpacing (me) returns Vec2d;
---Purpose : returns the grid-spacing in drawing coordinates.
NbPointsX (me) returns Integer;
---Purpose : returns the no. of points/lines in X direction
-- (only applicable if IsFinite() = 1, i.e: a finite grid).
NbPointsY (me) returns Integer;
---Purpose : returns the no. of points/lines in Y direction
-- (only applicable if IsFinite() = 1, i.e: a finite grid).
fields
--
-- Class : IGESGraph_UniformRectGrid
--
-- Purpose : Declaration of the variables specific to a
-- Uniform Rectangular Grid.
--
-- Reminder : A Uniform Rectangular Grid is defined by :
-- - Number of property values
-- - Finite/Infinite grid flag
-- - Line/Point grid flag
-- - Weighted/Unweighted grid flag
-- - Point on the grid
-- - Grid spacing
-- - No. of points/lines in X Direction
-- - No. of points/lines in Y Direction
--
theNbPropertyValues : Integer;
isItFinite : Integer;
isItLine : Integer;
isItWeighted : Integer;
theGridPoint : XY;
theGridSpacing : XY;
theNbPointsX : Integer;
theNbPointsY : Integer;
end UniformRectGrid;

View File

@@ -16,8 +16,11 @@
//--------------------------------------------------------------------
//--------------------------------------------------------------------
#include <IGESGraph_UniformRectGrid.ixx>
#include <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <gp_XY.hxx>
#include <IGESGraph_UniformRectGrid.hxx>
#include <Standard_Type.hxx>
IGESGraph_UniformRectGrid::IGESGraph_UniformRectGrid () { }

View File

@@ -0,0 +1,123 @@
// 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 _IGESGraph_UniformRectGrid_HeaderFile
#define _IGESGraph_UniformRectGrid_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <gp_XY.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class gp_XY;
class gp_Pnt2d;
class gp_Vec2d;
class IGESGraph_UniformRectGrid;
DEFINE_STANDARD_HANDLE(IGESGraph_UniformRectGrid, IGESData_IGESEntity)
//! defines IGESUniformRectGrid, Type <406> Form <22>
//! in package IGESGraph
//!
//! Stores sufficient information for the creation of
//! a uniform rectangular grid within a drawing
class IGESGraph_UniformRectGrid : public IGESData_IGESEntity
{
public:
Standard_EXPORT IGESGraph_UniformRectGrid();
//! This method is used to set the fields of the class
//! UniformRectGrid
//! - nbProps : Number of property values (NP = 9)
//! - finite : Finite/Infinite grid flag
//! - line : Line/Point grid flag
//! - weighted : Weighted/Unweighted grid flag
//! - aGridPoint : Point on the grid
//! - aGridSpacing : Grid spacing
//! - pointsX : No. of points/lines in X Direction
//! - pointsY : No. of points/lines in Y Direction
Standard_EXPORT void Init (const Standard_Integer nbProps, const Standard_Integer finite, const Standard_Integer line, const Standard_Integer weighted, const gp_XY& aGridPoint, const gp_XY& aGridSpacing, const Standard_Integer pointsX, const Standard_Integer pointsY);
//! returns the number of property values in <me>.
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns False if <me> is an infinite grid,
//! True if <me> is a finite grid.
Standard_EXPORT Standard_Boolean IsFinite() const;
//! returns False if <me> is a Point grid,
//! True if <me> is a Line grid.
Standard_EXPORT Standard_Boolean IsLine() const;
//! returns False if <me> is a Weighted grid,
//! True if <me> is not a Weighted grid.
Standard_EXPORT Standard_Boolean IsWeighted() const;
//! returns coordinates of lower left corner,
//! if <me> is a finite grid,
//! coordinates of an arbitrary point,
//! if <me> is an infinite grid.
Standard_EXPORT gp_Pnt2d GridPoint() const;
//! returns the grid-spacing in drawing coordinates.
Standard_EXPORT gp_Vec2d GridSpacing() const;
//! returns the no. of points/lines in X direction
//! (only applicable if IsFinite() = 1, i.e: a finite grid).
Standard_EXPORT Standard_Integer NbPointsX() const;
//! returns the no. of points/lines in Y direction
//! (only applicable if IsFinite() = 1, i.e: a finite grid).
Standard_EXPORT Standard_Integer NbPointsY() const;
DEFINE_STANDARD_RTTI(IGESGraph_UniformRectGrid,IGESData_IGESEntity)
protected:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer isItFinite;
Standard_Integer isItLine;
Standard_Integer isItWeighted;
gp_XY theGridPoint;
gp_XY theGridSpacing;
Standard_Integer theNbPointsX;
Standard_Integer theNbPointsY;
};
#endif // _IGESGraph_UniformRectGrid_HeaderFile