mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0024002: Overall code and build procedure refactoring -- automatic
Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl": - WOK-generated header files from inc and sources from drv are moved to src - CDL files removed - All packages are converted to nocdlpack
This commit is contained in:
94
src/IGESSelect/FILES
Normal file
94
src/IGESSelect/FILES
Normal file
@@ -0,0 +1,94 @@
|
||||
IGESSelect.cxx
|
||||
IGESSelect.hxx
|
||||
IGESSelect_Activator.cxx
|
||||
IGESSelect_Activator.hxx
|
||||
IGESSelect_AddFileComment.cxx
|
||||
IGESSelect_AddFileComment.hxx
|
||||
IGESSelect_AddGroup.cxx
|
||||
IGESSelect_AddGroup.hxx
|
||||
IGESSelect_AutoCorrect.cxx
|
||||
IGESSelect_AutoCorrect.hxx
|
||||
IGESSelect_ChangeLevelList.cxx
|
||||
IGESSelect_ChangeLevelList.hxx
|
||||
IGESSelect_ChangeLevelNumber.cxx
|
||||
IGESSelect_ChangeLevelNumber.hxx
|
||||
IGESSelect_ComputeStatus.cxx
|
||||
IGESSelect_ComputeStatus.hxx
|
||||
IGESSelect_CounterOfLevelNumber.cxx
|
||||
IGESSelect_CounterOfLevelNumber.hxx
|
||||
IGESSelect_DispPerDrawing.cxx
|
||||
IGESSelect_DispPerDrawing.hxx
|
||||
IGESSelect_DispPerSingleView.cxx
|
||||
IGESSelect_DispPerSingleView.hxx
|
||||
IGESSelect_Dumper.cxx
|
||||
IGESSelect_Dumper.hxx
|
||||
IGESSelect_EditDirPart.cxx
|
||||
IGESSelect_EditDirPart.hxx
|
||||
IGESSelect_EditHeader.cxx
|
||||
IGESSelect_EditHeader.hxx
|
||||
IGESSelect_FileModifier.hxx
|
||||
IGESSelect_FileModifier_0.cxx
|
||||
IGESSelect_FloatFormat.cxx
|
||||
IGESSelect_FloatFormat.hxx
|
||||
IGESSelect_IGESName.cxx
|
||||
IGESSelect_IGESName.hxx
|
||||
IGESSelect_IGESTypeForm.cxx
|
||||
IGESSelect_IGESTypeForm.hxx
|
||||
IGESSelect_ModelModifier.hxx
|
||||
IGESSelect_ModelModifier_0.cxx
|
||||
IGESSelect_RebuildDrawings.cxx
|
||||
IGESSelect_RebuildDrawings.hxx
|
||||
IGESSelect_RebuildGroups.cxx
|
||||
IGESSelect_RebuildGroups.hxx
|
||||
IGESSelect_RemoveCurves.cxx
|
||||
IGESSelect_RemoveCurves.hxx
|
||||
IGESSelect_SelectBasicGeom.cxx
|
||||
IGESSelect_SelectBasicGeom.hxx
|
||||
IGESSelect_SelectBypassGroup.cxx
|
||||
IGESSelect_SelectBypassGroup.hxx
|
||||
IGESSelect_SelectBypassSubfigure.cxx
|
||||
IGESSelect_SelectBypassSubfigure.hxx
|
||||
IGESSelect_SelectDrawingFrom.cxx
|
||||
IGESSelect_SelectDrawingFrom.hxx
|
||||
IGESSelect_SelectFaces.cxx
|
||||
IGESSelect_SelectFaces.hxx
|
||||
IGESSelect_SelectFromDrawing.cxx
|
||||
IGESSelect_SelectFromDrawing.hxx
|
||||
IGESSelect_SelectFromSingleView.cxx
|
||||
IGESSelect_SelectFromSingleView.hxx
|
||||
IGESSelect_SelectLevelNumber.cxx
|
||||
IGESSelect_SelectLevelNumber.hxx
|
||||
IGESSelect_SelectName.cxx
|
||||
IGESSelect_SelectName.hxx
|
||||
IGESSelect_SelectPCurves.cxx
|
||||
IGESSelect_SelectPCurves.hxx
|
||||
IGESSelect_SelectSingleViewFrom.cxx
|
||||
IGESSelect_SelectSingleViewFrom.hxx
|
||||
IGESSelect_SelectSubordinate.cxx
|
||||
IGESSelect_SelectSubordinate.hxx
|
||||
IGESSelect_SelectVisibleStatus.cxx
|
||||
IGESSelect_SelectVisibleStatus.hxx
|
||||
IGESSelect_SetGlobalParameter.cxx
|
||||
IGESSelect_SetGlobalParameter.hxx
|
||||
IGESSelect_SetLabel.cxx
|
||||
IGESSelect_SetLabel.hxx
|
||||
IGESSelect_SetVersion5.cxx
|
||||
IGESSelect_SetVersion5.hxx
|
||||
IGESSelect_SignColor.cxx
|
||||
IGESSelect_SignColor.hxx
|
||||
IGESSelect_SignLevelNumber.cxx
|
||||
IGESSelect_SignLevelNumber.hxx
|
||||
IGESSelect_SignStatus.cxx
|
||||
IGESSelect_SignStatus.hxx
|
||||
IGESSelect_SplineToBSpline.cxx
|
||||
IGESSelect_SplineToBSpline.hxx
|
||||
IGESSelect_UpdateCreationDate.cxx
|
||||
IGESSelect_UpdateCreationDate.hxx
|
||||
IGESSelect_UpdateFileName.cxx
|
||||
IGESSelect_UpdateFileName.hxx
|
||||
IGESSelect_UpdateLastChange.cxx
|
||||
IGESSelect_UpdateLastChange.hxx
|
||||
IGESSelect_ViewSorter.cxx
|
||||
IGESSelect_ViewSorter.hxx
|
||||
IGESSelect_WorkLibrary.cxx
|
||||
IGESSelect_WorkLibrary.hxx
|
@@ -1,109 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 IGESSelect
|
||||
|
||||
---Purpose : This package defines the library of the most used tools for
|
||||
-- IGES Files : Selections & Modifiers specific to the IGES norm,
|
||||
-- and the most needed converters
|
||||
|
||||
uses MMgt, TCollection, TColStd, Dico, Message,
|
||||
Geom, Interface, IFGraph, IFSelect, IGESData
|
||||
|
||||
is
|
||||
|
||||
class EditHeader;
|
||||
class EditDirPart;
|
||||
|
||||
class IGESTypeForm;
|
||||
class IGESName;
|
||||
class SignStatus;
|
||||
class SignLevelNumber;
|
||||
class SignColor;
|
||||
|
||||
class CounterOfLevelNumber;
|
||||
class ViewSorter;
|
||||
|
||||
class DispPerSingleView; -- Packets for SingleViews (+ Drawing Frame)
|
||||
class DispPerDrawing; -- Packets for Drawings
|
||||
|
||||
class SelectVisibleStatus; -- Select visible or blanked entities
|
||||
class SelectSubordinate; -- Select according Subordinate Status
|
||||
class SelectLevelNumber; -- Select according a level number
|
||||
class SelectName; -- Select according Name (Short/Name Property)
|
||||
|
||||
class SelectFromSingleView; -- Select items associated with some views
|
||||
class SelectFromDrawing; -- Select items concerned by some drawings
|
||||
class SelectSingleViewFrom; -- Pick single views attached to some items
|
||||
class SelectDrawingFrom; -- Pick drawings which concern some items
|
||||
|
||||
class SelectBypassGroup; -- Select bypassing groups
|
||||
class SelectBypassSubfigure; -- Select bypassing subfigures
|
||||
class SelectBasicGeom; -- Select basic curves3d (drops surfaces,etc)
|
||||
class SelectFaces; -- Select some geometries : Faces
|
||||
class SelectPCurves; -- Select PCurves of Faces
|
||||
|
||||
|
||||
deferred class ModelModifier instantiates
|
||||
ModelModifier from IFSelect (IGESModel from IGESData, Protocol from IGESData);
|
||||
deferred class FileModifier instantiates
|
||||
FileModifier from IFSelect (IGESWriter from IGESData);
|
||||
|
||||
class FloatFormat; -- File Modifier to control Float Format
|
||||
class AddFileComment; -- " " to add comment start lines
|
||||
|
||||
class UpdateFileName; -- Set new file name
|
||||
class UpdateCreationDate; -- Set new creation date
|
||||
class UpdateLastChange; -- Set new last change date
|
||||
class SetVersion5; -- Set the version to IGES5 (with LastChange)
|
||||
class SetGlobalParameter; -- Set the value of a global parameter
|
||||
|
||||
class AutoCorrect; -- Does the absolutely evident corrections
|
||||
class ComputeStatus; -- Recompute SubordinateStatus & UseFlag
|
||||
class RebuildDrawings; -- Rebuild drawings in transferred models
|
||||
class RebuildGroups; -- Rebuild groups in transferred models
|
||||
class AddGroup; -- Adds a Group with slected entities
|
||||
|
||||
class ChangeLevelNumber; -- Changes Level Number (single) to new value
|
||||
class ChangeLevelList; -- Changes Level List to single Level Number
|
||||
|
||||
class SplineToBSpline; -- Convert Spline(112/126) to BSpline(114/128)
|
||||
|
||||
class RemoveCurves; -- Remove Curves on Surface (141..144)
|
||||
class SetLabel; -- Sets or Clears ShortLabel
|
||||
|
||||
class WorkLibrary;
|
||||
class Activator;
|
||||
class Dumper;
|
||||
|
||||
Run;
|
||||
---Purpose : Simply gives a prompt for a conversational action on standard
|
||||
-- input/output. Returns the status of a
|
||||
|
||||
WhatIges (ent : IGESEntity from IGESData; G : Graph from Interface;
|
||||
sup : out IGESEntity from IGESData; index : out Integer)
|
||||
returns Integer;
|
||||
---Purpose : Gives a quick analysis of an IGES Entity in the context of a
|
||||
-- model (i.e. a File) described by a Graph.
|
||||
-- Returned values are :
|
||||
-- <sup> : the most meaningfull super entity, if any (else Null)
|
||||
-- <index> : meaningfull index relating to super entity, if any
|
||||
-- <returned> : a status which helps exploitation of <sup>, by
|
||||
-- giving a case
|
||||
-- (normally, types of <ent> and <sup> should suffice to
|
||||
-- known the case)
|
||||
|
||||
end IGESSelect;
|
@@ -11,19 +11,19 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect.ixx>
|
||||
|
||||
#include <IFSelect_Functions.hxx>
|
||||
#include <IFSelect_SessionPilot.hxx>
|
||||
#include <IGESSelect_Activator.hxx>
|
||||
#include <IFSelect_WorkSession.hxx>
|
||||
#include <IFSelect_ShareOut.hxx>
|
||||
#include <IGESSelect_WorkLibrary.hxx>
|
||||
|
||||
#include <IFSelect_WorkSession.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESSelect.hxx>
|
||||
#include <IGESSelect_Activator.hxx>
|
||||
#include <IGESSelect_WorkLibrary.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
void IGESSelect::Run ()
|
||||
{
|
||||
// Handle(IFSelect_BasicActivator) Activator = new IFSelect_BasicActivator;
|
||||
|
169
src/IGESSelect/IGESSelect.hxx
Normal file
169
src/IGESSelect/IGESSelect.hxx
Normal file
@@ -0,0 +1,169 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_HeaderFile
|
||||
#define _IGESSelect_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
class IGESData_IGESEntity;
|
||||
class Interface_Graph;
|
||||
class IGESSelect_EditHeader;
|
||||
class IGESSelect_EditDirPart;
|
||||
class IGESSelect_IGESTypeForm;
|
||||
class IGESSelect_IGESName;
|
||||
class IGESSelect_SignStatus;
|
||||
class IGESSelect_SignLevelNumber;
|
||||
class IGESSelect_SignColor;
|
||||
class IGESSelect_CounterOfLevelNumber;
|
||||
class IGESSelect_ViewSorter;
|
||||
class IGESSelect_DispPerSingleView;
|
||||
class IGESSelect_DispPerDrawing;
|
||||
class IGESSelect_SelectVisibleStatus;
|
||||
class IGESSelect_SelectSubordinate;
|
||||
class IGESSelect_SelectLevelNumber;
|
||||
class IGESSelect_SelectName;
|
||||
class IGESSelect_SelectFromSingleView;
|
||||
class IGESSelect_SelectFromDrawing;
|
||||
class IGESSelect_SelectSingleViewFrom;
|
||||
class IGESSelect_SelectDrawingFrom;
|
||||
class IGESSelect_SelectBypassGroup;
|
||||
class IGESSelect_SelectBypassSubfigure;
|
||||
class IGESSelect_SelectBasicGeom;
|
||||
class IGESSelect_SelectFaces;
|
||||
class IGESSelect_SelectPCurves;
|
||||
class IGESSelect_ModelModifier;
|
||||
class IGESSelect_FileModifier;
|
||||
class IGESSelect_FloatFormat;
|
||||
class IGESSelect_AddFileComment;
|
||||
class IGESSelect_UpdateFileName;
|
||||
class IGESSelect_UpdateCreationDate;
|
||||
class IGESSelect_UpdateLastChange;
|
||||
class IGESSelect_SetVersion5;
|
||||
class IGESSelect_SetGlobalParameter;
|
||||
class IGESSelect_AutoCorrect;
|
||||
class IGESSelect_ComputeStatus;
|
||||
class IGESSelect_RebuildDrawings;
|
||||
class IGESSelect_RebuildGroups;
|
||||
class IGESSelect_AddGroup;
|
||||
class IGESSelect_ChangeLevelNumber;
|
||||
class IGESSelect_ChangeLevelList;
|
||||
class IGESSelect_SplineToBSpline;
|
||||
class IGESSelect_RemoveCurves;
|
||||
class IGESSelect_SetLabel;
|
||||
class IGESSelect_WorkLibrary;
|
||||
class IGESSelect_Activator;
|
||||
class IGESSelect_Dumper;
|
||||
|
||||
|
||||
//! This package defines the library of the most used tools for
|
||||
//! IGES Files : Selections & Modifiers specific to the IGES norm,
|
||||
//! and the most needed converters
|
||||
class IGESSelect
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Simply gives a prompt for a conversational action on standard
|
||||
//! input/output. Returns the status of a
|
||||
Standard_EXPORT static void Run();
|
||||
|
||||
//! Gives a quick analysis of an IGES Entity in the context of a
|
||||
//! model (i.e. a File) described by a Graph.
|
||||
//! Returned values are :
|
||||
//! <sup> : the most meaningfull super entity, if any (else Null)
|
||||
//! <index> : meaningfull index relating to super entity, if any
|
||||
//! <returned> : a status which helps exploitation of <sup>, by
|
||||
//! giving a case
|
||||
//! (normally, types of <ent> and <sup> should suffice to
|
||||
//! known the case)
|
||||
Standard_EXPORT static Standard_Integer WhatIges (const Handle(IGESData_IGESEntity)& ent, const Interface_Graph& G, Handle(IGESData_IGESEntity)& sup, Standard_Integer& index);
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
friend class IGESSelect_EditHeader;
|
||||
friend class IGESSelect_EditDirPart;
|
||||
friend class IGESSelect_IGESTypeForm;
|
||||
friend class IGESSelect_IGESName;
|
||||
friend class IGESSelect_SignStatus;
|
||||
friend class IGESSelect_SignLevelNumber;
|
||||
friend class IGESSelect_SignColor;
|
||||
friend class IGESSelect_CounterOfLevelNumber;
|
||||
friend class IGESSelect_ViewSorter;
|
||||
friend class IGESSelect_DispPerSingleView;
|
||||
friend class IGESSelect_DispPerDrawing;
|
||||
friend class IGESSelect_SelectVisibleStatus;
|
||||
friend class IGESSelect_SelectSubordinate;
|
||||
friend class IGESSelect_SelectLevelNumber;
|
||||
friend class IGESSelect_SelectName;
|
||||
friend class IGESSelect_SelectFromSingleView;
|
||||
friend class IGESSelect_SelectFromDrawing;
|
||||
friend class IGESSelect_SelectSingleViewFrom;
|
||||
friend class IGESSelect_SelectDrawingFrom;
|
||||
friend class IGESSelect_SelectBypassGroup;
|
||||
friend class IGESSelect_SelectBypassSubfigure;
|
||||
friend class IGESSelect_SelectBasicGeom;
|
||||
friend class IGESSelect_SelectFaces;
|
||||
friend class IGESSelect_SelectPCurves;
|
||||
friend class IGESSelect_ModelModifier;
|
||||
friend class IGESSelect_FileModifier;
|
||||
friend class IGESSelect_FloatFormat;
|
||||
friend class IGESSelect_AddFileComment;
|
||||
friend class IGESSelect_UpdateFileName;
|
||||
friend class IGESSelect_UpdateCreationDate;
|
||||
friend class IGESSelect_UpdateLastChange;
|
||||
friend class IGESSelect_SetVersion5;
|
||||
friend class IGESSelect_SetGlobalParameter;
|
||||
friend class IGESSelect_AutoCorrect;
|
||||
friend class IGESSelect_ComputeStatus;
|
||||
friend class IGESSelect_RebuildDrawings;
|
||||
friend class IGESSelect_RebuildGroups;
|
||||
friend class IGESSelect_AddGroup;
|
||||
friend class IGESSelect_ChangeLevelNumber;
|
||||
friend class IGESSelect_ChangeLevelList;
|
||||
friend class IGESSelect_SplineToBSpline;
|
||||
friend class IGESSelect_RemoveCurves;
|
||||
friend class IGESSelect_SetLabel;
|
||||
friend class IGESSelect_WorkLibrary;
|
||||
friend class IGESSelect_Activator;
|
||||
friend class IGESSelect_Dumper;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_HeaderFile
|
@@ -1,36 +0,0 @@
|
||||
-- Created on: 1994-06-03
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 Activator from IGESSelect inherits Activator from IFSelect
|
||||
|
||||
---Purpose : Performs Actions specific to IGESSelect, i.e. creation of
|
||||
-- IGES Selections and Dispatches, plus dumping specific to IGES
|
||||
|
||||
uses CString, SessionPilot, ReturnStatus
|
||||
|
||||
is
|
||||
|
||||
Create returns Activator from IGESSelect;
|
||||
|
||||
|
||||
Do (me : mutable; number : Integer; pilot : SessionPilot)
|
||||
returns ReturnStatus;
|
||||
---Purpose : Executes a Command Line for IGESSelect
|
||||
|
||||
Help (me; number : Integer) returns CString;
|
||||
---Purpose : Sends a short help message for IGESSelect commands
|
||||
|
||||
end Activator;
|
@@ -11,62 +11,51 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
|
||||
#include <IGESSelect_Activator.ixx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <IFSelect_WorkSession.hxx>
|
||||
#include <IFSelect_WorkLibrary.hxx>
|
||||
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <IFSelect_IntParam.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
#include <IGESSelect_IGESTypeForm.hxx>
|
||||
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <IFSelect_PacketList.hxx>
|
||||
|
||||
#include <IGESSelect_DispPerSingleView.hxx>
|
||||
#include <IGESSelect_DispPerDrawing.hxx>
|
||||
|
||||
#include <IFSelect_SelectSignature.hxx>
|
||||
#include <IGESSelect_SelectVisibleStatus.hxx>
|
||||
#include <IGESSelect_SelectLevelNumber.hxx>
|
||||
#include <IGESSelect_SelectName.hxx>
|
||||
|
||||
#include <IGESSelect_SelectFromSingleView.hxx>
|
||||
#include <IGESSelect_SelectFromDrawing.hxx>
|
||||
#include <IGESSelect_SelectSingleViewFrom.hxx>
|
||||
#include <IGESSelect_SelectDrawingFrom.hxx>
|
||||
|
||||
#include <IGESSelect_SelectBypassGroup.hxx>
|
||||
|
||||
#include <IGESSelect_FloatFormat.hxx>
|
||||
#include <IGESSelect_UpdateCreationDate.hxx>
|
||||
#include <IGESSelect_UpdateLastChange.hxx>
|
||||
#include <IGESSelect_UpdateFileName.hxx>
|
||||
#include <IGESSelect_SetVersion5.hxx>
|
||||
#include <IGESSelect_SetGlobalParameter.hxx>
|
||||
|
||||
#include <IFSelect_SessionPilot.hxx>
|
||||
#include <IFSelect_WorkLibrary.hxx>
|
||||
#include <IFSelect_WorkSession.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <IGESSelect_Activator.hxx>
|
||||
#include <IGESSelect_AddGroup.hxx>
|
||||
#include <IGESSelect_AutoCorrect.hxx>
|
||||
#include <IGESSelect_ComputeStatus.hxx>
|
||||
#include <IGESSelect_DispPerDrawing.hxx>
|
||||
#include <IGESSelect_DispPerSingleView.hxx>
|
||||
#include <IGESSelect_FloatFormat.hxx>
|
||||
#include <IGESSelect_IGESTypeForm.hxx>
|
||||
#include <IGESSelect_RebuildDrawings.hxx>
|
||||
#include <IGESSelect_RebuildGroups.hxx>
|
||||
#include <IGESSelect_AddGroup.hxx>
|
||||
|
||||
#include <IGESSelect_SelectBypassGroup.hxx>
|
||||
#include <IGESSelect_SelectDrawingFrom.hxx>
|
||||
#include <IGESSelect_SelectFromDrawing.hxx>
|
||||
#include <IGESSelect_SelectFromSingleView.hxx>
|
||||
#include <IGESSelect_SelectLevelNumber.hxx>
|
||||
#include <IGESSelect_SelectName.hxx>
|
||||
#include <IGESSelect_SelectSingleViewFrom.hxx>
|
||||
#include <IGESSelect_SelectVisibleStatus.hxx>
|
||||
#include <IGESSelect_SetGlobalParameter.hxx>
|
||||
#include <IGESSelect_SetVersion5.hxx>
|
||||
#include <IGESSelect_SplineToBSpline.hxx>
|
||||
|
||||
#include <TColStd_HSequenceOfTransient.hxx>
|
||||
#include <IGESSelect_UpdateCreationDate.hxx>
|
||||
#include <IGESSelect_UpdateFileName.hxx>
|
||||
#include <IGESSelect_UpdateLastChange.hxx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <IGESSelect_WorkLibrary.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <TColStd_HSequenceOfTransient.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
static int initActivator = 0;
|
||||
|
||||
IGESSelect_Activator::IGESSelect_Activator ()
|
||||
|
72
src/IGESSelect/IGESSelect_Activator.hxx
Normal file
72
src/IGESSelect/IGESSelect_Activator.hxx
Normal file
@@ -0,0 +1,72 @@
|
||||
// Created on: 1994-06-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_Activator_HeaderFile
|
||||
#define _IGESSelect_Activator_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_Activator.hxx>
|
||||
#include <IFSelect_ReturnStatus.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class IFSelect_SessionPilot;
|
||||
|
||||
|
||||
class IGESSelect_Activator;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_Activator, IFSelect_Activator)
|
||||
|
||||
//! Performs Actions specific to IGESSelect, i.e. creation of
|
||||
//! IGES Selections and Dispatches, plus dumping specific to IGES
|
||||
class IGESSelect_Activator : public IFSelect_Activator
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESSelect_Activator();
|
||||
|
||||
//! Executes a Command Line for IGESSelect
|
||||
Standard_EXPORT IFSelect_ReturnStatus Do (const Standard_Integer number, const Handle(IFSelect_SessionPilot)& pilot);
|
||||
|
||||
//! Sends a short help message for IGESSelect commands
|
||||
Standard_EXPORT Standard_CString Help (const Standard_Integer number) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_Activator,IFSelect_Activator)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_Activator_HeaderFile
|
@@ -1,65 +0,0 @@
|
||||
-- Created on: 1994-08-26
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 AddFileComment from IGESSelect inherits FileModifier from IGESSelect
|
||||
|
||||
---Purpose : This class allows to add comment lines on writing an IGES File
|
||||
-- These lines are added to Start Section, instead of the only
|
||||
-- one blank line written by default.
|
||||
|
||||
uses CString, AsciiString from TCollection,
|
||||
HSequenceOfHAsciiString from TColStd,
|
||||
IGESWriter , ContextWrite
|
||||
|
||||
is
|
||||
|
||||
Create returns AddFileComment;
|
||||
---Purpose : Creates a new emoty AddFileComment. Use AddLine to complete it
|
||||
|
||||
Clear (me : mutable);
|
||||
---Purpose : Clears the list of file comment lines already stored
|
||||
|
||||
AddLine (me : mutable; line : CString);
|
||||
---Purpose : Adds a line for file comment
|
||||
-- Remark : Lines are limited to 72 useful char.s . A line of more than
|
||||
-- 72 char.s will be splited into several ones of 72 max each.
|
||||
|
||||
AddLines (me : mutable; lines : HSequenceOfHAsciiString from TColStd);
|
||||
---Purpose : Adds a list of lines for file comment
|
||||
-- Each of them must comply with demand of AddLine
|
||||
|
||||
NbLines (me) returns Integer;
|
||||
---Purpose : Returns the count of stored lines
|
||||
|
||||
Line (me; num : Integer) returns CString;
|
||||
---Purpose : Returns a stored line given its rank
|
||||
|
||||
Lines (me) returns HSequenceOfHAsciiString from TColStd;
|
||||
---Purpose : Returns the complete list of lines in once
|
||||
|
||||
Perform (me; ctx : in out ContextWrite;
|
||||
writer : in out IGESWriter);
|
||||
---Purpose : Sends the comment lines to the file (Start Section)
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns specific Label, which is
|
||||
-- "Add <nn> Comment Lines (Start Section)"
|
||||
|
||||
fields
|
||||
|
||||
thelist : HSequenceOfHAsciiString from TColStd;
|
||||
|
||||
end AddFileComment;
|
@@ -14,11 +14,15 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_AddFileComment.ixx>
|
||||
|
||||
#include <IFSelect_ContextWrite.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESSelect_AddFileComment.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
IGESSelect_AddFileComment::IGESSelect_AddFileComment ()
|
||||
{ thelist = new TColStd_HSequenceOfHAsciiString(); }
|
||||
|
||||
|
99
src/IGESSelect/IGESSelect_AddFileComment.hxx
Normal file
99
src/IGESSelect/IGESSelect_AddFileComment.hxx
Normal file
@@ -0,0 +1,99 @@
|
||||
// Created on: 1994-08-26
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_AddFileComment_HeaderFile
|
||||
#define _IGESSelect_AddFileComment_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <TColStd_HSequenceOfHAsciiString.hxx>
|
||||
#include <IGESSelect_FileModifier.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class IFSelect_ContextWrite;
|
||||
class IGESData_IGESWriter;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_AddFileComment;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_AddFileComment, IGESSelect_FileModifier)
|
||||
|
||||
//! This class allows to add comment lines on writing an IGES File
|
||||
//! These lines are added to Start Section, instead of the only
|
||||
//! one blank line written by default.
|
||||
class IGESSelect_AddFileComment : public IGESSelect_FileModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a new emoty AddFileComment. Use AddLine to complete it
|
||||
Standard_EXPORT IGESSelect_AddFileComment();
|
||||
|
||||
//! Clears the list of file comment lines already stored
|
||||
Standard_EXPORT void Clear();
|
||||
|
||||
//! Adds a line for file comment
|
||||
//! Remark : Lines are limited to 72 useful char.s . A line of more than
|
||||
//! 72 char.s will be splited into several ones of 72 max each.
|
||||
Standard_EXPORT void AddLine (const Standard_CString line);
|
||||
|
||||
//! Adds a list of lines for file comment
|
||||
//! Each of them must comply with demand of AddLine
|
||||
Standard_EXPORT void AddLines (const Handle(TColStd_HSequenceOfHAsciiString)& lines);
|
||||
|
||||
//! Returns the count of stored lines
|
||||
Standard_EXPORT Standard_Integer NbLines() const;
|
||||
|
||||
//! Returns a stored line given its rank
|
||||
Standard_EXPORT Standard_CString Line (const Standard_Integer num) const;
|
||||
|
||||
//! Returns the complete list of lines in once
|
||||
Standard_EXPORT Handle(TColStd_HSequenceOfHAsciiString) Lines() const;
|
||||
|
||||
//! Sends the comment lines to the file (Start Section)
|
||||
Standard_EXPORT void Perform (IFSelect_ContextWrite& ctx, IGESData_IGESWriter& writer) const;
|
||||
|
||||
//! Returns specific Label, which is
|
||||
//! "Add <nn> Comment Lines (Start Section)"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_AddFileComment,IGESSelect_FileModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(TColStd_HSequenceOfHAsciiString) thelist;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_AddFileComment_HeaderFile
|
@@ -1,39 +0,0 @@
|
||||
-- Created on: 1995-03-02
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1995-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 AddGroup from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Adds a Group to contain the entities designated by the
|
||||
-- Selection. If no Selection is given, nothing is done
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
IGESModel, CopyTool, ContextModif
|
||||
|
||||
is
|
||||
|
||||
Create returns AddGroup;
|
||||
---Purpose : Creates an AddGroup
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : Adds a new group
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which is
|
||||
-- "Add Group"
|
||||
|
||||
end AddGroup;
|
@@ -11,15 +11,19 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_AddGroup.ixx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESSelect_AddGroup.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_AddGroup::IGESSelect_AddGroup ()
|
||||
: IGESSelect_ModelModifier (Standard_True) { }
|
||||
|
74
src/IGESSelect/IGESSelect_AddGroup.hxx
Normal file
74
src/IGESSelect/IGESSelect_AddGroup.hxx
Normal file
@@ -0,0 +1,74 @@
|
||||
// Created on: 1995-03-02
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1995-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 _IGESSelect_AddGroup_HeaderFile
|
||||
#define _IGESSelect_AddGroup_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_AddGroup;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_AddGroup, IGESSelect_ModelModifier)
|
||||
|
||||
//! Adds a Group to contain the entities designated by the
|
||||
//! Selection. If no Selection is given, nothing is done
|
||||
class IGESSelect_AddGroup : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates an AddGroup
|
||||
Standard_EXPORT IGESSelect_AddGroup();
|
||||
|
||||
//! Specific action : Adds a new group
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which is
|
||||
//! "Add Group"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_AddGroup,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_AddGroup_HeaderFile
|
@@ -1,61 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 AutoCorrect from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Does the absolutely effective corrections on IGES Entity.
|
||||
-- That is to say : regarding the norm in details, some values
|
||||
-- have mandatory values, or set of values with constraints.
|
||||
-- When such values/constraints are univoque, they can be forced.
|
||||
-- Also nullifies items of Directory Part, Associativities, and
|
||||
-- Properties, which are not (or not longer) in <target> Model.
|
||||
--
|
||||
-- Works by calling a BasicEditor from IGESData
|
||||
-- Works with the specific IGES Services : DirChecker which
|
||||
-- allows to correct data in "Directory Part" of Entities (such
|
||||
-- as required values for status, or references to be null), and
|
||||
-- the specific IGES service OwnCorrect, which is specialised for
|
||||
-- each type of entity.
|
||||
--
|
||||
-- Remark : this does not comprise the computation of use flag or
|
||||
-- subordinate status according references, which is made by
|
||||
-- the ModelModifier class ComputeStatus.
|
||||
--
|
||||
-- The Input Selection, when present, designates the entities to
|
||||
-- be corrected. If it is not present, all the entities of the
|
||||
-- model are corrected.
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
CopyTool, IGESModel, ContextModif,
|
||||
GeneralLib, SpecificLib, IGESEntity
|
||||
|
||||
is
|
||||
|
||||
Create returns AutoCorrect;
|
||||
---Purpose : Creates an AutoCorrect.
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : corrects entities when it is absolutely
|
||||
-- obvious, i.e. non equivoque (by DirChecker and specific
|
||||
-- service OwnCorrect) : works with a protocol.
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which is
|
||||
-- "Auto-correction of IGES Entities"
|
||||
|
||||
end AutoCorrect;
|
@@ -11,12 +11,18 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_AutoCorrect.ixx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IGESData_BasicEditor.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <IGESSelect_AutoCorrect.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_AutoCorrect::IGESSelect_AutoCorrect ()
|
||||
: IGESSelect_ModelModifier (Standard_False) { }
|
||||
|
95
src/IGESSelect/IGESSelect_AutoCorrect.hxx
Normal file
95
src/IGESSelect/IGESSelect_AutoCorrect.hxx
Normal file
@@ -0,0 +1,95 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_AutoCorrect_HeaderFile
|
||||
#define _IGESSelect_AutoCorrect_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_AutoCorrect;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_AutoCorrect, IGESSelect_ModelModifier)
|
||||
|
||||
//! Does the absolutely effective corrections on IGES Entity.
|
||||
//! That is to say : regarding the norm in details, some values
|
||||
//! have mandatory values, or set of values with constraints.
|
||||
//! When such values/constraints are univoque, they can be forced.
|
||||
//! Also nullifies items of Directory Part, Associativities, and
|
||||
//! Properties, which are not (or not longer) in <target> Model.
|
||||
//!
|
||||
//! Works by calling a BasicEditor from IGESData
|
||||
//! Works with the specific IGES Services : DirChecker which
|
||||
//! allows to correct data in "Directory Part" of Entities (such
|
||||
//! as required values for status, or references to be null), and
|
||||
//! the specific IGES service OwnCorrect, which is specialised for
|
||||
//! each type of entity.
|
||||
//!
|
||||
//! Remark : this does not comprise the computation of use flag or
|
||||
//! subordinate status according references, which is made by
|
||||
//! the ModelModifier class ComputeStatus.
|
||||
//!
|
||||
//! The Input Selection, when present, designates the entities to
|
||||
//! be corrected. If it is not present, all the entities of the
|
||||
//! model are corrected.
|
||||
class IGESSelect_AutoCorrect : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates an AutoCorrect.
|
||||
Standard_EXPORT IGESSelect_AutoCorrect();
|
||||
|
||||
//! Specific action : corrects entities when it is absolutely
|
||||
//! obvious, i.e. non equivoque (by DirChecker and specific
|
||||
//! service OwnCorrect) : works with a protocol.
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which is
|
||||
//! "Auto-correction of IGES Entities"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_AutoCorrect,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_AutoCorrect_HeaderFile
|
@@ -1,87 +0,0 @@
|
||||
-- Created on: 1994-08-25
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 ChangeLevelList from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Changes Level List (in directory part) to a new single value
|
||||
-- Only entities attached to a LevelListEntity are considered
|
||||
-- If OldNumber is defined, only entities whose LevelList
|
||||
-- contains its Value are processed. Else all LevelLists are.
|
||||
--
|
||||
-- Remark : this concerns the Directory Part only. The Level List
|
||||
-- Entities themselves (their content) are not affected.
|
||||
--
|
||||
-- If NewNumber is defined (positive or zero), it gives the new
|
||||
-- value for Level Number. Else, the first value of the LevelList
|
||||
-- is set as new LevelNumber
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
IGESModel, CopyTool, ContextModif, IntParam
|
||||
|
||||
is
|
||||
|
||||
Create returns ChangeLevelList;
|
||||
---Purpose : Creates a ChangeLevelList, not yet defined
|
||||
-- (see SetOldNumber and SetNewNumber)
|
||||
|
||||
HasOldNumber (me) returns Boolean;
|
||||
---Purpose : Returns True if OldNumber is defined : then, only entities
|
||||
-- which have a LevelList which contains the value are processed.
|
||||
-- Else, all entities attached to a LevelList are.
|
||||
|
||||
OldNumber (me) returns IntParam;
|
||||
---Purpose : Returns the parameter for OldNumber. If not defined (Null
|
||||
-- Handle), it will be interpreted as "all level lists"
|
||||
|
||||
SetOldNumber (me : mutable; param : IntParam);
|
||||
---Purpose : Sets a parameter for OldNumber
|
||||
|
||||
HasNewNumber (me) returns Boolean;
|
||||
---Purpose : Returns True if NewNumber is defined : then, it gives the new
|
||||
-- value for Level Number. Else, the first value of the LevelList
|
||||
-- is used as new Level Number.
|
||||
|
||||
NewNumber (me) returns IntParam;
|
||||
---Purpose : Returns the parameter for NewNumber. If not defined (Null
|
||||
-- Handle), it will be interpreted as "new value 0"
|
||||
|
||||
SetNewNumber (me : mutable; param : IntParam);
|
||||
---Purpose : Sets a parameter for NewNumber
|
||||
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : considers selected target entities :
|
||||
-- If OldNumber is not defined, all entities attached to a
|
||||
-- Level List
|
||||
-- If OldNumber is defined (value not negative), entities with a
|
||||
-- Level List which contains this value
|
||||
-- Attaches all these entities to value given by NewNumber, or
|
||||
-- the first value of the Level List
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which begins by
|
||||
-- "Changes Level Lists containing <old>", or
|
||||
-- "Changes all Level Lists in D.E.", and ends by
|
||||
-- " to Number <new>" or " to Number = first value in List"
|
||||
|
||||
fields
|
||||
|
||||
theold : IntParam;
|
||||
thenew : IntParam;
|
||||
|
||||
end ChangeLevelList;
|
@@ -14,14 +14,20 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_ChangeLevelList.ixx>
|
||||
#include <IGESData_LevelListEntity.hxx>
|
||||
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IFSelect_IntParam.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <stdio.h>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_LevelListEntity.hxx>
|
||||
#include <IGESSelect_ChangeLevelList.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
IGESSelect_ChangeLevelList::IGESSelect_ChangeLevelList ()
|
||||
: IGESSelect_ModelModifier (Standard_True) { }
|
||||
|
||||
|
120
src/IGESSelect/IGESSelect_ChangeLevelList.hxx
Normal file
120
src/IGESSelect/IGESSelect_ChangeLevelList.hxx
Normal file
@@ -0,0 +1,120 @@
|
||||
// Created on: 1994-08-25
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_ChangeLevelList_HeaderFile
|
||||
#define _IGESSelect_ChangeLevelList_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IFSelect_IntParam;
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_ChangeLevelList;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_ChangeLevelList, IGESSelect_ModelModifier)
|
||||
|
||||
//! Changes Level List (in directory part) to a new single value
|
||||
//! Only entities attached to a LevelListEntity are considered
|
||||
//! If OldNumber is defined, only entities whose LevelList
|
||||
//! contains its Value are processed. Else all LevelLists are.
|
||||
//!
|
||||
//! Remark : this concerns the Directory Part only. The Level List
|
||||
//! Entities themselves (their content) are not affected.
|
||||
//!
|
||||
//! If NewNumber is defined (positive or zero), it gives the new
|
||||
//! value for Level Number. Else, the first value of the LevelList
|
||||
//! is set as new LevelNumber
|
||||
class IGESSelect_ChangeLevelList : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a ChangeLevelList, not yet defined
|
||||
//! (see SetOldNumber and SetNewNumber)
|
||||
Standard_EXPORT IGESSelect_ChangeLevelList();
|
||||
|
||||
//! Returns True if OldNumber is defined : then, only entities
|
||||
//! which have a LevelList which contains the value are processed.
|
||||
//! Else, all entities attached to a LevelList are.
|
||||
Standard_EXPORT Standard_Boolean HasOldNumber() const;
|
||||
|
||||
//! Returns the parameter for OldNumber. If not defined (Null
|
||||
//! Handle), it will be interpreted as "all level lists"
|
||||
Standard_EXPORT Handle(IFSelect_IntParam) OldNumber() const;
|
||||
|
||||
//! Sets a parameter for OldNumber
|
||||
Standard_EXPORT void SetOldNumber (const Handle(IFSelect_IntParam)& param);
|
||||
|
||||
//! Returns True if NewNumber is defined : then, it gives the new
|
||||
//! value for Level Number. Else, the first value of the LevelList
|
||||
//! is used as new Level Number.
|
||||
Standard_EXPORT Standard_Boolean HasNewNumber() const;
|
||||
|
||||
//! Returns the parameter for NewNumber. If not defined (Null
|
||||
//! Handle), it will be interpreted as "new value 0"
|
||||
Standard_EXPORT Handle(IFSelect_IntParam) NewNumber() const;
|
||||
|
||||
//! Sets a parameter for NewNumber
|
||||
Standard_EXPORT void SetNewNumber (const Handle(IFSelect_IntParam)& param);
|
||||
|
||||
//! Specific action : considers selected target entities :
|
||||
//! If OldNumber is not defined, all entities attached to a
|
||||
//! Level List
|
||||
//! If OldNumber is defined (value not negative), entities with a
|
||||
//! Level List which contains this value
|
||||
//! Attaches all these entities to value given by NewNumber, or
|
||||
//! the first value of the Level List
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which begins by
|
||||
//! "Changes Level Lists containing <old>", or
|
||||
//! "Changes all Level Lists in D.E.", and ends by
|
||||
//! " to Number <new>" or " to Number = first value in List"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_ChangeLevelList,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IFSelect_IntParam) theold;
|
||||
Handle(IFSelect_IntParam) thenew;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_ChangeLevelList_HeaderFile
|
@@ -1,78 +0,0 @@
|
||||
-- Created on: 1994-08-25
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 ChangeLevelNumber from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Changes Level Number (as null or single) to a new single value
|
||||
-- Entities attached to a LevelListEntity are ignored
|
||||
-- Entities considered can be, either all Entities but those
|
||||
-- attached to a LevelListEntity, or Entities attached to a
|
||||
-- specific Level Number (0 for not defined).
|
||||
--
|
||||
-- Remark : this concerns the Directory Part only. The Level List
|
||||
-- Entities themselves (their content) are not affected.
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
IGESModel, CopyTool, ContextModif, IntParam
|
||||
|
||||
is
|
||||
|
||||
Create returns ChangeLevelNumber;
|
||||
---Purpose : Creates a ChangeLevelNumber, not yet defined
|
||||
-- (see SetOldNumber and SetNewNumber)
|
||||
|
||||
HasOldNumber (me) returns Boolean;
|
||||
---Purpose : Returns True if OldNumber is defined : then, only entities
|
||||
-- attached to the value of OldNumber will be considered. Else,
|
||||
-- all entities but those attached to a Level List will be.
|
||||
|
||||
OldNumber (me) returns IntParam;
|
||||
---Purpose : Returns the parameter for OldNumber. If not defined (Null
|
||||
-- Handle), it will be interpreted as "all level numbers"
|
||||
|
||||
SetOldNumber (me : mutable; param : IntParam);
|
||||
---Purpose : Sets a parameter for OldNumber
|
||||
|
||||
NewNumber (me) returns IntParam;
|
||||
---Purpose : Returns the parameter for NewNumber. If not defined (Null
|
||||
-- Handle), it will be interpreted as "new value 0"
|
||||
|
||||
SetNewNumber (me : mutable; param : IntParam);
|
||||
---Purpose : Sets a parameter for NewNumber
|
||||
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : considers selected target entities :
|
||||
-- If OldNumber is not defined, all entities but those attached
|
||||
-- to a Level List
|
||||
-- If OldNumber is defined (value not negative), entities with a
|
||||
-- defined Level Number (can be zero)
|
||||
-- Attaches all these entities to value given by NewNumber, or
|
||||
-- zero if not defined
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which is
|
||||
-- "Changes Level Number <old> to <new>" , or
|
||||
-- "Changes all Levels Numbers positive and zero to <new>"
|
||||
|
||||
fields
|
||||
|
||||
theold : IntParam;
|
||||
thenew : IntParam;
|
||||
|
||||
end ChangeLevelNumber;
|
@@ -14,14 +14,20 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_ChangeLevelNumber.ixx>
|
||||
#include <IGESData_LevelListEntity.hxx>
|
||||
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IFSelect_IntParam.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <stdio.h>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_LevelListEntity.hxx>
|
||||
#include <IGESSelect_ChangeLevelNumber.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
IGESSelect_ChangeLevelNumber::IGESSelect_ChangeLevelNumber ()
|
||||
: IGESSelect_ModelModifier (Standard_False) { }
|
||||
|
||||
|
111
src/IGESSelect/IGESSelect_ChangeLevelNumber.hxx
Normal file
111
src/IGESSelect/IGESSelect_ChangeLevelNumber.hxx
Normal file
@@ -0,0 +1,111 @@
|
||||
// Created on: 1994-08-25
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_ChangeLevelNumber_HeaderFile
|
||||
#define _IGESSelect_ChangeLevelNumber_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IFSelect_IntParam;
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_ChangeLevelNumber;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_ChangeLevelNumber, IGESSelect_ModelModifier)
|
||||
|
||||
//! Changes Level Number (as null or single) to a new single value
|
||||
//! Entities attached to a LevelListEntity are ignored
|
||||
//! Entities considered can be, either all Entities but those
|
||||
//! attached to a LevelListEntity, or Entities attached to a
|
||||
//! specific Level Number (0 for not defined).
|
||||
//!
|
||||
//! Remark : this concerns the Directory Part only. The Level List
|
||||
//! Entities themselves (their content) are not affected.
|
||||
class IGESSelect_ChangeLevelNumber : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a ChangeLevelNumber, not yet defined
|
||||
//! (see SetOldNumber and SetNewNumber)
|
||||
Standard_EXPORT IGESSelect_ChangeLevelNumber();
|
||||
|
||||
//! Returns True if OldNumber is defined : then, only entities
|
||||
//! attached to the value of OldNumber will be considered. Else,
|
||||
//! all entities but those attached to a Level List will be.
|
||||
Standard_EXPORT Standard_Boolean HasOldNumber() const;
|
||||
|
||||
//! Returns the parameter for OldNumber. If not defined (Null
|
||||
//! Handle), it will be interpreted as "all level numbers"
|
||||
Standard_EXPORT Handle(IFSelect_IntParam) OldNumber() const;
|
||||
|
||||
//! Sets a parameter for OldNumber
|
||||
Standard_EXPORT void SetOldNumber (const Handle(IFSelect_IntParam)& param);
|
||||
|
||||
//! Returns the parameter for NewNumber. If not defined (Null
|
||||
//! Handle), it will be interpreted as "new value 0"
|
||||
Standard_EXPORT Handle(IFSelect_IntParam) NewNumber() const;
|
||||
|
||||
//! Sets a parameter for NewNumber
|
||||
Standard_EXPORT void SetNewNumber (const Handle(IFSelect_IntParam)& param);
|
||||
|
||||
//! Specific action : considers selected target entities :
|
||||
//! If OldNumber is not defined, all entities but those attached
|
||||
//! to a Level List
|
||||
//! If OldNumber is defined (value not negative), entities with a
|
||||
//! defined Level Number (can be zero)
|
||||
//! Attaches all these entities to value given by NewNumber, or
|
||||
//! zero if not defined
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which is
|
||||
//! "Changes Level Number <old> to <new>" , or
|
||||
//! "Changes all Levels Numbers positive and zero to <new>"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_ChangeLevelNumber,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IFSelect_IntParam) theold;
|
||||
Handle(IFSelect_IntParam) thenew;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_ChangeLevelNumber_HeaderFile
|
@@ -1,48 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 ComputeStatus from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Computes Status of IGES Entities for a whole IGESModel.
|
||||
-- This concerns SubordinateStatus and UseFlag, which must have
|
||||
-- some definite values according the way they are referenced.
|
||||
-- (see definitions of Logical use, Physical use, etc...)
|
||||
--
|
||||
-- Works by calling a BasicEditor from IGESData. Works on the
|
||||
-- whole produced (target) model, because computation is global.
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
IGESModel, CopyTool, ContextModif
|
||||
|
||||
is
|
||||
|
||||
Create returns ComputeStatus;
|
||||
---Purpose : Creates an ComputeStatus, which uses the system Date
|
||||
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : it first evaluates the required values for
|
||||
-- Subordinate Status and Use Flag (in Directory Part of each
|
||||
-- IGES Entity). Then it corrects them, for the whole target.
|
||||
-- Works with a Protocol. Implementation uses BasicEditor
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which is
|
||||
-- "Compute Subordinate Status and Use Flag"
|
||||
|
||||
end ComputeStatus;
|
@@ -11,12 +11,17 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_ComputeStatus.ixx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <IGESData_BasicEditor.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IGESData_BasicEditor.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <IGESSelect_ComputeStatus.hxx>
|
||||
#include <Interface_Check.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_ComputeStatus::IGESSelect_ComputeStatus ()
|
||||
: IGESSelect_ModelModifier (Standard_False) { }
|
||||
|
82
src/IGESSelect/IGESSelect_ComputeStatus.hxx
Normal file
82
src/IGESSelect/IGESSelect_ComputeStatus.hxx
Normal file
@@ -0,0 +1,82 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_ComputeStatus_HeaderFile
|
||||
#define _IGESSelect_ComputeStatus_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_ComputeStatus;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_ComputeStatus, IGESSelect_ModelModifier)
|
||||
|
||||
//! Computes Status of IGES Entities for a whole IGESModel.
|
||||
//! This concerns SubordinateStatus and UseFlag, which must have
|
||||
//! some definite values according the way they are referenced.
|
||||
//! (see definitions of Logical use, Physical use, etc...)
|
||||
//!
|
||||
//! Works by calling a BasicEditor from IGESData. Works on the
|
||||
//! whole produced (target) model, because computation is global.
|
||||
class IGESSelect_ComputeStatus : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates an ComputeStatus, which uses the system Date
|
||||
Standard_EXPORT IGESSelect_ComputeStatus();
|
||||
|
||||
//! Specific action : it first evaluates the required values for
|
||||
//! Subordinate Status and Use Flag (in Directory Part of each
|
||||
//! IGES Entity). Then it corrects them, for the whole target.
|
||||
//! Works with a Protocol. Implementation uses BasicEditor
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which is
|
||||
//! "Compute Subordinate Status and Use Flag"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_ComputeStatus,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_ComputeStatus_HeaderFile
|
@@ -1,83 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Modelistation
|
||||
-- Copyright (c) 1994-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 CounterOfLevelNumber from IGESSelect inherits SignCounter
|
||||
|
||||
---Purpose : This class gives information about Level Number. It counts
|
||||
-- entities according level number, considering also the
|
||||
-- multiple level (see the class LevelList) for which an entity
|
||||
-- is attached to each of the listed levels.
|
||||
--
|
||||
-- Data are available, as level number, or as their alphanumeric
|
||||
-- counterparts ("LEVEL nnnnnnn", " NO LEVEL", " LEVEL LIST")
|
||||
|
||||
uses Integer, Transient, MapOfTransient, HAsciiString from TCollection,
|
||||
HArray1OfInteger from TColStd, HSequenceOfInteger from TColStd,
|
||||
Messenger from Message,
|
||||
HSequenceOfTransient, InterfaceModel
|
||||
|
||||
is
|
||||
|
||||
Create (withmap : Boolean = Standard_True;
|
||||
withlist : Boolean = Standard_False)
|
||||
returns CounterOfLevelNumber;
|
||||
---Purpose : Creates a CounterOfLevelNumber, clear, ready to work
|
||||
-- <withmap> and <withlist> are transmitted to SignCounter
|
||||
|
||||
Clear (me : mutable) is redefined;
|
||||
---Purpose : Resets already memorized informations : also numeric data
|
||||
|
||||
AddSign (me : mutable; ent : Transient; model : InterfaceModel)
|
||||
is redefined;
|
||||
---Purpose : Adds an entity by considering its lrvrl number(s)
|
||||
-- A level is added both in numeric and alphanumeric form,
|
||||
-- i.e. LevelList gives "LEVEL LIST", others (no level or
|
||||
-- positive level) displays level number on 7 digits (C : %7d)
|
||||
-- Remark : an entity attached to a Level List is added for
|
||||
-- " LEVEL LIST", and for each of its constituant levels
|
||||
|
||||
AddLevel (me : mutable; ent : Transient; level : Integer);
|
||||
---Purpose : The internal action to record a new level number, positive,
|
||||
-- null (no level) or negative (level list)
|
||||
|
||||
HighestLevel (me) returns Integer;
|
||||
---Purpose : Returns the highest value found for a level number
|
||||
|
||||
NbTimesLevel (me; level : Integer) returns Integer;
|
||||
---Purpose : Returns the number of times a level is used,
|
||||
-- 0 if it has not been recorded at all
|
||||
-- <level> = 0 counts entities attached to no level
|
||||
-- <level> < 0 counts entities attached to a LevelList
|
||||
|
||||
Levels (me) returns HSequenceOfInteger;
|
||||
---Purpose : Returns the ordered list of used positive Level numbers
|
||||
|
||||
Sign (me; ent : Transient; model : InterfaceModel) returns HAsciiString is redefined;
|
||||
---Purpose : Determines and returns the value of the signature for an
|
||||
-- entity as an HAsciiString. Redefined, gives the same result
|
||||
-- as AddSign, see this method ("LEVEL LIST" or "nnnnnnn")
|
||||
|
||||
PrintCount (me; S : Messenger from Message) is redefined;
|
||||
---Purpose : Prints the counts of items (not the list) then the Highest
|
||||
-- Level Number recorded
|
||||
|
||||
fields
|
||||
|
||||
thehigh : Integer;
|
||||
thenblists : Integer;
|
||||
thelevels : HArray1OfInteger;
|
||||
|
||||
end CounterOfLevelNumber;
|
@@ -11,15 +11,19 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_CounterOfLevelNumber.ixx>
|
||||
|
||||
#include <Dico_DictionaryOfInteger.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGraph_DefinitionLevel.hxx>
|
||||
#include <Dico_DictionaryOfInteger.hxx>
|
||||
#include <IGESSelect_CounterOfLevelNumber.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
IGESSelect_CounterOfLevelNumber::IGESSelect_CounterOfLevelNumber
|
||||
(const Standard_Boolean withmap, const Standard_Boolean withlist)
|
||||
: IFSelect_SignCounter (withmap,withlist)
|
||||
|
116
src/IGESSelect/IGESSelect_CounterOfLevelNumber.hxx
Normal file
116
src/IGESSelect/IGESSelect_CounterOfLevelNumber.hxx
Normal file
@@ -0,0 +1,116 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Modelistation
|
||||
// Copyright (c) 1994-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 _IGESSelect_CounterOfLevelNumber_HeaderFile
|
||||
#define _IGESSelect_CounterOfLevelNumber_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <IFSelect_SignCounter.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TColStd_HSequenceOfInteger.hxx>
|
||||
class Standard_Transient;
|
||||
class Interface_InterfaceModel;
|
||||
class TCollection_HAsciiString;
|
||||
class Message_Messenger;
|
||||
|
||||
|
||||
class IGESSelect_CounterOfLevelNumber;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_CounterOfLevelNumber, IFSelect_SignCounter)
|
||||
|
||||
//! This class gives information about Level Number. It counts
|
||||
//! entities according level number, considering also the
|
||||
//! multiple level (see the class LevelList) for which an entity
|
||||
//! is attached to each of the listed levels.
|
||||
//!
|
||||
//! Data are available, as level number, or as their alphanumeric
|
||||
//! counterparts ("LEVEL nnnnnnn", " NO LEVEL", " LEVEL LIST")
|
||||
class IGESSelect_CounterOfLevelNumber : public IFSelect_SignCounter
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a CounterOfLevelNumber, clear, ready to work
|
||||
//! <withmap> and <withlist> are transmitted to SignCounter
|
||||
Standard_EXPORT IGESSelect_CounterOfLevelNumber(const Standard_Boolean withmap = Standard_True, const Standard_Boolean withlist = Standard_False);
|
||||
|
||||
//! Resets already memorized informations : also numeric data
|
||||
Standard_EXPORT virtual void Clear() Standard_OVERRIDE;
|
||||
|
||||
//! Adds an entity by considering its lrvrl number(s)
|
||||
//! A level is added both in numeric and alphanumeric form,
|
||||
//! i.e. LevelList gives "LEVEL LIST", others (no level or
|
||||
//! positive level) displays level number on 7 digits (C : %7d)
|
||||
//! Remark : an entity attached to a Level List is added for
|
||||
//! " LEVEL LIST", and for each of its constituant levels
|
||||
Standard_EXPORT virtual void AddSign (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) Standard_OVERRIDE;
|
||||
|
||||
//! The internal action to record a new level number, positive,
|
||||
//! null (no level) or negative (level list)
|
||||
Standard_EXPORT void AddLevel (const Handle(Standard_Transient)& ent, const Standard_Integer level);
|
||||
|
||||
//! Returns the highest value found for a level number
|
||||
Standard_EXPORT Standard_Integer HighestLevel() const;
|
||||
|
||||
//! Returns the number of times a level is used,
|
||||
//! 0 if it has not been recorded at all
|
||||
//! <level> = 0 counts entities attached to no level
|
||||
//! <level> < 0 counts entities attached to a LevelList
|
||||
Standard_EXPORT Standard_Integer NbTimesLevel (const Standard_Integer level) const;
|
||||
|
||||
//! Returns the ordered list of used positive Level numbers
|
||||
Standard_EXPORT Handle(TColStd_HSequenceOfInteger) Levels() const;
|
||||
|
||||
//! Determines and returns the value of the signature for an
|
||||
//! entity as an HAsciiString. Redefined, gives the same result
|
||||
//! as AddSign, see this method ("LEVEL LIST" or "nnnnnnn")
|
||||
Standard_EXPORT virtual Handle(TCollection_HAsciiString) Sign (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const Standard_OVERRIDE;
|
||||
|
||||
//! Prints the counts of items (not the list) then the Highest
|
||||
//! Level Number recorded
|
||||
Standard_EXPORT virtual void PrintCount (const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_CounterOfLevelNumber,IFSelect_SignCounter)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Integer thehigh;
|
||||
Standard_Integer thenblists;
|
||||
Handle(TColStd_HArray1OfInteger) thelevels;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_CounterOfLevelNumber_HeaderFile
|
@@ -1,54 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 DispPerDrawing from IGESSelect inherits Dispatch
|
||||
|
||||
---Purpose : This type of dispatch defines sets of entities attached to
|
||||
-- distinct drawings. This information is taken from attached
|
||||
-- views which appear in the Directory Part. Also Drawing Frames
|
||||
-- are considered when Drawings are part of input list.
|
||||
--
|
||||
-- Remaining data concern entities not attached to a drawing.
|
||||
|
||||
uses AsciiString from TCollection, EntityIterator, Graph, SubPartsIterator,
|
||||
ViewSorter
|
||||
|
||||
is
|
||||
|
||||
Create returns DispPerDrawing;
|
||||
---Purpose : Creates a DispPerDrawing
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns as Label, "One File per Drawing"
|
||||
|
||||
-- -- Evaluation -- --
|
||||
|
||||
Packets (me; G : Graph; packs : in out SubPartsIterator);
|
||||
---Purpose : Computes the list of produced Packets. Packets are computed
|
||||
-- by a ViewSorter (SortDrawings with also frames).
|
||||
|
||||
CanHaveRemainder (me) returns Boolean is redefined;
|
||||
---Purpose : Returns True, because of entities attached to no view.
|
||||
|
||||
Remainder (me; G : Graph) returns EntityIterator is redefined;
|
||||
---Purpose : Returns Remainder which is a set of Entities.
|
||||
-- It is supposed to be called once Packets has been called.
|
||||
|
||||
fields
|
||||
|
||||
thesorter : ViewSorter;
|
||||
|
||||
end DispPerDrawing;
|
@@ -11,13 +11,18 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_DispPerDrawing.ixx>
|
||||
|
||||
#include <IFGraph_SubPartsIterator.hxx>
|
||||
#include <IFSelect_PacketList.hxx>
|
||||
#include <IFSelect_Selection.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IFSelect_PacketList.hxx>
|
||||
#include <IGESSelect_DispPerDrawing.hxx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_DispPerDrawing::IGESSelect_DispPerDrawing ()
|
||||
{ thesorter = new IGESSelect_ViewSorter; }
|
||||
|
88
src/IGESSelect/IGESSelect_DispPerDrawing.hxx
Normal file
88
src/IGESSelect/IGESSelect_DispPerDrawing.hxx
Normal file
@@ -0,0 +1,88 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_DispPerDrawing_HeaderFile
|
||||
#define _IGESSelect_DispPerDrawing_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_Dispatch.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESSelect_ViewSorter;
|
||||
class TCollection_AsciiString;
|
||||
class Interface_Graph;
|
||||
class IFGraph_SubPartsIterator;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
class IGESSelect_DispPerDrawing;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_DispPerDrawing, IFSelect_Dispatch)
|
||||
|
||||
//! This type of dispatch defines sets of entities attached to
|
||||
//! distinct drawings. This information is taken from attached
|
||||
//! views which appear in the Directory Part. Also Drawing Frames
|
||||
//! are considered when Drawings are part of input list.
|
||||
//!
|
||||
//! Remaining data concern entities not attached to a drawing.
|
||||
class IGESSelect_DispPerDrawing : public IFSelect_Dispatch
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a DispPerDrawing
|
||||
Standard_EXPORT IGESSelect_DispPerDrawing();
|
||||
|
||||
//! Returns as Label, "One File per Drawing"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
//! Computes the list of produced Packets. Packets are computed
|
||||
//! by a ViewSorter (SortDrawings with also frames).
|
||||
Standard_EXPORT void Packets (const Interface_Graph& G, IFGraph_SubPartsIterator& packs) const;
|
||||
|
||||
//! Returns True, because of entities attached to no view.
|
||||
Standard_EXPORT virtual Standard_Boolean CanHaveRemainder() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns Remainder which is a set of Entities.
|
||||
//! It is supposed to be called once Packets has been called.
|
||||
Standard_EXPORT virtual Interface_EntityIterator Remainder (const Interface_Graph& G) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_DispPerDrawing,IFSelect_Dispatch)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESSelect_ViewSorter) thesorter;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_DispPerDrawing_HeaderFile
|
@@ -1,55 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 DispPerSingleView from IGESSelect inherits Dispatch
|
||||
|
||||
---Purpose : This type of dispatch defines sets of entities attached to
|
||||
-- distinct single views. This information appears in the
|
||||
-- Directory Part. Drawings are taken into account too,
|
||||
-- because of their frames (proper lists of annotations)
|
||||
--
|
||||
-- Remaining data concern entities not attached to a single view.
|
||||
|
||||
|
||||
uses AsciiString from TCollection, EntityIterator, Graph, SubPartsIterator,
|
||||
ViewSorter
|
||||
|
||||
is
|
||||
|
||||
Create returns DispPerSingleView;
|
||||
---Purpose : Creates a DispPerSingleView
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns as Label, "One File per single View or Drawing Frame"
|
||||
|
||||
-- -- Evaluation -- --
|
||||
|
||||
Packets (me; G : Graph; packs : in out SubPartsIterator);
|
||||
---Purpose : Computes the list of produced Packets. Packets are computed
|
||||
-- by a ViewSorter (SortSingleViews with also frames).
|
||||
|
||||
CanHaveRemainder (me) returns Boolean is redefined;
|
||||
---Purpose : Returns True, because of entities attached to no view.
|
||||
|
||||
Remainder (me; G : Graph) returns EntityIterator is redefined;
|
||||
---Purpose : Returns Remainder which is a set of Entities.
|
||||
-- It is supposed to be called once Packets has been called.
|
||||
|
||||
fields
|
||||
|
||||
thesorter : ViewSorter;
|
||||
|
||||
end DispPerSingleView;
|
@@ -11,12 +11,18 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_DispPerSingleView.ixx>
|
||||
|
||||
#include <IFGraph_SubPartsIterator.hxx>
|
||||
#include <IFSelect_PacketList.hxx>
|
||||
#include <IFSelect_Selection.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IFSelect_PacketList.hxx>
|
||||
#include <IGESSelect_DispPerSingleView.hxx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_DispPerSingleView::IGESSelect_DispPerSingleView ()
|
||||
{ thesorter = new IGESSelect_ViewSorter; }
|
||||
|
88
src/IGESSelect/IGESSelect_DispPerSingleView.hxx
Normal file
88
src/IGESSelect/IGESSelect_DispPerSingleView.hxx
Normal file
@@ -0,0 +1,88 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_DispPerSingleView_HeaderFile
|
||||
#define _IGESSelect_DispPerSingleView_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_Dispatch.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESSelect_ViewSorter;
|
||||
class TCollection_AsciiString;
|
||||
class Interface_Graph;
|
||||
class IFGraph_SubPartsIterator;
|
||||
class Interface_EntityIterator;
|
||||
|
||||
|
||||
class IGESSelect_DispPerSingleView;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_DispPerSingleView, IFSelect_Dispatch)
|
||||
|
||||
//! This type of dispatch defines sets of entities attached to
|
||||
//! distinct single views. This information appears in the
|
||||
//! Directory Part. Drawings are taken into account too,
|
||||
//! because of their frames (proper lists of annotations)
|
||||
//!
|
||||
//! Remaining data concern entities not attached to a single view.
|
||||
class IGESSelect_DispPerSingleView : public IFSelect_Dispatch
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a DispPerSingleView
|
||||
Standard_EXPORT IGESSelect_DispPerSingleView();
|
||||
|
||||
//! Returns as Label, "One File per single View or Drawing Frame"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
//! Computes the list of produced Packets. Packets are computed
|
||||
//! by a ViewSorter (SortSingleViews with also frames).
|
||||
Standard_EXPORT void Packets (const Interface_Graph& G, IFGraph_SubPartsIterator& packs) const;
|
||||
|
||||
//! Returns True, because of entities attached to no view.
|
||||
Standard_EXPORT virtual Standard_Boolean CanHaveRemainder() const Standard_OVERRIDE;
|
||||
|
||||
//! Returns Remainder which is a set of Entities.
|
||||
//! It is supposed to be called once Packets has been called.
|
||||
Standard_EXPORT virtual Interface_EntityIterator Remainder (const Interface_Graph& G) const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_DispPerSingleView,IFSelect_Dispatch)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IGESSelect_ViewSorter) thesorter;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_DispPerSingleView_HeaderFile
|
@@ -1,40 +0,0 @@
|
||||
-- Created on: 1994-06-03
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 Dumper from IGESSelect inherits SessionDumper
|
||||
|
||||
---Purpose : Dumper from IGESSelect takes into account, for SessionFile, the
|
||||
-- classes defined in the package IGESSelect : Selections,
|
||||
-- Dispatches, Modifiers
|
||||
|
||||
uses Transient, AsciiString from TCollection, SessionFile
|
||||
|
||||
is
|
||||
|
||||
Create returns Dumper;
|
||||
---Purpose : Creates a Dumper and puts it into the Library of Dumper
|
||||
|
||||
WriteOwn (me; file : in out SessionFile; item : Transient) returns Boolean;
|
||||
---Purpose : Write the Own Parameters of Types defined in package IGESSelect
|
||||
-- Returns True if <item> has been processed, False else
|
||||
|
||||
ReadOwn (me; file : in out SessionFile;
|
||||
type : AsciiString from TCollection; item : out Transient)
|
||||
returns Boolean;
|
||||
---Purpose : Recognizes and Read Own Parameters for Types of package
|
||||
-- IGESSelect. Returns True if done and <item> created, False else
|
||||
|
||||
end Dumper;
|
@@ -11,41 +11,40 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_Dumper.ixx>
|
||||
|
||||
#include <IGESSelect_DispPerSingleView.hxx>
|
||||
#include <IGESSelect_DispPerDrawing.hxx>
|
||||
//#include <IGESSelect_SelectIGESTypeForm.hxx>
|
||||
#include <IGESSelect_SelectVisibleStatus.hxx>
|
||||
#include <IGESSelect_SelectLevelNumber.hxx>
|
||||
#include <IGESSelect_SelectName.hxx>
|
||||
#include <IGESSelect_SelectFromSingleView.hxx>
|
||||
#include <IGESSelect_SelectFromDrawing.hxx>
|
||||
#include <IGESSelect_SelectSingleViewFrom.hxx>
|
||||
#include <IGESSelect_SelectDrawingFrom.hxx>
|
||||
#include <IGESSelect_SelectBypassGroup.hxx>
|
||||
#include <IGESSelect_FloatFormat.hxx>
|
||||
#include <IGESSelect_UpdateCreationDate.hxx>
|
||||
#include <IGESSelect_UpdateLastChange.hxx>
|
||||
#include <IGESSelect_SetVersion5.hxx>
|
||||
#include <IGESSelect_SetGlobalParameter.hxx>
|
||||
#include <IFSelect_IntParam.hxx>
|
||||
#include <IFSelect_SessionFile.hxx>
|
||||
#include <IGESSelect_AutoCorrect.hxx>
|
||||
#include <IGESSelect_ComputeStatus.hxx>
|
||||
#include <IGESSelect_RebuildDrawings.hxx>
|
||||
#include <IGESSelect_RebuildGroups.hxx>
|
||||
#include <IGESSelect_ChangeLevelList.hxx>
|
||||
#include <IGESSelect_ChangeLevelNumber.hxx>
|
||||
#include <IGESSelect_ComputeStatus.hxx>
|
||||
#include <IGESSelect_DispPerDrawing.hxx>
|
||||
#include <IGESSelect_DispPerSingleView.hxx>
|
||||
#include <IGESSelect_Dumper.hxx>
|
||||
#include <IGESSelect_FloatFormat.hxx>
|
||||
#include <IGESSelect_RebuildDrawings.hxx>
|
||||
#include <IGESSelect_RebuildGroups.hxx>
|
||||
#include <IGESSelect_SelectBypassGroup.hxx>
|
||||
#include <IGESSelect_SelectDrawingFrom.hxx>
|
||||
#include <IGESSelect_SelectFromDrawing.hxx>
|
||||
#include <IGESSelect_SelectFromSingleView.hxx>
|
||||
#include <IGESSelect_SelectLevelNumber.hxx>
|
||||
#include <IGESSelect_SelectName.hxx>
|
||||
#include <IGESSelect_SelectSingleViewFrom.hxx>
|
||||
#include <IGESSelect_SelectVisibleStatus.hxx>
|
||||
#include <IGESSelect_SetGlobalParameter.hxx>
|
||||
#include <IGESSelect_SetVersion5.hxx>
|
||||
#include <IGESSelect_SplineToBSpline.hxx>
|
||||
|
||||
#include <IGESSelect_UpdateCreationDate.hxx>
|
||||
#include <IGESSelect_UpdateLastChange.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <IFSelect_IntParam.hxx>
|
||||
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
//#include <IGESSelect_SelectIGESTypeForm.hxx>
|
||||
IGESSelect_Dumper::IGESSelect_Dumper () { }
|
||||
|
||||
|
||||
|
76
src/IGESSelect/IGESSelect_Dumper.hxx
Normal file
76
src/IGESSelect/IGESSelect_Dumper.hxx
Normal file
@@ -0,0 +1,76 @@
|
||||
// Created on: 1994-06-03
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_Dumper_HeaderFile
|
||||
#define _IGESSelect_Dumper_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SessionDumper.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IFSelect_SessionFile;
|
||||
class Standard_Transient;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_Dumper;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_Dumper, IFSelect_SessionDumper)
|
||||
|
||||
//! Dumper from IGESSelect takes into account, for SessionFile, the
|
||||
//! classes defined in the package IGESSelect : Selections,
|
||||
//! Dispatches, Modifiers
|
||||
class IGESSelect_Dumper : public IFSelect_SessionDumper
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a Dumper and puts it into the Library of Dumper
|
||||
Standard_EXPORT IGESSelect_Dumper();
|
||||
|
||||
//! Write the Own Parameters of Types defined in package IGESSelect
|
||||
//! Returns True if <item> has been processed, False else
|
||||
Standard_EXPORT Standard_Boolean WriteOwn (IFSelect_SessionFile& file, const Handle(Standard_Transient)& item) const;
|
||||
|
||||
//! Recognizes and Read Own Parameters for Types of package
|
||||
//! IGESSelect. Returns True if done and <item> created, False else
|
||||
Standard_EXPORT Standard_Boolean ReadOwn (IFSelect_SessionFile& file, const TCollection_AsciiString& type, Handle(Standard_Transient)& item) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_Dumper,IFSelect_SessionDumper)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_Dumper_HeaderFile
|
@@ -1,46 +0,0 @@
|
||||
-- Created on: 1998-09-07
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1998-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 EditDirPart from IGESSelect inherits Editor from IFSelect
|
||||
|
||||
---Purpose : This class is aimed to display and edit the Directory Part of
|
||||
-- an IGESEntity
|
||||
|
||||
uses Transient, AsciiString, HAsciiString, InterfaceModel, EditForm
|
||||
|
||||
is
|
||||
|
||||
Create returns EditDirPart;
|
||||
|
||||
Label (me) returns AsciiString;
|
||||
|
||||
Recognize (me; form : EditForm) returns Boolean;
|
||||
|
||||
StringValue (me; form : EditForm; num : Integer)
|
||||
returns HAsciiString from TCollection;
|
||||
|
||||
Load (me; form : EditForm; ent : Transient; model : InterfaceModel)
|
||||
returns Boolean;
|
||||
|
||||
Update (me; form : EditForm; num : Integer;
|
||||
newval : HAsciiString; enforce : Boolean)
|
||||
returns Boolean is redefined;
|
||||
-- for dynamically computed values
|
||||
|
||||
Apply (me; form : EditForm; ent : Transient; model : InterfaceModel)
|
||||
returns Boolean;
|
||||
|
||||
end EditDirPart;
|
@@ -11,23 +11,25 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_EditDirPart.ixx>
|
||||
#include <Interface_TypedValue.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_LineFontEntity.hxx>
|
||||
#include <IGESData_LevelListEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESData_TransfEntity.hxx>
|
||||
#include <IGESData_LabelDisplayEntity.hxx>
|
||||
#include <IFSelect_EditForm.hxx>
|
||||
#include <IGESData_ColorEntity.hxx>
|
||||
|
||||
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_LabelDisplayEntity.hxx>
|
||||
#include <IGESData_LevelListEntity.hxx>
|
||||
#include <IGESData_LineFontEntity.hxx>
|
||||
#include <IGESData_TransfEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESSelect_EditDirPart.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
#include <Interface_TypedValue.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Handle(Interface_TypedValue) NewDefType(const Standard_CString name)
|
||||
{
|
||||
|
81
src/IGESSelect/IGESSelect_EditDirPart.hxx
Normal file
81
src/IGESSelect/IGESSelect_EditDirPart.hxx
Normal file
@@ -0,0 +1,81 @@
|
||||
// Created on: 1998-09-07
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1998-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 _IGESSelect_EditDirPart_HeaderFile
|
||||
#define _IGESSelect_EditDirPart_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_Editor.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class TCollection_AsciiString;
|
||||
class IFSelect_EditForm;
|
||||
class TCollection_HAsciiString;
|
||||
class Standard_Transient;
|
||||
class Interface_InterfaceModel;
|
||||
|
||||
|
||||
class IGESSelect_EditDirPart;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_EditDirPart, IFSelect_Editor)
|
||||
|
||||
//! This class is aimed to display and edit the Directory Part of
|
||||
//! an IGESEntity
|
||||
class IGESSelect_EditDirPart : public IFSelect_Editor
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESSelect_EditDirPart();
|
||||
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
Standard_EXPORT Standard_Boolean Recognize (const Handle(IFSelect_EditForm)& form) const;
|
||||
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) StringValue (const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const;
|
||||
|
||||
Standard_EXPORT Standard_Boolean Load (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
Standard_EXPORT virtual Standard_Boolean Update (const Handle(IFSelect_EditForm)& form, const Standard_Integer num, const Handle(TCollection_HAsciiString)& newval, const Standard_Boolean enforce) const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT Standard_Boolean Apply (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_EditDirPart,IFSelect_Editor)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_EditDirPart_HeaderFile
|
@@ -1,46 +0,0 @@
|
||||
-- Created on: 1998-07-31
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1998-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 EditHeader from IGESSelect inherits Editor from IFSelect
|
||||
|
||||
---Purpose : This class is aimed to display and edit the Header of an
|
||||
-- IGES Model : Start Section and Global Section
|
||||
|
||||
uses Transient, AsciiString, HAsciiString, InterfaceModel, EditForm
|
||||
|
||||
is
|
||||
|
||||
Create returns EditHeader;
|
||||
|
||||
Label (me) returns AsciiString;
|
||||
|
||||
Recognize (me; form : EditForm) returns Boolean;
|
||||
|
||||
StringValue (me; form : EditForm; num : Integer)
|
||||
returns HAsciiString from TCollection;
|
||||
|
||||
Load (me; form : EditForm; ent : Transient; model : InterfaceModel)
|
||||
returns Boolean;
|
||||
|
||||
Update (me; form : EditForm; num : Integer;
|
||||
newval : HAsciiString; enforce : Boolean)
|
||||
returns Boolean is redefined;
|
||||
-- for dynamically computed values
|
||||
|
||||
Apply (me; form : EditForm; ent : Transient; model : InterfaceModel)
|
||||
returns Boolean;
|
||||
|
||||
end EditHeader;
|
@@ -11,15 +11,20 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_EditHeader.ixx>
|
||||
#include <Interface_TypedValue.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
|
||||
#include <IFSelect_EditForm.hxx>
|
||||
#include <IGESData_BasicEditor.hxx>
|
||||
#include <IGESData_GlobalSection.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <IGESData_GlobalSection.hxx>
|
||||
#include <IGESData_BasicEditor.hxx>
|
||||
|
||||
#include <IGESSelect_EditHeader.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
#include <Interface_TypedValue.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static Standard_Boolean IsTimeStamp
|
||||
(const Handle(TCollection_HAsciiString)& val)
|
||||
|
81
src/IGESSelect/IGESSelect_EditHeader.hxx
Normal file
81
src/IGESSelect/IGESSelect_EditHeader.hxx
Normal file
@@ -0,0 +1,81 @@
|
||||
// Created on: 1998-07-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1998-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 _IGESSelect_EditHeader_HeaderFile
|
||||
#define _IGESSelect_EditHeader_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_Editor.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class TCollection_AsciiString;
|
||||
class IFSelect_EditForm;
|
||||
class TCollection_HAsciiString;
|
||||
class Standard_Transient;
|
||||
class Interface_InterfaceModel;
|
||||
|
||||
|
||||
class IGESSelect_EditHeader;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_EditHeader, IFSelect_Editor)
|
||||
|
||||
//! This class is aimed to display and edit the Header of an
|
||||
//! IGES Model : Start Section and Global Section
|
||||
class IGESSelect_EditHeader : public IFSelect_Editor
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESSelect_EditHeader();
|
||||
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
Standard_EXPORT Standard_Boolean Recognize (const Handle(IFSelect_EditForm)& form) const;
|
||||
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) StringValue (const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const;
|
||||
|
||||
Standard_EXPORT Standard_Boolean Load (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
Standard_EXPORT virtual Standard_Boolean Update (const Handle(IFSelect_EditForm)& form, const Standard_Integer num, const Handle(TCollection_HAsciiString)& newval, const Standard_Boolean enforce) const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT Standard_Boolean Apply (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_EditHeader,IFSelect_Editor)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_EditHeader_HeaderFile
|
65
src/IGESSelect/IGESSelect_FileModifier.hxx
Normal file
65
src/IGESSelect/IGESSelect_FileModifier.hxx
Normal file
@@ -0,0 +1,65 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_FileModifier_HeaderFile
|
||||
#define _IGESSelect_FileModifier_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_GeneralModifier.hxx>
|
||||
class IGESData_IGESWriter;
|
||||
class IFSelect_ContextWrite;
|
||||
|
||||
|
||||
class IGESSelect_FileModifier;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_FileModifier, IFSelect_GeneralModifier)
|
||||
|
||||
|
||||
class IGESSelect_FileModifier : public IFSelect_GeneralModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT virtual void Perform (IFSelect_ContextWrite& ctx, IGESData_IGESWriter& writer) const = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_FileModifier,IFSelect_GeneralModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Standard_EXPORT IGESSelect_FileModifier();
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_FileModifier_HeaderFile
|
39
src/IGESSelect/IGESSelect_FileModifier_0.cxx
Normal file
39
src/IGESSelect/IGESSelect_FileModifier_0.cxx
Normal file
@@ -0,0 +1,39 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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.
|
||||
|
||||
#include <IGESSelect_FileModifier.hxx>
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IFSelect_ContextWrite.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define Writer IGESData_IGESWriter
|
||||
#define Writer_hxx <IGESData_IGESWriter.hxx>
|
||||
#define IFSelect_FileModifier IGESSelect_FileModifier
|
||||
#define IFSelect_FileModifier_hxx <IGESSelect_FileModifier.hxx>
|
||||
#define Handle_IFSelect_FileModifier Handle(IGESSelect_FileModifier)
|
||||
#include <IFSelect_FileModifier.gxx>
|
||||
|
@@ -1,92 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 FloatFormat from IGESSelect inherits FileModifier from IGESSelect
|
||||
|
||||
---Purpose : This class gives control out format for floatting values :
|
||||
-- ZeroSuppress or no, Main Format, Format in Range (for values
|
||||
-- around 1.), as IGESWriter allows to manage it.
|
||||
-- Formats are given under C-printf form
|
||||
|
||||
uses CString, AsciiString from TCollection,
|
||||
IGESWriter , ContextWrite
|
||||
|
||||
is
|
||||
|
||||
Create returns FloatFormat;
|
||||
---Purpose : Creates a new FloatFormat, with standard options :
|
||||
-- ZeroSuppress, Main Format = %E,
|
||||
-- Format between 0.001 and 1000. = %f
|
||||
|
||||
SetDefault (me : mutable; digits : Integer = 0);
|
||||
---Purpose : Sets FloatFormat to default value (see Create) but if <digits>
|
||||
-- is given positive, it commands Formats (main and range) to
|
||||
-- ensure <digits> significant digits to be displayed
|
||||
|
||||
SetZeroSuppress (me : mutable; mode : Boolean);
|
||||
---Purpose : Sets ZeroSuppress mode to a new value
|
||||
|
||||
SetFormat (me : mutable; format : CString = "%E");
|
||||
---Purpose : Sets Main Format to a new value
|
||||
-- Remark : SetFormat, SetZeroSuppress and SetFormatForRange are
|
||||
-- independant
|
||||
|
||||
SetFormatForRange (me : mutable; format : CString = "%f";
|
||||
Rmin : Real = 0.1; Rmax : Real = 1000.0);
|
||||
---Purpose : Sets Format for Range to a new value with its range of
|
||||
-- application.
|
||||
-- To cancel it, give format as "" (empty string)
|
||||
-- Remark that if the condition (0. < Rmin < Rmax) is not
|
||||
-- verified, this secondary format will be ignored.
|
||||
-- Moreover, this secondary format is intended to be used in a
|
||||
-- range around 1.
|
||||
|
||||
|
||||
Format (me; zerosup : out Boolean;
|
||||
mainform : out AsciiString from TCollection;
|
||||
hasrange : out Boolean;
|
||||
forminrange : out AsciiString from TCollection;
|
||||
rangemin, rangemax : out Real);
|
||||
---Purpose : Returns all recorded parameters :
|
||||
-- zerosup : ZeroSuppress status
|
||||
-- mainform : Main Format (which applies out of the range, or
|
||||
-- for every real if no range is set)
|
||||
-- hasrange : True if a FormatInRange is set, False else
|
||||
-- (following parameters do not apply if it is False)
|
||||
-- forminrange : Secondary Format (it applies inside the range)
|
||||
-- rangemin, rangemax : the range in which the secondary format
|
||||
-- applies
|
||||
|
||||
|
||||
Perform (me; ctx : in out ContextWrite;
|
||||
writer : in out IGESWriter);
|
||||
---Purpose : Sets the Floatting Formats of IGESWriter to the recorded
|
||||
-- parameters
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns specific Label : for instance,
|
||||
-- "Float Format [ZeroSuppress] %E [, in range R1-R2 %f]"
|
||||
|
||||
fields
|
||||
|
||||
thezerosup : Boolean;
|
||||
themainform : AsciiString from TCollection;
|
||||
theformrange : AsciiString from TCollection;
|
||||
therangemin : Real;
|
||||
therangemax : Real;
|
||||
|
||||
end FloatFormat;
|
||||
|
@@ -11,12 +11,15 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_FloatFormat.ixx>
|
||||
|
||||
#include <IFSelect_ContextWrite.hxx>
|
||||
#include <IGESData_IGESWriter.hxx>
|
||||
#include <IGESSelect_FloatFormat.hxx>
|
||||
#include <Interface_FloatWriter.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
IGESSelect_FloatFormat::IGESSelect_FloatFormat ()
|
||||
: thezerosup (Standard_True) , themainform ("%E") ,
|
||||
theformrange ("%f") , therangemin (0.1) , therangemax (1000.)
|
||||
|
121
src/IGESSelect/IGESSelect_FloatFormat.hxx
Normal file
121
src/IGESSelect/IGESSelect_FloatFormat.hxx
Normal file
@@ -0,0 +1,121 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_FloatFormat_HeaderFile
|
||||
#define _IGESSelect_FloatFormat_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <IGESSelect_FileModifier.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class TCollection_AsciiString;
|
||||
class IFSelect_ContextWrite;
|
||||
class IGESData_IGESWriter;
|
||||
|
||||
|
||||
class IGESSelect_FloatFormat;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_FloatFormat, IGESSelect_FileModifier)
|
||||
|
||||
//! This class gives control out format for floatting values :
|
||||
//! ZeroSuppress or no, Main Format, Format in Range (for values
|
||||
//! around 1.), as IGESWriter allows to manage it.
|
||||
//! Formats are given under C-printf form
|
||||
class IGESSelect_FloatFormat : public IGESSelect_FileModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a new FloatFormat, with standard options :
|
||||
//! ZeroSuppress, Main Format = %E,
|
||||
//! Format between 0.001 and 1000. = %f
|
||||
Standard_EXPORT IGESSelect_FloatFormat();
|
||||
|
||||
//! Sets FloatFormat to default value (see Create) but if <digits>
|
||||
//! is given positive, it commands Formats (main and range) to
|
||||
//! ensure <digits> significant digits to be displayed
|
||||
Standard_EXPORT void SetDefault (const Standard_Integer digits = 0);
|
||||
|
||||
//! Sets ZeroSuppress mode to a new value
|
||||
Standard_EXPORT void SetZeroSuppress (const Standard_Boolean mode);
|
||||
|
||||
//! Sets Main Format to a new value
|
||||
//! Remark : SetFormat, SetZeroSuppress and SetFormatForRange are
|
||||
//! independant
|
||||
Standard_EXPORT void SetFormat (const Standard_CString format = "%E");
|
||||
|
||||
//! Sets Format for Range to a new value with its range of
|
||||
//! application.
|
||||
//! To cancel it, give format as "" (empty string)
|
||||
//! Remark that if the condition (0. < Rmin < Rmax) is not
|
||||
//! verified, this secondary format will be ignored.
|
||||
//! Moreover, this secondary format is intended to be used in a
|
||||
//! range around 1.
|
||||
Standard_EXPORT void SetFormatForRange (const Standard_CString format = "%f", const Standard_Real Rmin = 0.1, const Standard_Real Rmax = 1000.0);
|
||||
|
||||
//! Returns all recorded parameters :
|
||||
//! zerosup : ZeroSuppress status
|
||||
//! mainform : Main Format (which applies out of the range, or
|
||||
//! for every real if no range is set)
|
||||
//! hasrange : True if a FormatInRange is set, False else
|
||||
//! (following parameters do not apply if it is False)
|
||||
//! forminrange : Secondary Format (it applies inside the range)
|
||||
//! rangemin, rangemax : the range in which the secondary format
|
||||
//! applies
|
||||
Standard_EXPORT void Format (Standard_Boolean& zerosup, TCollection_AsciiString& mainform, Standard_Boolean& hasrange, TCollection_AsciiString& forminrange, Standard_Real& rangemin, Standard_Real& rangemax) const;
|
||||
|
||||
//! Sets the Floatting Formats of IGESWriter to the recorded
|
||||
//! parameters
|
||||
Standard_EXPORT void Perform (IFSelect_ContextWrite& ctx, IGESData_IGESWriter& writer) const;
|
||||
|
||||
//! Returns specific Label : for instance,
|
||||
//! "Float Format [ZeroSuppress] %E [, in range R1-R2 %f]"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_FloatFormat,IGESSelect_FileModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Boolean thezerosup;
|
||||
TCollection_AsciiString themainform;
|
||||
TCollection_AsciiString theformrange;
|
||||
Standard_Real therangemin;
|
||||
Standard_Real therangemax;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_FloatFormat_HeaderFile
|
@@ -1,36 +0,0 @@
|
||||
-- Created on: 1994-12-21
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 IGESName from IGESSelect inherits Signature from IFSelect
|
||||
|
||||
---Purpose : IGESName is a Signature specific to IGESNorm :
|
||||
-- it considers the Name of an IGESEntity as being its ShortLabel
|
||||
-- (some sending systems use name, not to identify entities, but
|
||||
-- ratjer to classify them)
|
||||
|
||||
uses CString, Transient, InterfaceModel
|
||||
|
||||
is
|
||||
|
||||
Create returns IGESName;
|
||||
---Purpose : Creates a Signature for IGES Name (reduced to ShortLabel,
|
||||
-- without SubscriptLabel or Long Name)
|
||||
|
||||
Value (me; ent : any Transient; model : InterfaceModel) returns CString;
|
||||
---Purpose : Returns the ShortLabel as being the Name of an IGESEntity
|
||||
-- If <ent> has no name, it returns empty string ""
|
||||
|
||||
end IGESName;
|
@@ -11,10 +11,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_IGESName.ixx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <IGESSelect_IGESName.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
static char falsetype [] = "?";
|
||||
static char voidlabel [] = "";
|
||||
|
73
src/IGESSelect/IGESSelect_IGESName.hxx
Normal file
73
src/IGESSelect/IGESSelect_IGESName.hxx
Normal file
@@ -0,0 +1,73 @@
|
||||
// Created on: 1994-12-21
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_IGESName_HeaderFile
|
||||
#define _IGESSelect_IGESName_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_Signature.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class Standard_Transient;
|
||||
class Interface_InterfaceModel;
|
||||
|
||||
|
||||
class IGESSelect_IGESName;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_IGESName, IFSelect_Signature)
|
||||
|
||||
//! IGESName is a Signature specific to IGESNorm :
|
||||
//! it considers the Name of an IGESEntity as being its ShortLabel
|
||||
//! (some sending systems use name, not to identify entities, but
|
||||
//! ratjer to classify them)
|
||||
class IGESSelect_IGESName : public IFSelect_Signature
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a Signature for IGES Name (reduced to ShortLabel,
|
||||
//! without SubscriptLabel or Long Name)
|
||||
Standard_EXPORT IGESSelect_IGESName();
|
||||
|
||||
//! Returns the ShortLabel as being the Name of an IGESEntity
|
||||
//! If <ent> has no name, it returns empty string ""
|
||||
Standard_EXPORT Standard_CString Value (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_IGESName,IFSelect_Signature)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_IGESName_HeaderFile
|
@@ -1,44 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Modelistation
|
||||
-- Copyright (c) 1994-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 IGESTypeForm from IGESSelect inherits Signature from IFSelect
|
||||
|
||||
---Purpose : IGESTypeForm is a Signature specific to the IGES Norm :
|
||||
-- it gives the signature under two possible forms :
|
||||
-- - as "mmm nnn", with "mmm" as IGES Type Number, and "nnn"
|
||||
-- as IGES From Number (even if = 0) [Default]
|
||||
-- - as "mmm" alone, which gives only the IGES Type Number
|
||||
|
||||
uses CString, Transient, InterfaceModel
|
||||
|
||||
is
|
||||
|
||||
Create (withform : Boolean = Standard_True) returns IGESTypeForm;
|
||||
---Purpose : Creates a Signature for IGES Type & Form Numbers
|
||||
-- If <withform> is False, for IGES Type Number only
|
||||
|
||||
SetForm (me : mutable; withform : Boolean);
|
||||
---Purpose : Changes the mode for giving the Form Number
|
||||
|
||||
Value (me; ent : any Transient; model : InterfaceModel) returns CString;
|
||||
---Purpose : Returns the signature for IGES, "mmm nnn" or "mmm" according
|
||||
-- creation choice (Type & Form or Type only)
|
||||
|
||||
fields
|
||||
|
||||
theform : Boolean;
|
||||
|
||||
end IGESTypeForm;
|
@@ -11,13 +11,16 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_IGESTypeForm.ixx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_UndefinedEntity.hxx>
|
||||
#include <IGESSelect_IGESTypeForm.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
static char falsetype [] = "?";
|
||||
static char typeval [30]; // une seule reponse a la fois ...
|
||||
|
||||
|
79
src/IGESSelect/IGESSelect_IGESTypeForm.hxx
Normal file
79
src/IGESSelect/IGESSelect_IGESTypeForm.hxx
Normal file
@@ -0,0 +1,79 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Modelistation
|
||||
// Copyright (c) 1994-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 _IGESSelect_IGESTypeForm_HeaderFile
|
||||
#define _IGESSelect_IGESTypeForm_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <IFSelect_Signature.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class Standard_Transient;
|
||||
class Interface_InterfaceModel;
|
||||
|
||||
|
||||
class IGESSelect_IGESTypeForm;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_IGESTypeForm, IFSelect_Signature)
|
||||
|
||||
//! IGESTypeForm is a Signature specific to the IGES Norm :
|
||||
//! it gives the signature under two possible forms :
|
||||
//! - as "mmm nnn", with "mmm" as IGES Type Number, and "nnn"
|
||||
//! as IGES From Number (even if = 0) [Default]
|
||||
//! - as "mmm" alone, which gives only the IGES Type Number
|
||||
class IGESSelect_IGESTypeForm : public IFSelect_Signature
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a Signature for IGES Type & Form Numbers
|
||||
//! If <withform> is False, for IGES Type Number only
|
||||
Standard_EXPORT IGESSelect_IGESTypeForm(const Standard_Boolean withform = Standard_True);
|
||||
|
||||
//! Changes the mode for giving the Form Number
|
||||
Standard_EXPORT void SetForm (const Standard_Boolean withform);
|
||||
|
||||
//! Returns the signature for IGES, "mmm nnn" or "mmm" according
|
||||
//! creation choice (Type & Form or Type only)
|
||||
Standard_EXPORT Standard_CString Value (const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_IGESTypeForm,IFSelect_Signature)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Boolean theform;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_IGESTypeForm_HeaderFile
|
74
src/IGESSelect/IGESSelect_ModelModifier.hxx
Normal file
74
src/IGESSelect/IGESSelect_ModelModifier.hxx
Normal file
@@ -0,0 +1,74 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_ModelModifier_HeaderFile
|
||||
#define _IGESSelect_ModelModifier_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_Modifier.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class IGESData_IGESModel;
|
||||
class IGESData_Protocol;
|
||||
class IFSelect_ContextModif;
|
||||
class Interface_InterfaceModel;
|
||||
class Interface_Protocol;
|
||||
class Interface_CopyTool;
|
||||
|
||||
|
||||
class IGESSelect_ModelModifier;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_ModelModifier, IFSelect_Modifier)
|
||||
|
||||
|
||||
class IGESSelect_ModelModifier : public IFSelect_Modifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT void Perform (IFSelect_ContextModif& ctx, const Handle(Interface_InterfaceModel)& target, const Handle(Interface_Protocol)& protocol, Interface_CopyTool& TC) const;
|
||||
|
||||
Standard_EXPORT virtual void PerformProtocol (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, const Handle(IGESData_Protocol)& proto, Interface_CopyTool& TC) const;
|
||||
|
||||
Standard_EXPORT virtual void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_ModelModifier,IFSelect_Modifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Standard_EXPORT IGESSelect_ModelModifier(const Standard_Boolean maychangegraph);
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_ModelModifier_HeaderFile
|
47
src/IGESSelect/IGESSelect_ModelModifier_0.cxx
Normal file
47
src/IGESSelect/IGESSelect_ModelModifier_0.cxx
Normal file
@@ -0,0 +1,47 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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.
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_Protocol.hxx>
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Protocol.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define Handle_Model Handle(IGESData_IGESModel)
|
||||
#define Model IGESData_IGESModel
|
||||
#define Model_hxx <IGESData_IGESModel.hxx>
|
||||
#define Handle_Proto Handle(IGESData_Protocol)
|
||||
#define Proto IGESData_Protocol
|
||||
#define Proto_hxx <IGESData_Protocol.hxx>
|
||||
#define IFSelect_ModelModifier IGESSelect_ModelModifier
|
||||
#define IFSelect_ModelModifier_hxx <IGESSelect_ModelModifier.hxx>
|
||||
#define Handle_IFSelect_ModelModifier Handle(IGESSelect_ModelModifier)
|
||||
#include <IFSelect_ModelModifier.gxx>
|
||||
|
@@ -1,47 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 RebuildDrawings from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Rebuilds Drawings which were bypassed to produce new models.
|
||||
-- If a set of entities, all put into a same IGESModel, were
|
||||
-- attached to a same Drawing in the starting Model, this Modifier
|
||||
-- rebuilds the original Drawing, but only with the transferred
|
||||
-- entities. This includes that all its views are kept too, but
|
||||
-- empty; and annotations are not kept. Drawing Name is renewed.
|
||||
--
|
||||
-- If the Input Selection is present, tries to rebuild Drawings
|
||||
-- only for the selected entities. Else, tries to rebuild
|
||||
-- Drawings for all the transferred entities.
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
IGESModel, CopyTool, ContextModif
|
||||
|
||||
is
|
||||
|
||||
Create returns RebuildDrawings;
|
||||
---Purpose : Creates an RebuildDrawings, which uses the system Date
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : Rebuilds the original Drawings
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which is
|
||||
-- "Rebuild Drawings"
|
||||
|
||||
end RebuildDrawings;
|
@@ -11,25 +11,29 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_RebuildDrawings.ixx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IFSelect_PacketList.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESDraw_Drawing.hxx>
|
||||
#include <IGESDraw_DrawingWithRotation.hxx>
|
||||
#include <IGESDraw_HArray1OfViewKindEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <gp_XY.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
|
||||
#include <IGESSelect_RebuildDrawings.hxx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TColgp_HArray1OfXY.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
|
||||
#define PourDrawing 404
|
||||
|
||||
|
82
src/IGESSelect/IGESSelect_RebuildDrawings.hxx
Normal file
82
src/IGESSelect/IGESSelect_RebuildDrawings.hxx
Normal file
@@ -0,0 +1,82 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_RebuildDrawings_HeaderFile
|
||||
#define _IGESSelect_RebuildDrawings_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_RebuildDrawings;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_RebuildDrawings, IGESSelect_ModelModifier)
|
||||
|
||||
//! Rebuilds Drawings which were bypassed to produce new models.
|
||||
//! If a set of entities, all put into a same IGESModel, were
|
||||
//! attached to a same Drawing in the starting Model, this Modifier
|
||||
//! rebuilds the original Drawing, but only with the transferred
|
||||
//! entities. This includes that all its views are kept too, but
|
||||
//! empty; and annotations are not kept. Drawing Name is renewed.
|
||||
//!
|
||||
//! If the Input Selection is present, tries to rebuild Drawings
|
||||
//! only for the selected entities. Else, tries to rebuild
|
||||
//! Drawings for all the transferred entities.
|
||||
class IGESSelect_RebuildDrawings : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates an RebuildDrawings, which uses the system Date
|
||||
Standard_EXPORT IGESSelect_RebuildDrawings();
|
||||
|
||||
//! Specific action : Rebuilds the original Drawings
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which is
|
||||
//! "Rebuild Drawings"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_RebuildDrawings,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_RebuildDrawings_HeaderFile
|
@@ -1,47 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 RebuildGroups from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Rebuilds Groups which were bypassed to produce new models.
|
||||
-- If a set of entities, all put into a same IGESModel, were
|
||||
-- part of a same Group in the starting Model, this Modifier
|
||||
-- rebuilds the original group, but only with the transferred
|
||||
-- entities. The distinctions (Ordered or not, "WhithoutBackP"
|
||||
-- or not) are renewed, also the name of the group.
|
||||
--
|
||||
-- If the Input Selection is present, tries to rebuild groups
|
||||
-- only for the selected entities. Else, tries to rebuild
|
||||
-- groups for all the transferred entities.
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
IGESModel, CopyTool, ContextModif
|
||||
|
||||
is
|
||||
|
||||
Create returns RebuildGroups;
|
||||
---Purpose : Creates an RebuildGroups, which uses the system Date
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : Rebuilds the original groups
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which is
|
||||
-- "Rebuild Groups"
|
||||
|
||||
end RebuildGroups;
|
@@ -11,18 +11,22 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_RebuildGroups.ixx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESBasic_GroupWithoutBackP.hxx>
|
||||
#include <IGESBasic_OrderedGroup.hxx>
|
||||
#include <IGESBasic_OrderedGroupWithoutBackP.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESSelect_RebuildGroups.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TColStd_Array1OfInteger.hxx>
|
||||
|
||||
IGESSelect_RebuildGroups::IGESSelect_RebuildGroups ()
|
||||
: IGESSelect_ModelModifier (Standard_True) { }
|
||||
|
82
src/IGESSelect/IGESSelect_RebuildGroups.hxx
Normal file
82
src/IGESSelect/IGESSelect_RebuildGroups.hxx
Normal file
@@ -0,0 +1,82 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_RebuildGroups_HeaderFile
|
||||
#define _IGESSelect_RebuildGroups_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_RebuildGroups;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_RebuildGroups, IGESSelect_ModelModifier)
|
||||
|
||||
//! Rebuilds Groups which were bypassed to produce new models.
|
||||
//! If a set of entities, all put into a same IGESModel, were
|
||||
//! part of a same Group in the starting Model, this Modifier
|
||||
//! rebuilds the original group, but only with the transferred
|
||||
//! entities. The distinctions (Ordered or not, "WhithoutBackP"
|
||||
//! or not) are renewed, also the name of the group.
|
||||
//!
|
||||
//! If the Input Selection is present, tries to rebuild groups
|
||||
//! only for the selected entities. Else, tries to rebuild
|
||||
//! groups for all the transferred entities.
|
||||
class IGESSelect_RebuildGroups : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates an RebuildGroups, which uses the system Date
|
||||
Standard_EXPORT IGESSelect_RebuildGroups();
|
||||
|
||||
//! Specific action : Rebuilds the original groups
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which is
|
||||
//! "Rebuild Groups"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_RebuildGroups,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_RebuildGroups_HeaderFile
|
@@ -1,45 +0,0 @@
|
||||
-- Created on: 1999-02-24
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 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 RemoveCurves from IGESSelect inherits ModelModifier from IGESSelect
|
||||
|
||||
---Purpose : Removes Curves UV or 3D (not both !) from Faces, those
|
||||
-- designated by the Selection. No Selection means all the file
|
||||
|
||||
uses AsciiString from TCollection,
|
||||
IGESModel, CopyTool, ContextModif
|
||||
|
||||
is
|
||||
|
||||
Create (UV : Boolean) returns RemoveCurves;
|
||||
---Purpose : Creates a RemoveCurves from Faces (141/142/143/144)
|
||||
-- UV True : Removes UV Curves (pcurves)
|
||||
-- UV False : Removes 3D Curves
|
||||
|
||||
Performing (me; ctx : in out ContextModif;
|
||||
target : IGESModel;
|
||||
TC : in out CopyTool);
|
||||
---Purpose : Specific action : Removes the Curves
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text which is
|
||||
-- "Remove Curves UV on Face" or "Remove Curves 3D on Face"
|
||||
|
||||
fields
|
||||
|
||||
theUV : Boolean;
|
||||
|
||||
end RemoveCurves;
|
@@ -11,19 +11,23 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_RemoveCurves.ixx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <IGESGeom_TrimmedSurface.hxx>
|
||||
|
||||
#include <IFSelect_ContextModif.hxx>
|
||||
#include <IGESBasic_HArray1OfHArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESGeom_Boundary.hxx>
|
||||
#include <IGESGeom_BoundedSurface.hxx>
|
||||
#include <IGESGeom_CurveOnSurface.hxx>
|
||||
#include <IGESGeom_Boundary.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_HArray1OfIGESEntity.hxx>
|
||||
#include <IGESBasic_HArray1OfHArray1OfIGESEntity.hxx>
|
||||
#include <IGESGeom_TrimmedSurface.hxx>
|
||||
#include <IGESSelect_RemoveCurves.hxx>
|
||||
#include <Interface_CopyTool.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
|
||||
|
||||
|
||||
IGESSelect_RemoveCurves::IGESSelect_RemoveCurves (const Standard_Boolean UV)
|
||||
: IGESSelect_ModelModifier (Standard_True) , theUV (UV) { }
|
||||
|
||||
|
78
src/IGESSelect/IGESSelect_RemoveCurves.hxx
Normal file
78
src/IGESSelect/IGESSelect_RemoveCurves.hxx
Normal file
@@ -0,0 +1,78 @@
|
||||
// Created on: 1999-02-24
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 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 _IGESSelect_RemoveCurves_HeaderFile
|
||||
#define _IGESSelect_RemoveCurves_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <IGESSelect_ModelModifier.hxx>
|
||||
class IFSelect_ContextModif;
|
||||
class IGESData_IGESModel;
|
||||
class Interface_CopyTool;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_RemoveCurves;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_RemoveCurves, IGESSelect_ModelModifier)
|
||||
|
||||
//! Removes Curves UV or 3D (not both !) from Faces, those
|
||||
//! designated by the Selection. No Selection means all the file
|
||||
class IGESSelect_RemoveCurves : public IGESSelect_ModelModifier
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a RemoveCurves from Faces (141/142/143/144)
|
||||
//! UV True : Removes UV Curves (pcurves)
|
||||
//! UV False : Removes 3D Curves
|
||||
Standard_EXPORT IGESSelect_RemoveCurves(const Standard_Boolean UV);
|
||||
|
||||
//! Specific action : Removes the Curves
|
||||
Standard_EXPORT void Performing (IFSelect_ContextModif& ctx, const Handle(IGESData_IGESModel)& target, Interface_CopyTool& TC) const;
|
||||
|
||||
//! Returns a text which is
|
||||
//! "Remove Curves UV on Face" or "Remove Curves 3D on Face"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_RemoveCurves,IGESSelect_ModelModifier)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Boolean theUV;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_RemoveCurves_HeaderFile
|
@@ -1,71 +0,0 @@
|
||||
-- Created on: 1997-04-14
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1997-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 SelectBasicGeom from IGESSelect inherits SelectExplore
|
||||
|
||||
---Purpose : This selection returns the basic geometric elements
|
||||
-- contained in an IGES Entity
|
||||
-- Intended to run a "quick" transfer. I.E. :
|
||||
-- - for a Group, considers its Elements
|
||||
-- - for a Trimmed or Bounded Surface or a Face (BREP),
|
||||
-- considers the 3D curves of each of its loops
|
||||
-- - for a Plane (108), considers its Bounding Curve
|
||||
-- - for a Curve itself, takes it
|
||||
--
|
||||
-- Also, FREE surfaces are taken, because curve 3d is known for
|
||||
-- them. (the ideal should be to have their natural bounds)
|
||||
--
|
||||
-- If <curvesonly> is set, ONLY curves-3d are returned
|
||||
|
||||
uses AsciiString from TCollection, Transient, EntityIterator, Graph,
|
||||
IGESEntity from IGESData
|
||||
|
||||
is
|
||||
|
||||
Create (mode : Integer) returns SelectBasicGeom;
|
||||
---Purpose : Creates a SelectBasicGeom, which allways works recursively
|
||||
-- mode = -1 : Returns Surfaces (without trimming)
|
||||
-- mode = +1 : Returns Curves 3D (free or bound of surface)
|
||||
-- mode = +2 : Returns Basic Curves 3D : as 1 but CompositeCurves
|
||||
-- are returned in detail
|
||||
-- mode = 0 : both
|
||||
|
||||
CurvesOnly (me) returns Boolean;
|
||||
|
||||
Explore (me; level : Integer; ent : Transient; G : Graph;
|
||||
explored : in out EntityIterator)
|
||||
returns Boolean;
|
||||
---Purpose : Explores an entity, to take its contained Curves 3d
|
||||
-- Works recursively
|
||||
|
||||
|
||||
ExploreLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text defining the criterium : "Curves 3d" or
|
||||
-- "Basic Geometry"
|
||||
|
||||
SubCurves (myclass; ent : IGESEntity; explored : in out EntityIterator)
|
||||
returns Boolean;
|
||||
---Purpose : This method can be called from everywhere to get the curves
|
||||
-- as sub-elements of a given curve :
|
||||
-- CompositeCurve : explored lists its subs + returns True
|
||||
-- Any Curve : explored is not filled but returned is True
|
||||
-- Other : returned is False
|
||||
|
||||
fields
|
||||
|
||||
thegeom : Integer; -- -1 : Surfaces only 1 : Curves 3D only 0 : both
|
||||
|
||||
end SelectBasicGeom;
|
@@ -11,25 +11,28 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectBasicGeom.ixx>
|
||||
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESBasic_SingleParent.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGeom_Plane.hxx>
|
||||
#include <IGESGeom_Boundary.hxx>
|
||||
#include <IGESGeom_BoundedSurface.hxx>
|
||||
#include <IGESGeom_CompositeCurve.hxx>
|
||||
#include <IGESGeom_CurveOnSurface.hxx>
|
||||
#include <IGESGeom_Plane.hxx>
|
||||
#include <IGESGeom_TrimmedSurface.hxx>
|
||||
#include <IGESGeom_BoundedSurface.hxx>
|
||||
#include <IGESGeom_Boundary.hxx>
|
||||
#include <IGESBasic_SingleParent.hxx>
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESSolid_ManifoldSolid.hxx>
|
||||
#include <IGESSolid_Shell.hxx>
|
||||
#include <IGESSelect_SelectBasicGeom.hxx>
|
||||
#include <IGESSolid_EdgeList.hxx>
|
||||
#include <IGESSolid_Face.hxx>
|
||||
#include <IGESSolid_Loop.hxx>
|
||||
#include <IGESSolid_EdgeList.hxx>
|
||||
|
||||
#include <IGESSolid_ManifoldSolid.hxx>
|
||||
#include <IGESSolid_Shell.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectBasicGeom::IGESSelect_SelectBasicGeom
|
||||
(const Standard_Integer mode)
|
||||
|
104
src/IGESSelect/IGESSelect_SelectBasicGeom.hxx
Normal file
104
src/IGESSelect/IGESSelect_SelectBasicGeom.hxx
Normal file
@@ -0,0 +1,104 @@
|
||||
// Created on: 1997-04-14
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1997-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 _IGESSelect_SelectBasicGeom_HeaderFile
|
||||
#define _IGESSelect_SelectBasicGeom_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <IFSelect_SelectExplore.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Standard_Transient;
|
||||
class Interface_Graph;
|
||||
class Interface_EntityIterator;
|
||||
class TCollection_AsciiString;
|
||||
class IGESData_IGESEntity;
|
||||
|
||||
|
||||
class IGESSelect_SelectBasicGeom;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectBasicGeom, IFSelect_SelectExplore)
|
||||
|
||||
//! This selection returns the basic geometric elements
|
||||
//! contained in an IGES Entity
|
||||
//! Intended to run a "quick" transfer. I.E. :
|
||||
//! - for a Group, considers its Elements
|
||||
//! - for a Trimmed or Bounded Surface or a Face (BREP),
|
||||
//! considers the 3D curves of each of its loops
|
||||
//! - for a Plane (108), considers its Bounding Curve
|
||||
//! - for a Curve itself, takes it
|
||||
//!
|
||||
//! Also, FREE surfaces are taken, because curve 3d is known for
|
||||
//! them. (the ideal should be to have their natural bounds)
|
||||
//!
|
||||
//! If <curvesonly> is set, ONLY curves-3d are returned
|
||||
class IGESSelect_SelectBasicGeom : public IFSelect_SelectExplore
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectBasicGeom, which allways works recursively
|
||||
//! mode = -1 : Returns Surfaces (without trimming)
|
||||
//! mode = +1 : Returns Curves 3D (free or bound of surface)
|
||||
//! mode = +2 : Returns Basic Curves 3D : as 1 but CompositeCurves
|
||||
//! are returned in detail
|
||||
//! mode = 0 : both
|
||||
Standard_EXPORT IGESSelect_SelectBasicGeom(const Standard_Integer mode);
|
||||
|
||||
Standard_EXPORT Standard_Boolean CurvesOnly() const;
|
||||
|
||||
//! Explores an entity, to take its contained Curves 3d
|
||||
//! Works recursively
|
||||
Standard_EXPORT Standard_Boolean Explore (const Standard_Integer level, const Handle(Standard_Transient)& ent, const Interface_Graph& G, Interface_EntityIterator& explored) const;
|
||||
|
||||
//! Returns a text defining the criterium : "Curves 3d" or
|
||||
//! "Basic Geometry"
|
||||
Standard_EXPORT TCollection_AsciiString ExploreLabel() const;
|
||||
|
||||
//! This method can be called from everywhere to get the curves
|
||||
//! as sub-elements of a given curve :
|
||||
//! CompositeCurve : explored lists its subs + returns True
|
||||
//! Any Curve : explored is not filled but returned is True
|
||||
//! Other : returned is False
|
||||
Standard_EXPORT static Standard_Boolean SubCurves (const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& explored);
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectBasicGeom,IFSelect_SelectExplore)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Integer thegeom;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectBasicGeom_HeaderFile
|
@@ -1,48 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 SelectBypassGroup from IGESSelect inherits SelectExplore
|
||||
|
||||
---Purpose : Selects a list built as follows :
|
||||
-- Groups are entities type 402, forms 1,7,14,15 (Group,
|
||||
-- Ordered or not, "WithoutBackPointer" or not)
|
||||
--
|
||||
-- Entities which are not GROUP are taken as such
|
||||
-- For Groups, their list of Elements is explore
|
||||
-- Hence, level 0 (D) recursively explores a Group if some of
|
||||
-- its Elements are Groups. level 1 explores just at first level
|
||||
|
||||
uses AsciiString from TCollection, Transient, EntityIterator, Graph
|
||||
|
||||
raises InterfaceError
|
||||
|
||||
is
|
||||
|
||||
Create (level : Integer = 0) returns SelectBypassGroup;
|
||||
---Purpose : Creates a SelectBypassGroup, by default all level
|
||||
-- (level = 1 explores at first level)
|
||||
|
||||
Explore (me; level : Integer; ent : Transient; G : Graph;
|
||||
explored : in out EntityIterator)
|
||||
returns Boolean;
|
||||
---Purpose : Explores an entity : for a Group, gives its elements
|
||||
-- Else, takes the entity itself
|
||||
|
||||
|
||||
ExploreLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text defining the criterium : "Content of Group"
|
||||
|
||||
end SelectBypassGroup;
|
@@ -11,14 +11,20 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectBypassGroup.ixx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESBasic_GroupWithoutBackP.hxx>
|
||||
#include <IGESBasic_OrderedGroup.hxx>
|
||||
#include <IGESBasic_OrderedGroupWithoutBackP.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESSelect_SelectBypassGroup.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_InterfaceError.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
#define TypePourGroup 402
|
||||
|
||||
|
84
src/IGESSelect/IGESSelect_SelectBypassGroup.hxx
Normal file
84
src/IGESSelect/IGESSelect_SelectBypassGroup.hxx
Normal file
@@ -0,0 +1,84 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_SelectBypassGroup_HeaderFile
|
||||
#define _IGESSelect_SelectBypassGroup_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectExplore.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Interface_InterfaceError;
|
||||
class Standard_Transient;
|
||||
class Interface_Graph;
|
||||
class Interface_EntityIterator;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectBypassGroup;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectBypassGroup, IFSelect_SelectExplore)
|
||||
|
||||
//! Selects a list built as follows :
|
||||
//! Groups are entities type 402, forms 1,7,14,15 (Group,
|
||||
//! Ordered or not, "WithoutBackPointer" or not)
|
||||
//!
|
||||
//! Entities which are not GROUP are taken as such
|
||||
//! For Groups, their list of Elements is explore
|
||||
//! Hence, level 0 (D) recursively explores a Group if some of
|
||||
//! its Elements are Groups. level 1 explores just at first level
|
||||
class IGESSelect_SelectBypassGroup : public IFSelect_SelectExplore
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectBypassGroup, by default all level
|
||||
//! (level = 1 explores at first level)
|
||||
Standard_EXPORT IGESSelect_SelectBypassGroup(const Standard_Integer level = 0);
|
||||
|
||||
//! Explores an entity : for a Group, gives its elements
|
||||
//! Else, takes the entity itself
|
||||
Standard_EXPORT Standard_Boolean Explore (const Standard_Integer level, const Handle(Standard_Transient)& ent, const Interface_Graph& G, Interface_EntityIterator& explored) const;
|
||||
|
||||
//! Returns a text defining the criterium : "Content of Group"
|
||||
Standard_EXPORT TCollection_AsciiString ExploreLabel() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectBypassGroup,IFSelect_SelectExplore)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectBypassGroup_HeaderFile
|
@@ -1,54 +0,0 @@
|
||||
-- Created on: 1998-01-13
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1998-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 SelectBypassSubfigure from IGESSelect inherits SelectExplore
|
||||
|
||||
---Purpose : Selects a list built as follows :
|
||||
-- Subfigures correspond to
|
||||
-- * Definition (basic : type 308, or Network : type 320)
|
||||
-- * Instance (Singular : type 408, or Network : 420, or
|
||||
-- patterns : 412,414)
|
||||
--
|
||||
-- Entities which are not Subfigure are taken as such
|
||||
-- For Subfigures Instances, their definition is taken, then
|
||||
-- explored itself
|
||||
-- For Subfigures Definitions, the list of "Associated Entities"
|
||||
-- is explored
|
||||
-- Hence, level 0 (D) recursively explores a Subfigure if some of
|
||||
-- its Elements are Subfigures. level 1 explores just at first
|
||||
-- level (i.e. for an instance, returns its definition)
|
||||
|
||||
uses AsciiString from TCollection, Transient, EntityIterator, Graph
|
||||
|
||||
raises InterfaceError
|
||||
|
||||
is
|
||||
|
||||
Create (level : Integer = 0) returns SelectBypassSubfigure;
|
||||
---Purpose : Creates a SelectBypassSubfigure, by default all level
|
||||
-- (level = 1 explores at first level)
|
||||
|
||||
Explore (me; level : Integer; ent : Transient; G : Graph;
|
||||
explored : in out EntityIterator)
|
||||
returns Boolean;
|
||||
---Purpose : Explores an entity : for a Subfigure, gives its elements
|
||||
-- Else, takes the entity itself
|
||||
|
||||
|
||||
ExploreLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text defining the criterium : "Content of Subfigure"
|
||||
|
||||
end SelectBypassSubfigure;
|
@@ -11,18 +11,22 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectBypassSubfigure.ixx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESBasic_SubfigureDef.hxx>
|
||||
|
||||
#include <IGESBasic_SingularSubfigure.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESDraw_NetworkSubfigure.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <IGESBasic_SubfigureDef.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESDraw_CircArraySubfigure.hxx>
|
||||
|
||||
#include <IGESDraw_NetworkSubfigure.hxx>
|
||||
#include <IGESDraw_NetworkSubfigureDef.hxx>
|
||||
#include <IGESDraw_RectArraySubfigure.hxx>
|
||||
#include <IGESSelect_SelectBypassSubfigure.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_InterfaceError.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectBypassSubfigure::IGESSelect_SelectBypassSubfigure
|
||||
(const Standard_Integer level)
|
||||
|
90
src/IGESSelect/IGESSelect_SelectBypassSubfigure.hxx
Normal file
90
src/IGESSelect/IGESSelect_SelectBypassSubfigure.hxx
Normal file
@@ -0,0 +1,90 @@
|
||||
// Created on: 1998-01-13
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1998-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 _IGESSelect_SelectBypassSubfigure_HeaderFile
|
||||
#define _IGESSelect_SelectBypassSubfigure_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectExplore.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Interface_InterfaceError;
|
||||
class Standard_Transient;
|
||||
class Interface_Graph;
|
||||
class Interface_EntityIterator;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectBypassSubfigure;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectBypassSubfigure, IFSelect_SelectExplore)
|
||||
|
||||
//! Selects a list built as follows :
|
||||
//! Subfigures correspond to
|
||||
//! * Definition (basic : type 308, or Network : type 320)
|
||||
//! * Instance (Singular : type 408, or Network : 420, or
|
||||
//! patterns : 412,414)
|
||||
//!
|
||||
//! Entities which are not Subfigure are taken as such
|
||||
//! For Subfigures Instances, their definition is taken, then
|
||||
//! explored itself
|
||||
//! For Subfigures Definitions, the list of "Associated Entities"
|
||||
//! is explored
|
||||
//! Hence, level 0 (D) recursively explores a Subfigure if some of
|
||||
//! its Elements are Subfigures. level 1 explores just at first
|
||||
//! level (i.e. for an instance, returns its definition)
|
||||
class IGESSelect_SelectBypassSubfigure : public IFSelect_SelectExplore
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectBypassSubfigure, by default all level
|
||||
//! (level = 1 explores at first level)
|
||||
Standard_EXPORT IGESSelect_SelectBypassSubfigure(const Standard_Integer level = 0);
|
||||
|
||||
//! Explores an entity : for a Subfigure, gives its elements
|
||||
//! Else, takes the entity itself
|
||||
Standard_EXPORT Standard_Boolean Explore (const Standard_Integer level, const Handle(Standard_Transient)& ent, const Interface_Graph& G, Interface_EntityIterator& explored) const;
|
||||
|
||||
//! Returns a text defining the criterium : "Content of Subfigure"
|
||||
Standard_EXPORT TCollection_AsciiString ExploreLabel() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectBypassSubfigure,IFSelect_SelectExplore)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectBypassSubfigure_HeaderFile
|
@@ -1,44 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 SelectDrawingFrom from IGESSelect inherits SelectDeduct
|
||||
|
||||
---Purpose : This selection gets the Drawings attached to its input IGES
|
||||
-- entities. They are read through thr Single Views, referenced
|
||||
-- in Directory Parts of the entities
|
||||
|
||||
uses AsciiString from TCollection, EntityIterator, Graph
|
||||
|
||||
raises InterfaceError
|
||||
|
||||
is
|
||||
|
||||
Create returns SelectDrawingFrom;
|
||||
---Purpose : Creates a SelectDrawingFrom
|
||||
|
||||
HasUniqueResult (me) returns Boolean is redefined protected;
|
||||
---Purpose : Returns True, because selection works with a ViewSorter which
|
||||
-- gives a unique result
|
||||
|
||||
RootResult (me; G : Graph) returns EntityIterator raises InterfaceError;
|
||||
---Purpose : Selects the Drawings attached (through Single Views in
|
||||
-- Directory Part) to input entities
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns the label, with is "Drawings attached"
|
||||
|
||||
end SelectDrawingFrom;
|
||||
|
@@ -11,13 +11,17 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectDrawingFrom.ixx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESSelect_SelectDrawingFrom.hxx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_InterfaceError.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectDrawingFrom::IGESSelect_SelectDrawingFrom () { }
|
||||
|
||||
|
80
src/IGESSelect/IGESSelect_SelectDrawingFrom.hxx
Normal file
80
src/IGESSelect/IGESSelect_SelectDrawingFrom.hxx
Normal file
@@ -0,0 +1,80 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_SelectDrawingFrom_HeaderFile
|
||||
#define _IGESSelect_SelectDrawingFrom_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectDeduct.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Interface_InterfaceError;
|
||||
class Interface_EntityIterator;
|
||||
class Interface_Graph;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectDrawingFrom;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectDrawingFrom, IFSelect_SelectDeduct)
|
||||
|
||||
//! This selection gets the Drawings attached to its input IGES
|
||||
//! entities. They are read through thr Single Views, referenced
|
||||
//! in Directory Parts of the entities
|
||||
class IGESSelect_SelectDrawingFrom : public IFSelect_SelectDeduct
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectDrawingFrom
|
||||
Standard_EXPORT IGESSelect_SelectDrawingFrom();
|
||||
|
||||
//! Selects the Drawings attached (through Single Views in
|
||||
//! Directory Part) to input entities
|
||||
Standard_EXPORT Interface_EntityIterator RootResult (const Interface_Graph& G) const;
|
||||
|
||||
//! Returns the label, with is "Drawings attached"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectDrawingFrom,IFSelect_SelectDeduct)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
//! Returns True, because selection works with a ViewSorter which
|
||||
//! gives a unique result
|
||||
Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectDrawingFrom_HeaderFile
|
@@ -1,48 +0,0 @@
|
||||
-- Created on: 1997-10-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1997-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 SelectFaces from IGESSelect inherits SelectExplore
|
||||
|
||||
---Purpose : This selection returns the faces contained in an IGES Entity
|
||||
-- or itself if it is a Face
|
||||
-- Face means :
|
||||
-- - Face (510) of a ManifoldSolidBrep
|
||||
-- - TrimmedSurface (144)
|
||||
-- - BoundedSurface (143)
|
||||
-- - Plane with a Bounding Curve (108, form not 0)
|
||||
-- - Also, any Surface which is not in a TrimmedSurface, a
|
||||
-- BoundedSurface, or a Face (FREE Surface)
|
||||
-- -> i.e. a Face for which Natural Bounds will be considered
|
||||
|
||||
uses AsciiString from TCollection, Transient, EntityIterator, Graph
|
||||
|
||||
is
|
||||
|
||||
|
||||
Create returns SelectFaces;
|
||||
|
||||
|
||||
Explore (me; level : Integer; ent : Transient; G : Graph;
|
||||
explored : in out EntityIterator)
|
||||
returns Boolean;
|
||||
---Purpose : Explores an entity, to take its faces
|
||||
-- Works recursively
|
||||
|
||||
|
||||
ExploreLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text defining the criterium : "Faces"
|
||||
|
||||
end SelectFaces;
|
@@ -11,16 +11,20 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectFaces.ixx>
|
||||
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESBasic_SingleParent.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGeom_Plane.hxx>
|
||||
#include <IGESBasic_SingleParent.hxx>
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESSelect_SelectFaces.hxx>
|
||||
#include <IGESSolid_ManifoldSolid.hxx>
|
||||
#include <IGESSolid_Shell.hxx>
|
||||
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectFaces::IGESSelect_SelectFaces ()
|
||||
: IFSelect_SelectExplore (-1) { }
|
||||
|
83
src/IGESSelect/IGESSelect_SelectFaces.hxx
Normal file
83
src/IGESSelect/IGESSelect_SelectFaces.hxx
Normal file
@@ -0,0 +1,83 @@
|
||||
// Created on: 1997-10-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1997-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 _IGESSelect_SelectFaces_HeaderFile
|
||||
#define _IGESSelect_SelectFaces_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectExplore.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_Transient;
|
||||
class Interface_Graph;
|
||||
class Interface_EntityIterator;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectFaces;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectFaces, IFSelect_SelectExplore)
|
||||
|
||||
//! This selection returns the faces contained in an IGES Entity
|
||||
//! or itself if it is a Face
|
||||
//! Face means :
|
||||
//! - Face (510) of a ManifoldSolidBrep
|
||||
//! - TrimmedSurface (144)
|
||||
//! - BoundedSurface (143)
|
||||
//! - Plane with a Bounding Curve (108, form not 0)
|
||||
//! - Also, any Surface which is not in a TrimmedSurface, a
|
||||
//! BoundedSurface, or a Face (FREE Surface)
|
||||
//! -> i.e. a Face for which Natural Bounds will be considered
|
||||
class IGESSelect_SelectFaces : public IFSelect_SelectExplore
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Standard_EXPORT IGESSelect_SelectFaces();
|
||||
|
||||
//! Explores an entity, to take its faces
|
||||
//! Works recursively
|
||||
Standard_EXPORT Standard_Boolean Explore (const Standard_Integer level, const Handle(Standard_Transient)& ent, const Interface_Graph& G, Interface_EntityIterator& explored) const;
|
||||
|
||||
//! Returns a text defining the criterium : "Faces"
|
||||
Standard_EXPORT TCollection_AsciiString ExploreLabel() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectFaces,IFSelect_SelectExplore)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectFaces_HeaderFile
|
@@ -1,40 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 SelectFromDrawing from IGESSelect inherits SelectDeduct
|
||||
|
||||
---Purpose : This selection gets in all the model, the entities which are
|
||||
-- attached to the drawing(s) given as input. This includes :
|
||||
-- - Drawing Frame (Annotations directky referenced by Drawings)
|
||||
-- - Entities attached to the single Views referenced by Drawings
|
||||
|
||||
uses AsciiString from TCollection, EntityIterator, Graph
|
||||
|
||||
raises InterfaceError
|
||||
|
||||
is
|
||||
|
||||
Create returns SelectFromDrawing;
|
||||
---Purpose : Creates a SelectFromDrawing
|
||||
|
||||
RootResult (me; G : Graph) returns EntityIterator raises InterfaceError;
|
||||
---Purpose : Selects the Entities which are attached to the Drawing(s)
|
||||
-- present in the Input
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns the label, with is "Entities attached to Drawing"
|
||||
|
||||
end SelectFromDrawing;
|
@@ -11,10 +11,16 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectFromDrawing.ixx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESSelect_SelectFromDrawing.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_InterfaceError.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
#define PourDrawing 404
|
||||
|
||||
|
76
src/IGESSelect/IGESSelect_SelectFromDrawing.hxx
Normal file
76
src/IGESSelect/IGESSelect_SelectFromDrawing.hxx
Normal file
@@ -0,0 +1,76 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_SelectFromDrawing_HeaderFile
|
||||
#define _IGESSelect_SelectFromDrawing_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectDeduct.hxx>
|
||||
class Interface_InterfaceError;
|
||||
class Interface_EntityIterator;
|
||||
class Interface_Graph;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectFromDrawing;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectFromDrawing, IFSelect_SelectDeduct)
|
||||
|
||||
//! This selection gets in all the model, the entities which are
|
||||
//! attached to the drawing(s) given as input. This includes :
|
||||
//! - Drawing Frame (Annotations directky referenced by Drawings)
|
||||
//! - Entities attached to the single Views referenced by Drawings
|
||||
class IGESSelect_SelectFromDrawing : public IFSelect_SelectDeduct
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectFromDrawing
|
||||
Standard_EXPORT IGESSelect_SelectFromDrawing();
|
||||
|
||||
//! Selects the Entities which are attached to the Drawing(s)
|
||||
//! present in the Input
|
||||
Standard_EXPORT Interface_EntityIterator RootResult (const Interface_Graph& G) const;
|
||||
|
||||
//! Returns the label, with is "Entities attached to Drawing"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectFromDrawing,IFSelect_SelectDeduct)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectFromDrawing_HeaderFile
|
@@ -1,40 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 SelectFromSingleView from IGESSelect inherits SelectDeduct
|
||||
|
||||
---Purpose : This selection gets in all the model, the entities which are
|
||||
-- attached to the views given as input. Only Single Views are
|
||||
-- considered. This information is kept from Directory Part
|
||||
-- (View Item).
|
||||
|
||||
uses AsciiString from TCollection, EntityIterator, Graph
|
||||
|
||||
raises InterfaceError
|
||||
|
||||
is
|
||||
|
||||
Create returns SelectFromSingleView;
|
||||
---Purpose : Creates a SelectFromSingleView
|
||||
|
||||
RootResult (me; G : Graph) returns EntityIterator raises InterfaceError;
|
||||
---Purpose : Selects the Entities which are attached to the Single View(s)
|
||||
-- present in the Input
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns the label, with is "Entities attached to single View"
|
||||
|
||||
end SelectFromSingleView;
|
@@ -11,12 +11,16 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectFromSingleView.ixx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_ViewKindEntity.hxx>
|
||||
#include <IGESSelect_SelectFromSingleView.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_InterfaceError.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectFromSingleView::IGESSelect_SelectFromSingleView () { }
|
||||
|
||||
|
76
src/IGESSelect/IGESSelect_SelectFromSingleView.hxx
Normal file
76
src/IGESSelect/IGESSelect_SelectFromSingleView.hxx
Normal file
@@ -0,0 +1,76 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_SelectFromSingleView_HeaderFile
|
||||
#define _IGESSelect_SelectFromSingleView_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectDeduct.hxx>
|
||||
class Interface_InterfaceError;
|
||||
class Interface_EntityIterator;
|
||||
class Interface_Graph;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectFromSingleView;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectFromSingleView, IFSelect_SelectDeduct)
|
||||
|
||||
//! This selection gets in all the model, the entities which are
|
||||
//! attached to the views given as input. Only Single Views are
|
||||
//! considered. This information is kept from Directory Part
|
||||
//! (View Item).
|
||||
class IGESSelect_SelectFromSingleView : public IFSelect_SelectDeduct
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectFromSingleView
|
||||
Standard_EXPORT IGESSelect_SelectFromSingleView();
|
||||
|
||||
//! Selects the Entities which are attached to the Single View(s)
|
||||
//! present in the Input
|
||||
Standard_EXPORT Interface_EntityIterator RootResult (const Interface_Graph& G) const;
|
||||
|
||||
//! Returns the label, with is "Entities attached to single View"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectFromSingleView,IFSelect_SelectDeduct)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectFromSingleView_HeaderFile
|
@@ -1,58 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 SelectLevelNumber from IGESSelect inherits SelectExtract
|
||||
|
||||
---Purpose : This selection looks at Level Number of IGES Entities :
|
||||
-- it considers items attached, either to a single level with a
|
||||
-- given value, or to a level list which contains this value
|
||||
--
|
||||
-- Level = 0 means entities not attached to any level
|
||||
--
|
||||
-- Remark : the class CounterOfLevelNumber gives informations
|
||||
-- about present levels in a file.
|
||||
|
||||
uses AsciiString from TCollection, Transient, InterfaceModel, IntParam
|
||||
|
||||
is
|
||||
|
||||
Create returns SelectLevelNumber;
|
||||
---Purpose : Creates a SelectLevelNumber, with no Level criterium : see
|
||||
-- SetLevelNumber. Empty, this selection filters nothing.
|
||||
|
||||
SetLevelNumber (me : mutable; levnum : IntParam);
|
||||
---Purpose : Sets a Parameter as Level criterium
|
||||
|
||||
LevelNumber (me) returns IntParam;
|
||||
---Purpose : Returns the Level criterium. NullHandle if not yet set
|
||||
-- (interpreted as Level = 0 : no level number attached)
|
||||
|
||||
Sort (me; rank : Integer; ent : Transient; model : InterfaceModel)
|
||||
returns Boolean;
|
||||
---Purpose : Returns True if <ent> is an IGES Entity with Level Number
|
||||
-- admits the criterium (= value if single level, or one of the
|
||||
-- attached level numbers = value if level list)
|
||||
|
||||
ExtractLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns the Selection criterium :
|
||||
-- "IGES Entity, Level Number admits <nn>" (if nn > 0) or
|
||||
-- "IGES Entity attached to no Level" (if nn = 0)
|
||||
|
||||
fields
|
||||
|
||||
thelevnum : IntParam;
|
||||
|
||||
end SelectLevelNumber;
|
@@ -11,14 +11,18 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectLevelNumber.ixx>
|
||||
|
||||
#include <IFSelect_IntParam.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGraph_DefinitionLevel.hxx>
|
||||
#include <IGESSelect_SelectLevelNumber.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
IGESSelect_SelectLevelNumber::IGESSelect_SelectLevelNumber () { }
|
||||
|
||||
|
||||
|
94
src/IGESSelect/IGESSelect_SelectLevelNumber.hxx
Normal file
94
src/IGESSelect/IGESSelect_SelectLevelNumber.hxx
Normal file
@@ -0,0 +1,94 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_SelectLevelNumber_HeaderFile
|
||||
#define _IGESSelect_SelectLevelNumber_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectExtract.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class IFSelect_IntParam;
|
||||
class Standard_Transient;
|
||||
class Interface_InterfaceModel;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectLevelNumber;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectLevelNumber, IFSelect_SelectExtract)
|
||||
|
||||
//! This selection looks at Level Number of IGES Entities :
|
||||
//! it considers items attached, either to a single level with a
|
||||
//! given value, or to a level list which contains this value
|
||||
//!
|
||||
//! Level = 0 means entities not attached to any level
|
||||
//!
|
||||
//! Remark : the class CounterOfLevelNumber gives informations
|
||||
//! about present levels in a file.
|
||||
class IGESSelect_SelectLevelNumber : public IFSelect_SelectExtract
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectLevelNumber, with no Level criterium : see
|
||||
//! SetLevelNumber. Empty, this selection filters nothing.
|
||||
Standard_EXPORT IGESSelect_SelectLevelNumber();
|
||||
|
||||
//! Sets a Parameter as Level criterium
|
||||
Standard_EXPORT void SetLevelNumber (const Handle(IFSelect_IntParam)& levnum);
|
||||
|
||||
//! Returns the Level criterium. NullHandle if not yet set
|
||||
//! (interpreted as Level = 0 : no level number attached)
|
||||
Standard_EXPORT Handle(IFSelect_IntParam) LevelNumber() const;
|
||||
|
||||
//! Returns True if <ent> is an IGES Entity with Level Number
|
||||
//! admits the criterium (= value if single level, or one of the
|
||||
//! attached level numbers = value if level list)
|
||||
Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
//! Returns the Selection criterium :
|
||||
//! "IGES Entity, Level Number admits <nn>" (if nn > 0) or
|
||||
//! "IGES Entity attached to no Level" (if nn = 0)
|
||||
Standard_EXPORT TCollection_AsciiString ExtractLabel() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectLevelNumber,IFSelect_SelectExtract)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(IFSelect_IntParam) thelevnum;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectLevelNumber_HeaderFile
|
@@ -1,53 +0,0 @@
|
||||
-- Created on: 1994-05-31
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 SelectName from IGESSelect inherits SelectExtract
|
||||
|
||||
---Purpose : Selects Entities which have a given name.
|
||||
-- Consider Property Name if present, else Short Label, but
|
||||
-- not the Subscript Number
|
||||
-- First version : keeps exact name
|
||||
-- Later : regular expression
|
||||
|
||||
uses AsciiString from TCollection, HAsciiString from TCollection,
|
||||
Transient, InterfaceModel
|
||||
|
||||
is
|
||||
|
||||
Create returns SelectName;
|
||||
---Purpose : Creates an empty SelectName : every entity is considered
|
||||
-- good (no filter active)
|
||||
|
||||
Sort (me; rank : Integer; ent : Transient; model : InterfaceModel)
|
||||
returns Boolean;
|
||||
---Purpose : Returns True if Name of Entity complies with Name Filter
|
||||
|
||||
SetName (me : mutable; name : HAsciiString from TCollection);
|
||||
---Purpose : Sets a Name as a criterium : IGES Entities which have this name
|
||||
-- are kept (without regular expression, there should be at most
|
||||
-- one). <name> can be regarded as a Text Parameter
|
||||
|
||||
Name (me) returns HAsciiString from TCollection;
|
||||
---Purpose : Returns the Name used as Filter
|
||||
|
||||
ExtractLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns the Selection criterium : "IGES Entity, Name : <name>"
|
||||
|
||||
fields
|
||||
|
||||
thename : HAsciiString from TCollection;
|
||||
|
||||
end SelectName;
|
@@ -11,12 +11,17 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectName.ixx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESSelect_SelectName.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
IGESSelect_SelectName::IGESSelect_SelectName () { }
|
||||
|
||||
|
||||
|
88
src/IGESSelect/IGESSelect_SelectName.hxx
Normal file
88
src/IGESSelect/IGESSelect_SelectName.hxx
Normal file
@@ -0,0 +1,88 @@
|
||||
// Created on: 1994-05-31
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_SelectName_HeaderFile
|
||||
#define _IGESSelect_SelectName_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectExtract.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class TCollection_HAsciiString;
|
||||
class Standard_Transient;
|
||||
class Interface_InterfaceModel;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectName;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectName, IFSelect_SelectExtract)
|
||||
|
||||
//! Selects Entities which have a given name.
|
||||
//! Consider Property Name if present, else Short Label, but
|
||||
//! not the Subscript Number
|
||||
//! First version : keeps exact name
|
||||
//! Later : regular expression
|
||||
class IGESSelect_SelectName : public IFSelect_SelectExtract
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates an empty SelectName : every entity is considered
|
||||
//! good (no filter active)
|
||||
Standard_EXPORT IGESSelect_SelectName();
|
||||
|
||||
//! Returns True if Name of Entity complies with Name Filter
|
||||
Standard_EXPORT Standard_Boolean Sort (const Standard_Integer rank, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
|
||||
|
||||
//! Sets a Name as a criterium : IGES Entities which have this name
|
||||
//! are kept (without regular expression, there should be at most
|
||||
//! one). <name> can be regarded as a Text Parameter
|
||||
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& name);
|
||||
|
||||
//! Returns the Name used as Filter
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
|
||||
|
||||
//! Returns the Selection criterium : "IGES Entity, Name : <name>"
|
||||
Standard_EXPORT TCollection_AsciiString ExtractLabel() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectName,IFSelect_SelectExtract)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(TCollection_HAsciiString) thename;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectName_HeaderFile
|
@@ -1,47 +0,0 @@
|
||||
-- Created on: 1999-02-26
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 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 SelectPCurves from IGESSelect inherits SelectExplore
|
||||
|
||||
---Purpose : This Selection returns the pcurves which lie on a face
|
||||
-- In two modes : global (i.e. a CompositeCurve is not explored)
|
||||
-- or basic (all the basic curves are listed)
|
||||
|
||||
uses AsciiString from TCollection, Transient, EntityIterator, Graph
|
||||
|
||||
is
|
||||
|
||||
Create (basic : Boolean) returns SelectPCurves;
|
||||
---Purpose : Creates a SelectPCurves
|
||||
-- basic True : lists all the components of pcurves
|
||||
-- basic False : lists the uppest level definitions
|
||||
-- (i.e. stops at CompositeCurve)
|
||||
|
||||
Explore (me; level : Integer; ent : Transient; G : Graph;
|
||||
explored : in out EntityIterator)
|
||||
returns Boolean;
|
||||
---Purpose : Explores an entity, to take its contained PCurves
|
||||
-- An independant curve is IGNORED : only faces are explored
|
||||
|
||||
ExploreLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns a text defining the criterium : "Basic PCurves" or
|
||||
-- "Global PCurves"
|
||||
|
||||
fields
|
||||
|
||||
thebasic : Boolean;
|
||||
|
||||
end SelectPCurves;
|
@@ -11,20 +11,25 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectPCurves.ixx>
|
||||
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESGeom_Boundary.hxx>
|
||||
#include <IGESGeom_BoundedSurface.hxx>
|
||||
#include <IGESGeom_CurveOnSurface.hxx>
|
||||
#include <IGESGeom_TrimmedSurface.hxx>
|
||||
#include <IGESGeom_BoundedSurface.hxx>
|
||||
#include <IGESGeom_Boundary.hxx>
|
||||
#include <IGESBasic_Group.hxx>
|
||||
#include <IGESSolid_ManifoldSolid.hxx>
|
||||
#include <IGESSolid_Shell.hxx>
|
||||
#include <IGESSelect_SelectBasicGeom.hxx>
|
||||
#include <IGESSelect_SelectPCurves.hxx>
|
||||
#include <IGESSolid_Face.hxx>
|
||||
#include <IGESSolid_Loop.hxx>
|
||||
#include <IGESSelect_SelectBasicGeom.hxx>
|
||||
|
||||
#include <IGESSolid_ManifoldSolid.hxx>
|
||||
#include <IGESSolid_Shell.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectPCurves::IGESSelect_SelectPCurves
|
||||
(const Standard_Boolean basic)
|
||||
|
82
src/IGESSelect/IGESSelect_SelectPCurves.hxx
Normal file
82
src/IGESSelect/IGESSelect_SelectPCurves.hxx
Normal file
@@ -0,0 +1,82 @@
|
||||
// Created on: 1999-02-26
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 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 _IGESSelect_SelectPCurves_HeaderFile
|
||||
#define _IGESSelect_SelectPCurves_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <IFSelect_SelectExplore.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class Standard_Transient;
|
||||
class Interface_Graph;
|
||||
class Interface_EntityIterator;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectPCurves;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectPCurves, IFSelect_SelectExplore)
|
||||
|
||||
//! This Selection returns the pcurves which lie on a face
|
||||
//! In two modes : global (i.e. a CompositeCurve is not explored)
|
||||
//! or basic (all the basic curves are listed)
|
||||
class IGESSelect_SelectPCurves : public IFSelect_SelectExplore
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectPCurves
|
||||
//! basic True : lists all the components of pcurves
|
||||
//! basic False : lists the uppest level definitions
|
||||
//! (i.e. stops at CompositeCurve)
|
||||
Standard_EXPORT IGESSelect_SelectPCurves(const Standard_Boolean basic);
|
||||
|
||||
//! Explores an entity, to take its contained PCurves
|
||||
//! An independant curve is IGNORED : only faces are explored
|
||||
Standard_EXPORT Standard_Boolean Explore (const Standard_Integer level, const Handle(Standard_Transient)& ent, const Interface_Graph& G, Interface_EntityIterator& explored) const;
|
||||
|
||||
//! Returns a text defining the criterium : "Basic PCurves" or
|
||||
//! "Global PCurves"
|
||||
Standard_EXPORT TCollection_AsciiString ExploreLabel() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectPCurves,IFSelect_SelectExplore)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Standard_Boolean thebasic;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectPCurves_HeaderFile
|
@@ -1,44 +0,0 @@
|
||||
-- Created on: 1994-06-01
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1994-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 SelectSingleViewFrom from IGESSelect inherits SelectDeduct
|
||||
|
||||
---Purpose : This selection gets the Single Views attached to its input
|
||||
-- IGES entities. Single Views themselves or Drawings as passed
|
||||
-- as such (Drawings, for their Annotations)
|
||||
|
||||
|
||||
uses AsciiString from TCollection, EntityIterator, Graph
|
||||
|
||||
raises InterfaceError
|
||||
|
||||
is
|
||||
|
||||
Create returns SelectSingleViewFrom;
|
||||
---Purpose : Creates a SelectSingleViewFrom
|
||||
|
||||
HasUniqueResult (me) returns Boolean is redefined protected;
|
||||
---Purpose : Returns True, because selection works with a ViewSorter which
|
||||
-- gives a unique result
|
||||
|
||||
RootResult (me; G : Graph) returns EntityIterator raises InterfaceError;
|
||||
---Purpose : Selects the Single Views attached (in Directory Part) to
|
||||
-- input entities
|
||||
|
||||
Label (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns the label, with is "Single Views attached"
|
||||
|
||||
end SelectSingleViewFrom;
|
@@ -11,13 +11,17 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectSingleViewFrom.ixx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESData_IGESModel.hxx>
|
||||
#include <IGESSelect_SelectSingleViewFrom.hxx>
|
||||
#include <IGESSelect_ViewSorter.hxx>
|
||||
#include <Interface_EntityIterator.hxx>
|
||||
#include <Interface_Graph.hxx>
|
||||
#include <Interface_InterfaceError.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectSingleViewFrom::IGESSelect_SelectSingleViewFrom () { }
|
||||
|
||||
|
80
src/IGESSelect/IGESSelect_SelectSingleViewFrom.hxx
Normal file
80
src/IGESSelect/IGESSelect_SelectSingleViewFrom.hxx
Normal file
@@ -0,0 +1,80 @@
|
||||
// Created on: 1994-06-01
|
||||
// Created by: Christian CAILLET
|
||||
// Copyright (c) 1994-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 _IGESSelect_SelectSingleViewFrom_HeaderFile
|
||||
#define _IGESSelect_SelectSingleViewFrom_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <IFSelect_SelectDeduct.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
class Interface_InterfaceError;
|
||||
class Interface_EntityIterator;
|
||||
class Interface_Graph;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class IGESSelect_SelectSingleViewFrom;
|
||||
DEFINE_STANDARD_HANDLE(IGESSelect_SelectSingleViewFrom, IFSelect_SelectDeduct)
|
||||
|
||||
//! This selection gets the Single Views attached to its input
|
||||
//! IGES entities. Single Views themselves or Drawings as passed
|
||||
//! as such (Drawings, for their Annotations)
|
||||
class IGESSelect_SelectSingleViewFrom : public IFSelect_SelectDeduct
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a SelectSingleViewFrom
|
||||
Standard_EXPORT IGESSelect_SelectSingleViewFrom();
|
||||
|
||||
//! Selects the Single Views attached (in Directory Part) to
|
||||
//! input entities
|
||||
Standard_EXPORT Interface_EntityIterator RootResult (const Interface_Graph& G) const;
|
||||
|
||||
//! Returns the label, with is "Single Views attached"
|
||||
Standard_EXPORT TCollection_AsciiString Label() const;
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(IGESSelect_SelectSingleViewFrom,IFSelect_SelectDeduct)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
//! Returns True, because selection works with a ViewSorter which
|
||||
//! gives a unique result
|
||||
Standard_EXPORT virtual Standard_Boolean HasUniqueResult() const Standard_OVERRIDE;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _IGESSelect_SelectSingleViewFrom_HeaderFile
|
@@ -1,54 +0,0 @@
|
||||
-- Created on: 1996-10-11
|
||||
-- Created by: Christian CAILLET
|
||||
-- Copyright (c) 1996-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 SelectSubordinate from IGESSelect inherits SelectExtract
|
||||
|
||||
---Purpose : This selections uses Subordinate Status as sort criterium
|
||||
-- It is an integer number which can be :
|
||||
-- 0 Independant
|
||||
-- 1 Physically Dependant
|
||||
-- 2 Logically Dependant
|
||||
-- 3 Both (recorded)
|
||||
-- + to sort :
|
||||
-- 4 : 1 or 3 -> at least Physically
|
||||
-- 5 : 2 or 3 -> at least Logically
|
||||
-- 6 : 1 or 2 or 3 -> any kind of dependance
|
||||
-- (corresponds to 0 reversed)
|
||||
|
||||
uses AsciiString from TCollection, Transient, InterfaceModel
|
||||
|
||||
is
|
||||
|
||||
Create (status : Integer) returns SelectSubordinate;
|
||||
---Purpose : Creates a SelectSubordinate with a status to be sorted
|
||||
|
||||
Status (me) returns Integer;
|
||||
---Purpose : Returns the status used for sorting
|
||||
|
||||
Sort (me; rank : Integer; ent : Transient; model : InterfaceModel)
|
||||
returns Boolean;
|
||||
---Purpose : Returns True if <ent> is an IGES Entity with Subordinate
|
||||
-- Status matching the criterium
|
||||
|
||||
ExtractLabel (me) returns AsciiString from TCollection;
|
||||
---Purpose : Returns the Selection criterium : "IGES Entity, Independant"
|
||||
-- etc...
|
||||
|
||||
fields
|
||||
|
||||
thestatus : Integer;
|
||||
|
||||
end SelectSubordinate;
|
@@ -11,11 +11,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <IGESSelect_SelectSubordinate.ixx>
|
||||
|
||||
#include <IGESData_IGESEntity.hxx>
|
||||
#include <IGESSelect_SelectSubordinate.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
#include <Interface_Macros.hxx>
|
||||
|
||||
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IGESSelect_SelectSubordinate::IGESSelect_SelectSubordinate
|
||||
(const Standard_Integer status) { thestatus = status; }
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user