1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

IGES simplification

This commit is contained in:
szv
2016-12-05 14:41:36 +03:00
parent 2a278ae90b
commit 0fef9c4085
472 changed files with 2387 additions and 18349 deletions

View File

@@ -13,7 +13,6 @@
#include <IFSelect_SelectPointed.hxx>
#include <Interface_CopyControl.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Graph.hxx>
#include <Interface_InterfaceError.hxx>
@@ -146,18 +145,6 @@ IFSelect_SelectPointed::IFSelect_SelectPointed ()
return theitems.Value(num);
}
void IFSelect_SelectPointed::Update
(const Handle(Interface_CopyControl)& control)
{
Standard_Integer nb = theitems.Length();
for (Standard_Integer i = nb; i > 0; i --) {
Handle(Standard_Transient) enfr, ento;
enfr = theitems.Value(i);
if (!control->Search(enfr,ento)) theitems.Remove(i);
else theitems.SetValue(i,ento);
}
}
// .... Actions Generales
Interface_EntityIterator IFSelect_SelectPointed::RootResult

View File

@@ -27,7 +27,6 @@
#include <Standard_Integer.hxx>
class Interface_InterfaceError;
class Standard_Transient;
class Interface_CopyControl;
class Interface_EntityIterator;
class Interface_Graph;
class TCollection_AsciiString;
@@ -106,10 +105,6 @@ public:
//! Returns an item given its rank, or a Null Handle
Standard_EXPORT Handle(Standard_Transient) Item (const Standard_Integer num) const;
//! Rebuilds the selected list. Any selected entity which has a
//! bound result is replaced by this result, else it is removed.
Standard_EXPORT void Update (const Handle(Interface_CopyControl)& control);
//! Returns the list of selected items. Only the selected entities
//! which are present in the graph are given (this result assures
//! uniqueness).
@@ -119,29 +114,12 @@ public:
//! It is "Pointed Entities"
Standard_EXPORT TCollection_AsciiString Label() const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IFSelect_SelectPointed,IFSelect_SelectBase)
protected:
private:
private:
Standard_Boolean theset;
TColStd_SequenceOfTransient theitems;
};
#endif // _IFSelect_SelectPointed_HeaderFile

View File

@@ -24,26 +24,56 @@
#include <Interface_GeneralLib.hxx>
#include <Interface_ReaderLib.hxx>
// Ancillary data to work on a Package of IGES Entities with a Protocol
// (Modules are created and loaded in appropriate libraries, once by Init)
static Handle(IGESAppli_Protocol) protocol;
#include <IGESData.hxx>
#include <IGESBasic.hxx>
#include <IGESGeom.hxx>
#include <IGESGraph.hxx>
#include <IGESDimen.hxx>
//#include <IGESSolid.hxx>
void IGESAppli::Init ()
void IGESAppli::Init ()
{
IGESDefs::Init();
IGESDraw::Init();
//Instead of IGESSolid::Init(); {
//Instead of IGESGeom::Init(); {
//Instead of IGESBasic::Init(); {
IGESData::Init(); // usefull for Undefined Type or Erroneous Entities
IGESBasic::Protocol();
//}
IGESGeom::Protocol();
//}
//IGESSolid::Protocol();
//}
//Instead of IGESDefs::Init(); {
//Instead of IGESGraph::Init(); {
//IGESBasic::Init();
IGESGraph::Protocol();
//}
IGESDefs::Protocol();
//}
//Instead of IGESDraw::Init(); {
//Instead of IGESDimen::Init(); {
//IGESGeom::Init();
//IGESGraph::Init();
IGESDimen::Protocol();
//}
IGESDraw::Protocol();
//}
IGESAppli::Protocol();
}
const Handle(IGESAppli_Protocol) & IGESAppli::Protocol ()
{
static Handle(IGESAppli_Protocol) protocol;
if (protocol.IsNull()) {
protocol = new IGESAppli_Protocol;
/*Interface_GeneralLib::SetGlobal (new IGESSolid_GeneralModule, protocol);
Interface_ReaderLib::SetGlobal (new IGESSolid_ReadWriteModule,protocol);
IGESData_WriterLib::SetGlobal (new IGESSolid_ReadWriteModule,protocol);
IGESData_SpecificLib::SetGlobal (new IGESSolid_SpecificModule, protocol);*/
Interface_GeneralLib::SetGlobal (new IGESAppli_GeneralModule, protocol);
Interface_ReaderLib::SetGlobal (new IGESAppli_ReadWriteModule,protocol);
IGESData_WriterLib::SetGlobal (new IGESAppli_ReadWriteModule,protocol);
IGESData_SpecificLib::SetGlobal (new IGESAppli_SpecificModule, protocol);
}
}
Handle(IGESAppli_Protocol) IGESAppli::Protocol ()
{
return protocol;
}

View File

@@ -18,132 +18,21 @@
#define _IGESAppli_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class IGESAppli_Protocol;
class IGESAppli_Node;
class IGESAppli_FiniteElement;
class IGESAppli_NodalDisplAndRot;
class IGESAppli_NodalResults;
class IGESAppli_ElementResults;
class IGESAppli_Flow;
class IGESAppli_PipingFlow;
class IGESAppli_RegionRestriction;
class IGESAppli_LevelFunction;
class IGESAppli_LineWidening;
class IGESAppli_DrilledHole;
class IGESAppli_ReferenceDesignator;
class IGESAppli_PinNumber;
class IGESAppli_PartNumber;
class IGESAppli_FlowLineSpec;
class IGESAppli_LevelToPWBLayerMap;
class IGESAppli_PWBArtworkStackup;
class IGESAppli_PWBDrilledHole;
class IGESAppli_NodalConstraint;
class IGESAppli_ToolNode;
class IGESAppli_ToolFiniteElement;
class IGESAppli_ToolNodalDisplAndRot;
class IGESAppli_ToolNodalResults;
class IGESAppli_ToolElementResults;
class IGESAppli_ToolFlow;
class IGESAppli_ToolPipingFlow;
class IGESAppli_ToolRegionRestriction;
class IGESAppli_ToolLevelFunction;
class IGESAppli_ToolLineWidening;
class IGESAppli_ToolDrilledHole;
class IGESAppli_ToolReferenceDesignator;
class IGESAppli_ToolPinNumber;
class IGESAppli_ToolPartNumber;
class IGESAppli_ToolFlowLineSpec;
class IGESAppli_ToolLevelToPWBLayerMap;
class IGESAppli_ToolPWBArtworkStackup;
class IGESAppli_ToolPWBDrilledHole;
class IGESAppli_ToolNodalConstraint;
class IGESAppli_Protocol;
class IGESAppli_ReadWriteModule;
class IGESAppli_GeneralModule;
class IGESAppli_SpecificModule;
//! This package represents collection of miscellaneous
//! entities from IGES
class IGESAppli
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Prepares dynamic data (Protocol, Modules) for this package
Standard_EXPORT static void Init();
//! Returns the Protocol for this Package
Standard_EXPORT static Handle(IGESAppli_Protocol) Protocol();
protected:
private:
friend class IGESAppli_Node;
friend class IGESAppli_FiniteElement;
friend class IGESAppli_NodalDisplAndRot;
friend class IGESAppli_NodalResults;
friend class IGESAppli_ElementResults;
friend class IGESAppli_Flow;
friend class IGESAppli_PipingFlow;
friend class IGESAppli_RegionRestriction;
friend class IGESAppli_LevelFunction;
friend class IGESAppli_LineWidening;
friend class IGESAppli_DrilledHole;
friend class IGESAppli_ReferenceDesignator;
friend class IGESAppli_PinNumber;
friend class IGESAppli_PartNumber;
friend class IGESAppli_FlowLineSpec;
friend class IGESAppli_LevelToPWBLayerMap;
friend class IGESAppli_PWBArtworkStackup;
friend class IGESAppli_PWBDrilledHole;
friend class IGESAppli_NodalConstraint;
friend class IGESAppli_ToolNode;
friend class IGESAppli_ToolFiniteElement;
friend class IGESAppli_ToolNodalDisplAndRot;
friend class IGESAppli_ToolNodalResults;
friend class IGESAppli_ToolElementResults;
friend class IGESAppli_ToolFlow;
friend class IGESAppli_ToolPipingFlow;
friend class IGESAppli_ToolRegionRestriction;
friend class IGESAppli_ToolLevelFunction;
friend class IGESAppli_ToolLineWidening;
friend class IGESAppli_ToolDrilledHole;
friend class IGESAppli_ToolReferenceDesignator;
friend class IGESAppli_ToolPinNumber;
friend class IGESAppli_ToolPartNumber;
friend class IGESAppli_ToolFlowLineSpec;
friend class IGESAppli_ToolLevelToPWBLayerMap;
friend class IGESAppli_ToolPWBArtworkStackup;
friend class IGESAppli_ToolPWBDrilledHole;
friend class IGESAppli_ToolNodalConstraint;
friend class IGESAppli_Protocol;
friend class IGESAppli_ReadWriteModule;
friend class IGESAppli_GeneralModule;
friend class IGESAppli_SpecificModule;
Standard_EXPORT static const Handle(IGESAppli_Protocol) & Protocol();
};
#endif // _IGESAppli_HeaderFile

View File

@@ -17,13 +17,10 @@
//--------------------------------------------------------------------
#include <IGESAppli_DrilledHole.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_DrilledHole,IGESData_IGESEntity)
IGESAppli_DrilledHole::IGESAppli_DrilledHole () { }
void IGESAppli_DrilledHole::Init
void IGESAppli_DrilledHole::Init
(const Standard_Integer nbPropVal,
const Standard_Real aSize, const Standard_Real anotherSize,
const Standard_Integer aPlating, const Standard_Integer aLayer,
@@ -38,33 +35,12 @@ IGESAppli_DrilledHole::IGESAppli_DrilledHole () { }
InitTypeAndForm(406,6);
}
Standard_Integer IGESAppli_DrilledHole::NbPropertyValues () const
void IGESAppli_DrilledHole::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Standard_Real IGESAppli_DrilledHole::DrillDiaSize () const
{
return theDrillDiaSize;
}
Standard_Real IGESAppli_DrilledHole::FinishDiaSize () const
{
return theFinishDiaSize;
}
Standard_Boolean IGESAppli_DrilledHole::IsPlating () const
{
return (thePlatingFlag != 0);
}
Standard_Integer IGESAppli_DrilledHole::NbLowerLayer () const
{
return theNbLowerLayer;
}
Standard_Integer IGESAppli_DrilledHole::NbHigherLayer () const
{
return theNbHigherLayer;
if (SubordinateStatus() != 0)
if (DefLevel() != IGESData_DefOne &&
DefLevel() != IGESData_DefSeveral)
theCheck->AddFail("Level type : Not value/reference");
if (NbPropertyValues() != 5)
theCheck->AddFail("Number of Property Values != 5");
}

View File

@@ -17,14 +17,7 @@
#ifndef _IGESAppli_DrilledHole_HeaderFile
#define _IGESAppli_DrilledHole_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class IGESAppli_DrilledHole;
DEFINE_STANDARD_HANDLE(IGESAppli_DrilledHole, IGESData_IGESEntity)
@@ -35,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_DrilledHole, IGESData_IGESEntity)
//! through a printed circuit board.
class IGESAppli_DrilledHole : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_DrilledHole();
IGESAppli_DrilledHole() {}
//! This method is used to set the fields of the class
//! DrilledHole
@@ -54,36 +45,29 @@ public:
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Real aSize, const Standard_Real anotherSize, const Standard_Integer aPlating, const Standard_Integer aLayer, const Standard_Integer anotherLayer);
//! is always 5
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns the drill diameter size
Standard_EXPORT Standard_Real DrillDiaSize() const;
Standard_Real DrillDiaSize() const { return theDrillDiaSize; }
//! returns the finish diameter size
Standard_EXPORT Standard_Real FinishDiaSize() const;
Standard_Real FinishDiaSize() const { return theFinishDiaSize; }
//! Returns Plating Status :
//! False = not plating / True = is plating
Standard_EXPORT Standard_Boolean IsPlating() const;
Standard_Boolean IsPlating() const { return (thePlatingFlag != 0); }
//! returns the lower numbered layer
Standard_EXPORT Standard_Integer NbLowerLayer() const;
Standard_Integer NbLowerLayer() const { return theNbLowerLayer; }
//! returns the higher numbered layer
Standard_EXPORT Standard_Integer NbHigherLayer() const;
Standard_Integer NbHigherLayer() const { return theNbHigherLayer; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_DrilledHole,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Standard_Real theDrillDiaSize;
@@ -91,14 +75,6 @@ private:
Standard_Integer thePlatingFlag;
Standard_Integer theNbLowerLayer;
Standard_Integer theNbHigherLayer;
};
#endif // _IGESAppli_DrilledHole_HeaderFile

View File

@@ -24,13 +24,11 @@
#include <IGESDimen_GeneralNote.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ElementResults,IGESData_IGESEntity)
IGESAppli_ElementResults::IGESAppli_ElementResults () { }
void IGESAppli_ElementResults::Init
void IGESAppli_ElementResults::Init
(const Handle(IGESDimen_GeneralNote)& aNote,
const Standard_Integer aSubCase, const Standard_Real aTime,
const Standard_Integer nbResults, const Standard_Integer aResRepFlag,
@@ -83,101 +81,66 @@ IGESAppli_ElementResults::IGESAppli_ElementResults () { }
// FormNumber -> Type of the Results
}
void IGESAppli_ElementResults::SetFormNumber (const Standard_Integer form)
void IGESAppli_ElementResults::SetFormNumber (const Standard_Integer form)
{
if (form < 0 || form > 34) Standard_OutOfRange::Raise
("IGESAppli_ElementResults : SetFormNumber");
InitTypeAndForm(148,form);
}
Handle(IGESDimen_GeneralNote) IGESAppli_ElementResults::Note () const
{
return theNote;
}
Standard_Integer IGESAppli_ElementResults::SubCaseNumber () const
{
return theSubcaseNumber;
}
Standard_Real IGESAppli_ElementResults::Time () const
{
return theTime;
}
Standard_Integer IGESAppli_ElementResults::NbResultValues () const
{
return theNbResultValues;
}
Standard_Integer IGESAppli_ElementResults::ResultReportFlag () const
{
return theResultReportFlag;
}
Standard_Integer IGESAppli_ElementResults::NbElements () const
Standard_Integer IGESAppli_ElementResults::NbElements () const
{
return theElements->Length();
}
Standard_Integer IGESAppli_ElementResults::ElementIdentifier
(const Standard_Integer Index) const
Standard_Integer IGESAppli_ElementResults::ElementIdentifier (const Standard_Integer Index) const
{
return theElementIdentifiers->Value(Index);
}
Handle(IGESAppli_FiniteElement) IGESAppli_ElementResults::Element
(const Standard_Integer Index) const
const Handle(IGESAppli_FiniteElement) & IGESAppli_ElementResults::Element (const Standard_Integer Index) const
{
return theElements->Value(Index);
}
Standard_Integer IGESAppli_ElementResults::ElementTopologyType
(const Standard_Integer Index) const
Standard_Integer IGESAppli_ElementResults::ElementTopologyType (const Standard_Integer Index) const
{
return theElementTopologyTypes->Value(Index);
}
Standard_Integer IGESAppli_ElementResults::NbLayers
(const Standard_Integer Index) const
Standard_Integer IGESAppli_ElementResults::NbLayers (const Standard_Integer Index) const
{
return theNbLayers->Value(Index);
}
Standard_Integer IGESAppli_ElementResults::DataLayerFlag
(const Standard_Integer Index) const
Standard_Integer IGESAppli_ElementResults::DataLayerFlag (const Standard_Integer Index) const
{
return theDataLayerFlags->Value(Index);
}
Standard_Integer IGESAppli_ElementResults::NbResultDataLocs
(const Standard_Integer Index) const
Standard_Integer IGESAppli_ElementResults::NbResultDataLocs (const Standard_Integer Index) const
{
return theNbResultDataLocs->Value(Index);
}
// ?? VERIFIER
Standard_Integer IGESAppli_ElementResults::ResultDataLoc
(const Standard_Integer NElem, const Standard_Integer NLoc) const
Standard_Integer IGESAppli_ElementResults::ResultDataLoc (const Standard_Integer NElem, const Standard_Integer NLoc) const
{
return theResultDataLocs->Value(NElem)->Value(NLoc);
}
Standard_Integer IGESAppli_ElementResults::NbResults
(const Standard_Integer Index) const
Standard_Integer IGESAppli_ElementResults::NbResults (const Standard_Integer Index) const
{
return theResultData->Value(Index)->Length();
}
Standard_Real IGESAppli_ElementResults::ResultData
(const Standard_Integer NElem, const Standard_Integer num) const
Standard_Real IGESAppli_ElementResults::ResultData (const Standard_Integer NElem, const Standard_Integer num) const
{
return theResultData->Value(NElem)->Value(num);
}
Standard_Integer IGESAppli_ElementResults::ResultRank
Standard_Integer IGESAppli_ElementResults::ResultRank
(const Standard_Integer NElem, const Standard_Integer NVal,
const Standard_Integer NLay, const Standard_Integer NLoc) const
{
@@ -186,15 +149,91 @@ IGESAppli_ElementResults::IGESAppli_ElementResults () { }
return num;
}
Standard_Real IGESAppli_ElementResults::ResultData
Standard_Real IGESAppli_ElementResults::ResultData
(const Standard_Integer NElem, const Standard_Integer NVal,
const Standard_Integer NLay, const Standard_Integer NLoc) const
{
return theResultData->Value(NElem)->Value(ResultRank(NElem,NVal,NLay,NLoc));
}
Handle(TColStd_HArray1OfReal) IGESAppli_ElementResults::ResultList
(const Standard_Integer NElem) const
Handle(TColStd_HArray1OfReal) IGESAppli_ElementResults::ResultList (const Standard_Integer NElem) const
{
return theResultData->Value(NElem);
}
void IGESAppli_ElementResults::OwnShared(Interface_EntityIterator &theIter) const
{
theIter.GetOneItem(Note());
const Standard_Integer num = NbElements();
for ( Standard_Integer i = 1; i <= num; i++ )
theIter.GetOneItem(Element(i));
}
void IGESAppli_ElementResults::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
Standard_Integer rrf = ResultReportFlag();
if (rrf < 0 || rrf > 3) theCheck->AddFail("Result Report Flag not in [0-3]");
Standard_Integer nv = NbResultValues();
Standard_Boolean OK = Standard_True;
switch (FormNumber()) {
case 0 : if (nv < 0) OK = Standard_False; break;
case 1 : if (nv != 1) OK = Standard_False; break;
case 2 : if (nv != 1) OK = Standard_False; break;
case 3 : if (nv != 3) OK = Standard_False; break;
case 4 : if (nv != 6) OK = Standard_False; break;
case 5 : if (nv != 3) OK = Standard_False; break;
case 6 : if (nv != 3) OK = Standard_False; break;
case 7 : if (nv != 3) OK = Standard_False; break;
case 8 : if (nv != 3) OK = Standard_False; break;
case 9 : if (nv != 3) OK = Standard_False; break;
case 10 : if (nv != 1) OK = Standard_False; break;
case 11 : if (nv != 1) OK = Standard_False; break;
case 12 : if (nv != 3) OK = Standard_False; break;
case 13 : if (nv != 1) OK = Standard_False; break;
case 14 : if (nv != 1) OK = Standard_False; break;
case 15 : if (nv != 3) OK = Standard_False; break;
case 16 : if (nv != 1) OK = Standard_False; break;
case 17 : if (nv != 3) OK = Standard_False; break;
case 18 : if (nv != 3) OK = Standard_False; break;
case 19 : if (nv != 3) OK = Standard_False; break;
case 20 : if (nv != 3) OK = Standard_False; break;
case 21 : if (nv != 3) OK = Standard_False; break;
case 22 : if (nv != 3) OK = Standard_False; break;
case 23 : if (nv != 6) OK = Standard_False; break;
case 24 : if (nv != 6) OK = Standard_False; break;
case 25 : if (nv != 6) OK = Standard_False; break;
case 26 : if (nv != 6) OK = Standard_False; break;
case 27 : if (nv != 6) OK = Standard_False; break;
case 28 : if (nv != 6) OK = Standard_False; break;
case 29 : if (nv != 9) OK = Standard_False; break;
case 30 : if (nv != 9) OK = Standard_False; break;
case 31 : if (nv != 9) OK = Standard_False; break;
case 32 : if (nv != 9) OK = Standard_False; break;
case 33 : if (nv != 9) OK = Standard_False; break;
case 34 : if (nv != 9) OK = Standard_False; break;
default : theCheck->AddFail("Incorrect Form Number"); break;
}
if (!OK) theCheck->AddFail("Incorrect count of real values in array V for FEM node");
const Standard_Integer ne = NbElements();
for (Standard_Integer i = 1; i <= ne; i ++) {
char mess[100];
Standard_Integer dlf = DataLayerFlag(i);
Standard_Integer nl = NbLayers(i);
Standard_Integer nrl = NbResultDataLocs(i);
if (dlf < 0 || dlf > 4)
theCheck->AddFail("One of the Data Layer Flags not in [0-4]");
if (dlf < 4 && NbLayers(i) != 1) {
sprintf(mess,"Nb. of Layers n0.%d not ONE while Data Layer Flag is in [0-3]",i);
theCheck->AddFail(mess);
}
if (rrf == 1 || rrf == 2)
if (nrl != 1 || ResultDataLoc(i,1) != 0) {
sprintf(mess,"Result Data Locs n0.%d incorrect for Result Report = 1 or 2",i);
theCheck->AddFail(mess);
}
if (NbResults(i) != (nv*nl*nrl)) {
sprintf(mess,"Nb. of results for Element n0.%d incorrect, should be %d",i,nv*nl*nrl);
theCheck->AddFail(mess);
}
}
}

View File

@@ -17,11 +17,6 @@
#ifndef _IGESAppli_ElementResults_HeaderFile
#define _IGESAppli_ElementResults_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESAppli_HArray1OfFiniteElement.hxx>
#include <IGESData_IGESEntity.hxx>
@@ -29,8 +24,6 @@
class IGESDimen_GeneralNote;
class IGESBasic_HArray1OfHArray1OfInteger;
class IGESBasic_HArray1OfHArray1OfReal;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class IGESAppli_FiniteElement;
@@ -42,11 +35,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_ElementResults, IGESData_IGESEntity)
//! Used to find the results of FEM analysis
class IGESAppli_ElementResults : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_ElementResults();
IGESAppli_ElementResults() {}
//! This method is used to set the fields of the class
//! ElementResults
@@ -70,28 +61,28 @@ public:
Standard_EXPORT void SetFormNumber (const Standard_Integer form);
//! returns General Note Entity describing analysis case
Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
const Handle(IGESDimen_GeneralNote) & Note() const { return theNote; }
//! returns analysis Subcase number
Standard_EXPORT Standard_Integer SubCaseNumber() const;
Standard_Integer SubCaseNumber() const { return theSubcaseNumber; }
//! returns analysis time value
Standard_EXPORT Standard_Real Time() const;
Standard_Real Time() const { return theTime; }
//! returns number of result values per FEM
Standard_EXPORT Standard_Integer NbResultValues() const;
Standard_Integer NbResultValues() const { return theNbResultValues; }
//! returns Results Reporting Flag
Standard_EXPORT Standard_Integer ResultReportFlag() const;
Standard_Integer ResultReportFlag() const { return theResultReportFlag; }
//! returns number of FEM elements
Standard_EXPORT Standard_Integer NbElements() const;
//! returns FEM element number for elements
Standard_EXPORT Standard_Integer ElementIdentifier (const Standard_Integer Index) const;
//! returns FEM element
Standard_EXPORT Handle(IGESAppli_FiniteElement) Element (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESAppli_FiniteElement) & Element (const Standard_Integer Index) const;
//! returns element Topology Types
Standard_EXPORT Standard_Integer ElementTopologyType (const Standard_Integer Index) const;
@@ -136,18 +127,13 @@ public:
//! addressed as by ResultRank (See above)
Standard_EXPORT Handle(TColStd_HArray1OfReal) ResultList (const Standard_Integer NElem) const;
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_ElementResults,IGESData_IGESEntity)
protected:
private:
private:
Handle(IGESDimen_GeneralNote) theNote;
Standard_Integer theSubcaseNumber;
@@ -162,14 +148,6 @@ private:
Handle(TColStd_HArray1OfInteger) theNbResultDataLocs;
Handle(IGESBasic_HArray1OfHArray1OfInteger) theResultDataLocs;
Handle(IGESBasic_HArray1OfHArray1OfReal) theResultData;
};
#endif // _IGESAppli_ElementResults_HeaderFile

View File

@@ -21,15 +21,12 @@
#include <IGESAppli_Node.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_FiniteElement,IGESData_IGESEntity)
IGESAppli_FiniteElement::IGESAppli_FiniteElement () { }
void IGESAppli_FiniteElement::Init
void IGESAppli_FiniteElement::Init
(const Standard_Integer aType,
const Handle(IGESAppli_HArray1OfNode)& allNodes,
const Handle(TCollection_HAsciiString)& aName)
@@ -42,23 +39,19 @@ IGESAppli_FiniteElement::IGESAppli_FiniteElement () { }
InitTypeAndForm(136,0);
}
Standard_Integer IGESAppli_FiniteElement::Topology () const
Standard_Integer IGESAppli_FiniteElement::NbNodes () const
{
return theTopology;
return theNodes->Length();
}
Handle(IGESAppli_Node) IGESAppli_FiniteElement::Node
(const Standard_Integer Index) const
const Handle(IGESAppli_Node) & IGESAppli_FiniteElement::Node (const Standard_Integer Index) const
{
return theNodes->Value(Index);
}
Handle(TCollection_HAsciiString) IGESAppli_FiniteElement::Name () const
void IGESAppli_FiniteElement::OwnShared(Interface_EntityIterator &theIter) const
{
return theName;
}
Standard_Integer IGESAppli_FiniteElement::NbNodes () const
{
return theNodes->Length();
const Standard_Integer upper = theNodes->Length();
for (Standard_Integer i= 1; i <= upper ; i ++)
theIter.GetOneItem(theNodes->Value(i));
}

View File

@@ -17,14 +17,9 @@
#ifndef _IGESAppli_FiniteElement_HeaderFile
#define _IGESAppli_FiniteElement_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESAppli_HArray1OfNode.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
class Standard_OutOfRange;
class IGESAppli_Node;
@@ -37,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_FiniteElement, IGESData_IGESEntity)
//! element topology.
class IGESAppli_FiniteElement : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_FiniteElement();
IGESAppli_FiniteElement() {}
//! This method is used to set the fields of the class
//! FiniteElement
@@ -51,42 +44,27 @@ public:
Standard_EXPORT void Init (const Standard_Integer aType, const Handle(IGESAppli_HArray1OfNode)& allNodes, const Handle(TCollection_HAsciiString)& aName);
//! returns Topology type
Standard_EXPORT Standard_Integer Topology() const;
Standard_Integer Topology() const { return theTopology; }
//! returns the number of nodes defining the element
Standard_EXPORT Standard_Integer NbNodes() const;
//! returns Node defining element entity
//! raises exception if Index <= 0 or Index > NbNodes()
Standard_EXPORT Handle(IGESAppli_Node) Node (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESAppli_Node) & Node (const Standard_Integer Index) const;
//! returns Element Type Name
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
const Handle(TCollection_HAsciiString) & Name() const { return theName; }
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_FiniteElement,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theTopology;
Handle(IGESAppli_HArray1OfNode) theNodes;
Handle(TCollection_HAsciiString) theName;
};
#endif // _IGESAppli_FiniteElement_HeaderFile

View File

@@ -22,15 +22,12 @@
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_Flow,IGESData_IGESEntity)
IGESAppli_Flow::IGESAppli_Flow () { }
void IGESAppli_Flow::Init
void IGESAppli_Flow::Init
(const Standard_Integer nbContextFlags,
const Standard_Integer aFlowType, const Standard_Integer aFuncFlag,
const Handle(IGESData_HArray1OfIGESEntity)& allFlowAssocs,
@@ -52,7 +49,7 @@ IGESAppli_Flow::IGESAppli_Flow () { }
InitTypeAndForm(402,18);
}
Standard_Boolean IGESAppli_Flow::OwnCorrect ()
Standard_Boolean IGESAppli_Flow::OwnCorrect ()
{
if (theNbContextFlags == 2) return Standard_False;
theNbContextFlags = 2;
@@ -60,83 +57,87 @@ IGESAppli_Flow::IGESAppli_Flow () { }
}
Standard_Integer IGESAppli_Flow::NbContextFlags () const
{
return theNbContextFlags;
}
Standard_Integer IGESAppli_Flow::NbFlowAssociativities () const
Standard_Integer IGESAppli_Flow::NbFlowAssociativities () const
{
return (theFlowAssociativities.IsNull() ? 0 : theFlowAssociativities->Length());
}
Standard_Integer IGESAppli_Flow::NbConnectPoints () const
Standard_Integer IGESAppli_Flow::NbConnectPoints () const
{
return (theConnectPoints.IsNull() ? 0 : theConnectPoints->Length());
}
Standard_Integer IGESAppli_Flow::NbJoins () const
Standard_Integer IGESAppli_Flow::NbJoins () const
{
return (theJoins.IsNull() ? 0 : theJoins->Length());
}
Standard_Integer IGESAppli_Flow::NbFlowNames () const
Standard_Integer IGESAppli_Flow::NbFlowNames () const
{
return (theFlowNames.IsNull() ? 0 : theFlowNames->Length());
}
Standard_Integer IGESAppli_Flow::NbTextDisplayTemplates () const
Standard_Integer IGESAppli_Flow::NbTextDisplayTemplates () const
{
return (theTextDisplayTemplates.IsNull() ? 0 : theTextDisplayTemplates->Length());
}
Standard_Integer IGESAppli_Flow::NbContFlowAssociativities () const
Standard_Integer IGESAppli_Flow::NbContFlowAssociativities () const
{
return (theContFlowAssociativities.IsNull() ? 0 : theContFlowAssociativities->Length());
}
Standard_Integer IGESAppli_Flow::TypeOfFlow () const
{
return theTypeOfFlow;
}
Standard_Integer IGESAppli_Flow::FunctionFlag () const
{
return theFunctionFlag;
}
Handle(IGESData_IGESEntity) IGESAppli_Flow::FlowAssociativity
(const Standard_Integer Index) const
const Handle(IGESData_IGESEntity) & IGESAppli_Flow::FlowAssociativity (const Standard_Integer Index) const
{
return theFlowAssociativities->Value(Index);
}
Handle(IGESDraw_ConnectPoint) IGESAppli_Flow::ConnectPoint
(const Standard_Integer Index) const
const Handle(IGESDraw_ConnectPoint) & IGESAppli_Flow::ConnectPoint (const Standard_Integer Index) const
{
return theConnectPoints->Value(Index);
}
Handle(IGESData_IGESEntity) IGESAppli_Flow::Join
(const Standard_Integer Index) const
const Handle(IGESData_IGESEntity) & IGESAppli_Flow::Join (const Standard_Integer Index) const
{
return theJoins->Value(Index);
}
Handle(TCollection_HAsciiString) IGESAppli_Flow::FlowName
(const Standard_Integer Index) const
const Handle(TCollection_HAsciiString) & IGESAppli_Flow::FlowName (const Standard_Integer Index) const
{
return theFlowNames->Value(Index);
}
Handle(IGESGraph_TextDisplayTemplate) IGESAppli_Flow::TextDisplayTemplate
(const Standard_Integer Index) const
const Handle(IGESGraph_TextDisplayTemplate) & IGESAppli_Flow::TextDisplayTemplate (const Standard_Integer Index) const
{
return theTextDisplayTemplates->Value(Index);
}
Handle(IGESData_IGESEntity) IGESAppli_Flow::ContFlowAssociativity
(const Standard_Integer Index) const
const Handle(IGESData_IGESEntity) & IGESAppli_Flow::ContFlowAssociativity (const Standard_Integer Index) const
{
return theContFlowAssociativities->Value(Index);
}
void IGESAppli_Flow::OwnShared(Interface_EntityIterator &theIter) const
{
Standard_Integer i, num;
for ( num = NbFlowAssociativities(), i = 1; i <= num; i++ )
theIter.GetOneItem(FlowAssociativity(i));
for ( num = NbConnectPoints(), i = 1; i <= num; i++ )
theIter.GetOneItem(ConnectPoint(i));
for ( num = NbJoins(), i = 1; i <= num; i++ )
theIter.GetOneItem(Join(i));
for ( num = NbTextDisplayTemplates(), i = 1; i <= num; i++ )
theIter.GetOneItem(TextDisplayTemplate(i));
for ( num = NbContFlowAssociativities(), i = 1; i <= num; i++ )
theIter.GetOneItem(ContFlowAssociativity(i));
}
void IGESAppli_Flow::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
if (NbContextFlags() != 2)
theCheck->AddFail("Number of Context Flags != 2");
if ((TypeOfFlow() < 0) || (TypeOfFlow() > 2))
theCheck->AddFail("Type of Flow != 0,1,2");
if ((FunctionFlag() < 0) || (FunctionFlag() > 2))
theCheck->AddFail("Function Flag != 0,1,2");
}

View File

@@ -17,17 +17,11 @@
#ifndef _IGESAppli_Flow_HeaderFile
#define _IGESAppli_Flow_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESDraw_HArray1OfConnectPoint.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class Standard_OutOfRange;
class IGESData_IGESEntity;
class IGESDraw_ConnectPoint;
class TCollection_HAsciiString;
@@ -44,11 +38,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_Flow, IGESData_IGESEntity)
//! including additional intermediate connect points.
class IGESAppli_Flow : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_Flow();
IGESAppli_Flow() {}
//! This method is used to set the fields of the class Flow
//! - nbContextFlags : Count of Context Flags, always = 2
@@ -66,7 +58,7 @@ public:
Standard_EXPORT Standard_Boolean OwnCorrect();
//! returns number of Count of Context Flags, always = 2
Standard_EXPORT Standard_Integer NbContextFlags() const;
Standard_Integer NbContextFlags() const { return theNbContextFlags; }
//! returns number of Flow Associativity Entities
Standard_EXPORT Standard_Integer NbFlowAssociativities() const;
@@ -89,49 +81,44 @@ public:
//! returns Type of Flow = 0 : Not Specified (default)
//! 1 : Logical
//! 2 : Physical
Standard_EXPORT Standard_Integer TypeOfFlow() const;
Standard_Integer TypeOfFlow() const { return theTypeOfFlow; }
//! returns Function Flag = 0 : Not Specified (default)
//! 1 : Electrical Signal
//! 2 : Fluid Flow Path
Standard_EXPORT Standard_Integer FunctionFlag() const;
Standard_Integer FunctionFlag() const { return theFunctionFlag; }
//! returns Flow Associativity Entity
//! raises exception if Index <= 0 or Index > NbFlowAssociativities()
Standard_EXPORT Handle(IGESData_IGESEntity) FlowAssociativity (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESData_IGESEntity) & FlowAssociativity (const Standard_Integer Index) const;
//! returns Connect Point Entity
//! raises exception if Index <= 0 or Index > NbConnectPoints()
Standard_EXPORT Handle(IGESDraw_ConnectPoint) ConnectPoint (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESDraw_ConnectPoint) & ConnectPoint (const Standard_Integer Index) const;
//! returns Join Entity
//! raises exception if Index <= 0 or Index > NbJoins()
Standard_EXPORT Handle(IGESData_IGESEntity) Join (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESData_IGESEntity) & Join (const Standard_Integer Index) const;
//! returns Flow Name
//! raises exception if Index <= 0 or Index > NbFlowNames()
Standard_EXPORT Handle(TCollection_HAsciiString) FlowName (const Standard_Integer Index) const;
Standard_EXPORT const Handle(TCollection_HAsciiString) & FlowName (const Standard_Integer Index) const;
//! returns Text Display Template Entity
//! raises exception if Index <= 0 or Index > NbTextDisplayTemplates()
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) TextDisplayTemplate (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESGraph_TextDisplayTemplate) & TextDisplayTemplate (const Standard_Integer Index) const;
//! returns Continuation Flow Associativity Entity
//! raises exception if Index <= 0 or Index > NbContFlowAssociativities()
Standard_EXPORT Handle(IGESData_IGESEntity) ContFlowAssociativity (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESData_IGESEntity) & ContFlowAssociativity (const Standard_Integer Index) const;
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_Flow,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbContextFlags;
Standard_Integer theTypeOfFlow;
@@ -142,14 +129,6 @@ private:
Handle(Interface_HArray1OfHAsciiString) theFlowNames;
Handle(IGESGraph_HArray1OfTextDisplayTemplate) theTextDisplayTemplates;
Handle(IGESData_HArray1OfIGESEntity) theContFlowAssociativities;
};
#endif // _IGESAppli_Flow_HeaderFile

View File

@@ -24,9 +24,7 @@
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_FlowLineSpec,IGESData_IGESEntity)
IGESAppli_FlowLineSpec::IGESAppli_FlowLineSpec () { }
void IGESAppli_FlowLineSpec::Init
void IGESAppli_FlowLineSpec::Init
(const Handle(Interface_HArray1OfHAsciiString)& allProperties)
{
if (allProperties->Lower() != 1)
@@ -35,18 +33,17 @@ IGESAppli_FlowLineSpec::IGESAppli_FlowLineSpec () { }
InitTypeAndForm(406,14);
}
Standard_Integer IGESAppli_FlowLineSpec::NbPropertyValues () const
Standard_Integer IGESAppli_FlowLineSpec::NbPropertyValues () const
{
return theNameAndModifiers->Length();
}
Handle(TCollection_HAsciiString) IGESAppli_FlowLineSpec::FlowLineName () const
const Handle(TCollection_HAsciiString) & IGESAppli_FlowLineSpec::FlowLineName () const
{
return theNameAndModifiers->Value(1);
}
Handle(TCollection_HAsciiString) IGESAppli_FlowLineSpec::Modifier
(const Standard_Integer Index) const
const Handle(TCollection_HAsciiString) & IGESAppli_FlowLineSpec::Modifier (const Standard_Integer Index) const
{
return theNameAndModifiers->Value(Index);
}

View File

@@ -17,13 +17,8 @@
#ifndef _IGESAppli_FlowLineSpec_HeaderFile
#define _IGESAppli_FlowLineSpec_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
class Standard_OutOfRange;
class TCollection_HAsciiString;
@@ -36,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_FlowLineSpec, IGESData_IGESEntity)
//! used to represent a flow line
class IGESAppli_FlowLineSpec : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_FlowLineSpec();
IGESAppli_FlowLineSpec() {}
//! This method is used to set the fields of the class
//! FlowLineSpec
@@ -51,34 +44,17 @@ public:
Standard_EXPORT Standard_Integer NbPropertyValues() const;
//! returns primary flow line specification name
Standard_EXPORT Handle(TCollection_HAsciiString) FlowLineName() const;
Standard_EXPORT const Handle(TCollection_HAsciiString) & FlowLineName() const;
//! returns specified modifier element
//! raises exception if Index <= 1 or Index > NbPropertyValues
Standard_EXPORT Handle(TCollection_HAsciiString) Modifier (const Standard_Integer Index) const;
Standard_EXPORT const Handle(TCollection_HAsciiString) & Modifier (const Standard_Integer Index) const;
DEFINE_STANDARD_RTTIEXT(IGESAppli_FlowLineSpec,IGESData_IGESEntity)
protected:
private:
private:
Handle(Interface_HArray1OfHAsciiString) theNameAndModifiers;
};
#endif // _IGESAppli_FlowLineSpec_HeaderFile

View File

@@ -11,6 +11,55 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <IGESSolid_Block.hxx>
#include <IGESSolid_BooleanTree.hxx>
#include <IGESSolid_ConeFrustum.hxx>
#include <IGESSolid_ConicalSurface.hxx>
#include <IGESSolid_Cylinder.hxx>
#include <IGESSolid_CylindricalSurface.hxx>
#include <IGESSolid_EdgeList.hxx>
#include <IGESSolid_Ellipsoid.hxx>
#include <IGESSolid_Face.hxx>
#include <IGESSolid_Loop.hxx>
#include <IGESSolid_ManifoldSolid.hxx>
#include <IGESSolid_PlaneSurface.hxx>
#include <IGESSolid_RightAngularWedge.hxx>
#include <IGESSolid_SelectedComponent.hxx>
#include <IGESSolid_Shell.hxx>
#include <IGESSolid_SolidAssembly.hxx>
#include <IGESSolid_SolidInstance.hxx>
#include <IGESSolid_SolidOfLinearExtrusion.hxx>
#include <IGESSolid_SolidOfRevolution.hxx>
#include <IGESSolid_Sphere.hxx>
#include <IGESSolid_SphericalSurface.hxx>
#include <IGESSolid_ToroidalSurface.hxx>
#include <IGESSolid_Torus.hxx>
#include <IGESSolid_VertexList.hxx>
#include <IGESSolid_ToolBlock.hxx>
#include <IGESSolid_ToolBooleanTree.hxx>
#include <IGESSolid_ToolConeFrustum.hxx>
#include <IGESSolid_ToolConicalSurface.hxx>
#include <IGESSolid_ToolCylinder.hxx>
#include <IGESSolid_ToolCylindricalSurface.hxx>
#include <IGESSolid_ToolEdgeList.hxx>
#include <IGESSolid_ToolEllipsoid.hxx>
#include <IGESSolid_ToolFace.hxx>
#include <IGESSolid_ToolLoop.hxx>
#include <IGESSolid_ToolManifoldSolid.hxx>
#include <IGESSolid_ToolPlaneSurface.hxx>
#include <IGESSolid_ToolRightAngularWedge.hxx>
#include <IGESSolid_ToolSelectedComponent.hxx>
#include <IGESSolid_ToolShell.hxx>
#include <IGESSolid_ToolSolidAssembly.hxx>
#include <IGESSolid_ToolSolidInstance.hxx>
#include <IGESSolid_ToolSolidOfLinearExtrusion.hxx>
#include <IGESSolid_ToolSolidOfRevolution.hxx>
#include <IGESSolid_ToolSphere.hxx>
#include <IGESSolid_ToolSphericalSurface.hxx>
#include <IGESSolid_ToolToroidalSurface.hxx>
#include <IGESSolid_ToolTorus.hxx>
#include <IGESSolid_ToolVertexList.hxx>
#include <IGESAppli_DrilledHole.hxx>
#include <IGESAppli_ElementResults.hxx>
@@ -51,281 +100,281 @@
#include <IGESAppli_ToolPWBDrilledHole.hxx>
#include <IGESAppli_ToolReferenceDesignator.hxx>
#include <IGESAppli_ToolRegionRestriction.hxx>
#include <IGESData_DirChecker.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Interface_Category.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_GeneralModule,IGESData_GeneralModule)
// Each Module is attached to a Protocol : it must interprete Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESAppli_GeneralModule::IGESAppli_GeneralModule () { }
void IGESAppli_GeneralModule::OwnSharedCase
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
Interface_EntityIterator& iter) const
void IGESAppli_GeneralModule::OwnSharedCase (const Standard_Integer, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const
{
switch (CN) {
case 1 : {
DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolDrilledHole tool;
tool.OwnShared(anent,iter);
}
break;
case 2 : {
DeclareAndCast(IGESAppli_ElementResults,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolElementResults tool;
tool.OwnShared(anent,iter);
}
break;
case 3 : {
DeclareAndCast(IGESAppli_FiniteElement,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolFiniteElement tool;
tool.OwnShared(anent,iter);
}
break;
case 4 : {
DeclareAndCast(IGESAppli_Flow,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolFlow tool;
tool.OwnShared(anent,iter);
}
break;
case 5 : {
DeclareAndCast(IGESAppli_FlowLineSpec,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolFlowLineSpec tool;
tool.OwnShared(anent,iter);
}
break;
case 6 : {
DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolLevelFunction tool;
tool.OwnShared(anent,iter);
}
break;
case 7 : {
DeclareAndCast(IGESAppli_LevelToPWBLayerMap,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolLevelToPWBLayerMap tool;
tool.OwnShared(anent,iter);
}
break;
case 8 : {
DeclareAndCast(IGESAppli_LineWidening,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolLineWidening tool;
tool.OwnShared(anent,iter);
}
break;
case 9 : {
DeclareAndCast(IGESAppli_NodalConstraint,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNodalConstraint tool;
tool.OwnShared(anent,iter);
}
break;
case 10 : {
DeclareAndCast(IGESAppli_NodalDisplAndRot,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNodalDisplAndRot tool;
tool.OwnShared(anent,iter);
}
break;
case 11 : {
DeclareAndCast(IGESAppli_NodalResults,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNodalResults tool;
tool.OwnShared(anent,iter);
}
break;
case 12 : {
DeclareAndCast(IGESAppli_Node,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNode tool;
tool.OwnShared(anent,iter);
}
break;
case 13 : {
DeclareAndCast(IGESAppli_PWBArtworkStackup,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPWBArtworkStackup tool;
tool.OwnShared(anent,iter);
}
break;
case 14 : {
DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPWBDrilledHole tool;
tool.OwnShared(anent,iter);
}
break;
case 15 : {
DeclareAndCast(IGESAppli_PartNumber,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPartNumber tool;
tool.OwnShared(anent,iter);
}
break;
case 16 : {
DeclareAndCast(IGESAppli_PinNumber,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPinNumber tool;
tool.OwnShared(anent,iter);
}
break;
case 17 : {
DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPipingFlow tool;
tool.OwnShared(anent,iter);
}
break;
case 18 : {
DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolReferenceDesignator tool;
tool.OwnShared(anent,iter);
}
break;
case 19 : {
DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolRegionRestriction tool;
tool.OwnShared(anent,iter);
}
break;
default : break;
}
ent->OwnShared(iter);
}
IGESData_DirChecker IGESAppli_GeneralModule::DirChecker
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const
IGESData_DirChecker IGESAppli_GeneralModule::DirChecker (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const
{
// For IGESSolid {
switch (CN) {
case 1 : {
DeclareAndCast(IGESSolid_Block,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolBlock tool;
return tool.DirChecker(anent);
}
case 2 : {
DeclareAndCast(IGESSolid_BooleanTree,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolBooleanTree tool;
return tool.DirChecker(anent);
}
case 3 : {
DeclareAndCast(IGESSolid_ConeFrustum,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolConeFrustum tool;
return tool.DirChecker(anent);
}
case 4 : {
DeclareAndCast(IGESSolid_ConicalSurface,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolConicalSurface tool;
return tool.DirChecker(anent);
}
case 5 : {
DeclareAndCast(IGESSolid_Cylinder,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolCylinder tool;
return tool.DirChecker(anent);
}
case 6 : {
DeclareAndCast(IGESSolid_CylindricalSurface,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolCylindricalSurface tool;
return tool.DirChecker(anent);
}
case 7 : {
DeclareAndCast(IGESSolid_EdgeList,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolEdgeList tool;
return tool.DirChecker(anent);
}
case 8 : {
DeclareAndCast(IGESSolid_Ellipsoid,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolEllipsoid tool;
return tool.DirChecker(anent);
}
case 9 : {
DeclareAndCast(IGESSolid_Face,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolFace tool;
return tool.DirChecker(anent);
}
case 10 : {
DeclareAndCast(IGESSolid_Loop,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolLoop tool;
return tool.DirChecker(anent);
}
case 11 : {
DeclareAndCast(IGESSolid_ManifoldSolid,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolManifoldSolid tool;
return tool.DirChecker(anent);
}
case 12 : {
DeclareAndCast(IGESSolid_PlaneSurface,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolPlaneSurface tool;
return tool.DirChecker(anent);
}
case 13 : {
DeclareAndCast(IGESSolid_RightAngularWedge,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolRightAngularWedge tool;
return tool.DirChecker(anent);
}
case 14 : {
DeclareAndCast(IGESSolid_SelectedComponent,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolSelectedComponent tool;
return tool.DirChecker(anent);
}
case 15 : {
DeclareAndCast(IGESSolid_Shell,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolShell tool;
return tool.DirChecker(anent);
}
case 16 : {
DeclareAndCast(IGESSolid_SolidAssembly,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolSolidAssembly tool;
return tool.DirChecker(anent);
}
case 17 : {
DeclareAndCast(IGESSolid_SolidInstance,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolSolidInstance tool;
return tool.DirChecker(anent);
}
case 18 : {
DeclareAndCast(IGESSolid_SolidOfLinearExtrusion,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolSolidOfLinearExtrusion tool;
return tool.DirChecker(anent);
}
case 19 : {
DeclareAndCast(IGESSolid_SolidOfRevolution,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolSolidOfRevolution tool;
return tool.DirChecker(anent);
}
case 20 : {
DeclareAndCast(IGESSolid_Sphere,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolSphere tool;
return tool.DirChecker(anent);
}
case 21 : {
DeclareAndCast(IGESSolid_SphericalSurface,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolSphericalSurface tool;
return tool.DirChecker(anent);
}
case 22 : {
DeclareAndCast(IGESSolid_ToroidalSurface,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolToroidalSurface tool;
return tool.DirChecker(anent);
}
case 23 : {
DeclareAndCast(IGESSolid_Torus,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolTorus tool;
return tool.DirChecker(anent);
}
case 24 : {
DeclareAndCast(IGESSolid_VertexList,anent,ent);
if (anent.IsNull()) break;
IGESSolid_ToolVertexList tool;
return tool.DirChecker(anent);
}
// }
case 25 : {
DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolDrilledHole tool;
return tool.DirChecker(anent);
}
case 2 : {
case 26 : {
DeclareAndCast(IGESAppli_ElementResults,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolElementResults tool;
return tool.DirChecker(anent);
}
case 3 : {
case 27 : {
DeclareAndCast(IGESAppli_FiniteElement,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolFiniteElement tool;
return tool.DirChecker(anent);
}
case 4 : {
case 28 : {
DeclareAndCast(IGESAppli_Flow,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolFlow tool;
return tool.DirChecker(anent);
}
case 5 : {
case 29 : {
DeclareAndCast(IGESAppli_FlowLineSpec,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolFlowLineSpec tool;
return tool.DirChecker(anent);
}
case 6 : {
case 30 : {
DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolLevelFunction tool;
return tool.DirChecker(anent);
}
case 7 : {
case 31 : {
DeclareAndCast(IGESAppli_LevelToPWBLayerMap,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolLevelToPWBLayerMap tool;
return tool.DirChecker(anent);
}
case 8 : {
case 32 : {
DeclareAndCast(IGESAppli_LineWidening,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolLineWidening tool;
return tool.DirChecker(anent);
}
case 9 : {
case 33 : {
DeclareAndCast(IGESAppli_NodalConstraint,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolNodalConstraint tool;
return tool.DirChecker(anent);
}
case 10 : {
case 34 : {
DeclareAndCast(IGESAppli_NodalDisplAndRot,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolNodalDisplAndRot tool;
return tool.DirChecker(anent);
}
case 11 : {
case 35 : {
DeclareAndCast(IGESAppli_NodalResults,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolNodalResults tool;
return tool.DirChecker(anent);
}
case 12 : {
case 36 : {
DeclareAndCast(IGESAppli_Node,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolNode tool;
return tool.DirChecker(anent);
}
case 13 : {
case 37 : {
DeclareAndCast(IGESAppli_PWBArtworkStackup,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolPWBArtworkStackup tool;
return tool.DirChecker(anent);
}
case 14 : {
case 38 : {
DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolPWBDrilledHole tool;
return tool.DirChecker(anent);
}
case 15 : {
case 39 : {
DeclareAndCast(IGESAppli_PartNumber,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolPartNumber tool;
return tool.DirChecker(anent);
}
case 16 : {
case 40 : {
DeclareAndCast(IGESAppli_PinNumber,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolPinNumber tool;
return tool.DirChecker(anent);
}
case 17 : {
case 41 : {
DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolPipingFlow tool;
return tool.DirChecker(anent);
}
case 18 : {
case 42 : {
DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolReferenceDesignator tool;
return tool.DirChecker(anent);
}
case 19 : {
case 43 : {
DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
if (anent.IsNull()) break;
IGESAppli_ToolRegionRestriction tool;
@@ -337,326 +386,71 @@ IGESAppli_GeneralModule::IGESAppli_GeneralModule () { }
}
void IGESAppli_GeneralModule::OwnCheckCase
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const
void IGESAppli_GeneralModule::OwnCheckCase (const Standard_Integer, const Handle(IGESData_IGESEntity)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const
{
switch (CN) {
case 1 : {
DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolDrilledHole tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 2 : {
DeclareAndCast(IGESAppli_ElementResults,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolElementResults tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 3 : {
DeclareAndCast(IGESAppli_FiniteElement,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolFiniteElement tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 4 : {
DeclareAndCast(IGESAppli_Flow,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolFlow tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 5 : {
DeclareAndCast(IGESAppli_FlowLineSpec,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolFlowLineSpec tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 6 : {
DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolLevelFunction tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 7 : {
DeclareAndCast(IGESAppli_LevelToPWBLayerMap,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolLevelToPWBLayerMap tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 8 : {
DeclareAndCast(IGESAppli_LineWidening,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolLineWidening tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 9 : {
DeclareAndCast(IGESAppli_NodalConstraint,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNodalConstraint tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 10 : {
DeclareAndCast(IGESAppli_NodalDisplAndRot,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNodalDisplAndRot tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 11 : {
DeclareAndCast(IGESAppli_NodalResults,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNodalResults tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 12 : {
DeclareAndCast(IGESAppli_Node,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolNode tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 13 : {
DeclareAndCast(IGESAppli_PWBArtworkStackup,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPWBArtworkStackup tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 14 : {
DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPWBDrilledHole tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 15 : {
DeclareAndCast(IGESAppli_PartNumber,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPartNumber tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 16 : {
DeclareAndCast(IGESAppli_PinNumber,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPinNumber tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 17 : {
DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolPipingFlow tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 18 : {
DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolReferenceDesignator tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 19 : {
DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
if (anent.IsNull()) return;
IGESAppli_ToolRegionRestriction tool;
tool.OwnCheck(anent,shares,ach);
}
break;
default : break;
}
ent->OwnCheck(shares,ach);
}
Standard_Boolean IGESAppli_GeneralModule::NewVoid
(const Standard_Integer CN, Handle(Standard_Transient)& ent) const
Standard_Boolean IGESAppli_GeneralModule::NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& ent) const
{
// For IGESSolid {
switch (CN) {
case 1 : ent = new IGESAppli_DrilledHole; break;
case 2 : ent = new IGESAppli_ElementResults; break;
case 3 : ent = new IGESAppli_FiniteElement; break;
case 4 : ent = new IGESAppli_Flow; break;
case 5 : ent = new IGESAppli_FlowLineSpec; break;
case 6 : ent = new IGESAppli_LevelFunction; break;
case 7 : ent = new IGESAppli_LevelToPWBLayerMap; break;
case 8 : ent = new IGESAppli_LineWidening; break;
case 9 : ent = new IGESAppli_NodalConstraint; break;
case 10 : ent = new IGESAppli_NodalDisplAndRot; break;
case 11 : ent = new IGESAppli_NodalResults; break;
case 12 : ent = new IGESAppli_Node; break;
case 13 : ent = new IGESAppli_PWBArtworkStackup; break;
case 14 : ent = new IGESAppli_PWBDrilledHole; break;
case 15 : ent = new IGESAppli_PartNumber; break;
case 16 : ent = new IGESAppli_PinNumber; break;
case 17 : ent = new IGESAppli_PipingFlow; break;
case 18 : ent = new IGESAppli_ReferenceDesignator; break;
case 19 : ent = new IGESAppli_RegionRestriction; break;
case 1 : ent = new IGESSolid_Block; break;
case 2 : ent = new IGESSolid_BooleanTree; break;
case 3 : ent = new IGESSolid_ConeFrustum; break;
case 4 : ent = new IGESSolid_ConicalSurface; break;
case 5 : ent = new IGESSolid_Cylinder; break;
case 6 : ent = new IGESSolid_CylindricalSurface; break;
case 7 : ent = new IGESSolid_EdgeList; break;
case 8 : ent = new IGESSolid_Ellipsoid; break;
case 9 : ent = new IGESSolid_Face; break;
case 10 : ent = new IGESSolid_Loop; break;
case 11 : ent = new IGESSolid_ManifoldSolid; break;
case 12 : ent = new IGESSolid_PlaneSurface; break;
case 13 : ent = new IGESSolid_RightAngularWedge; break;
case 14 : ent = new IGESSolid_SelectedComponent; break;
case 15 : ent = new IGESSolid_Shell; break;
case 16 : ent = new IGESSolid_SolidAssembly; break;
case 17 : ent = new IGESSolid_SolidInstance; break;
case 18 : ent = new IGESSolid_SolidOfLinearExtrusion; break;
case 19 : ent = new IGESSolid_SolidOfRevolution; break;
case 20 : ent = new IGESSolid_Sphere; break;
case 21 : ent = new IGESSolid_SphericalSurface; break;
case 22 : ent = new IGESSolid_ToroidalSurface; break;
case 23 : ent = new IGESSolid_Torus; break;
case 24 : ent = new IGESSolid_VertexList; break;
// }
case 25 : ent = new IGESAppli_DrilledHole; break;
case 26 : ent = new IGESAppli_ElementResults; break;
case 27 : ent = new IGESAppli_FiniteElement; break;
case 28 : ent = new IGESAppli_Flow; break;
case 29 : ent = new IGESAppli_FlowLineSpec; break;
case 30 : ent = new IGESAppli_LevelFunction; break;
case 31 : ent = new IGESAppli_LevelToPWBLayerMap; break;
case 32 : ent = new IGESAppli_LineWidening; break;
case 33 : ent = new IGESAppli_NodalConstraint; break;
case 34 : ent = new IGESAppli_NodalDisplAndRot; break;
case 35 : ent = new IGESAppli_NodalResults; break;
case 36 : ent = new IGESAppli_Node; break;
case 37 : ent = new IGESAppli_PWBArtworkStackup; break;
case 38 : ent = new IGESAppli_PWBDrilledHole; break;
case 39 : ent = new IGESAppli_PartNumber; break;
case 40 : ent = new IGESAppli_PinNumber; break;
case 41 : ent = new IGESAppli_PipingFlow; break;
case 42 : ent = new IGESAppli_ReferenceDesignator; break;
case 43 : ent = new IGESAppli_RegionRestriction; break;
default : return Standard_False; // by default, Failure on Recognize
}
return Standard_True;
}
void IGESAppli_GeneralModule::OwnCopyCase
(const Standard_Integer CN,
const Handle(IGESData_IGESEntity)& entfrom,
const Handle(IGESData_IGESEntity)& entto,
Interface_CopyTool& TC) const
Standard_Integer IGESAppli_GeneralModule::CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& /*ent*/, const Interface_ShareTool& ) const
{
switch (CN) {
case 1 : {
DeclareAndCast(IGESAppli_DrilledHole,enfr,entfrom);
DeclareAndCast(IGESAppli_DrilledHole,ento,entto);
IGESAppli_ToolDrilledHole tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 2 : {
DeclareAndCast(IGESAppli_ElementResults,enfr,entfrom);
DeclareAndCast(IGESAppli_ElementResults,ento,entto);
IGESAppli_ToolElementResults tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 3 : {
DeclareAndCast(IGESAppli_FiniteElement,enfr,entfrom);
DeclareAndCast(IGESAppli_FiniteElement,ento,entto);
IGESAppli_ToolFiniteElement tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 4 : {
DeclareAndCast(IGESAppli_Flow,enfr,entfrom);
DeclareAndCast(IGESAppli_Flow,ento,entto);
IGESAppli_ToolFlow tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 5 : {
DeclareAndCast(IGESAppli_FlowLineSpec,enfr,entfrom);
DeclareAndCast(IGESAppli_FlowLineSpec,ento,entto);
IGESAppli_ToolFlowLineSpec tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 6 : {
DeclareAndCast(IGESAppli_LevelFunction,enfr,entfrom);
DeclareAndCast(IGESAppli_LevelFunction,ento,entto);
IGESAppli_ToolLevelFunction tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 7 : {
DeclareAndCast(IGESAppli_LevelToPWBLayerMap,enfr,entfrom);
DeclareAndCast(IGESAppli_LevelToPWBLayerMap,ento,entto);
IGESAppli_ToolLevelToPWBLayerMap tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 8 : {
DeclareAndCast(IGESAppli_LineWidening,enfr,entfrom);
DeclareAndCast(IGESAppli_LineWidening,ento,entto);
IGESAppli_ToolLineWidening tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 9 : {
DeclareAndCast(IGESAppli_NodalConstraint,enfr,entfrom);
DeclareAndCast(IGESAppli_NodalConstraint,ento,entto);
IGESAppli_ToolNodalConstraint tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 10 : {
DeclareAndCast(IGESAppli_NodalDisplAndRot,enfr,entfrom);
DeclareAndCast(IGESAppli_NodalDisplAndRot,ento,entto);
IGESAppli_ToolNodalDisplAndRot tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 11 : {
DeclareAndCast(IGESAppli_NodalResults,enfr,entfrom);
DeclareAndCast(IGESAppli_NodalResults,ento,entto);
IGESAppli_ToolNodalResults tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 12 : {
DeclareAndCast(IGESAppli_Node,enfr,entfrom);
DeclareAndCast(IGESAppli_Node,ento,entto);
IGESAppli_ToolNode tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 13 : {
DeclareAndCast(IGESAppli_PWBArtworkStackup,enfr,entfrom);
DeclareAndCast(IGESAppli_PWBArtworkStackup,ento,entto);
IGESAppli_ToolPWBArtworkStackup tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 14 : {
DeclareAndCast(IGESAppli_PWBDrilledHole,enfr,entfrom);
DeclareAndCast(IGESAppli_PWBDrilledHole,ento,entto);
IGESAppli_ToolPWBDrilledHole tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 15 : {
DeclareAndCast(IGESAppli_PartNumber,enfr,entfrom);
DeclareAndCast(IGESAppli_PartNumber,ento,entto);
IGESAppli_ToolPartNumber tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 16 : {
DeclareAndCast(IGESAppli_PinNumber,enfr,entfrom);
DeclareAndCast(IGESAppli_PinNumber,ento,entto);
IGESAppli_ToolPinNumber tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 17 : {
DeclareAndCast(IGESAppli_PipingFlow,enfr,entfrom);
DeclareAndCast(IGESAppli_PipingFlow,ento,entto);
IGESAppli_ToolPipingFlow tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 18 : {
DeclareAndCast(IGESAppli_ReferenceDesignator,enfr,entfrom);
DeclareAndCast(IGESAppli_ReferenceDesignator,ento,entto);
IGESAppli_ToolReferenceDesignator tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 19 : {
DeclareAndCast(IGESAppli_RegionRestriction,enfr,entfrom);
DeclareAndCast(IGESAppli_RegionRestriction,ento,entto);
IGESAppli_ToolRegionRestriction tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
default : break;
}
}
Standard_Integer IGESAppli_GeneralModule::CategoryNumber
(const Standard_Integer CN, const Handle(Standard_Transient)& /*ent*/,
const Interface_ShareTool& ) const
{
if (CN == 4 || CN == 5 || CN == 17) return Interface_Category::Number("Piping");
if (CN == 2 || CN == 3 || (CN >= 9 && CN <= 12)) return Interface_Category::Number("FEA");
// For IGESSolid {
if (CN >= 1 && CN <= 24) return Interface_Category::Number("Shape");
// }
if (CN == 28 || CN == 29 || CN == 41) return Interface_Category::Number("Piping");
if (CN == 26 || CN == 27 || (CN >= 33 && CN <= 36)) return Interface_Category::Number("FEA");
return Interface_Category::Number("Professional");
}

View File

@@ -17,19 +17,7 @@
#ifndef _IGESAppli_GeneralModule_HeaderFile
#define _IGESAppli_GeneralModule_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_GeneralModule.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Standard_Transient;
class Interface_CopyTool;
class IGESAppli_GeneralModule;
@@ -39,12 +27,10 @@ DEFINE_STANDARD_HANDLE(IGESAppli_GeneralModule, IGESData_GeneralModule)
//! This Services comprise : Shared & Implied Lists, Copy, Check
class IGESAppli_GeneralModule : public IGESData_GeneralModule
{
public:
public:
//! Creates a GeneralModule from IGESAppli and puts it into GeneralLib
Standard_EXPORT IGESAppli_GeneralModule();
IGESAppli_GeneralModule() {}
//! Lists the Entities shared by a given IGESEntity <ent>, from
//! its specific parameters : specific for each type
@@ -61,36 +47,13 @@ public:
//! Specific creation of a new void entity
Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
//! Copies parameters which are specific of each Type of Entity
Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
//! Returns a category number which characterizes an entity
//! FEA for : ElementResults,FiniteElement,Node&Co
//! Piping for : Flow & Co
//! Professional for : others (in fact Schematics)
Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_GeneralModule,IGESData_GeneralModule)
protected:
private:
};
#endif // _IGESAppli_GeneralModule_HeaderFile

View File

@@ -17,14 +17,10 @@
//--------------------------------------------------------------------
#include <IGESAppli_LevelFunction.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_LevelFunction,IGESData_IGESEntity)
IGESAppli_LevelFunction::IGESAppli_LevelFunction () { }
void IGESAppli_LevelFunction::Init
(const Standard_Integer nbPropVal,
const Standard_Integer aCode,
@@ -36,18 +32,8 @@ IGESAppli_LevelFunction::IGESAppli_LevelFunction () { }
InitTypeAndForm(406,3);
}
Standard_Integer IGESAppli_LevelFunction::NbPropertyValues () const
void IGESAppli_LevelFunction::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Standard_Integer IGESAppli_LevelFunction::FuncDescriptionCode () const
{
return theFuncDescripCode;
}
Handle(TCollection_HAsciiString) IGESAppli_LevelFunction::FuncDescription () const
{
return theFuncDescrip;
if (NbPropertyValues() != 2)
theCheck->AddFail("Number of Property Values != 2");
}

View File

@@ -17,10 +17,6 @@
#ifndef _IGESAppli_LevelFunction_HeaderFile
#define _IGESAppli_LevelFunction_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
@@ -34,11 +30,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_LevelFunction, IGESData_IGESEntity)
//! in the sending system
class IGESAppli_LevelFunction : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_LevelFunction();
IGESAppli_LevelFunction() {}
//! This method is used to set the fields of the class
//! LevelFunction
@@ -50,39 +44,24 @@ public:
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Integer aCode, const Handle(TCollection_HAsciiString)& aFuncDescrip);
//! is always 2
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns the function description code . Default = 0
Standard_EXPORT Standard_Integer FuncDescriptionCode() const;
Standard_Integer FuncDescriptionCode() const { return theFuncDescripCode; }
//! returns the function description
//! Default = null string
Standard_EXPORT Handle(TCollection_HAsciiString) FuncDescription() const;
const Handle(TCollection_HAsciiString) & FuncDescription() const { return theFuncDescrip; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_LevelFunction,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer theFuncDescripCode;
Handle(TCollection_HAsciiString) theFuncDescrip;
};
#endif // _IGESAppli_LevelFunction_HeaderFile

View File

@@ -19,15 +19,11 @@
#include <IGESAppli_LevelToPWBLayerMap.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_LevelToPWBLayerMap,IGESData_IGESEntity)
IGESAppli_LevelToPWBLayerMap::IGESAppli_LevelToPWBLayerMap () { }
void IGESAppli_LevelToPWBLayerMap::Init
void IGESAppli_LevelToPWBLayerMap::Init
(const Standard_Integer nbPropVal,
const Handle(TColStd_HArray1OfInteger)& allExchLevels,
const Handle(Interface_HArray1OfHAsciiString)& allNativeLevels,
@@ -48,36 +44,27 @@ IGESAppli_LevelToPWBLayerMap::IGESAppli_LevelToPWBLayerMap () { }
InitTypeAndForm(406,24);
}
Standard_Integer IGESAppli_LevelToPWBLayerMap::NbPropertyValues () const
{
return theNbPropertyValues;
}
Standard_Integer IGESAppli_LevelToPWBLayerMap::NbLevelToLayerDefs () const
Standard_Integer IGESAppli_LevelToPWBLayerMap::NbLevelToLayerDefs () const
{
return theExchangeFileLevelNumber->Length();
}
Standard_Integer IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelNumber
(const Standard_Integer Index) const
Standard_Integer IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelNumber (const Standard_Integer Index) const
{
return theExchangeFileLevelNumber->Value(Index);
}
Handle(TCollection_HAsciiString) IGESAppli_LevelToPWBLayerMap::NativeLevel
(const Standard_Integer Index) const
const Handle(TCollection_HAsciiString) & IGESAppli_LevelToPWBLayerMap::NativeLevel (const Standard_Integer Index) const
{
return theNativeLevel->Value(Index);
}
Standard_Integer IGESAppli_LevelToPWBLayerMap::PhysicalLayerNumber
(const Standard_Integer Index) const
Standard_Integer IGESAppli_LevelToPWBLayerMap::PhysicalLayerNumber (const Standard_Integer Index) const
{
return thePhysicalLayerNumber->Value(Index);
}
Handle(TCollection_HAsciiString) IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelIdent
(const Standard_Integer Index) const
const Handle(TCollection_HAsciiString) & IGESAppli_LevelToPWBLayerMap::ExchangeFileLevelIdent (const Standard_Integer Index) const
{
return theExchangeFileLevelIdent->Value(Index);
}

View File

@@ -17,15 +17,9 @@
#ifndef _IGESAppli_LevelToPWBLayerMap_HeaderFile
#define _IGESAppli_LevelToPWBLayerMap_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESData_IGESEntity.hxx>
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class TCollection_HAsciiString;
@@ -40,11 +34,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_LevelToPWBLayerMap, IGESData_IGESEntity)
//! identification
class IGESAppli_LevelToPWBLayerMap : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_LevelToPWBLayerMap();
IGESAppli_LevelToPWBLayerMap() {}
//! This method is used to set the fields of the class
//! LevelToPWBLayerMap
@@ -58,8 +50,8 @@ public:
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TColStd_HArray1OfInteger)& allExchLevels, const Handle(Interface_HArray1OfHAsciiString)& allNativeLevels, const Handle(TColStd_HArray1OfInteger)& allPhysLevels, const Handle(Interface_HArray1OfHAsciiString)& allExchIdents);
//! returns number of property values
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns number of level to layer definitions
Standard_EXPORT Standard_Integer NbLevelToLayerDefs() const;
@@ -69,40 +61,23 @@ public:
//! returns Native Level Identification
//! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
Standard_EXPORT Handle(TCollection_HAsciiString) NativeLevel (const Standard_Integer Index) const;
Standard_EXPORT const Handle(TCollection_HAsciiString) & NativeLevel (const Standard_Integer Index) const;
//! returns Physical Layer Number
//! raises exception if Index <= 0 or Index > NbLevelToLayerDefs
Standard_EXPORT Standard_Integer PhysicalLayerNumber (const Standard_Integer Index) const;
Standard_EXPORT Handle(TCollection_HAsciiString) ExchangeFileLevelIdent (const Standard_Integer Index) const;
Standard_EXPORT const Handle(TCollection_HAsciiString) & ExchangeFileLevelIdent (const Standard_Integer Index) const;
DEFINE_STANDARD_RTTIEXT(IGESAppli_LevelToPWBLayerMap,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Handle(TColStd_HArray1OfInteger) theExchangeFileLevelNumber;
Handle(Interface_HArray1OfHAsciiString) theNativeLevel;
Handle(TColStd_HArray1OfInteger) thePhysicalLayerNumber;
Handle(Interface_HArray1OfHAsciiString) theExchangeFileLevelIdent;
};
#endif // _IGESAppli_LevelToPWBLayerMap_HeaderFile

View File

@@ -18,14 +18,10 @@
#include <IGESAppli_LineWidening.hxx>
#include <IGESData_LevelListEntity.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_LineWidening,IGESData_IGESEntity)
IGESAppli_LineWidening::IGESAppli_LineWidening () { }
void IGESAppli_LineWidening::Init
void IGESAppli_LineWidening::Init
(const Standard_Integer nbPropVal,
const Standard_Real aWidth, const Standard_Integer aCornering,
const Standard_Integer aExtnFlag, const Standard_Integer aJustifFlag,
@@ -40,33 +36,18 @@ IGESAppli_LineWidening::IGESAppli_LineWidening () { }
InitTypeAndForm(406,5);
}
Standard_Integer IGESAppli_LineWidening::NbPropertyValues () const
void IGESAppli_LineWidening::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Standard_Real IGESAppli_LineWidening::WidthOfMetalization () const
{
return theWidth;
}
Standard_Integer IGESAppli_LineWidening::CorneringCode () const
{
return theCorneringCode;
}
Standard_Integer IGESAppli_LineWidening::ExtensionFlag () const
{
return theExtensionFlag;
}
Standard_Integer IGESAppli_LineWidening::JustificationFlag () const
{
return theJustificationFlag;
}
Standard_Real IGESAppli_LineWidening::ExtensionValue () const
{
return theExtensionValue;
if (SubordinateStatus() != 0)
if (DefLevel() == IGESData_DefOne ||
DefLevel() == IGESData_DefSeveral)
theCheck->AddWarning("Level type: defined while ignored");
if (NbPropertyValues() != 5)
theCheck->AddFail("Number of Property Values != 5");
if (CorneringCode() != 0 && CorneringCode() != 1)
theCheck->AddFail("Cornering Code incorrect");
if (ExtensionFlag() < 0 || ExtensionFlag() > 2)
theCheck->AddFail("Extension Flag value incorrect");
if (JustificationFlag() < 0 || JustificationFlag() > 2)
theCheck->AddFail("Justification Flag value incorrect");
}

View File

@@ -17,14 +17,8 @@
#ifndef _IGESAppli_LineWidening_HeaderFile
#define _IGESAppli_LineWidening_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESAppli_LineWidening;
DEFINE_STANDARD_HANDLE(IGESAppli_LineWidening, IGESData_IGESEntity)
@@ -34,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_LineWidening, IGESData_IGESEntity)
//! used to define locations of items.
class IGESAppli_LineWidening : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_LineWidening();
IGESAppli_LineWidening() {}
//! This method is used to set the fields of the class
//! LineWidening
@@ -60,43 +52,36 @@ public:
//! returns the number of property values
//! is always 5
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns the width of metallization
Standard_EXPORT Standard_Real WidthOfMetalization() const;
Standard_Real WidthOfMetalization() const { return theWidth; }
//! returns the cornering code
//! 0 = Rounded / 1 = Squared
Standard_EXPORT Standard_Integer CorneringCode() const;
Standard_Integer CorneringCode() const { return theCorneringCode; }
//! returns the extension flag
//! 0 = No extension
//! 1 = One-half width extension
//! 2 = Extension set by theExtnVal
Standard_EXPORT Standard_Integer ExtensionFlag() const;
Standard_Integer ExtensionFlag() const { return theExtensionFlag; }
//! returns the justification flag
//! 0 = Centre justified
//! 1 = Left justified
//! 2 = Right justified
Standard_EXPORT Standard_Integer JustificationFlag() const;
Standard_Integer JustificationFlag() const { return theJustificationFlag; }
//! returns the Extension Value
//! Present only if theExtnFlag = 2
Standard_EXPORT Standard_Real ExtensionValue() const;
Standard_Real ExtensionValue() const { return theExtensionValue; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_LineWidening,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Standard_Real theWidth;
@@ -104,14 +89,6 @@ private:
Standard_Integer theExtensionFlag;
Standard_Integer theJustificationFlag;
Standard_Real theExtensionValue;
};
#endif // _IGESAppli_LineWidening_HeaderFile

View File

@@ -21,14 +21,11 @@
#include <IGESDefs_TabularData.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_NodalConstraint,IGESData_IGESEntity)
IGESAppli_NodalConstraint::IGESAppli_NodalConstraint () { }
void IGESAppli_NodalConstraint::Init
void IGESAppli_NodalConstraint::Init
(const Standard_Integer aType,
const Handle(IGESAppli_Node)& aNode,
const Handle(IGESDefs_HArray1OfTabularData)& allTabData)
@@ -41,23 +38,26 @@ IGESAppli_NodalConstraint::IGESAppli_NodalConstraint () { }
InitTypeAndForm(418,0);
}
Standard_Integer IGESAppli_NodalConstraint::NbCases () const
Standard_Integer IGESAppli_NodalConstraint::NbCases () const
{
return theTabularDataProps->Length();
}
Standard_Integer IGESAppli_NodalConstraint::Type () const
{
return theType;
}
Handle(IGESAppli_Node) IGESAppli_NodalConstraint::NodeEntity () const
{
return theNode;
}
Handle(IGESDefs_TabularData) IGESAppli_NodalConstraint::TabularData
(const Standard_Integer Index) const
const Handle(IGESDefs_TabularData) & IGESAppli_NodalConstraint::TabularData (const Standard_Integer Index) const
{
return theTabularDataProps->Value(Index);
}
void IGESAppli_NodalConstraint::OwnShared(Interface_EntityIterator &theIter) const
{
theIter.GetOneItem(NodeEntity());
const Standard_Integer num = NbCases();
for ( Standard_Integer i = 1; i <= num; i++ )
theIter.GetOneItem(TabularData(i));
}
void IGESAppli_NodalConstraint::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
if ((Type() != 1) && (Type() != 2))
theCheck->AddFail("Type of Constraint != 1,2");
}

View File

@@ -17,14 +17,9 @@
#ifndef _IGESAppli_NodalConstraint_HeaderFile
#define _IGESAppli_NodalConstraint_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESDefs_HArray1OfTabularData.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESAppli_Node;
class Standard_OutOfRange;
class IGESDefs_TabularData;
@@ -39,11 +34,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_NodalConstraint, IGESData_IGESEntity)
//! the load or constraint data
class IGESAppli_NodalConstraint : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_NodalConstraint();
IGESAppli_NodalConstraint() {}
//! This method is used to set the fields of the class
//! NodalConstraint
@@ -57,39 +50,26 @@ public:
Standard_EXPORT Standard_Integer NbCases() const;
//! returns whether Loads (1) or Constraints (2)
Standard_EXPORT Standard_Integer Type() const;
Standard_Integer Type() const { return theType; }
//! returns the Node
Standard_EXPORT Handle(IGESAppli_Node) NodeEntity() const;
const Handle(IGESAppli_Node) & NodeEntity() const { return theNode; }
//! returns Tabular Data Property carrying load or constraint vector
//! raises exception if Index <= 0 or Index > NbCases
Standard_EXPORT Handle(IGESDefs_TabularData) TabularData (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESDefs_TabularData) & TabularData (const Standard_Integer Index) const;
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalConstraint,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theType;
Handle(IGESAppli_Node) theNode;
Handle(IGESDefs_HArray1OfTabularData) theTabularDataProps;
};
#endif // _IGESAppli_NodalConstraint_HeaderFile

View File

@@ -23,15 +23,12 @@
#include <IGESDimen_GeneralNote.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
#include <TColgp_HArray1OfXYZ.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_NodalDisplAndRot,IGESData_IGESEntity)
IGESAppli_NodalDisplAndRot::IGESAppli_NodalDisplAndRot () { }
void IGESAppli_NodalDisplAndRot::Init
void IGESAppli_NodalDisplAndRot::Init
(const Handle(IGESDimen_HArray1OfGeneralNote)& allNotes,
const Handle(TColStd_HArray1OfInteger)& allIdentifiers,
const Handle(IGESAppli_HArray1OfNode)& allNodes,
@@ -66,43 +63,48 @@ IGESAppli_NodalDisplAndRot::IGESAppli_NodalDisplAndRot () { }
InitTypeAndForm(138,0);
}
Standard_Integer IGESAppli_NodalDisplAndRot::NbCases () const
Standard_Integer IGESAppli_NodalDisplAndRot::NbCases () const
{
return theNotes->Length();
}
Standard_Integer IGESAppli_NodalDisplAndRot::NbNodes () const
Standard_Integer IGESAppli_NodalDisplAndRot::NbNodes () const
{
return theNodes->Length();
}
Handle(IGESDimen_GeneralNote) IGESAppli_NodalDisplAndRot::Note
(const Standard_Integer Index) const
const Handle(IGESDimen_GeneralNote) & IGESAppli_NodalDisplAndRot::Note (const Standard_Integer Index) const
{
return theNotes->Value(Index);
}
Standard_Integer IGESAppli_NodalDisplAndRot::NodeIdentifier
(const Standard_Integer Index) const
Standard_Integer IGESAppli_NodalDisplAndRot::NodeIdentifier (const Standard_Integer Index) const
{
return theNodeIdentifiers->Value(Index);
}
Handle(IGESAppli_Node) IGESAppli_NodalDisplAndRot::Node
(const Standard_Integer Index) const
const Handle(IGESAppli_Node) & IGESAppli_NodalDisplAndRot::Node (const Standard_Integer Index) const
{
return theNodes->Value(Index);
}
gp_XYZ IGESAppli_NodalDisplAndRot::TranslationParameter
(const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
const gp_XYZ & IGESAppli_NodalDisplAndRot::TranslationParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
{
return theTransParam->Value(NodeNum)->Value(CaseNum);
}
gp_XYZ IGESAppli_NodalDisplAndRot::RotationalParameter
(const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
const gp_XYZ & IGESAppli_NodalDisplAndRot::RotationalParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const
{
return theRotParam->Value(NodeNum)->Value(CaseNum);
}
void IGESAppli_NodalDisplAndRot::OwnShared(Interface_EntityIterator &theIter) const
{
const Standard_Integer nbcases = theNotes->Length();
const Standard_Integer nbnodes = theNodes->Length();
for (Standard_Integer i = 1; i <= nbcases; i ++)
theIter.GetOneItem(theNotes->Value(i));
for (Standard_Integer j = 1; j <= nbnodes; j ++)
theIter.GetOneItem(theNodes->Value(j));
}

View File

@@ -17,17 +17,11 @@
#ifndef _IGESAppli_NodalDisplAndRot_HeaderFile
#define _IGESAppli_NodalDisplAndRot_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESDimen_HArray1OfGeneralNote.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESAppli_HArray1OfNode.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
class IGESBasic_HArray1OfHArray1OfXYZ;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class IGESDimen_GeneralNote;
class IGESAppli_Node;
class gp_XYZ;
@@ -42,11 +36,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_NodalDisplAndRot, IGESData_IGESEntity)
//! data.
class IGESAppli_NodalDisplAndRot : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_NodalDisplAndRot();
IGESAppli_NodalDisplAndRot() {}
//! This method is used to set the fields of the class
//! NodalDisplAndRot
@@ -72,7 +64,7 @@ public:
//! returns the General Note that describes the Index analysis case
//! raises exception if Index <= 0 or Index > NbCases
Standard_EXPORT Handle(IGESDimen_GeneralNote) Note (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESDimen_GeneralNote) & Note (const Standard_Integer Index) const;
//! returns the node identifier as specified by the Index
//! raises exception if Index <= 0 or Index > NbNodes
@@ -80,44 +72,29 @@ public:
//! returns the node as specified by the Index
//! raises exception if Index <= 0 or Index > NbNodes
Standard_EXPORT Handle(IGESAppli_Node) Node (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESAppli_Node) & Node (const Standard_Integer Index) const;
//! returns the Translational Parameters for the particular Index
//! Exception raised if NodeNum <= 0 or NodeNum > NbNodes()
//! or CaseNum <= 0 or CaseNum > NbCases()
Standard_EXPORT gp_XYZ TranslationParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
Standard_EXPORT const gp_XYZ & TranslationParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
//! returns the Rotational Parameters for Index
//! Exception raised if NodeNum <= 0 or NodeNum > NbNodes()
//! or CaseNum <= 0 or CaseNum > NbCases()
Standard_EXPORT gp_XYZ RotationalParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
Standard_EXPORT const gp_XYZ & RotationalParameter (const Standard_Integer NodeNum, const Standard_Integer CaseNum) const;
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalDisplAndRot,IGESData_IGESEntity)
protected:
private:
private:
Handle(IGESDimen_HArray1OfGeneralNote) theNotes;
Handle(TColStd_HArray1OfInteger) theNodeIdentifiers;
Handle(IGESAppli_HArray1OfNode) theNodes;
Handle(IGESBasic_HArray1OfHArray1OfXYZ) theTransParam;
Handle(IGESBasic_HArray1OfHArray1OfXYZ) theRotParam;
};
#endif // _IGESAppli_NodalDisplAndRot_HeaderFile

View File

@@ -21,17 +21,14 @@
#include <IGESDimen_GeneralNote.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
#include <TColStd_HArray1OfReal.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_NodalResults,IGESData_IGESEntity)
IGESAppli_NodalResults::IGESAppli_NodalResults () { }
// Data : Col -> // Nodes. Row : Data per Node
void IGESAppli_NodalResults::Init
void IGESAppli_NodalResults::Init
(const Handle(IGESDimen_GeneralNote)& aNote,
const Standard_Integer aNumber, const Standard_Real aTime,
const Handle(TColStd_HArray1OfInteger)& allNodeIdentifiers,
@@ -53,53 +50,88 @@ IGESAppli_NodalResults::IGESAppli_NodalResults () { }
// FormNumber -> Type of the Results
}
void IGESAppli_NodalResults::SetFormNumber (const Standard_Integer form)
void IGESAppli_NodalResults::SetFormNumber (const Standard_Integer form)
{
if (form < 0 || form > 34) Standard_OutOfRange::Raise
("IGESAppli_NodalResults : SetFormNumber");
InitTypeAndForm(146,form);
}
Handle(IGESDimen_GeneralNote) IGESAppli_NodalResults::Note () const
{
return theNote;
}
Handle(IGESAppli_Node) IGESAppli_NodalResults::Node
(const Standard_Integer Index) const
const Handle(IGESAppli_Node) & IGESAppli_NodalResults::Node (const Standard_Integer Index) const
{
return theNodes->Value(Index);
}
Standard_Integer IGESAppli_NodalResults::NbNodes () const
Standard_Integer IGESAppli_NodalResults::NbNodes () const
{
return theNodes->Length();
}
Standard_Integer IGESAppli_NodalResults::SubCaseNumber () const
{
return theSubCaseNum;
}
Standard_Real IGESAppli_NodalResults::Time () const
{
return theTime;
}
Standard_Integer IGESAppli_NodalResults::NbData () const
Standard_Integer IGESAppli_NodalResults::NbData () const
{
return theData->RowLength();
}
Standard_Integer IGESAppli_NodalResults::NodeIdentifier
(const Standard_Integer Index) const
Standard_Integer IGESAppli_NodalResults::NodeIdentifier (const Standard_Integer Index) const
{
return theNodeIdentifiers->Value(Index);
}
Standard_Real IGESAppli_NodalResults::Data
(const Standard_Integer NodeNum, const Standard_Integer DataNum) const
Standard_Real IGESAppli_NodalResults::Data (const Standard_Integer NodeNum, const Standard_Integer DataNum) const
{
return theData->Value(NodeNum,DataNum);
}
void IGESAppli_NodalResults::OwnShared(Interface_EntityIterator &theIter) const
{
theIter.GetOneItem(Note());
const Standard_Integer nbnodes = NbNodes();
for (Standard_Integer i = 1; i <= nbnodes; i++)
theIter.GetOneItem(Node(i));
}
void IGESAppli_NodalResults::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
const Standard_Integer FormNum = FormNumber();
const Standard_Integer nv = NbData();
Standard_Boolean OK = Standard_True;
switch (FormNum) {
case 0 : if (nv < 0) OK = Standard_False; break;
case 1 : if (nv != 1) OK = Standard_False; break;
case 2 : if (nv != 1) OK = Standard_False; break;
case 3 : if (nv != 3) OK = Standard_False; break;
case 4 : if (nv != 6) OK = Standard_False; break;
case 5 : if (nv != 3) OK = Standard_False; break;
case 6 : if (nv != 3) OK = Standard_False; break;
case 7 : if (nv != 3) OK = Standard_False; break;
case 8 : if (nv != 3) OK = Standard_False; break;
case 9 : if (nv != 3) OK = Standard_False; break;
case 10 : if (nv != 1) OK = Standard_False; break;
case 11 : if (nv != 1) OK = Standard_False; break;
case 12 : if (nv != 3) OK = Standard_False; break;
case 13 : if (nv != 1) OK = Standard_False; break;
case 14 : if (nv != 1) OK = Standard_False; break;
case 15 : if (nv != 3) OK = Standard_False; break;
case 16 : if (nv != 1) OK = Standard_False; break;
case 17 : if (nv != 3) OK = Standard_False; break;
case 18 : if (nv != 3) OK = Standard_False; break;
case 19 : if (nv != 3) OK = Standard_False; break;
case 20 : if (nv != 3) OK = Standard_False; break;
case 21 : if (nv != 3) OK = Standard_False; break;
case 22 : if (nv != 3) OK = Standard_False; break;
case 23 : if (nv != 6) OK = Standard_False; break;
case 24 : if (nv != 6) OK = Standard_False; break;
case 25 : if (nv != 6) OK = Standard_False; break;
case 26 : if (nv != 6) OK = Standard_False; break;
case 27 : if (nv != 6) OK = Standard_False; break;
case 28 : if (nv != 6) OK = Standard_False; break;
case 29 : if (nv != 9) OK = Standard_False; break;
case 30 : if (nv != 9) OK = Standard_False; break;
case 31 : if (nv != 9) OK = Standard_False; break;
case 32 : if (nv != 9) OK = Standard_False; break;
case 33 : if (nv != 9) OK = Standard_False; break;
case 34 : if (nv != 9) OK = Standard_False; break;
default : theCheck->AddFail("Incorrect Form Number"); break;
}
if (!OK) theCheck->AddFail("Incorrect count of real values in array V for FEM node");
}

View File

@@ -17,18 +17,11 @@
#ifndef _IGESAppli_NodalResults_HeaderFile
#define _IGESAppli_NodalResults_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESAppli_HArray1OfNode.hxx>
#include <TColStd_HArray2OfReal.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESDimen_GeneralNote;
class Standard_DimensionMismatch;
class Standard_OutOfRange;
class IGESAppli_Node;
@@ -40,11 +33,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_NodalResults, IGESData_IGESEntity)
//! Used to store the Analysis Data results per FEM Node
class IGESAppli_NodalResults : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_NodalResults();
IGESAppli_NodalResults() {}
//! This method is used to set the fields of the class
//! NodalResults
@@ -65,16 +56,16 @@ public:
Standard_EXPORT void SetFormNumber (const Standard_Integer form);
//! returns the General Note Entity that describes the analysis case
Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
const Handle(IGESDimen_GeneralNote) & Note() const { return theNote; }
//! returns zero if there is no subcase
Standard_EXPORT Standard_Integer SubCaseNumber() const;
Standard_Integer SubCaseNumber() const { return theSubCaseNum; }
//! returns the Analysis time value for this subcase. It is the time
//! at which transient analysis results occur in the mathematical
//! FEM model.
Standard_EXPORT Standard_Real Time() const;
Standard_Real Time() const { return theTime; }
//! returns number of real values in array V for a FEM node
Standard_EXPORT Standard_Integer NbData() const;
@@ -87,25 +78,20 @@ public:
//! returns the node as specified by the Index
//! raises exception if Index <= 0 or Index > NbNodes
Standard_EXPORT Handle(IGESAppli_Node) Node (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESAppli_Node) & Node (const Standard_Integer Index) const;
//! returns the finite element analysis result value
//! raises exception if (NodeNum <= 0 or NodeNum > NbNodes()) or
//! if (DataNum <=0 or DataNum > NbData())
Standard_EXPORT Standard_Real Data (const Standard_Integer NodeNum, const Standard_Integer DataNum) const;
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_NodalResults,IGESData_IGESEntity)
protected:
private:
private:
Handle(IGESDimen_GeneralNote) theNote;
Standard_Integer theSubCaseNum;
@@ -113,14 +99,6 @@ private:
Handle(TColStd_HArray1OfInteger) theNodeIdentifiers;
Handle(IGESAppli_HArray1OfNode) theNodes;
Handle(TColStd_HArray2OfReal) theData;
};
#endif // _IGESAppli_NodalResults_HeaderFile

View File

@@ -18,19 +18,15 @@
#include <gp_GTrsf.hxx>
#include <gp_Pnt.hxx>
#include <gp_XYZ.hxx>
#include <IGESAppli_Node.hxx>
#include <IGESData_TransfEntity.hxx>
#include <IGESGeom_TransformationMatrix.hxx>
#include <Interface_Macros.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_Node,IGESData_IGESEntity)
IGESAppli_Node::IGESAppli_Node () { }
void IGESAppli_Node::Init
void IGESAppli_Node::Init
(const gp_XYZ& aCoord,
const Handle(IGESGeom_TransformationMatrix)& aCoordSystem)
{
@@ -39,28 +35,43 @@ IGESAppli_Node::IGESAppli_Node () { }
InitTypeAndForm(134,0);
}
gp_Pnt IGESAppli_Node::Coord () const
gp_Pnt IGESAppli_Node::Coord () const
{
return gp_Pnt(theCoord);
}
Handle(IGESData_TransfEntity) IGESAppli_Node::System () const
Handle(IGESData_TransfEntity) IGESAppli_Node::System () const
{
//if Null, Global Cartesian Coordinate System
return Handle(IGESData_TransfEntity)(theSystem);
}
Standard_Integer IGESAppli_Node::SystemType () const
Standard_Integer IGESAppli_Node::SystemType () const
{
if (theSystem.IsNull()) return 0; // 0 Global Cartesien
return (theSystem->FormNumber() - 9); // 1 Cartesien, 2 Cylind. 3 Spher.
}
gp_Pnt IGESAppli_Node::TransformedNodalCoord () const
gp_Pnt IGESAppli_Node::TransformedNodalCoord () const
{
gp_XYZ tempCoord = Coord().XYZ();
Handle(IGESData_TransfEntity) temp = System();
if (!temp.IsNull()) temp->Value().Transforms(tempCoord);
return gp_Pnt(tempCoord);
}
void IGESAppli_Node::OwnShared(Interface_EntityIterator &theIter) const
{
theIter.GetOneItem(System());
}
void IGESAppli_Node::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
if (!HasSubScriptNumber())
theCheck->AddFail("SubScript Number expected (for Node Number) not present");
if (!HasTransf())
theCheck->AddFail("Transformation Matrix expected, not present");
if (!System().IsNull())
if (System()->FormNumber() < 10)
theCheck->AddFail("System : Incorrect FormNumber (not 10-11-12)");
}

View File

@@ -17,14 +17,9 @@
#ifndef _IGESAppli_Node_HeaderFile
#define _IGESAppli_Node_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <gp_XYZ.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Integer.hxx>
class IGESGeom_TransformationMatrix;
class gp_XYZ;
class gp_Pnt;
class IGESData_TransfEntity;
@@ -37,11 +32,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_Node, IGESData_IGESEntity)
//! Geometric point used in the definition of a finite element.
class IGESAppli_Node : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_Node();
IGESAppli_Node() {}
//! This method is used to set the fields of the class Node
//! - aCoord : Nodal Coordinates
@@ -65,29 +58,16 @@ public:
//! returns the Nodal coordinates after transformation
Standard_EXPORT gp_Pnt TransformedNodalCoord() const;
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_Node,IGESData_IGESEntity)
protected:
private:
private:
gp_XYZ theCoord;
Handle(IGESGeom_TransformationMatrix) theSystem;
};
#endif // _IGESAppli_Node_HeaderFile

View File

@@ -19,15 +19,11 @@
#include <IGESAppli_PWBArtworkStackup.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PWBArtworkStackup,IGESData_IGESEntity)
IGESAppli_PWBArtworkStackup::IGESAppli_PWBArtworkStackup () { }
void IGESAppli_PWBArtworkStackup::Init
void IGESAppli_PWBArtworkStackup::Init
(const Standard_Integer nbPropVal,
const Handle(TCollection_HAsciiString)& anArtIdent,
const Handle(TColStd_HArray1OfInteger)& allLevelNums)
@@ -40,23 +36,12 @@ IGESAppli_PWBArtworkStackup::IGESAppli_PWBArtworkStackup () { }
InitTypeAndForm(406,25);
}
Standard_Integer IGESAppli_PWBArtworkStackup::NbPropertyValues () const
{
return theNbPropertyValues;
}
Handle(TCollection_HAsciiString) IGESAppli_PWBArtworkStackup::Identification () const
{
return theArtworkStackupIdent;
}
Standard_Integer IGESAppli_PWBArtworkStackup::NbLevelNumbers () const
Standard_Integer IGESAppli_PWBArtworkStackup::NbLevelNumbers () const
{
return theLevelNumbers->Length();
}
Standard_Integer IGESAppli_PWBArtworkStackup::LevelNumber
(const Standard_Integer Index) const
Standard_Integer IGESAppli_PWBArtworkStackup::LevelNumber (const Standard_Integer Index) const
{
return theLevelNumbers->Value(Index);
}

View File

@@ -17,14 +17,9 @@
#ifndef _IGESAppli_PWBArtworkStackup_HeaderFile
#define _IGESAppli_PWBArtworkStackup_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
class Standard_OutOfRange;
class IGESAppli_PWBArtworkStackup;
@@ -40,11 +35,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PWBArtworkStackup, IGESData_IGESEntity)
//! property should stand alone in the file.
class IGESAppli_PWBArtworkStackup : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_PWBArtworkStackup();
IGESAppli_PWBArtworkStackup() {}
//! This method is used to set the fields of the class
//! PWBArtworkStackup
@@ -54,11 +47,11 @@ public:
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TCollection_HAsciiString)& anArtIdent, const Handle(TColStd_HArray1OfInteger)& allLevelNums);
//! returns number of property values
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns Artwork Stackup Identification
Standard_EXPORT Handle(TCollection_HAsciiString) Identification() const;
const Handle(TCollection_HAsciiString) & Identification() const { return theArtworkStackupIdent; }
//! returns total number of Level Numbers
Standard_EXPORT Standard_Integer NbLevelNumbers() const;
@@ -66,30 +59,13 @@ public:
//! raises exception if Index <= 0 or Index > NbLevelNumbers
Standard_EXPORT Standard_Integer LevelNumber (const Standard_Integer Index) const;
DEFINE_STANDARD_RTTIEXT(IGESAppli_PWBArtworkStackup,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Handle(TCollection_HAsciiString) theArtworkStackupIdent;
Handle(TColStd_HArray1OfInteger) theLevelNumbers;
};
#endif // _IGESAppli_PWBArtworkStackup_HeaderFile

View File

@@ -17,14 +17,10 @@
//--------------------------------------------------------------------
#include <IGESAppli_PWBDrilledHole.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PWBDrilledHole,IGESData_IGESEntity)
IGESAppli_PWBDrilledHole::IGESAppli_PWBDrilledHole () { }
void IGESAppli_PWBDrilledHole::Init
void IGESAppli_PWBDrilledHole::Init
(const Standard_Integer nbPropVal,
const Standard_Real aDrillDia, const Standard_Real aFinishDia,
const Standard_Integer aCode)
@@ -36,23 +32,12 @@ IGESAppli_PWBDrilledHole::IGESAppli_PWBDrilledHole () { }
InitTypeAndForm(406,26);
}
Standard_Integer IGESAppli_PWBDrilledHole::NbPropertyValues () const
void IGESAppli_PWBDrilledHole::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Standard_Real IGESAppli_PWBDrilledHole::DrillDiameterSize () const
{
return theDrillDiameter;
}
Standard_Real IGESAppli_PWBDrilledHole::FinishDiameterSize () const
{
return theFinishDiameter;
}
Standard_Integer IGESAppli_PWBDrilledHole::FunctionCode () const
{
return theFunctionCode;
if (NbPropertyValues() != 3)
theCheck->AddFail("Number of property values != 3");
if ( (FunctionCode() < 1) ||
((FunctionCode() > 5) && (FunctionCode() < 5001)) ||
(FunctionCode() > 9999))
theCheck->AddFail("Drilled Hole Function Code != 1-5,5001-9999");
}

View File

@@ -17,14 +17,8 @@
#ifndef _IGESAppli_PWBDrilledHole_HeaderFile
#define _IGESAppli_PWBDrilledHole_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESAppli_PWBDrilledHole;
DEFINE_STANDARD_HANDLE(IGESAppli_PWBDrilledHole, IGESData_IGESEntity)
@@ -34,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PWBDrilledHole, IGESData_IGESEntity)
//! and to specify the characteristics of the drilled hole
class IGESAppli_PWBDrilledHole : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_PWBDrilledHole();
IGESAppli_PWBDrilledHole() {}
//! This method is used to set the fields of the class
//! PWBDrilledHole
@@ -49,43 +41,28 @@ public:
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Real aDrillDia, const Standard_Real aFinishDia, const Standard_Integer aCode);
//! returns number of property values, always = 3
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns Drill diameter size
Standard_EXPORT Standard_Real DrillDiameterSize() const;
Standard_Real DrillDiameterSize() const { return theDrillDiameter; }
//! returns Finish diameter size
Standard_EXPORT Standard_Real FinishDiameterSize() const;
Standard_Real FinishDiameterSize() const { return theFinishDiameter; }
//! returns Function code for drilled hole
//! is 0, 1, 2, 3, 4, 5 or 5001-9999
Standard_EXPORT Standard_Integer FunctionCode() const;
Standard_Integer FunctionCode() const { return theFunctionCode; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_PWBDrilledHole,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Standard_Real theDrillDiameter;
Standard_Real theFinishDiameter;
Standard_Integer theFunctionCode;
};
#endif // _IGESAppli_PWBDrilledHole_HeaderFile

View File

@@ -17,15 +17,11 @@
//--------------------------------------------------------------------
#include <IGESAppli_PartNumber.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PartNumber,IGESData_IGESEntity)
IGESAppli_PartNumber::IGESAppli_PartNumber () { }
void IGESAppli_PartNumber::Init
void IGESAppli_PartNumber::Init
(const Standard_Integer nbPropVal,
const Handle(TCollection_HAsciiString)& aGenName,
const Handle(TCollection_HAsciiString)& aMilName,
@@ -40,28 +36,8 @@ IGESAppli_PartNumber::IGESAppli_PartNumber () { }
InitTypeAndForm(406,9);
}
Standard_Integer IGESAppli_PartNumber::NbPropertyValues () const
void IGESAppli_PartNumber::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Handle(TCollection_HAsciiString) IGESAppli_PartNumber::GenericNumber () const
{
return theGenericNumber;
}
Handle(TCollection_HAsciiString) IGESAppli_PartNumber::MilitaryNumber () const
{
return theMilitaryNumber;
}
Handle(TCollection_HAsciiString) IGESAppli_PartNumber::VendorNumber () const
{
return theVendorNumber;
}
Handle(TCollection_HAsciiString) IGESAppli_PartNumber::InternalNumber () const
{
return theInternalNumber;
if (NbPropertyValues() != 4)
theCheck->AddFail("Number of property values != 4");
}

View File

@@ -17,10 +17,6 @@
#ifndef _IGESAppli_PartNumber_HeaderFile
#define _IGESAppli_PartNumber_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
@@ -35,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PartNumber, IGESData_IGESEntity)
//! physical component
class IGESAppli_PartNumber : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_PartNumber();
IGESAppli_PartNumber() {}
//! This method is used to set the fields of the class
//! PartNumber
@@ -51,46 +45,31 @@ public:
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Handle(TCollection_HAsciiString)& aGenName, const Handle(TCollection_HAsciiString)& aMilName, const Handle(TCollection_HAsciiString)& aVendName, const Handle(TCollection_HAsciiString)& anIntName);
//! returns number of property values, always = 4
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns Generic part number or name
Standard_EXPORT Handle(TCollection_HAsciiString) GenericNumber() const;
const Handle(TCollection_HAsciiString) & GenericNumber() const { return theGenericNumber; }
//! returns Military Standard (MIL-STD) part number
Standard_EXPORT Handle(TCollection_HAsciiString) MilitaryNumber() const;
const Handle(TCollection_HAsciiString) & MilitaryNumber() const { return theMilitaryNumber; }
//! returns Vendor part number or name
Standard_EXPORT Handle(TCollection_HAsciiString) VendorNumber() const;
const Handle(TCollection_HAsciiString) & VendorNumber() const { return theVendorNumber; }
//! returns Internal part number
Standard_EXPORT Handle(TCollection_HAsciiString) InternalNumber() const;
const Handle(TCollection_HAsciiString) & InternalNumber() const { return theInternalNumber; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_PartNumber,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Handle(TCollection_HAsciiString) theGenericNumber;
Handle(TCollection_HAsciiString) theMilitaryNumber;
Handle(TCollection_HAsciiString) theVendorNumber;
Handle(TCollection_HAsciiString) theInternalNumber;
};
#endif // _IGESAppli_PartNumber_HeaderFile

View File

@@ -22,10 +22,7 @@
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PinNumber,IGESData_IGESEntity)
IGESAppli_PinNumber::IGESAppli_PinNumber () { }
void IGESAppli_PinNumber::Init
void IGESAppli_PinNumber::Init
(const Standard_Integer nbPropVal,
const Handle(TCollection_HAsciiString)& aValue)
{
@@ -34,13 +31,14 @@ IGESAppli_PinNumber::IGESAppli_PinNumber () { }
InitTypeAndForm(406,8);
}
Standard_Integer IGESAppli_PinNumber::NbPropertyValues () const
void IGESAppli_PinNumber::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Handle(TCollection_HAsciiString) IGESAppli_PinNumber::PinNumberVal () const
{
return thePinNumber;
if (SubordinateStatus() != 0)
if (DefLevel() != IGESData_DefOne &&
DefLevel() != IGESData_DefSeveral)
theCheck->AddFail("Level type: Incorrect");
if (NbPropertyValues() != 1)
theCheck->AddFail("Number of Property Values != 1");
//UNFINISHED
//Level to be ignored if the property is subordinate -- queried
}

View File

@@ -17,10 +17,6 @@
#ifndef _IGESAppli_PinNumber_HeaderFile
#define _IGESAppli_PinNumber_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
@@ -35,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PinNumber, IGESData_IGESEntity)
//! electrical component's pin
class IGESAppli_PinNumber : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_PinNumber();
IGESAppli_PinNumber() {}
//! This method is used to set the fields of the class
//! PinNumber
@@ -49,34 +43,19 @@ public:
//! returns the number of property values
//! is always 1
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns the pin number value
Standard_EXPORT Handle(TCollection_HAsciiString) PinNumberVal() const;
const Handle(TCollection_HAsciiString) & PinNumberVal() const { return thePinNumber; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_PinNumber,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Handle(TCollection_HAsciiString) thePinNumber;
};
#endif // _IGESAppli_PinNumber_HeaderFile

View File

@@ -22,15 +22,12 @@
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <Standard_DimensionMismatch.hxx>
#include <Standard_OutOfRange.hxx>
#include <Standard_Type.hxx>
#include <Interface_EntityIterator.hxx>
#include <TCollection_HAsciiString.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_PipingFlow,IGESData_IGESEntity)
IGESAppli_PipingFlow::IGESAppli_PipingFlow () { }
void IGESAppli_PipingFlow::Init
void IGESAppli_PipingFlow::Init
(const Standard_Integer nbContextFlags,
const Standard_Integer aFlowType,
const Handle(IGESData_HArray1OfIGESEntity)& allFlowAssocs,
@@ -58,86 +55,92 @@ IGESAppli_PipingFlow::IGESAppli_PipingFlow () { }
InitTypeAndForm(402,20);
}
Standard_Boolean IGESAppli_PipingFlow::OwnCorrect ()
Standard_Boolean IGESAppli_PipingFlow::OwnCorrect ()
{
if (theNbContextFlags == 1) return Standard_False;
theNbContextFlags = 1;
return Standard_True;
}
Standard_Integer IGESAppli_PipingFlow::NbContextFlags () const
{
return theNbContextFlags;
}
Standard_Integer IGESAppli_PipingFlow::NbFlowAssociativities () const
Standard_Integer IGESAppli_PipingFlow::NbFlowAssociativities () const
{
return theFlowAssociativities->Length();
}
Standard_Integer IGESAppli_PipingFlow::NbConnectPoints () const
Standard_Integer IGESAppli_PipingFlow::NbConnectPoints () const
{
return theConnectPoints->Length();
}
Standard_Integer IGESAppli_PipingFlow::NbJoins () const
Standard_Integer IGESAppli_PipingFlow::NbJoins () const
{
return theJoins->Length();
}
Standard_Integer IGESAppli_PipingFlow::NbFlowNames () const
Standard_Integer IGESAppli_PipingFlow::NbFlowNames () const
{
return theFlowNames->Length();
}
Standard_Integer IGESAppli_PipingFlow::NbTextDisplayTemplates () const
Standard_Integer IGESAppli_PipingFlow::NbTextDisplayTemplates () const
{
return theTextDisplayTemplates->Length();
}
Standard_Integer IGESAppli_PipingFlow::NbContFlowAssociativities () const
Standard_Integer IGESAppli_PipingFlow::NbContFlowAssociativities () const
{
return theContFlowAssociativities->Length();
}
Standard_Integer IGESAppli_PipingFlow::TypeOfFlow () const
{
return theTypeOfFlow;
}
Handle(IGESData_IGESEntity) IGESAppli_PipingFlow::FlowAssociativity
(const Standard_Integer Index) const
const Handle(IGESData_IGESEntity) & IGESAppli_PipingFlow::FlowAssociativity (const Standard_Integer Index) const
{
return theFlowAssociativities->Value(Index);
}
Handle(IGESDraw_ConnectPoint) IGESAppli_PipingFlow::ConnectPoint
(const Standard_Integer Index) const
const Handle(IGESDraw_ConnectPoint) & IGESAppli_PipingFlow::ConnectPoint (const Standard_Integer Index) const
{
return theConnectPoints->Value(Index);
}
Handle(IGESData_IGESEntity) IGESAppli_PipingFlow::Join
(const Standard_Integer Index) const
const Handle(IGESData_IGESEntity) & IGESAppli_PipingFlow::Join (const Standard_Integer Index) const
{
return theJoins->Value(Index);
}
Handle(TCollection_HAsciiString) IGESAppli_PipingFlow::FlowName
(const Standard_Integer Index) const
const Handle(TCollection_HAsciiString) & IGESAppli_PipingFlow::FlowName (const Standard_Integer Index) const
{
return theFlowNames->Value(Index);
}
Handle(IGESGraph_TextDisplayTemplate) IGESAppli_PipingFlow::TextDisplayTemplate
(const Standard_Integer Index) const
const Handle(IGESGraph_TextDisplayTemplate) & IGESAppli_PipingFlow::TextDisplayTemplate (const Standard_Integer Index) const
{
return theTextDisplayTemplates->Value(Index);
}
Handle(IGESData_IGESEntity) IGESAppli_PipingFlow::ContFlowAssociativity
(const Standard_Integer Index) const
const Handle(IGESData_IGESEntity) & IGESAppli_PipingFlow::ContFlowAssociativity (const Standard_Integer Index) const
{
return theContFlowAssociativities->Value(Index);
}
void IGESAppli_PipingFlow::OwnShared(Interface_EntityIterator &theIter) const
{
Standard_Integer i, num;
for ( num = NbFlowAssociativities(), i = 1; i <= num; i++ )
theIter.GetOneItem(FlowAssociativity(i));
for ( num = NbConnectPoints(), i = 1; i <= num; i++ )
theIter.GetOneItem(ConnectPoint(i));
for ( num = NbJoins(), i = 1; i <= num; i++ )
theIter.GetOneItem(Join(i));
for ( num = NbTextDisplayTemplates(), i = 1; i <= num; i++ )
theIter.GetOneItem(TextDisplayTemplate(i));
for ( num = NbContFlowAssociativities(), i = 1; i <= num; i++ )
theIter.GetOneItem(ContFlowAssociativity(i));
}
void IGESAppli_PipingFlow::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
if (NbContextFlags() != 1)
theCheck->AddFail("Number of Context Flags != 1");
if ((TypeOfFlow() < 0) || (TypeOfFlow() > 2))
theCheck->AddFail("Type of Flow != 0,1,2");
}

View File

@@ -17,17 +17,11 @@
#ifndef _IGESAppli_PipingFlow_HeaderFile
#define _IGESAppli_PipingFlow_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
#include <IGESDraw_HArray1OfConnectPoint.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <IGESData_IGESEntity.hxx>
#include <Standard_Boolean.hxx>
class Standard_OutOfRange;
class IGESData_IGESEntity;
class IGESDraw_ConnectPoint;
class TCollection_HAsciiString;
@@ -42,11 +36,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_PipingFlow, IGESData_IGESEntity)
//! Represents a single fluid flow path
class IGESAppli_PipingFlow : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_PipingFlow();
IGESAppli_PipingFlow() {}
//! This method is used to set the fields of the class
//! PipingFlow
@@ -64,8 +56,8 @@ public:
Standard_EXPORT Standard_Boolean OwnCorrect();
//! returns number of Count of Context Flags, always = 1
Standard_EXPORT Standard_Integer NbContextFlags() const;
Standard_Integer NbContextFlags() const { return theNbContextFlags; }
//! returns number of Piping Flow Associativity Entities
Standard_EXPORT Standard_Integer NbFlowAssociativities() const;
@@ -87,44 +79,39 @@ public:
//! returns Type of Flow = 0 : Not specified,
//! 1 : Logical,
//! 2 : Physical
Standard_EXPORT Standard_Integer TypeOfFlow() const;
Standard_Integer TypeOfFlow() const { return theTypeOfFlow; }
//! returns Piping Flow Associativity Entity
//! raises exception if Index <= 0 or Index > NbFlowAssociativities()
Standard_EXPORT Handle(IGESData_IGESEntity) FlowAssociativity (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESData_IGESEntity) & FlowAssociativity (const Standard_Integer Index) const;
//! returns Connect Point Entity
//! raises exception if Index <= 0 or Index > NbConnectPoints()
Standard_EXPORT Handle(IGESDraw_ConnectPoint) ConnectPoint (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESDraw_ConnectPoint) & ConnectPoint (const Standard_Integer Index) const;
//! returns Join Entity
//! raises exception if Index <= 0 or Index > NbJoins()
Standard_EXPORT Handle(IGESData_IGESEntity) Join (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESData_IGESEntity) & Join (const Standard_Integer Index) const;
//! returns Flow Name
//! raises exception if Index <= 0 or Index > NbFlowNames()
Standard_EXPORT Handle(TCollection_HAsciiString) FlowName (const Standard_Integer Index) const;
Standard_EXPORT const Handle(TCollection_HAsciiString) & FlowName (const Standard_Integer Index) const;
//! returns Text Display Template Entity
//! raises exception if Index <= 0 or Index > NbTextDisplayTemplates()
Standard_EXPORT Handle(IGESGraph_TextDisplayTemplate) TextDisplayTemplate (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESGraph_TextDisplayTemplate) & TextDisplayTemplate (const Standard_Integer Index) const;
//! returns Continuation Piping Flow Associativity Entity
//! raises exception if Index <= 0 or Index > NbContFlowAssociativities()
Standard_EXPORT Handle(IGESData_IGESEntity) ContFlowAssociativity (const Standard_Integer Index) const;
Standard_EXPORT const Handle(IGESData_IGESEntity) & ContFlowAssociativity (const Standard_Integer Index) const;
Standard_EXPORT virtual void OwnShared(Interface_EntityIterator &theIter) const Standard_OVERRIDE;
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_PipingFlow,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbContextFlags;
Standard_Integer theTypeOfFlow;
@@ -134,14 +121,6 @@ private:
Handle(Interface_HArray1OfHAsciiString) theFlowNames;
Handle(IGESGraph_HArray1OfTextDisplayTemplate) theTextDisplayTemplates;
Handle(IGESData_HArray1OfIGESEntity) theContFlowAssociativities;
};
#endif // _IGESAppli_PipingFlow_HeaderFile

View File

@@ -12,6 +12,31 @@
// commercial license or contractual agreement.
#include <IGESSolid_Block.hxx>
#include <IGESSolid_BooleanTree.hxx>
#include <IGESSolid_ConeFrustum.hxx>
#include <IGESSolid_ConicalSurface.hxx>
#include <IGESSolid_Cylinder.hxx>
#include <IGESSolid_CylindricalSurface.hxx>
#include <IGESSolid_EdgeList.hxx>
#include <IGESSolid_Ellipsoid.hxx>
#include <IGESSolid_Face.hxx>
#include <IGESSolid_Loop.hxx>
#include <IGESSolid_ManifoldSolid.hxx>
#include <IGESSolid_PlaneSurface.hxx>
#include <IGESSolid_RightAngularWedge.hxx>
#include <IGESSolid_SelectedComponent.hxx>
#include <IGESSolid_Shell.hxx>
#include <IGESSolid_SolidAssembly.hxx>
#include <IGESSolid_SolidInstance.hxx>
#include <IGESSolid_SolidOfLinearExtrusion.hxx>
#include <IGESSolid_SolidOfRevolution.hxx>
#include <IGESSolid_Sphere.hxx>
#include <IGESSolid_SphericalSurface.hxx>
#include <IGESSolid_ToroidalSurface.hxx>
#include <IGESSolid_Torus.hxx>
#include <IGESSolid_VertexList.hxx>
#include <IGESAppli_DrilledHole.hxx>
#include <IGESAppli_ElementResults.hxx>
#include <IGESAppli_FiniteElement.hxx>
@@ -32,58 +57,94 @@
#include <IGESAppli_PWBDrilledHole.hxx>
#include <IGESAppli_ReferenceDesignator.hxx>
#include <IGESAppli_RegionRestriction.hxx>
#include <IGESGeom.hxx>
#include <IGESGeom_Protocol.hxx>
#include <IGESDefs.hxx>
#include <IGESDefs_Protocol.hxx>
#include <IGESDraw.hxx>
#include <IGESDraw_Protocol.hxx>
#include <Interface_Protocol.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_Protocol,IGESData_Protocol)
static int deja = 0;
static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
/*static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
atype07,atype08,atype09,atype10,atype11,atype12,atype13,atype14,atype15,
atype16,atype17,atype18,atype19;
atype16,atype17,atype18,atype19;*/
static Handle(Standard_Type) gTypes[43+1];
IGESAppli_Protocol::IGESAppli_Protocol ()
IGESAppli_Protocol::IGESAppli_Protocol ()
{
if (deja) return; deja = 1;
atype01 = STANDARD_TYPE(IGESAppli_DrilledHole);
atype02 = STANDARD_TYPE(IGESAppli_ElementResults);
atype03 = STANDARD_TYPE(IGESAppli_FiniteElement);
atype04 = STANDARD_TYPE(IGESAppli_Flow);
atype05 = STANDARD_TYPE(IGESAppli_FlowLineSpec);
atype06 = STANDARD_TYPE(IGESAppli_LevelFunction);
atype07 = STANDARD_TYPE(IGESAppli_LevelToPWBLayerMap);
atype08 = STANDARD_TYPE(IGESAppli_LineWidening);
atype09 = STANDARD_TYPE(IGESAppli_NodalConstraint);
atype10 = STANDARD_TYPE(IGESAppli_NodalDisplAndRot);
atype11 = STANDARD_TYPE(IGESAppli_NodalResults);
atype12 = STANDARD_TYPE(IGESAppli_Node);
atype13 = STANDARD_TYPE(IGESAppli_PWBArtworkStackup);
atype14 = STANDARD_TYPE(IGESAppli_PWBDrilledHole);
atype15 = STANDARD_TYPE(IGESAppli_PartNumber);
atype16 = STANDARD_TYPE(IGESAppli_PinNumber);
atype17 = STANDARD_TYPE(IGESAppli_PipingFlow);
atype18 = STANDARD_TYPE(IGESAppli_ReferenceDesignator);
atype19 = STANDARD_TYPE(IGESAppli_RegionRestriction);
static int deja = 0;
if (!deja) {
deja = 1;
// For IGESSolid {
gTypes[ 1] = STANDARD_TYPE(IGESSolid_Block);
gTypes[ 2] = STANDARD_TYPE(IGESSolid_BooleanTree);
gTypes[ 3] = STANDARD_TYPE(IGESSolid_ConeFrustum);
gTypes[ 4] = STANDARD_TYPE(IGESSolid_ConicalSurface);
gTypes[ 5] = STANDARD_TYPE(IGESSolid_Cylinder);
gTypes[ 6] = STANDARD_TYPE(IGESSolid_CylindricalSurface);
gTypes[ 7] = STANDARD_TYPE(IGESSolid_EdgeList);
gTypes[ 8] = STANDARD_TYPE(IGESSolid_Ellipsoid);
gTypes[ 9] = STANDARD_TYPE(IGESSolid_Face);
gTypes[10] = STANDARD_TYPE(IGESSolid_Loop);
gTypes[11] = STANDARD_TYPE(IGESSolid_ManifoldSolid);
gTypes[12] = STANDARD_TYPE(IGESSolid_PlaneSurface);
gTypes[13] = STANDARD_TYPE(IGESSolid_RightAngularWedge);
gTypes[14] = STANDARD_TYPE(IGESSolid_SelectedComponent);
gTypes[15] = STANDARD_TYPE(IGESSolid_Shell);
gTypes[16] = STANDARD_TYPE(IGESSolid_SolidAssembly);
gTypes[17] = STANDARD_TYPE(IGESSolid_SolidInstance);
gTypes[18] = STANDARD_TYPE(IGESSolid_SolidOfLinearExtrusion);
gTypes[19] = STANDARD_TYPE(IGESSolid_SolidOfRevolution);
gTypes[20] = STANDARD_TYPE(IGESSolid_Sphere);
gTypes[21] = STANDARD_TYPE(IGESSolid_SphericalSurface);
gTypes[22] = STANDARD_TYPE(IGESSolid_ToroidalSurface);
gTypes[23] = STANDARD_TYPE(IGESSolid_Torus);
gTypes[24] = STANDARD_TYPE(IGESSolid_VertexList);
// }
gTypes[25] = STANDARD_TYPE(IGESAppli_DrilledHole);
gTypes[26] = STANDARD_TYPE(IGESAppli_ElementResults);
gTypes[27] = STANDARD_TYPE(IGESAppli_FiniteElement);
gTypes[28] = STANDARD_TYPE(IGESAppli_Flow);
gTypes[29] = STANDARD_TYPE(IGESAppli_FlowLineSpec);
gTypes[30] = STANDARD_TYPE(IGESAppli_LevelFunction);
gTypes[31] = STANDARD_TYPE(IGESAppli_LevelToPWBLayerMap);
gTypes[32] = STANDARD_TYPE(IGESAppli_LineWidening);
gTypes[33] = STANDARD_TYPE(IGESAppli_NodalConstraint);
gTypes[34] = STANDARD_TYPE(IGESAppli_NodalDisplAndRot);
gTypes[35] = STANDARD_TYPE(IGESAppli_NodalResults);
gTypes[36] = STANDARD_TYPE(IGESAppli_Node);
gTypes[37] = STANDARD_TYPE(IGESAppli_PWBArtworkStackup);
gTypes[38] = STANDARD_TYPE(IGESAppli_PWBDrilledHole);
gTypes[39] = STANDARD_TYPE(IGESAppli_PartNumber);
gTypes[40] = STANDARD_TYPE(IGESAppli_PinNumber);
gTypes[41] = STANDARD_TYPE(IGESAppli_PipingFlow);
gTypes[42] = STANDARD_TYPE(IGESAppli_ReferenceDesignator);
gTypes[43] = STANDARD_TYPE(IGESAppli_RegionRestriction);
}
}
Standard_Integer IGESAppli_Protocol::NbResources () const
{ return 2; }
Standard_Integer IGESAppli_Protocol::NbResources () const
{ return 3; }
Handle(Interface_Protocol) IGESAppli_Protocol::Resource
(const Standard_Integer num) const
Handle(Interface_Protocol) IGESAppli_Protocol::Resource (const Standard_Integer num) const
{
if (num == 1) return IGESDefs::Protocol();
if (num == 2) return IGESDraw::Protocol();
if (num == 1) return IGESGeom::Protocol();
if (num == 2) return IGESDefs::Protocol();
if (num == 3) return IGESDraw::Protocol();
return NULL;
}
Standard_Integer IGESAppli_Protocol::TypeNumber
(const Handle(Standard_Type)& atype) const
Standard_Integer IGESAppli_Protocol::TypeNumber (const Handle(Standard_Type)& atype) const
{
for (Standard_Integer i = 1; i < sizeof(gTypes) / sizeof(Handle(Standard_Type)); i++)
{
if (atype == gTypes[i]) return i;
}
/*
// For IGESSolid {
if (atype == atype01) return 1;
else if (atype == atype02) return 2;
else if (atype == atype03) return 3;
@@ -103,5 +164,30 @@ static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
else if (atype == atype17) return 17;
else if (atype == atype18) return 18;
else if (atype == atype19) return 19;
else if (atype == atype20) return 20;
else if (atype == atype21) return 21;
else if (atype == atype22) return 22;
else if (atype == atype23) return 23;
else if (atype == atype24) return 24;
// }
else if (atype == atype01) return 25;
else if (atype == atype02) return 26;
else if (atype == atype03) return 27;
else if (atype == atype04) return 28;
else if (atype == atype05) return 29;
else if (atype == atype06) return 30;
else if (atype == atype07) return 31;
else if (atype == atype08) return 32;
else if (atype == atype09) return 33;
else if (atype == atype10) return 34;
else if (atype == atype11) return 35;
else if (atype == atype12) return 36;
else if (atype == atype13) return 37;
else if (atype == atype14) return 38;
else if (atype == atype15) return 39;
else if (atype == atype16) return 40;
else if (atype == atype17) return 41;
else if (atype == atype18) return 42;
else if (atype == atype19) return 43;*/
return 0;
}

View File

@@ -17,14 +17,7 @@
#ifndef _IGESAppli_Protocol_HeaderFile
#define _IGESAppli_Protocol_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_Protocol.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Type.hxx>
class Interface_Protocol;
class IGESAppli_Protocol;
DEFINE_STANDARD_HANDLE(IGESAppli_Protocol, IGESData_Protocol)
@@ -32,10 +25,8 @@ DEFINE_STANDARD_HANDLE(IGESAppli_Protocol, IGESData_Protocol)
//! Description of Protocol for IGESAppli
class IGESAppli_Protocol : public IGESData_Protocol
{
public:
public:
Standard_EXPORT IGESAppli_Protocol();
//! Gives the count of direct Resource Protocol. Here, two
@@ -52,27 +43,7 @@ public:
//! consider the same Type as the Protocol defines)
Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_Protocol,IGESData_Protocol)
protected:
private:
};
#endif // _IGESAppli_Protocol_HeaderFile

View File

@@ -61,11 +61,6 @@
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ReadWriteModule,IGESData_ReadWriteModule)
// Each Module is attached to a Protocol : it must interprete Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESAppli_ReadWriteModule::IGESAppli_ReadWriteModule () { }
Standard_Integer IGESAppli_ReadWriteModule::CaseIGES
(const Standard_Integer typenum, const Standard_Integer formnum) const

View File

@@ -37,12 +37,10 @@ DEFINE_STANDARD_HANDLE(IGESAppli_ReadWriteModule, IGESData_ReadWriteModule)
//! an IGESEntity.
class IGESAppli_ReadWriteModule : public IGESData_ReadWriteModule
{
public:
public:
//! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
Standard_EXPORT IGESAppli_ReadWriteModule();
IGESAppli_ReadWriteModule() {}
//! Defines Case Numbers for Entities of IGESAppli
Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const Standard_OVERRIDE;
@@ -53,27 +51,7 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_ReadWriteModule,IGESData_ReadWriteModule)
protected:
private:
};
#endif // _IGESAppli_ReadWriteModule_HeaderFile

View File

@@ -23,10 +23,7 @@
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_ReferenceDesignator,IGESData_IGESEntity)
IGESAppli_ReferenceDesignator::IGESAppli_ReferenceDesignator () { }
void IGESAppli_ReferenceDesignator::Init
void IGESAppli_ReferenceDesignator::Init
(const Standard_Integer nbPropVal,
const Handle(TCollection_HAsciiString)& aText)
{
@@ -35,14 +32,15 @@ IGESAppli_ReferenceDesignator::IGESAppli_ReferenceDesignator () { }
InitTypeAndForm(406,7);
}
Standard_Integer IGESAppli_ReferenceDesignator::NbPropertyValues () const
void IGESAppli_ReferenceDesignator::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Handle(TCollection_HAsciiString)
IGESAppli_ReferenceDesignator::RefDesignatorText () const
{
return theRefDesigText;
if (SubordinateStatus() != 0)
//the level is ignored if this property is subordinate
if (DefLevel() != IGESData_DefOne &&
DefLevel() != IGESData_DefSeveral)
theCheck->AddFail("Level type: Not value/reference");
if (NbPropertyValues() != 1)
theCheck->AddFail("Number of Property Values != 1");
//UNFINISHED
//the level is ignored if this property is subordinate -- queried
}

View File

@@ -17,10 +17,6 @@
#ifndef _IGESAppli_ReferenceDesignator_HeaderFile
#define _IGESAppli_ReferenceDesignator_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
class TCollection_HAsciiString;
@@ -35,11 +31,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_ReferenceDesignator, IGESData_IGESEntity)
//! used to represent a component.
class IGESAppli_ReferenceDesignator : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_ReferenceDesignator();
IGESAppli_ReferenceDesignator() {}
//! This method is used to set the fields of the class
//! ReferenceDesignator
@@ -49,34 +43,19 @@ public:
//! returns the number of property values
//! is always 1
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns the Reference designator text
Standard_EXPORT Handle(TCollection_HAsciiString) RefDesignatorText() const;
const Handle(TCollection_HAsciiString) & RefDesignatorText() const { return theRefDesigText; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_ReferenceDesignator,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Handle(TCollection_HAsciiString) theRefDesigText;
};
#endif // _IGESAppli_ReferenceDesignator_HeaderFile

View File

@@ -17,14 +17,10 @@
//--------------------------------------------------------------------
#include <IGESAppli_RegionRestriction.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESAppli_RegionRestriction,IGESData_IGESEntity)
IGESAppli_RegionRestriction::IGESAppli_RegionRestriction () { }
void IGESAppli_RegionRestriction::Init
void IGESAppli_RegionRestriction::Init
(const Standard_Integer nbPropVal, const Standard_Integer aViasRest,
const Standard_Integer aCompoRest, const Standard_Integer aCktRest)
{
@@ -35,24 +31,20 @@ IGESAppli_RegionRestriction::IGESAppli_RegionRestriction () { }
InitTypeAndForm(406,2);
}
Standard_Integer IGESAppli_RegionRestriction::NbPropertyValues () const
void IGESAppli_RegionRestriction::OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &theCheck) const
{
return theNbPropertyValues;
}
Standard_Integer IGESAppli_RegionRestriction::ElectricalViasRestriction () const
{
return theElectViasRestrict;
}
Standard_Integer IGESAppli_RegionRestriction::ElectricalComponentRestriction
() const
{
return theElectCompRestrict;
}
Standard_Integer IGESAppli_RegionRestriction::ElectricalCktRestriction () const
{
return theElectCktRestrict;
if (SubordinateStatus() != 0)
if (DefLevel() != IGESData_DefOne &&
DefLevel() != IGESData_DefSeveral)
theCheck->AddFail("Level type: Not value/reference");
if (NbPropertyValues() != 3)
theCheck->AddFail("Number of Property Values != 3");
if (ElectricalViasRestriction() < 0 || ElectricalViasRestriction() > 2)
theCheck->AddFail("Incorrect value for Electrical Vias Restriction");
if (ElectricalComponentRestriction() < 0 || ElectricalComponentRestriction() > 2)
theCheck->AddFail("Incorrect value for Electrical Component Restriction");
if (ElectricalCktRestriction() < 0 || ElectricalCktRestriction() > 2)
theCheck->AddFail("Incorrect value for Electrical Circuit Restriction");
//UNFINISHED
//level ignored if this property is subordinate -- queried
}

View File

@@ -17,13 +17,8 @@
#ifndef _IGESAppli_RegionRestriction_HeaderFile
#define _IGESAppli_RegionRestriction_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <IGESData_IGESEntity.hxx>
class IGESAppli_RegionRestriction;
DEFINE_STANDARD_HANDLE(IGESAppli_RegionRestriction, IGESData_IGESEntity)
@@ -33,11 +28,9 @@ DEFINE_STANDARD_HANDLE(IGESAppli_RegionRestriction, IGESData_IGESEntity)
//! over a region.
class IGESAppli_RegionRestriction : public IGESData_IGESEntity
{
public:
public:
Standard_EXPORT IGESAppli_RegionRestriction();
IGESAppli_RegionRestriction() {}
//! This method is used to set the fields of the class
//! RegionRestriction
@@ -48,45 +41,30 @@ public:
Standard_EXPORT void Init (const Standard_Integer nbPropVal, const Standard_Integer aViasRest, const Standard_Integer aCompoRest, const Standard_Integer aCktRest);
//! is always 3
Standard_EXPORT Standard_Integer NbPropertyValues() const;
Standard_Integer NbPropertyValues() const { return theNbPropertyValues; }
//! returns the Electrical vias restriction
//! is 0, 1 or 2
Standard_EXPORT Standard_Integer ElectricalViasRestriction() const;
Standard_Integer ElectricalViasRestriction() const { return theElectViasRestrict; }
//! returns the Electrical components restriction
//! is 0, 1 or 2
Standard_EXPORT Standard_Integer ElectricalComponentRestriction() const;
Standard_Integer ElectricalComponentRestriction() const { return theElectCompRestrict; }
//! returns the Electrical circuitry restriction
//! is 0, 1 or 2
Standard_EXPORT Standard_Integer ElectricalCktRestriction() const;
Standard_Integer ElectricalCktRestriction() const { return theElectCktRestrict; }
Standard_EXPORT virtual void OwnCheck (const Interface_ShareTool &, const Handle(Interface_Check) &) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESAppli_RegionRestriction,IGESData_IGESEntity)
protected:
private:
private:
Standard_Integer theNbPropertyValues;
Standard_Integer theElectViasRestrict;
Standard_Integer theElectCompRestrict;
Standard_Integer theElectCktRestrict;
};
#endif // _IGESAppli_RegionRestriction_HeaderFile

View File

@@ -26,14 +26,11 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESAppli_ToolDrilledHole::IGESAppli_ToolDrilledHole () { }
void IGESAppli_ToolDrilledHole::ReadOwnParams
(const Handle(IGESAppli_DrilledHole)& ent,
@@ -71,21 +68,6 @@ void IGESAppli_ToolDrilledHole::WriteOwnParams
IW.Send(ent->NbHigherLayer());
}
void IGESAppli_ToolDrilledHole::OwnShared
(const Handle(IGESAppli_DrilledHole)& /*ent*/, Interface_EntityIterator& /*iter*/) const
{
}
void IGESAppli_ToolDrilledHole::OwnCopy
(const Handle(IGESAppli_DrilledHole)& another,
const Handle(IGESAppli_DrilledHole)& ent, Interface_CopyTool& /*TC*/) const
{
ent->Init
(5,another->DrillDiaSize(),another->FinishDiaSize(),
(another->IsPlating() ? 1 : 0),
another->NbLowerLayer(),another->NbHigherLayer());
}
Standard_Boolean IGESAppli_ToolDrilledHole::OwnCorrect
(const Handle(IGESAppli_DrilledHole)& ent) const
@@ -114,18 +96,6 @@ IGESData_DirChecker IGESAppli_ToolDrilledHole::DirChecker
return DC;
}
void IGESAppli_ToolDrilledHole::OwnCheck
(const Handle(IGESAppli_DrilledHole)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->SubordinateStatus() != 0)
if (ent->DefLevel() != IGESData_DefOne &&
ent->DefLevel() != IGESData_DefSeveral)
ach->AddFail("Level type : Not value/reference");
if (ent->NbPropertyValues() != 5)
ach->AddFail("Number of Property Values != 5");
}
void IGESAppli_ToolDrilledHole::OwnDump
(const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolDrilledHole
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolDrilledHole, ready to work
Standard_EXPORT IGESAppli_ToolDrilledHole();
IGESAppli_ToolDrilledHole() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_DrilledHole)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a DrilledHole <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_DrilledHole)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a DrilledHole
//! (NbPropertyValues forced to 5, Level cleared if Subordinate != 0)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_DrilledHole)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_DrilledHole)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_DrilledHole)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_DrilledHole)& entfrom, const Handle(IGESAppli_DrilledHole)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolDrilledHole_HeaderFile

View File

@@ -32,7 +32,6 @@
#include <IGESData_ParamReader.hxx>
#include <IGESDimen_GeneralNote.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -42,7 +41,6 @@
#include <TColStd_HArray1OfReal.hxx>
#include <stdio.h>
IGESAppli_ToolElementResults::IGESAppli_ToolElementResults () { }
void IGESAppli_ToolElementResults::ReadOwnParams
@@ -145,72 +143,6 @@ void IGESAppli_ToolElementResults::WriteOwnParams
}
}
void IGESAppli_ToolElementResults::OwnShared
(const Handle(IGESAppli_ElementResults)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer i; Standard_Integer num = ent->NbElements();
iter.GetOneItem(ent->Note());
for ( i = 1; i <= num; i++ )
iter.GetOneItem(ent->Element(i));
}
void IGESAppli_ToolElementResults::OwnCopy
(const Handle(IGESAppli_ElementResults)& another,
const Handle(IGESAppli_ElementResults)& ent, Interface_CopyTool& TC) const
{
Standard_Integer i,j;
Standard_Integer num = another->NbElements();
DeclareAndCast(IGESDimen_GeneralNote,aNote,TC.Transferred(another->Note()));
Standard_Integer aSubcaseNumber = another->SubCaseNumber();
Standard_Real aTime = another->Time();
Standard_Integer nv = another->NbResultValues();
Standard_Integer aResultReportFlag = another->ResultReportFlag();
Handle(TColStd_HArray1OfInteger) allElementIdentifiers;
Handle(IGESAppli_HArray1OfFiniteElement) allElements;
Handle(TColStd_HArray1OfInteger) allElementTopologyType;
Handle(TColStd_HArray1OfInteger) allNbLayers;
Handle(TColStd_HArray1OfInteger) allDataLayerFlag;
Handle(TColStd_HArray1OfInteger) allNbResultDataLocs;
Handle(IGESBasic_HArray1OfHArray1OfInteger) allResultDataLoc;
Handle(IGESBasic_HArray1OfHArray1OfReal) allResultData;
if (num > 0) {
allElementIdentifiers = new TColStd_HArray1OfInteger(1, num);
allElements = new IGESAppli_HArray1OfFiniteElement(1, num);
allElementTopologyType = new TColStd_HArray1OfInteger(1, num);
allNbLayers = new TColStd_HArray1OfInteger(1, num);
allDataLayerFlag = new TColStd_HArray1OfInteger(1, num);
allNbResultDataLocs = new TColStd_HArray1OfInteger(1, num);
allResultDataLoc = new IGESBasic_HArray1OfHArray1OfInteger(1, num);
allResultData = new IGESBasic_HArray1OfHArray1OfReal(1, num);
}
for (i = 1; i <= num; i ++) {
Standard_Integer nl,nrl,numv;
allElementIdentifiers->SetValue(i,another->ElementIdentifier(i));
allElements->SetValue
(i,GetCasted(IGESAppli_FiniteElement,TC.Transferred(another->Element(i))));
allElementTopologyType->SetValue(i,another->ElementTopologyType(i));
nl = another->NbLayers(i);
allNbLayers->SetValue(i,nl);
allDataLayerFlag->SetValue(i,another->DataLayerFlag(i));
nrl = another->NbResultDataLocs(i);
allNbResultDataLocs->SetValue(i,nrl);
Handle(TColStd_HArray1OfInteger) rdrl = new TColStd_HArray1OfInteger(1,nrl);
allResultDataLoc->SetValue(i,rdrl);
for (j = 1; j <= nrl; j ++) rdrl->SetValue(j,another->ResultDataLoc(i,j));
numv = another->NbResults(i);
Handle(TColStd_HArray1OfReal) vres = new TColStd_HArray1OfReal(1,numv);
for (j = 1; j <= numv; j ++) vres->SetValue(j,another->ResultData(i,j));
allResultData->SetValue(i,vres);
}
ent->Init
(aNote, aSubcaseNumber, aTime, nv, aResultReportFlag,
allElementIdentifiers, allElements, allElementTopologyType,
allNbLayers, allDataLayerFlag, allNbResultDataLocs,
allResultDataLoc, allResultData);
ent->SetFormNumber(another->FormNumber());
}
IGESData_DirChecker IGESAppli_ToolElementResults::DirChecker
(const Handle(IGESAppli_ElementResults)& /* ent */) const
@@ -227,80 +159,6 @@ IGESData_DirChecker IGESAppli_ToolElementResults::DirChecker
return DC;
}
void IGESAppli_ToolElementResults::OwnCheck
(const Handle(IGESAppli_ElementResults)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
// UNFINISHED
{
Standard_Integer rrf = ent->ResultReportFlag();
if (rrf < 0 || rrf > 3) ach->AddFail("Result Report Flag not in [0-3]");
Standard_Integer nv = ent->NbResultValues();
Standard_Boolean OK = Standard_True;
switch (ent->FormNumber()) {
case 0 : if (nv < 0) OK = Standard_False; break;
case 1 : if (nv != 1) OK = Standard_False; break;
case 2 : if (nv != 1) OK = Standard_False; break;
case 3 : if (nv != 3) OK = Standard_False; break;
case 4 : if (nv != 6) OK = Standard_False; break;
case 5 : if (nv != 3) OK = Standard_False; break;
case 6 : if (nv != 3) OK = Standard_False; break;
case 7 : if (nv != 3) OK = Standard_False; break;
case 8 : if (nv != 3) OK = Standard_False; break;
case 9 : if (nv != 3) OK = Standard_False; break;
case 10 : if (nv != 1) OK = Standard_False; break;
case 11 : if (nv != 1) OK = Standard_False; break;
case 12 : if (nv != 3) OK = Standard_False; break;
case 13 : if (nv != 1) OK = Standard_False; break;
case 14 : if (nv != 1) OK = Standard_False; break;
case 15 : if (nv != 3) OK = Standard_False; break;
case 16 : if (nv != 1) OK = Standard_False; break;
case 17 : if (nv != 3) OK = Standard_False; break;
case 18 : if (nv != 3) OK = Standard_False; break;
case 19 : if (nv != 3) OK = Standard_False; break;
case 20 : if (nv != 3) OK = Standard_False; break;
case 21 : if (nv != 3) OK = Standard_False; break;
case 22 : if (nv != 3) OK = Standard_False; break;
case 23 : if (nv != 6) OK = Standard_False; break;
case 24 : if (nv != 6) OK = Standard_False; break;
case 25 : if (nv != 6) OK = Standard_False; break;
case 26 : if (nv != 6) OK = Standard_False; break;
case 27 : if (nv != 6) OK = Standard_False; break;
case 28 : if (nv != 6) OK = Standard_False; break;
case 29 : if (nv != 9) OK = Standard_False; break;
case 30 : if (nv != 9) OK = Standard_False; break;
case 31 : if (nv != 9) OK = Standard_False; break;
case 32 : if (nv != 9) OK = Standard_False; break;
case 33 : if (nv != 9) OK = Standard_False; break;
case 34 : if (nv != 9) OK = Standard_False; break;
default : ach->AddFail("Incorrect Form Number"); break;
}
if (!OK) ach->AddFail
("Incorrect count of real values in array V for FEM node");
Standard_Integer ne = ent->NbElements();
for (Standard_Integer i = 1; i <= ne; i ++) {
char mess[100];
Standard_Integer dlf = ent->DataLayerFlag(i);
Standard_Integer nl = ent->NbLayers(i);
Standard_Integer nrl = ent->NbResultDataLocs(i);
if (dlf < 0 || dlf > 4)
ach->AddFail("One of the Data Layer Flags not in [0-4]");
if (dlf < 4 && ent->NbLayers(i) != 1) {
sprintf(mess,"Nb. of Layers n0.%d not ONE while Data Layer Flag is in [0-3]",i);
ach->AddFail(mess);
}
if (rrf == 1 || rrf == 2)
if (nrl != 1 || ent->ResultDataLoc(i,1) != 0) {
sprintf(mess,"Result Data Locs n0.%d incorrect for Result Report = 1 or 2",i);
ach->AddFail(mess);
}
if (ent->NbResults(i) != (nv*nl*nrl)) {
sprintf(mess,"Nb. of results for Element n0.%d incorrect, should be %d",
i,nv*nl*nrl);
ach->AddFail(mess);
}
}
}
void IGESAppli_ToolElementResults::OwnDump
(const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const // UNFINISHED

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolElementResults
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolElementResults, ready to work
Standard_EXPORT IGESAppli_ToolElementResults();
IGESAppli_ToolElementResults() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_ElementResults)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a ElementResults <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_ElementResults)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_ElementResults)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_ElementResults)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ElementResults)& entfrom, const Handle(IGESAppli_ElementResults)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolElementResults_HeaderFile

View File

@@ -28,7 +28,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -36,8 +35,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolFiniteElement::IGESAppli_ToolFiniteElement () { }
void IGESAppli_ToolFiniteElement::ReadOwnParams
(const Handle(IGESAppli_FiniteElement)& ent,
@@ -77,32 +74,6 @@ void IGESAppli_ToolFiniteElement::WriteOwnParams
IW.Send(ent->Name());
}
void IGESAppli_ToolFiniteElement::OwnShared
(const Handle(IGESAppli_FiniteElement)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer upper = ent->NbNodes();
for (Standard_Integer i= 1; i <= upper ; i ++)
iter.GetOneItem(ent->Node(i));
}
void IGESAppli_ToolFiniteElement::OwnCopy
(const Handle(IGESAppli_FiniteElement)& another,
const Handle(IGESAppli_FiniteElement)& ent, Interface_CopyTool& TC) const
{
Standard_Integer aTopology = another->Topology();
Handle(TCollection_HAsciiString) aName =
new TCollection_HAsciiString(another->Name());
Standard_Integer nbval = another->NbNodes();
Handle(IGESAppli_HArray1OfNode) aList = new
IGESAppli_HArray1OfNode(1,nbval);
for (Standard_Integer i=1;i <=nbval;i++)
{
DeclareAndCast(IGESAppli_Node,aEntity,TC.Transferred(another->Node(i)));
aList->SetValue(i,aEntity);
}
ent->Init(aTopology,aList,aName);
}
IGESData_DirChecker IGESAppli_ToolFiniteElement::DirChecker
(const Handle(IGESAppli_FiniteElement)& /* ent */ ) const
{
@@ -118,12 +89,6 @@ IGESData_DirChecker IGESAppli_ToolFiniteElement::DirChecker
return DC;
}
void IGESAppli_ToolFiniteElement::OwnCheck
(const Handle(IGESAppli_FiniteElement)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESAppli_ToolFiniteElement::OwnDump
(const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolFiniteElement
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolFiniteElement, ready to work
Standard_EXPORT IGESAppli_ToolFiniteElement();
IGESAppli_ToolFiniteElement() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_FiniteElement)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a FiniteElement <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_FiniteElement)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_FiniteElement)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_FiniteElement)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FiniteElement)& entfrom, const Handle(IGESAppli_FiniteElement)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolFiniteElement_HeaderFile

View File

@@ -32,7 +32,6 @@
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
@@ -41,8 +40,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolFlow::IGESAppli_ToolFlow () { }
void IGESAppli_ToolFlow::ReadOwnParams
(const Handle(IGESAppli_Flow)& ent,
@@ -172,94 +169,6 @@ void IGESAppli_ToolFlow::WriteOwnParams
IW.Send(ent->ContFlowAssociativity(i));
}
void IGESAppli_ToolFlow::OwnShared
(const Handle(IGESAppli_Flow)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer i, num;
for ( num = ent->NbFlowAssociativities(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->FlowAssociativity(i));
for ( num = ent->NbConnectPoints(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->ConnectPoint(i));
for ( num = ent->NbJoins(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->Join(i));
for ( num = ent->NbTextDisplayTemplates(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->TextDisplayTemplate(i));
for ( num = ent->NbContFlowAssociativities(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->ContFlowAssociativity(i));
}
void IGESAppli_ToolFlow::OwnCopy
(const Handle(IGESAppli_Flow)& another,
const Handle(IGESAppli_Flow)& ent, Interface_CopyTool& TC) const
{
Standard_Integer tempNbContextFlags = another->NbContextFlags();
Standard_Integer tempTypeOfFlow = another->TypeOfFlow();
Standard_Integer tempFunctionFlag = another->FunctionFlag();
Standard_Integer i, num;
num = another->NbFlowAssociativities();
Handle(IGESData_HArray1OfIGESEntity) tempFlowAssocs;
if (num > 0) tempFlowAssocs = new IGESData_HArray1OfIGESEntity(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESData_IGESEntity, new_item,
TC.Transferred(another->FlowAssociativity(i)));
tempFlowAssocs->SetValue(i, new_item);
}
num = another->NbConnectPoints();
Handle(IGESDraw_HArray1OfConnectPoint) tempConnectPoints;
if (num > 0) tempConnectPoints = new IGESDraw_HArray1OfConnectPoint(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESDraw_ConnectPoint, new_item,
TC.Transferred(another->ConnectPoint(i)));
tempConnectPoints->SetValue(i, new_item);
}
num = another->NbJoins();
Handle(IGESData_HArray1OfIGESEntity) tempJoins;
if (num > 0) tempJoins = new IGESData_HArray1OfIGESEntity(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESData_IGESEntity, new_item,
TC.Transferred(another->Join(i)));
tempJoins->SetValue(i, new_item);
}
num = another->NbFlowNames();
Handle(Interface_HArray1OfHAsciiString) tempFlowNames;
if (num > 0) tempFlowNames = new Interface_HArray1OfHAsciiString(1, num);
for ( i = 1; i <= num; i++ )
tempFlowNames->SetValue
(i, new TCollection_HAsciiString(another->FlowName(i)));
num = another->NbTextDisplayTemplates();
Handle(IGESGraph_HArray1OfTextDisplayTemplate) tempTextDisplayTemplates;
if (num > 0) tempTextDisplayTemplates =
new IGESGraph_HArray1OfTextDisplayTemplate(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESGraph_TextDisplayTemplate, new_item,
TC.Transferred(another->TextDisplayTemplate(i)));
tempTextDisplayTemplates->SetValue(i, new_item);
}
num = another->NbContFlowAssociativities();
Handle(IGESData_HArray1OfIGESEntity) tempContFlowAssocs;
if (num > 0) tempContFlowAssocs = new IGESData_HArray1OfIGESEntity(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESData_IGESEntity, new_item,
TC.Transferred(another->ContFlowAssociativity(i)));
tempContFlowAssocs->SetValue(i, new_item);
}
ent->Init (tempNbContextFlags, tempTypeOfFlow, tempFunctionFlag,
tempFlowAssocs, tempConnectPoints, tempJoins, tempFlowNames,
tempTextDisplayTemplates, tempContFlowAssocs);
}
Standard_Boolean IGESAppli_ToolFlow::OwnCorrect
(const Handle(IGESAppli_Flow)& ent) const
{
@@ -281,18 +190,6 @@ IGESData_DirChecker IGESAppli_ToolFlow::DirChecker
return DC;
}
void IGESAppli_ToolFlow::OwnCheck
(const Handle(IGESAppli_Flow)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->NbContextFlags() != 2)
ach->AddFail("Number of Context Flags != 2");
if ((ent->TypeOfFlow() < 0) || (ent->TypeOfFlow() > 2))
ach->AddFail("Type of Flow != 0,1,2");
if ((ent->FunctionFlag() < 0) || (ent->FunctionFlag() > 2))
ach->AddFail("Function Flag != 0,1,2");
}
void IGESAppli_ToolFlow::OwnDump
(const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolFlow
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolFlow, ready to work
Standard_EXPORT IGESAppli_ToolFlow();
IGESAppli_ToolFlow() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_Flow)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a Flow <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_Flow)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a Flow
//! (NbContextFlags forced to 2)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_Flow)& ent) const;
@@ -67,36 +61,9 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_Flow)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_Flow)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Flow)& entfrom, const Handle(IGESAppli_Flow)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolFlow_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
@@ -35,8 +34,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolFlowLineSpec::IGESAppli_ToolFlowLineSpec () { }
void IGESAppli_ToolFlowLineSpec::ReadOwnParams
(const Handle(IGESAppli_FlowLineSpec)& ent,
@@ -65,24 +62,6 @@ void IGESAppli_ToolFlowLineSpec::WriteOwnParams
IW.Send(ent->Modifier(i));
}
void IGESAppli_ToolFlowLineSpec::OwnShared
(const Handle(IGESAppli_FlowLineSpec)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESAppli_ToolFlowLineSpec::OwnCopy
(const Handle(IGESAppli_FlowLineSpec)& another,
const Handle(IGESAppli_FlowLineSpec)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer num = another->NbPropertyValues();
Handle(Interface_HArray1OfHAsciiString) tempNameAndModifiers =
new Interface_HArray1OfHAsciiString(1, num);
for ( Standard_Integer i = 1; i <= num; i++ )
tempNameAndModifiers->SetValue
(i, new TCollection_HAsciiString(another->Modifier(i)));
ent->Init(tempNameAndModifiers);
}
IGESData_DirChecker IGESAppli_ToolFlowLineSpec::DirChecker
(const Handle(IGESAppli_FlowLineSpec)& /* ent */ ) const
{
@@ -98,12 +77,6 @@ IGESData_DirChecker IGESAppli_ToolFlowLineSpec::DirChecker
return DC;
}
void IGESAppli_ToolFlowLineSpec::OwnCheck
(const Handle(IGESAppli_FlowLineSpec)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESAppli_ToolFlowLineSpec::OwnDump
(const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolFlowLineSpec
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolFlowLineSpec, ready to work
Standard_EXPORT IGESAppli_ToolFlowLineSpec();
IGESAppli_ToolFlowLineSpec() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_FlowLineSpec)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a FlowLineSpec <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_FlowLineSpec)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_FlowLineSpec)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_FlowLineSpec)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FlowLineSpec)& entfrom, const Handle(IGESAppli_FlowLineSpec)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolFlowLineSpec_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolLevelFunction::IGESAppli_ToolLevelFunction () { }
void IGESAppli_ToolLevelFunction::ReadOwnParams
(const Handle(IGESAppli_LevelFunction)& ent,
@@ -70,25 +67,6 @@ void IGESAppli_ToolLevelFunction::WriteOwnParams
else IW.Send(ent->FuncDescription());
}
void IGESAppli_ToolLevelFunction::OwnShared
(const Handle(IGESAppli_LevelFunction)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESAppli_ToolLevelFunction::OwnCopy
(const Handle(IGESAppli_LevelFunction)& another,
const Handle(IGESAppli_LevelFunction)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer aNbPropertyValues, code;
Handle(TCollection_HAsciiString) descrip;
if (!another->FuncDescription().IsNull()) descrip =
new TCollection_HAsciiString(another->FuncDescription());
code = another->FuncDescriptionCode();
aNbPropertyValues = another->NbPropertyValues();
ent->Init(aNbPropertyValues,code,descrip);
}
Standard_Boolean IGESAppli_ToolLevelFunction::OwnCorrect
(const Handle(IGESAppli_LevelFunction)& ent) const
{
@@ -110,14 +88,6 @@ IGESData_DirChecker IGESAppli_ToolLevelFunction::DirChecker
return DC;
}
void IGESAppli_ToolLevelFunction::OwnCheck
(const Handle(IGESAppli_LevelFunction)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->NbPropertyValues() != 2)
ach->AddFail("Number of Property Values != 2");
}
void IGESAppli_ToolLevelFunction::OwnDump
(const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolLevelFunction
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolLevelFunction, ready to work
Standard_EXPORT IGESAppli_ToolLevelFunction();
IGESAppli_ToolLevelFunction() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_LevelFunction)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a LevelFunction <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_LevelFunction)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a LevelFunction
//! (NbPropertyValues forced to 2)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_LevelFunction)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_LevelFunction)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_LevelFunction)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelFunction)& entfrom, const Handle(IGESAppli_LevelFunction)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolLevelFunction_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
@@ -36,8 +35,6 @@
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
IGESAppli_ToolLevelToPWBLayerMap::IGESAppli_ToolLevelToPWBLayerMap () { }
void IGESAppli_ToolLevelToPWBLayerMap::ReadOwnParams
(const Handle(IGESAppli_LevelToPWBLayerMap)& ent,
@@ -102,39 +99,6 @@ void IGESAppli_ToolLevelToPWBLayerMap::WriteOwnParams
}
}
void IGESAppli_ToolLevelToPWBLayerMap::OwnShared
(const Handle(IGESAppli_LevelToPWBLayerMap)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESAppli_ToolLevelToPWBLayerMap::OwnCopy
(const Handle(IGESAppli_LevelToPWBLayerMap)& another,
const Handle(IGESAppli_LevelToPWBLayerMap)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer tempNbPropertyValues = another->NbPropertyValues();
Standard_Integer num = another->NbLevelToLayerDefs();
Handle(TColStd_HArray1OfInteger) tempExchangeFileLevelNumber =
new TColStd_HArray1OfInteger(1, num);
Handle(Interface_HArray1OfHAsciiString) tempNativeLevel =
new Interface_HArray1OfHAsciiString(1, num);
Handle(TColStd_HArray1OfInteger) tempPhysicalLayerNumber =
new TColStd_HArray1OfInteger(1, num);
Handle(Interface_HArray1OfHAsciiString) tempExchangeFileLevelIdent =
new Interface_HArray1OfHAsciiString(1, num);
for ( Standard_Integer i = 1; i <= num; i++ )
{
tempExchangeFileLevelNumber->SetValue(i,another->ExchangeFileLevelNumber(i));
tempNativeLevel->SetValue
(i, new TCollection_HAsciiString(another->NativeLevel(i)));
tempPhysicalLayerNumber->SetValue(i, another->PhysicalLayerNumber(i));
tempExchangeFileLevelIdent->SetValue
(i,new TCollection_HAsciiString
(another->ExchangeFileLevelIdent(i)));
}
ent->Init (tempNbPropertyValues, tempExchangeFileLevelNumber, tempNativeLevel,
tempPhysicalLayerNumber, tempExchangeFileLevelIdent);
}
IGESData_DirChecker IGESAppli_ToolLevelToPWBLayerMap::DirChecker
(const Handle(IGESAppli_LevelToPWBLayerMap)& /* ent */ ) const
{
@@ -150,12 +114,6 @@ IGESData_DirChecker IGESAppli_ToolLevelToPWBLayerMap::DirChecker
return DC;
}
void IGESAppli_ToolLevelToPWBLayerMap::OwnCheck
(const Handle(IGESAppli_LevelToPWBLayerMap)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESAppli_ToolLevelToPWBLayerMap::OwnDump
(const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolLevelToPWBLayerMap
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolLevelToPWBLayerMap, ready to work
Standard_EXPORT IGESAppli_ToolLevelToPWBLayerMap();
IGESAppli_ToolLevelToPWBLayerMap() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a LevelToPWBLayerMap <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_LevelToPWBLayerMap)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelToPWBLayerMap)& entfrom, const Handle(IGESAppli_LevelToPWBLayerMap)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolLevelToPWBLayerMap_HeaderFile

View File

@@ -26,14 +26,11 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESAppli_ToolLineWidening::IGESAppli_ToolLineWidening () { }
void IGESAppli_ToolLineWidening::ReadOwnParams
(const Handle(IGESAppli_LineWidening)& ent,
@@ -74,21 +71,6 @@ void IGESAppli_ToolLineWidening::WriteOwnParams
IW.Send(ent->ExtensionValue());
}
void IGESAppli_ToolLineWidening::OwnShared
(const Handle(IGESAppli_LineWidening)& /*ent*/, Interface_EntityIterator& /*iter*/) const
{
}
void IGESAppli_ToolLineWidening::OwnCopy
(const Handle(IGESAppli_LineWidening)& another,
const Handle(IGESAppli_LineWidening)& ent, Interface_CopyTool& /*TC*/) const
{
ent->Init
(5,another->WidthOfMetalization(),another->CorneringCode(),
another->ExtensionFlag(),another->JustificationFlag(),
another->ExtensionValue());
}
Standard_Boolean IGESAppli_ToolLineWidening::OwnCorrect
(const Handle(IGESAppli_LineWidening)& ent) const
{
@@ -116,24 +98,6 @@ IGESData_DirChecker IGESAppli_ToolLineWidening::DirChecker
return DC;
}
void IGESAppli_ToolLineWidening::OwnCheck
(const Handle(IGESAppli_LineWidening)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->SubordinateStatus() != 0)
if (ent->DefLevel() == IGESData_DefOne ||
ent->DefLevel() == IGESData_DefSeveral)
ach->AddWarning("Level type: defined while ignored");
if (ent->NbPropertyValues() != 5)
ach->AddFail("Number of Property Values != 5");
if (ent->CorneringCode() != 0 && ent->CorneringCode() != 1)
ach->AddFail("Cornering Code incorrect");
if (ent->ExtensionFlag() < 0 || ent->ExtensionFlag() > 2)
ach->AddFail("Extension Flag value incorrect");
if (ent->JustificationFlag() < 0 || ent->JustificationFlag() > 2)
ach->AddFail("Justification Flag value incorrect");
}
void IGESAppli_ToolLineWidening::OwnDump
(const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolLineWidening
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolLineWidening, ready to work
Standard_EXPORT IGESAppli_ToolLineWidening();
IGESAppli_ToolLineWidening() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_LineWidening)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a LineWidening <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_LineWidening)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a LineWidening
//! (NbPropertyValues forced to 5, Level cleared if Subordinate != 0)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_LineWidening)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_LineWidening)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_LineWidening)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LineWidening)& entfrom, const Handle(IGESAppli_LineWidening)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolLineWidening_HeaderFile

View File

@@ -29,15 +29,12 @@
#include <IGESDefs_HArray1OfTabularData.hxx>
#include <IGESDefs_TabularData.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESAppli_ToolNodalConstraint::IGESAppli_ToolNodalConstraint () { }
void IGESAppli_ToolNodalConstraint::ReadOwnParams
(const Handle(IGESAppli_NodalConstraint)& ent,
@@ -79,34 +76,6 @@ void IGESAppli_ToolNodalConstraint::WriteOwnParams
IW.Send(ent->TabularData(i));
}
void IGESAppli_ToolNodalConstraint::OwnShared
(const Handle(IGESAppli_NodalConstraint)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer i, num;
iter.GetOneItem(ent->NodeEntity());
for ( num = ent->NbCases(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->TabularData(i));
}
void IGESAppli_ToolNodalConstraint::OwnCopy
(const Handle(IGESAppli_NodalConstraint)& another,
const Handle(IGESAppli_NodalConstraint)& ent, Interface_CopyTool& TC) const
{
Standard_Integer num = another->NbCases();
Standard_Integer tempType = another->Type();
DeclareAndCast(IGESAppli_Node, tempNode,
TC.Transferred(another->NodeEntity()));
Handle(IGESDefs_HArray1OfTabularData) tempTabularDataProps =
new IGESDefs_HArray1OfTabularData(1, num);
for ( Standard_Integer i = 1; i <= num; i++ )
{
DeclareAndCast(IGESDefs_TabularData, new_item,
TC.Transferred(another->TabularData(i)));
tempTabularDataProps->SetValue(i, new_item);
}
ent->Init(tempType, tempNode, tempTabularDataProps);
}
IGESData_DirChecker IGESAppli_ToolNodalConstraint::DirChecker
(const Handle(IGESAppli_NodalConstraint)& /* ent */ ) const
{
@@ -120,14 +89,6 @@ IGESData_DirChecker IGESAppli_ToolNodalConstraint::DirChecker
return DC;
}
void IGESAppli_ToolNodalConstraint::OwnCheck
(const Handle(IGESAppli_NodalConstraint)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if ((ent->Type() != 1) && (ent->Type() != 2))
ach->AddFail("Type of Constraint != 1,2");
}
void IGESAppli_ToolNodalConstraint::OwnDump
(const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolNodalConstraint
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolNodalConstraint, ready to work
Standard_EXPORT IGESAppli_ToolNodalConstraint();
IGESAppli_ToolNodalConstraint() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_NodalConstraint)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a NodalConstraint <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_NodalConstraint)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_NodalConstraint)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_NodalConstraint)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalConstraint)& entfrom, const Handle(IGESAppli_NodalConstraint)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolNodalConstraint_HeaderFile

View File

@@ -32,7 +32,6 @@
#include <IGESDimen_GeneralNote.hxx>
#include <IGESDimen_HArray1OfGeneralNote.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -41,8 +40,6 @@
#include <TColgp_HArray1OfXYZ.hxx>
#include <TColStd_HArray1OfInteger.hxx>
IGESAppli_ToolNodalDisplAndRot::IGESAppli_ToolNodalDisplAndRot () { }
void IGESAppli_ToolNodalDisplAndRot::ReadOwnParams
(const Handle(IGESAppli_NodalDisplAndRot)& ent,
@@ -130,65 +127,6 @@ void IGESAppli_ToolNodalDisplAndRot::WriteOwnParams
}
}
void IGESAppli_ToolNodalDisplAndRot::OwnShared
(const Handle(IGESAppli_NodalDisplAndRot)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer nbcases = ent->NbCases();
Standard_Integer nbnodes = ent->NbNodes();
for (Standard_Integer i = 1; i <= nbcases; i ++)
iter.GetOneItem(ent->Note(i));
for (Standard_Integer j = 1; j <= nbnodes; j ++)
iter.GetOneItem(ent->Node(j));
}
void IGESAppli_ToolNodalDisplAndRot::OwnCopy
(const Handle(IGESAppli_NodalDisplAndRot)& another,
const Handle(IGESAppli_NodalDisplAndRot)& ent, Interface_CopyTool& TC) const
{
Standard_Integer nbcases = another->NbCases();
Standard_Integer nbnodes = another->NbNodes();
Handle(IGESDimen_HArray1OfGeneralNote) aNotes =
new IGESDimen_HArray1OfGeneralNote(1,nbcases);
Handle(TColStd_HArray1OfInteger) aNodeIdentifiers =
new TColStd_HArray1OfInteger(1,nbnodes);
Handle(IGESAppli_HArray1OfNode) aNodes =
new IGESAppli_HArray1OfNode(1,nbnodes);
Handle(IGESBasic_HArray1OfHArray1OfXYZ) aTransParam =
new IGESBasic_HArray1OfHArray1OfXYZ(1, nbnodes);
Handle(IGESBasic_HArray1OfHArray1OfXYZ) aRotParam =
new IGESBasic_HArray1OfHArray1OfXYZ(1, nbnodes);
for (Standard_Integer i=1 ;i <=nbnodes; i++)
{
aNodeIdentifiers->SetValue(i,(another->NodeIdentifier(i)));
DeclareAndCast(IGESAppli_Node,anitem,TC.Transferred(another->Node(i)));
aNodes->SetValue(i,anitem);
}
for (Standard_Integer j=1 ;j <=nbcases; j++)
{
DeclareAndCast
(IGESDimen_GeneralNote,anitem,TC.Transferred(another->Note(j)));
aNotes->SetValue(j,anitem);
}
for (Standard_Integer n=1 ;n <=nbnodes; n++)
{
Handle(TColgp_HArray1OfXYZ) tempArray1 = new
TColgp_HArray1OfXYZ(1,nbcases);
Handle(TColgp_HArray1OfXYZ) tempArray2 = new
TColgp_HArray1OfXYZ(1,nbcases);
for (Standard_Integer k=1;k<= nbcases;k++)
{
tempArray1->SetValue(k,another->TranslationParameter(n,k));
tempArray2->SetValue(k,another->RotationalParameter(n,k));
}
aTransParam->SetValue(n,tempArray1);
aRotParam->SetValue(n,tempArray2);
}
ent->Init(aNotes,aNodeIdentifiers,aNodes,aRotParam,aTransParam);
}
IGESData_DirChecker IGESAppli_ToolNodalDisplAndRot::DirChecker
(const Handle(IGESAppli_NodalDisplAndRot)& /* ent */ ) const
{
@@ -199,12 +137,6 @@ IGESData_DirChecker IGESAppli_ToolNodalDisplAndRot::DirChecker
return DC;
}
void IGESAppli_ToolNodalDisplAndRot::OwnCheck
(const Handle(IGESAppli_NodalDisplAndRot)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESAppli_ToolNodalDisplAndRot::OwnDump
(const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolNodalDisplAndRot
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolNodalDisplAndRot, ready to work
Standard_EXPORT IGESAppli_ToolNodalDisplAndRot();
IGESAppli_ToolNodalDisplAndRot() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_NodalDisplAndRot)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a NodalDisplAndRot <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_NodalDisplAndRot)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_NodalDisplAndRot)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_NodalDisplAndRot)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalDisplAndRot)& entfrom, const Handle(IGESAppli_NodalDisplAndRot)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolNodalDisplAndRot_HeaderFile

View File

@@ -29,7 +29,6 @@
#include <IGESData_ParamReader.hxx>
#include <IGESDimen_GeneralNote.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -39,8 +38,6 @@
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray2OfReal.hxx>
IGESAppli_ToolNodalResults::IGESAppli_ToolNodalResults () { }
void IGESAppli_ToolNodalResults::ReadOwnParams
(const Handle(IGESAppli_NodalResults)& ent,
@@ -108,45 +105,6 @@ void IGESAppli_ToolNodalResults::WriteOwnParams
}
}
void IGESAppli_ToolNodalResults::OwnShared
(const Handle(IGESAppli_NodalResults)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer nbnodes = ent->NbNodes();
iter.GetOneItem(ent->Note());
for (Standard_Integer i = 1; i <= nbnodes; i++)
iter.GetOneItem(ent->Node(i));
}
void IGESAppli_ToolNodalResults::OwnCopy
(const Handle(IGESAppli_NodalResults)& another,
const Handle(IGESAppli_NodalResults)& ent, Interface_CopyTool& TC) const
{
DeclareAndCast(IGESDimen_GeneralNote,aNote,TC.Transferred(another->Note()));
Standard_Integer aSubCaseNum = another->SubCaseNumber();
Standard_Real aTime = another->Time();
Standard_Integer nbnodes = another->NbNodes();
Standard_Integer nbval = another->NbData();
Handle(TColStd_HArray1OfInteger) aNodeIdentifiers =
new TColStd_HArray1OfInteger(1,nbnodes);
Handle(IGESAppli_HArray1OfNode) aNodes =
new IGESAppli_HArray1OfNode(1,nbnodes);
Handle(TColStd_HArray2OfReal) aData =
new TColStd_HArray2OfReal(1,nbnodes,1,nbval);
for (Standard_Integer i=1; i <= nbnodes; i++)
{
Standard_Integer aItem = another->NodeIdentifier(i);
aNodeIdentifiers->SetValue(i,aItem);
DeclareAndCast(IGESAppli_Node,anentity,TC.Transferred(another->Node(i)));
aNodes->SetValue(i,anentity);
for (Standard_Integer j=1; j <= nbval; j++)
aData->SetValue(i,j, another->Data(i,j));
}
ent->Init(aNote,aSubCaseNum,aTime,aNodeIdentifiers,aNodes,aData);
ent->SetFormNumber(another->FormNumber());
}
IGESData_DirChecker IGESAppli_ToolNodalResults::DirChecker
(const Handle(IGESAppli_NodalResults)& /* ent */ ) const
{
@@ -161,55 +119,6 @@ IGESData_DirChecker IGESAppli_ToolNodalResults::DirChecker
return DC;
}
void IGESAppli_ToolNodalResults::OwnCheck
(const Handle(IGESAppli_NodalResults)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
Standard_Integer FormNum = ent->FormNumber();
Standard_Integer nv = ent->NbData();
Standard_Boolean OK = Standard_True;
switch (FormNum) {
case 0 : if (nv < 0) OK = Standard_False; break;
case 1 : if (nv != 1) OK = Standard_False; break;
case 2 : if (nv != 1) OK = Standard_False; break;
case 3 : if (nv != 3) OK = Standard_False; break;
case 4 : if (nv != 6) OK = Standard_False; break;
case 5 : if (nv != 3) OK = Standard_False; break;
case 6 : if (nv != 3) OK = Standard_False; break;
case 7 : if (nv != 3) OK = Standard_False; break;
case 8 : if (nv != 3) OK = Standard_False; break;
case 9 : if (nv != 3) OK = Standard_False; break;
case 10 : if (nv != 1) OK = Standard_False; break;
case 11 : if (nv != 1) OK = Standard_False; break;
case 12 : if (nv != 3) OK = Standard_False; break;
case 13 : if (nv != 1) OK = Standard_False; break;
case 14 : if (nv != 1) OK = Standard_False; break;
case 15 : if (nv != 3) OK = Standard_False; break;
case 16 : if (nv != 1) OK = Standard_False; break;
case 17 : if (nv != 3) OK = Standard_False; break;
case 18 : if (nv != 3) OK = Standard_False; break;
case 19 : if (nv != 3) OK = Standard_False; break;
case 20 : if (nv != 3) OK = Standard_False; break;
case 21 : if (nv != 3) OK = Standard_False; break;
case 22 : if (nv != 3) OK = Standard_False; break;
case 23 : if (nv != 6) OK = Standard_False; break;
case 24 : if (nv != 6) OK = Standard_False; break;
case 25 : if (nv != 6) OK = Standard_False; break;
case 26 : if (nv != 6) OK = Standard_False; break;
case 27 : if (nv != 6) OK = Standard_False; break;
case 28 : if (nv != 6) OK = Standard_False; break;
case 29 : if (nv != 9) OK = Standard_False; break;
case 30 : if (nv != 9) OK = Standard_False; break;
case 31 : if (nv != 9) OK = Standard_False; break;
case 32 : if (nv != 9) OK = Standard_False; break;
case 33 : if (nv != 9) OK = Standard_False; break;
case 34 : if (nv != 9) OK = Standard_False; break;
default : ach->AddFail("Incorrect Form Number"); break;
}
if (!OK) ach->AddFail
("Incorrect count of real values in array V for FEM node");
}
void IGESAppli_ToolNodalResults::OwnDump
(const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolNodalResults
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolNodalResults, ready to work
Standard_EXPORT IGESAppli_ToolNodalResults();
IGESAppli_ToolNodalResults() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_NodalResults)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a NodalResults <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_NodalResults)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_NodalResults)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_NodalResults)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalResults)& entfrom, const Handle(IGESAppli_NodalResults)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolNodalResults_HeaderFile

View File

@@ -28,15 +28,12 @@
#include <IGESData_ParamReader.hxx>
#include <IGESGeom_TransformationMatrix.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESAppli_ToolNode::IGESAppli_ToolNode () { }
void IGESAppli_ToolNode::ReadOwnParams
(const Handle(IGESAppli_Node)& ent,
@@ -66,23 +63,6 @@ void IGESAppli_ToolNode::WriteOwnParams
IW.Send(ent->System());
}
void IGESAppli_ToolNode::OwnShared
(const Handle(IGESAppli_Node)& ent, Interface_EntityIterator& iter) const
{
iter.GetOneItem(ent->System());
}
void IGESAppli_ToolNode::OwnCopy
(const Handle(IGESAppli_Node)& another,
const Handle(IGESAppli_Node)& ent, Interface_CopyTool& TC) const
{
gp_XYZ aCoord = (another->Coord()).XYZ();
DeclareAndCast(IGESGeom_TransformationMatrix,aSystem,
TC.Transferred(another->System()));
ent->Init(aCoord,aSystem);
}
IGESData_DirChecker IGESAppli_ToolNode::DirChecker
(const Handle(IGESAppli_Node)& /*ent*/ ) const
{
@@ -95,19 +75,6 @@ IGESData_DirChecker IGESAppli_ToolNode::DirChecker
return DC;
}
void IGESAppli_ToolNode::OwnCheck
(const Handle(IGESAppli_Node)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (!ent->HasSubScriptNumber())
ach->AddFail("SubScript Number expected (for Node Number) not present");
if (!ent->HasTransf())
ach->AddFail("Transformation Matrix expected, not present");
if (!ent->System().IsNull())
if (ent->System()->FormNumber() < 10)
ach->AddFail("System : Incorrect FormNumber (not 10-11-12)");
}
void IGESAppli_ToolNode::OwnDump
(const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolNode
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolNode, ready to work
Standard_EXPORT IGESAppli_ToolNode();
IGESAppli_ToolNode() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_Node)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a Node <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_Node)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_Node)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_Node)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Node)& entfrom, const Handle(IGESAppli_Node)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolNode_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfInteger.hxx>
IGESAppli_ToolPWBArtworkStackup::IGESAppli_ToolPWBArtworkStackup () { }
void IGESAppli_ToolPWBArtworkStackup::ReadOwnParams
(const Handle(IGESAppli_PWBArtworkStackup)& ent,
@@ -71,26 +68,6 @@ void IGESAppli_ToolPWBArtworkStackup::WriteOwnParams
IW.Send(ent->LevelNumber(i));
}
void IGESAppli_ToolPWBArtworkStackup::OwnShared
(const Handle(IGESAppli_PWBArtworkStackup)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESAppli_ToolPWBArtworkStackup::OwnCopy
(const Handle(IGESAppli_PWBArtworkStackup)& another,
const Handle(IGESAppli_PWBArtworkStackup)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer num = another->NbLevelNumbers();
Standard_Integer tempNbPropertyValues = another->NbPropertyValues();
Handle(TCollection_HAsciiString) tempArtworkStackupIdent =
new TCollection_HAsciiString(another->Identification());
Handle(TColStd_HArray1OfInteger) tempLevelNumbers =
new TColStd_HArray1OfInteger(1, num);
for ( Standard_Integer i = 1; i <= num; i++ )
tempLevelNumbers->SetValue(i, another->LevelNumber(i));
ent->Init(tempNbPropertyValues, tempArtworkStackupIdent, tempLevelNumbers);
}
IGESData_DirChecker IGESAppli_ToolPWBArtworkStackup::DirChecker
(const Handle(IGESAppli_PWBArtworkStackup)& /* ent */ ) const
{
@@ -106,12 +83,6 @@ IGESData_DirChecker IGESAppli_ToolPWBArtworkStackup::DirChecker
return DC;
}
void IGESAppli_ToolPWBArtworkStackup::OwnCheck
(const Handle(IGESAppli_PWBArtworkStackup)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESAppli_ToolPWBArtworkStackup::OwnDump
(const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolPWBArtworkStackup
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolPWBArtworkStackup, ready to work
Standard_EXPORT IGESAppli_ToolPWBArtworkStackup();
IGESAppli_ToolPWBArtworkStackup() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PWBArtworkStackup)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a PWBArtworkStackup <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_PWBArtworkStackup)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PWBArtworkStackup)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PWBArtworkStackup)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBArtworkStackup)& entfrom, const Handle(IGESAppli_PWBArtworkStackup)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolPWBArtworkStackup_HeaderFile

View File

@@ -25,14 +25,11 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESAppli_ToolPWBDrilledHole::IGESAppli_ToolPWBDrilledHole () { }
void IGESAppli_ToolPWBDrilledHole::ReadOwnParams
(const Handle(IGESAppli_PWBDrilledHole)& ent,
@@ -66,19 +63,6 @@ void IGESAppli_ToolPWBDrilledHole::WriteOwnParams
IW.Send(ent->FunctionCode());
}
void IGESAppli_ToolPWBDrilledHole::OwnShared
(const Handle(IGESAppli_PWBDrilledHole)& /*ent*/, Interface_EntityIterator& /*iter*/) const
{
}
void IGESAppli_ToolPWBDrilledHole::OwnCopy
(const Handle(IGESAppli_PWBDrilledHole)& another,
const Handle(IGESAppli_PWBDrilledHole)& ent, Interface_CopyTool& /*TC*/) const
{
ent->Init (3,another->DrillDiameterSize(),another->FinishDiameterSize(),
another->FunctionCode());
}
Standard_Boolean IGESAppli_ToolPWBDrilledHole::OwnCorrect
(const Handle(IGESAppli_PWBDrilledHole)& ent) const
{
@@ -104,18 +88,6 @@ IGESData_DirChecker IGESAppli_ToolPWBDrilledHole::DirChecker
return DC;
}
void IGESAppli_ToolPWBDrilledHole::OwnCheck
(const Handle(IGESAppli_PWBDrilledHole)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->NbPropertyValues() != 3)
ach->AddFail("Number of property values != 3");
if ( (ent->FunctionCode() < 1) ||
((ent->FunctionCode() > 5) && (ent->FunctionCode() < 5001)) ||
(ent->FunctionCode() > 9999))
ach->AddFail("Drilled Hole Function Code != 1-5,5001-9999");
}
void IGESAppli_ToolPWBDrilledHole::OwnDump
(const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolPWBDrilledHole
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolPWBDrilledHole, ready to work
Standard_EXPORT IGESAppli_ToolPWBDrilledHole();
IGESAppli_ToolPWBDrilledHole() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PWBDrilledHole)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a PWBDrilledHole <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_PWBDrilledHole)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a PWBDrilledHole
//! (NbPropertyValues forced to 3)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PWBDrilledHole)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PWBDrilledHole)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PWBDrilledHole)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBDrilledHole)& entfrom, const Handle(IGESAppli_PWBDrilledHole)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolPWBDrilledHole_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolPartNumber::IGESAppli_ToolPartNumber () { }
void IGESAppli_ToolPartNumber::ReadOwnParams
(const Handle(IGESAppli_PartNumber)& ent,
@@ -73,28 +70,6 @@ void IGESAppli_ToolPartNumber::WriteOwnParams
IW.Send(ent->InternalNumber());
}
void IGESAppli_ToolPartNumber::OwnShared
(const Handle(IGESAppli_PartNumber)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESAppli_ToolPartNumber::OwnCopy
(const Handle(IGESAppli_PartNumber)& another,
const Handle(IGESAppli_PartNumber)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer tempNbPropertyValues = another->NbPropertyValues();
Handle(TCollection_HAsciiString) tempGenericNumber =
new TCollection_HAsciiString(another->GenericNumber());
Handle(TCollection_HAsciiString) tempMilitaryNumber =
new TCollection_HAsciiString(another->MilitaryNumber());
Handle(TCollection_HAsciiString) tempVendorNumber =
new TCollection_HAsciiString(another->VendorNumber());
Handle(TCollection_HAsciiString) tempInternalNumber =
new TCollection_HAsciiString(another->InternalNumber());
ent->Init(tempNbPropertyValues, tempGenericNumber, tempMilitaryNumber,
tempVendorNumber, tempInternalNumber);
}
Standard_Boolean IGESAppli_ToolPartNumber::OwnCorrect
(const Handle(IGESAppli_PartNumber)& ent) const
{
@@ -120,14 +95,6 @@ IGESData_DirChecker IGESAppli_ToolPartNumber::DirChecker
return DC;
}
void IGESAppli_ToolPartNumber::OwnCheck
(const Handle(IGESAppli_PartNumber)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->NbPropertyValues() != 4)
ach->AddFail("Number of property values != 4");
}
void IGESAppli_ToolPartNumber::OwnDump
(const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolPartNumber
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolPartNumber, ready to work
Standard_EXPORT IGESAppli_ToolPartNumber();
IGESAppli_ToolPartNumber() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PartNumber)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a PartNumber <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_PartNumber)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a PartNumber
//! (NbPropertyValues forced to 4)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PartNumber)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PartNumber)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PartNumber)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PartNumber)& entfrom, const Handle(IGESAppli_PartNumber)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolPartNumber_HeaderFile

View File

@@ -27,7 +27,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolPinNumber::IGESAppli_ToolPinNumber () { }
void IGESAppli_ToolPinNumber::ReadOwnParams
(const Handle(IGESAppli_PinNumber)& ent,
@@ -61,22 +58,6 @@ void IGESAppli_ToolPinNumber::WriteOwnParams
IW.Send(ent->PinNumberVal());
}
void IGESAppli_ToolPinNumber::OwnShared
(const Handle(IGESAppli_PinNumber)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESAppli_ToolPinNumber::OwnCopy
(const Handle(IGESAppli_PinNumber)& another,
const Handle(IGESAppli_PinNumber)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer aNbPropertyValues;
Handle(TCollection_HAsciiString) aPinNumber =
new TCollection_HAsciiString(another->PinNumberVal());
aNbPropertyValues = another->NbPropertyValues();
ent->Init(aNbPropertyValues,aPinNumber);
}
Standard_Boolean IGESAppli_ToolPinNumber::OwnCorrect
(const Handle(IGESAppli_PinNumber)& ent) const
{
@@ -100,20 +81,6 @@ IGESData_DirChecker IGESAppli_ToolPinNumber::DirChecker
return DC;
}
void IGESAppli_ToolPinNumber::OwnCheck
(const Handle(IGESAppli_PinNumber)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->SubordinateStatus() != 0)
if (ent->DefLevel() != IGESData_DefOne &&
ent->DefLevel() != IGESData_DefSeveral)
ach->AddFail("Level type: Incorrect");
if (ent->NbPropertyValues() != 1)
ach->AddFail("Number of Property Values != 1");
//UNFINISHED
//Level to be ignored if the property is subordinate -- queried
}
void IGESAppli_ToolPinNumber::OwnDump
(const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolPinNumber
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolPinNumber, ready to work
Standard_EXPORT IGESAppli_ToolPinNumber();
IGESAppli_ToolPinNumber() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PinNumber)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a PinNumber <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_PinNumber)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a PinNumber
//! (Level cleared in D.E. if Subordinate != 0)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PinNumber)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PinNumber)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PinNumber)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PinNumber)& entfrom, const Handle(IGESAppli_PinNumber)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolPinNumber_HeaderFile

View File

@@ -32,7 +32,6 @@
#include <IGESGraph_HArray1OfTextDisplayTemplate.hxx>
#include <IGESGraph_TextDisplayTemplate.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
@@ -41,8 +40,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolPipingFlow::IGESAppli_ToolPipingFlow () { }
void IGESAppli_ToolPipingFlow::ReadOwnParams
(const Handle(IGESAppli_PipingFlow)& ent,
@@ -170,85 +167,6 @@ void IGESAppli_ToolPipingFlow::WriteOwnParams
IW.Send(ent->ContFlowAssociativity(i));
}
void IGESAppli_ToolPipingFlow::OwnShared
(const Handle(IGESAppli_PipingFlow)& ent, Interface_EntityIterator& iter) const
{
Standard_Integer i, num;
for ( num = ent->NbFlowAssociativities(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->FlowAssociativity(i));
for ( num = ent->NbConnectPoints(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->ConnectPoint(i));
for ( num = ent->NbJoins(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->Join(i));
for ( num = ent->NbTextDisplayTemplates(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->TextDisplayTemplate(i));
for ( num = ent->NbContFlowAssociativities(), i = 1; i <= num; i++ )
iter.GetOneItem(ent->ContFlowAssociativity(i));
}
void IGESAppli_ToolPipingFlow::OwnCopy
(const Handle(IGESAppli_PipingFlow)& another,
const Handle(IGESAppli_PipingFlow)& ent, Interface_CopyTool& TC) const
{
Standard_Integer tempNbContextFlags = another->NbContextFlags();
Standard_Integer tempTypeOfFlow = another->TypeOfFlow();
Standard_Integer i, num;
num = another->NbFlowAssociativities();
Handle(IGESData_HArray1OfIGESEntity) tempFlowAssocs =
new IGESData_HArray1OfIGESEntity(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESData_IGESEntity, new_item,
TC.Transferred(another->FlowAssociativity(i)));
tempFlowAssocs->SetValue(i, new_item);
}
num = another->NbConnectPoints();
Handle(IGESDraw_HArray1OfConnectPoint) tempConnectPoints =
new IGESDraw_HArray1OfConnectPoint(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESDraw_ConnectPoint, new_item,
TC.Transferred(another->ConnectPoint(i)));
tempConnectPoints->SetValue(i, new_item);
}
num = another->NbJoins();
Handle(IGESData_HArray1OfIGESEntity) tempJoins =
new IGESData_HArray1OfIGESEntity(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESData_IGESEntity, new_item,
TC.Transferred(another->Join(i)));
tempJoins->SetValue(i, new_item);
}
num = another->NbFlowNames();
Handle(Interface_HArray1OfHAsciiString) tempFlowNames =
new Interface_HArray1OfHAsciiString(1, num);
for ( i = 1; i <= num; i++ )
tempFlowNames->SetValue
(i, new TCollection_HAsciiString(another->FlowName(i)));
num = another->NbTextDisplayTemplates();
Handle(IGESGraph_HArray1OfTextDisplayTemplate) tempTextDisplayTemplates =
new IGESGraph_HArray1OfTextDisplayTemplate(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESGraph_TextDisplayTemplate, new_item,
TC.Transferred(another->TextDisplayTemplate(i)));
tempTextDisplayTemplates->SetValue(i, new_item);
}
num = another->NbContFlowAssociativities();
Handle(IGESData_HArray1OfIGESEntity) tempContFlowAssocs =
new IGESData_HArray1OfIGESEntity(1, num);
for ( i = 1; i <= num; i++ )
{
DeclareAndCast(IGESData_IGESEntity, new_item,
TC.Transferred(another->ContFlowAssociativity(i)));
tempContFlowAssocs->SetValue(i, new_item);
}
ent->Init (tempNbContextFlags, tempTypeOfFlow, tempFlowAssocs,
tempConnectPoints, tempJoins, tempFlowNames,
tempTextDisplayTemplates, tempContFlowAssocs);
}
Standard_Boolean IGESAppli_ToolPipingFlow::OwnCorrect
(const Handle(IGESAppli_PipingFlow)& ent) const
{
@@ -270,16 +188,6 @@ IGESData_DirChecker IGESAppli_ToolPipingFlow::DirChecker
return DC;
}
void IGESAppli_ToolPipingFlow::OwnCheck
(const Handle(IGESAppli_PipingFlow)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->NbContextFlags() != 1)
ach->AddFail("Number of Context Flags != 1");
if ((ent->TypeOfFlow() < 0) || (ent->TypeOfFlow() > 2))
ach->AddFail("Type of Flow != 0,1,2");
}
void IGESAppli_ToolPipingFlow::OwnDump
(const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolPipingFlow
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolPipingFlow, ready to work
Standard_EXPORT IGESAppli_ToolPipingFlow();
IGESAppli_ToolPipingFlow() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_PipingFlow)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a PipingFlow <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_PipingFlow)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a PipingFlow
//! (NbContextFlags forced to 1)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_PipingFlow)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_PipingFlow)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_PipingFlow)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PipingFlow)& entfrom, const Handle(IGESAppli_PipingFlow)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolPipingFlow_HeaderFile

View File

@@ -27,7 +27,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -35,8 +34,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESAppli_ToolReferenceDesignator::IGESAppli_ToolReferenceDesignator () { }
void IGESAppli_ToolReferenceDesignator::ReadOwnParams
(const Handle(IGESAppli_ReferenceDesignator)& ent,
@@ -61,22 +58,6 @@ void IGESAppli_ToolReferenceDesignator::WriteOwnParams
IW.Send(ent->RefDesignatorText());
}
void IGESAppli_ToolReferenceDesignator::OwnShared
(const Handle(IGESAppli_ReferenceDesignator)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESAppli_ToolReferenceDesignator::OwnCopy
(const Handle(IGESAppli_ReferenceDesignator)& another,
const Handle(IGESAppli_ReferenceDesignator)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer aNbPropertyValues;
Handle(TCollection_HAsciiString) aReferenceDesignator =
new TCollection_HAsciiString(another->RefDesignatorText());
aNbPropertyValues = another->NbPropertyValues();
ent->Init(aNbPropertyValues,aReferenceDesignator);
}
Standard_Boolean IGESAppli_ToolReferenceDesignator::OwnCorrect
(const Handle(IGESAppli_ReferenceDesignator)& ent) const
{
@@ -104,21 +85,6 @@ IGESData_DirChecker IGESAppli_ToolReferenceDesignator::DirChecker
return DC;
}
void IGESAppli_ToolReferenceDesignator::OwnCheck
(const Handle(IGESAppli_ReferenceDesignator)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->SubordinateStatus() != 0)
//the level is ignored if this property is subordinate
if (ent->DefLevel() != IGESData_DefOne &&
ent->DefLevel() != IGESData_DefSeveral)
ach->AddFail("Level type: Not value/reference");
if (ent->NbPropertyValues() != 1)
ach->AddFail("Number of Property Values != 1");
//UNFINISHED
//the level is ignored if this property is subordinate -- queried
}
void IGESAppli_ToolReferenceDesignator::OwnDump
(const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolReferenceDesignator
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolReferenceDesignator, ready to work
Standard_EXPORT IGESAppli_ToolReferenceDesignator();
IGESAppli_ToolReferenceDesignator() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_ReferenceDesignator)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a ReferenceDesignator <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_ReferenceDesignator)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a ReferenceDesignator
//! (NbPropertyValues forced to 1, Level cleared if Subordinate != 0)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_ReferenceDesignator)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_ReferenceDesignator)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_ReferenceDesignator)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ReferenceDesignator)& entfrom, const Handle(IGESAppli_ReferenceDesignator)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolReferenceDesignator_HeaderFile

View File

@@ -26,14 +26,11 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_ShareTool.hxx>
#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
IGESAppli_ToolRegionRestriction::IGESAppli_ToolRegionRestriction () { }
void IGESAppli_ToolRegionRestriction::ReadOwnParams
(const Handle(IGESAppli_RegionRestriction)& ent,
@@ -62,21 +59,6 @@ void IGESAppli_ToolRegionRestriction::WriteOwnParams
IW.Send(ent->ElectricalCktRestriction());
}
void IGESAppli_ToolRegionRestriction::OwnShared
(const Handle(IGESAppli_RegionRestriction)& /*ent*/, Interface_EntityIterator& /*iter*/) const
{
}
void IGESAppli_ToolRegionRestriction::OwnCopy
(const Handle(IGESAppli_RegionRestriction)& another,
const Handle(IGESAppli_RegionRestriction)& ent, Interface_CopyTool& /*TC*/) const
{
ent->Init
(3,another->ElectricalViasRestriction(),
another->ElectricalComponentRestriction(),
another->ElectricalCktRestriction()); // nbprops = 3
}
Standard_Boolean IGESAppli_ToolRegionRestriction::OwnCorrect
(const Handle(IGESAppli_RegionRestriction)& ent) const
{
@@ -104,26 +86,6 @@ IGESData_DirChecker IGESAppli_ToolRegionRestriction::DirChecker
return DC;
}
void IGESAppli_ToolRegionRestriction::OwnCheck
(const Handle(IGESAppli_RegionRestriction)& ent,
const Interface_ShareTool& , Handle(Interface_Check)& ach) const
{
if (ent->SubordinateStatus() != 0)
if (ent->DefLevel() != IGESData_DefOne &&
ent->DefLevel() != IGESData_DefSeveral)
ach->AddFail("Level type: Not value/reference");
if (ent->NbPropertyValues() != 3)
ach->AddFail("Number of Property Values != 3");
if (ent->ElectricalViasRestriction() < 0 || ent->ElectricalViasRestriction() > 2)
ach->AddFail("Incorrect value for Electrical Vias Restriction");
if (ent->ElectricalComponentRestriction() < 0 || ent->ElectricalComponentRestriction() > 2)
ach->AddFail("Incorrect value for Electrical Component Restriction");
if (ent->ElectricalCktRestriction() < 0 || ent->ElectricalCktRestriction() > 2)
ach->AddFail("Incorrect value for Electrical Circuit Restriction");
//UNFINISHED
//level ignored if this property is subordinate -- queried
}
void IGESAppli_ToolRegionRestriction::OwnDump
(const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& /*dumper*/,
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESAppli_ToolRegionRestriction
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolRegionRestriction, ready to work
Standard_EXPORT IGESAppli_ToolRegionRestriction();
IGESAppli_ToolRegionRestriction() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESAppli_RegionRestriction)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a RegionRestriction <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESAppli_RegionRestriction)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a RegionRestriction
//! (NbPropertyValues forced to 3, Level cleared if Subordinate != 0)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESAppli_RegionRestriction)& ent) const;
@@ -67,36 +61,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESAppli_RegionRestriction)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESAppli_RegionRestriction)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESAppli_RegionRestriction)& entfrom, const Handle(IGESAppli_RegionRestriction)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESAppli_ToolRegionRestriction_HeaderFile

View File

@@ -23,14 +23,16 @@
#include <Interface_GeneralLib.hxx>
#include <Interface_ReaderLib.hxx>
// Ancillary data to work on a Package of IGES Entities with a Protocol
// (Modules are created and loaded in appropriate libraries, once by Init)
static Handle(IGESBasic_Protocol) protocol;
void IGESBasic::Init ()
/*void IGESBasic::Init ()
{
IGESData::Init(); // usefull for Undefined Type or Erroneous Entities
IGESBasic::Protocol();
}*/
const Handle(IGESBasic_Protocol) & IGESBasic::Protocol ()
{
static Handle(IGESBasic_Protocol) protocol;
if (protocol.IsNull()) {
protocol = new IGESBasic_Protocol;
Interface_GeneralLib::SetGlobal (new IGESBasic_GeneralModule, protocol);
@@ -38,9 +40,5 @@ static Handle(IGESBasic_Protocol) protocol;
IGESData_WriterLib::SetGlobal (new IGESBasic_ReadWriteModule,protocol);
IGESData_SpecificLib::SetGlobal (new IGESBasic_SpecificModule, protocol);
}
}
Handle(IGESBasic_Protocol) IGESBasic::Protocol ()
{
return protocol;
}

View File

@@ -18,129 +18,21 @@
#define _IGESBasic_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class IGESBasic_Protocol;
class IGESBasic_SubfigureDef;
class IGESBasic_Group;
class IGESBasic_GroupWithoutBackP;
class IGESBasic_SingleParent;
class IGESBasic_ExternalRefFileIndex;
class IGESBasic_OrderedGroup;
class IGESBasic_OrderedGroupWithoutBackP;
class IGESBasic_Hierarchy;
class IGESBasic_ExternalReferenceFile;
class IGESBasic_Name;
class IGESBasic_AssocGroupType;
class IGESBasic_SingularSubfigure;
class IGESBasic_ExternalRefFileName;
class IGESBasic_ExternalRefFile;
class IGESBasic_ExternalRefName;
class IGESBasic_ExternalRefLibName;
class IGESBasic_ToolSubfigureDef;
class IGESBasic_ToolGroup;
class IGESBasic_ToolGroupWithoutBackP;
class IGESBasic_ToolSingleParent;
class IGESBasic_ToolExternalRefFileIndex;
class IGESBasic_ToolOrderedGroup;
class IGESBasic_ToolOrderedGroupWithoutBackP;
class IGESBasic_ToolHierarchy;
class IGESBasic_ToolExternalReferenceFile;
class IGESBasic_ToolName;
class IGESBasic_ToolAssocGroupType;
class IGESBasic_ToolSingularSubfigure;
class IGESBasic_ToolExternalRefFileName;
class IGESBasic_ToolExternalRefFile;
class IGESBasic_ToolExternalRefName;
class IGESBasic_ToolExternalRefLibName;
class IGESBasic_Protocol;
class IGESBasic_ReadWriteModule;
class IGESBasic_GeneralModule;
class IGESBasic_SpecificModule;
class IGESBasic_HArray1OfHArray1OfInteger;
class IGESBasic_HArray1OfHArray1OfReal;
class IGESBasic_HArray1OfHArray1OfXY;
class IGESBasic_HArray1OfHArray1OfXYZ;
class IGESBasic_HArray1OfHArray1OfIGESEntity;
//! This package represents basic entities from IGES
class IGESBasic
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Prepares dynqmic data (Protocol, Modules) for this package
Standard_EXPORT static void Init();
//Standard_EXPORT static void Init();
//! Returns the Protocol for this Package
Standard_EXPORT static Handle(IGESBasic_Protocol) Protocol();
protected:
private:
friend class IGESBasic_SubfigureDef;
friend class IGESBasic_Group;
friend class IGESBasic_GroupWithoutBackP;
friend class IGESBasic_SingleParent;
friend class IGESBasic_ExternalRefFileIndex;
friend class IGESBasic_OrderedGroup;
friend class IGESBasic_OrderedGroupWithoutBackP;
friend class IGESBasic_Hierarchy;
friend class IGESBasic_ExternalReferenceFile;
friend class IGESBasic_Name;
friend class IGESBasic_AssocGroupType;
friend class IGESBasic_SingularSubfigure;
friend class IGESBasic_ExternalRefFileName;
friend class IGESBasic_ExternalRefFile;
friend class IGESBasic_ExternalRefName;
friend class IGESBasic_ExternalRefLibName;
friend class IGESBasic_ToolSubfigureDef;
friend class IGESBasic_ToolGroup;
friend class IGESBasic_ToolGroupWithoutBackP;
friend class IGESBasic_ToolSingleParent;
friend class IGESBasic_ToolExternalRefFileIndex;
friend class IGESBasic_ToolOrderedGroup;
friend class IGESBasic_ToolOrderedGroupWithoutBackP;
friend class IGESBasic_ToolHierarchy;
friend class IGESBasic_ToolExternalReferenceFile;
friend class IGESBasic_ToolName;
friend class IGESBasic_ToolAssocGroupType;
friend class IGESBasic_ToolSingularSubfigure;
friend class IGESBasic_ToolExternalRefFileName;
friend class IGESBasic_ToolExternalRefFile;
friend class IGESBasic_ToolExternalRefName;
friend class IGESBasic_ToolExternalRefLibName;
friend class IGESBasic_Protocol;
friend class IGESBasic_ReadWriteModule;
friend class IGESBasic_GeneralModule;
friend class IGESBasic_SpecificModule;
friend class IGESBasic_HArray1OfHArray1OfInteger;
friend class IGESBasic_HArray1OfHArray1OfReal;
friend class IGESBasic_HArray1OfHArray1OfXY;
friend class IGESBasic_HArray1OfHArray1OfXYZ;
friend class IGESBasic_HArray1OfHArray1OfIGESEntity;
Standard_EXPORT static const Handle(IGESBasic_Protocol) & Protocol();
};
#endif // _IGESBasic_HeaderFile

View File

@@ -49,40 +49,18 @@
#include <IGESData_IGESEntity.hxx>
#include <Interface_Category.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_GeneralModule,IGESData_GeneralModule)
// Each Module is attached to a Protocol : it must interprete Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
void IGESBasic_GeneralModule::OwnSharedCase
(const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
Interface_EntityIterator& iter) const
{
switch (CN) {
case 1 : {
DeclareAndCast(IGESBasic_AssocGroupType,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolAssocGroupType tool;
tool.OwnShared(anent,iter);
}
break;
case 2 : {
DeclareAndCast(IGESBasic_ExternalRefFile,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefFile tool;
tool.OwnShared(anent,iter);
}
break;
case 3 : {
DeclareAndCast(IGESBasic_ExternalRefFileIndex,anent,ent);
if (anent.IsNull()) return;
@@ -90,34 +68,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
tool.OwnShared(anent,iter);
}
break;
case 4 : {
DeclareAndCast(IGESBasic_ExternalRefFileName,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefFileName tool;
tool.OwnShared(anent,iter);
}
break;
case 5 : {
DeclareAndCast(IGESBasic_ExternalRefLibName,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefLibName tool;
tool.OwnShared(anent,iter);
}
break;
case 6 : {
DeclareAndCast(IGESBasic_ExternalRefName,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefName tool;
tool.OwnShared(anent,iter);
}
break;
case 7 : {
DeclareAndCast(IGESBasic_ExternalReferenceFile,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalReferenceFile tool;
tool.OwnShared(anent,iter);
}
break;
case 8 : {
DeclareAndCast(IGESBasic_Group,anent,ent);
if (anent.IsNull()) return;
@@ -132,20 +82,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
tool.OwnShared(anent,iter);
}
break;
case 10 : {
DeclareAndCast(IGESBasic_Hierarchy,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolHierarchy tool;
tool.OwnShared(anent,iter);
}
break;
case 11 : {
DeclareAndCast(IGESBasic_Name,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolName tool;
tool.OwnShared(anent,iter);
}
break;
case 12 : {
DeclareAndCast(IGESBasic_OrderedGroup,anent,ent);
if (anent.IsNull()) return;
@@ -304,20 +240,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
tool.OwnCheck(anent,shares,ach);
}
break;
case 2 : {
DeclareAndCast(IGESBasic_ExternalRefFile,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefFile tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 3 : {
DeclareAndCast(IGESBasic_ExternalRefFileIndex,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefFileIndex tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 4 : {
DeclareAndCast(IGESBasic_ExternalRefFileName,anent,ent);
if (anent.IsNull()) return;
@@ -325,20 +247,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
tool.OwnCheck(anent,shares,ach);
}
break;
case 5 : {
DeclareAndCast(IGESBasic_ExternalRefLibName,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefLibName tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 6 : {
DeclareAndCast(IGESBasic_ExternalRefName,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolExternalRefName tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 7 : {
DeclareAndCast(IGESBasic_ExternalReferenceFile,anent,ent);
if (anent.IsNull()) return;
@@ -395,13 +303,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
tool.OwnCheck(anent,shares,ach);
}
break;
case 15 : {
DeclareAndCast(IGESBasic_SingularSubfigure,anent,ent);
if (anent.IsNull()) return;
IGESBasic_ToolSingularSubfigure tool;
tool.OwnCheck(anent,shares,ach);
}
break;
case 16 : {
DeclareAndCast(IGESBasic_SubfigureDef,anent,ent);
if (anent.IsNull()) return;
@@ -439,130 +340,6 @@ IGESBasic_GeneralModule::IGESBasic_GeneralModule () { }
return Standard_True;
}
void IGESBasic_GeneralModule::OwnCopyCase
(const Standard_Integer CN,
const Handle(IGESData_IGESEntity)& entfrom,
const Handle(IGESData_IGESEntity)& entto,
Interface_CopyTool& TC) const
{
switch (CN) {
case 1 : {
DeclareAndCast(IGESBasic_AssocGroupType,enfr,entfrom);
DeclareAndCast(IGESBasic_AssocGroupType,ento,entto);
IGESBasic_ToolAssocGroupType tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 2 : {
DeclareAndCast(IGESBasic_ExternalRefFile,enfr,entfrom);
DeclareAndCast(IGESBasic_ExternalRefFile,ento,entto);
IGESBasic_ToolExternalRefFile tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 3 : {
DeclareAndCast(IGESBasic_ExternalRefFileIndex,enfr,entfrom);
DeclareAndCast(IGESBasic_ExternalRefFileIndex,ento,entto);
IGESBasic_ToolExternalRefFileIndex tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 4 : {
DeclareAndCast(IGESBasic_ExternalRefFileName,enfr,entfrom);
DeclareAndCast(IGESBasic_ExternalRefFileName,ento,entto);
IGESBasic_ToolExternalRefFileName tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 5 : {
DeclareAndCast(IGESBasic_ExternalRefLibName,enfr,entfrom);
DeclareAndCast(IGESBasic_ExternalRefLibName,ento,entto);
IGESBasic_ToolExternalRefLibName tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 6 : {
DeclareAndCast(IGESBasic_ExternalRefName,enfr,entfrom);
DeclareAndCast(IGESBasic_ExternalRefName,ento,entto);
IGESBasic_ToolExternalRefName tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 7 : {
DeclareAndCast(IGESBasic_ExternalReferenceFile,enfr,entfrom);
DeclareAndCast(IGESBasic_ExternalReferenceFile,ento,entto);
IGESBasic_ToolExternalReferenceFile tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 8 : {
DeclareAndCast(IGESBasic_Group,enfr,entfrom);
DeclareAndCast(IGESBasic_Group,ento,entto);
IGESBasic_ToolGroup tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 9 : {
DeclareAndCast(IGESBasic_GroupWithoutBackP,enfr,entfrom);
DeclareAndCast(IGESBasic_GroupWithoutBackP,ento,entto);
IGESBasic_ToolGroupWithoutBackP tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 10 : {
DeclareAndCast(IGESBasic_Hierarchy,enfr,entfrom);
DeclareAndCast(IGESBasic_Hierarchy,ento,entto);
IGESBasic_ToolHierarchy tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 11 : {
DeclareAndCast(IGESBasic_Name,enfr,entfrom);
DeclareAndCast(IGESBasic_Name,ento,entto);
IGESBasic_ToolName tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 12 : {
DeclareAndCast(IGESBasic_OrderedGroup,enfr,entfrom);
DeclareAndCast(IGESBasic_OrderedGroup,ento,entto);
IGESBasic_ToolOrderedGroup tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 13 : {
DeclareAndCast(IGESBasic_OrderedGroupWithoutBackP,enfr,entfrom);
DeclareAndCast(IGESBasic_OrderedGroupWithoutBackP,ento,entto);
IGESBasic_ToolOrderedGroupWithoutBackP tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 14 : {
DeclareAndCast(IGESBasic_SingleParent,enfr,entfrom);
DeclareAndCast(IGESBasic_SingleParent,ento,entto);
IGESBasic_ToolSingleParent tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 15 : {
DeclareAndCast(IGESBasic_SingularSubfigure,enfr,entfrom);
DeclareAndCast(IGESBasic_SingularSubfigure,ento,entto);
IGESBasic_ToolSingularSubfigure tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
case 16 : {
DeclareAndCast(IGESBasic_SubfigureDef,enfr,entfrom);
DeclareAndCast(IGESBasic_SubfigureDef,ento,entto);
IGESBasic_ToolSubfigureDef tool;
tool.OwnCopy(enfr,ento,TC);
}
break;
default : break;
}
}
Standard_Integer IGESBasic_GeneralModule::CategoryNumber
(const Standard_Integer CN, const Handle(Standard_Transient)& ,
const Interface_ShareTool& ) const

View File

@@ -17,20 +17,7 @@
#ifndef _IGESBasic_GeneralModule_HeaderFile
#define _IGESBasic_GeneralModule_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_GeneralModule.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
class IGESData_IGESEntity;
class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Standard_Transient;
class Interface_CopyTool;
class IGESBasic_GeneralModule;
DEFINE_STANDARD_HANDLE(IGESBasic_GeneralModule, IGESData_GeneralModule)
@@ -39,12 +26,10 @@ DEFINE_STANDARD_HANDLE(IGESBasic_GeneralModule, IGESData_GeneralModule)
//! This Services comprise : Shared & Implied Lists, Copy, Check
class IGESBasic_GeneralModule : public IGESData_GeneralModule
{
public:
public:
//! Creates a GeneralModule from IGESBasic and puts it into GeneralLib
Standard_EXPORT IGESBasic_GeneralModule();
IGESBasic_GeneralModule() {}
//! Lists the Entities shared by a given IGESEntity <ent>, from
//! its specific parameters : specific for each type
@@ -61,36 +46,13 @@ public:
//! Specific creation of a new void entity
Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
//! Copies parameters which are specific of each Type of Entity
Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
//! Returns a category number which characterizes an entity
//! Structure for Groups, Figures & Co
//! Description for External Refs
//! Auxiliary for other
Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESBasic_GeneralModule,IGESData_GeneralModule)
protected:
private:
};
#endif // _IGESBasic_GeneralModule_HeaderFile

View File

@@ -55,11 +55,6 @@
IMPLEMENT_STANDARD_RTTIEXT(IGESBasic_ReadWriteModule,IGESData_ReadWriteModule)
// Each Module is attached to a Protocol : it must interprete Case Numbers
// (arguments <CN> of various methods) in accordance to values returned by
// the method TypeNumber from this Protocol
IGESBasic_ReadWriteModule::IGESBasic_ReadWriteModule () { }
Standard_Integer IGESBasic_ReadWriteModule::CaseIGES
(const Standard_Integer typenum, const Standard_Integer formnum) const

View File

@@ -17,12 +17,7 @@
#ifndef _IGESBasic_ReadWriteModule_HeaderFile
#define _IGESBasic_ReadWriteModule_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IGESData_ReadWriteModule.hxx>
#include <Standard_Integer.hxx>
class Standard_DomainError;
class IGESData_IGESEntity;
class IGESData_IGESReaderData;
class IGESData_ParamReader;
@@ -37,12 +32,10 @@ DEFINE_STANDARD_HANDLE(IGESBasic_ReadWriteModule, IGESData_ReadWriteModule)
//! an IGESEntity.
class IGESBasic_ReadWriteModule : public IGESData_ReadWriteModule
{
public:
public:
//! Creates a ReadWriteModule & puts it into ReaderLib & WriterLib
Standard_EXPORT IGESBasic_ReadWriteModule();
IGESBasic_ReadWriteModule() {}
//! Defines Case Numbers for Entities of IGESBasic
Standard_EXPORT Standard_Integer CaseIGES (const Standard_Integer typenum, const Standard_Integer formnum) const Standard_OVERRIDE;
@@ -53,27 +46,7 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, IGESData_IGESWriter& IW) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(IGESBasic_ReadWriteModule,IGESData_ReadWriteModule)
protected:
private:
};
#endif // _IGESBasic_ReadWriteModule_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESBasic_ToolAssocGroupType::IGESBasic_ToolAssocGroupType () { }
void IGESBasic_ToolAssocGroupType::ReadOwnParams
(const Handle(IGESBasic_AssocGroupType)& ent,
@@ -63,22 +60,6 @@ void IGESBasic_ToolAssocGroupType::WriteOwnParams
IW.Send(ent->Name());
}
void IGESBasic_ToolAssocGroupType::OwnShared
(const Handle(IGESBasic_AssocGroupType)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESBasic_ToolAssocGroupType::OwnCopy
(const Handle(IGESBasic_AssocGroupType)& another,
const Handle(IGESBasic_AssocGroupType)& ent, Interface_CopyTool& /* TC */) const
{
Standard_Integer tempNbData = another->NbData();
Standard_Integer tempType = another->AssocType();
Handle(TCollection_HAsciiString) tempName =
new TCollection_HAsciiString(another->Name());
ent->Init(tempNbData, tempType, tempName);
}
Standard_Boolean IGESBasic_ToolAssocGroupType::OwnCorrect
(const Handle(IGESBasic_AssocGroupType)& ent) const
{

View File

@@ -32,7 +32,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -41,13 +40,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESBasic_ToolAssocGroupType
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolAssocGroupType, ready to work
Standard_EXPORT IGESBasic_ToolAssocGroupType();
IGESBasic_ToolAssocGroupType() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -56,10 +54,6 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_AssocGroupType)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a AssocGroupType <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESBasic_AssocGroupType)& ent, Interface_EntityIterator& iter) const;
//! Sets automatic unambiguous Correction on a AssocGroupType
//! (NbData forced to 2)
Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESBasic_AssocGroupType)& ent) const;
@@ -70,33 +64,8 @@ public:
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESBasic_AssocGroupType)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_AssocGroupType)& entfrom, const Handle(IGESBasic_AssocGroupType)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESBasic_ToolAssocGroupType_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESBasic_ToolExternalRefFile::IGESBasic_ToolExternalRefFile () { }
void IGESBasic_ToolExternalRefFile::ReadOwnParams
(const Handle(IGESBasic_ExternalRefFile)& ent,
@@ -56,20 +53,6 @@ void IGESBasic_ToolExternalRefFile::WriteOwnParams
IW.Send(ent->FileId());
}
void IGESBasic_ToolExternalRefFile::OwnShared
(const Handle(IGESBasic_ExternalRefFile)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESBasic_ToolExternalRefFile::OwnCopy
(const Handle(IGESBasic_ExternalRefFile)& another,
const Handle(IGESBasic_ExternalRefFile)& ent, Interface_CopyTool& /* TC */) const
{
Handle(TCollection_HAsciiString) tempFileId =
new TCollection_HAsciiString(another->FileId());
ent->Init(tempFileId);
}
IGESData_DirChecker IGESBasic_ToolExternalRefFile::DirChecker
(const Handle(IGESBasic_ExternalRefFile)& /* ent */ ) const
{
@@ -84,12 +67,6 @@ IGESData_DirChecker IGESBasic_ToolExternalRefFile::DirChecker
return DC;
}
void IGESBasic_ToolExternalRefFile::OwnCheck
(const Handle(IGESBasic_ExternalRefFile)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESBasic_ToolExternalRefFile::OwnDump
(const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& /* dumper */,
const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESBasic_ToolExternalRefFile
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolExternalRefFile, ready to work
Standard_EXPORT IGESBasic_ToolExternalRefFile();
IGESBasic_ToolExternalRefFile() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,11 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_ExternalRefFile)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a ExternalRefFile <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESBasic_ExternalRefFile)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefFile)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefFile)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFile)& entfrom, const Handle(IGESBasic_ExternalRefFile)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESBasic_ToolExternalRefFile_HeaderFile

View File

@@ -28,7 +28,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_Macros.hxx>
@@ -37,8 +36,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESBasic_ToolExternalRefFileIndex::IGESBasic_ToolExternalRefFileIndex () { }
void IGESBasic_ToolExternalRefFileIndex::ReadOwnParams
(const Handle(IGESBasic_ExternalRefFileIndex)& ent,
@@ -89,26 +86,6 @@ void IGESBasic_ToolExternalRefFileIndex::OwnShared
iter.GetOneItem(ent->Entity(i));
}
void IGESBasic_ToolExternalRefFileIndex::OwnCopy
(const Handle(IGESBasic_ExternalRefFileIndex)& another,
const Handle(IGESBasic_ExternalRefFileIndex)& ent, Interface_CopyTool& TC) const
{
Standard_Integer num = another->NbEntries();
Handle(Interface_HArray1OfHAsciiString) tempNames =
new Interface_HArray1OfHAsciiString(1, num);
Handle(IGESData_HArray1OfIGESEntity) tempEntities =
new IGESData_HArray1OfIGESEntity(1, num);
for ( Standard_Integer i = 1; i <= num; i++ )
{
tempNames->SetValue(i, new TCollection_HAsciiString
(another->Name(i)));
DeclareAndCast(IGESData_IGESEntity, new_item,
TC.Transferred(another->Entity(i)));
tempEntities->SetValue(i, new_item);
}
ent->Init(tempNames, tempEntities);
}
IGESData_DirChecker IGESBasic_ToolExternalRefFileIndex::DirChecker
(const Handle(IGESBasic_ExternalRefFileIndex)& /* ent */ ) const
{
@@ -124,12 +101,6 @@ IGESData_DirChecker IGESBasic_ToolExternalRefFileIndex::DirChecker
return DC;
}
void IGESBasic_ToolExternalRefFileIndex::OwnCheck
(const Handle(IGESBasic_ExternalRefFileIndex)& /* ent */,
const Interface_ShareTool& , Handle(Interface_Check)& /* ach */) const
{
}
void IGESBasic_ToolExternalRefFileIndex::OwnDump
(const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESBasic_ToolExternalRefFileIndex
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolExternalRefFileIndex, ready to work
Standard_EXPORT IGESBasic_ToolExternalRefFileIndex();
IGESBasic_ToolExternalRefFileIndex() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -62,36 +60,8 @@ public:
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefFileIndex)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileIndex)& entfrom, const Handle(IGESBasic_ExternalRefFileIndex)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESBasic_ToolExternalRefFileIndex_HeaderFile

View File

@@ -26,7 +26,6 @@
#include <IGESData_ParamCursor.hxx>
#include <IGESData_ParamReader.hxx>
#include <Interface_Check.hxx>
#include <Interface_CopyTool.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_Macros.hxx>
#include <Interface_ShareTool.hxx>
@@ -34,8 +33,6 @@
#include <Standard_DomainError.hxx>
#include <TCollection_HAsciiString.hxx>
IGESBasic_ToolExternalRefFileName::IGESBasic_ToolExternalRefFileName () { }
void IGESBasic_ToolExternalRefFileName::ReadOwnParams
(const Handle(IGESBasic_ExternalRefFileName)& ent,
@@ -60,22 +57,6 @@ void IGESBasic_ToolExternalRefFileName::WriteOwnParams
IW.Send(ent->ReferenceName());
}
void IGESBasic_ToolExternalRefFileName::OwnShared
(const Handle(IGESBasic_ExternalRefFileName)& /* ent */, Interface_EntityIterator& /* iter */) const
{
}
void IGESBasic_ToolExternalRefFileName::OwnCopy
(const Handle(IGESBasic_ExternalRefFileName)& another,
const Handle(IGESBasic_ExternalRefFileName)& ent, Interface_CopyTool& /* TC */) const
{
Handle(TCollection_HAsciiString) tempFileId =
new TCollection_HAsciiString(another->FileId());
Handle(TCollection_HAsciiString) tempRefName =
new TCollection_HAsciiString(another->ReferenceName());
ent->Init(tempFileId, tempRefName);
}
IGESData_DirChecker IGESBasic_ToolExternalRefFileName::DirChecker
(const Handle(IGESBasic_ExternalRefFileName)& /* ent */ ) const
{

View File

@@ -31,7 +31,6 @@ class Interface_EntityIterator;
class IGESData_DirChecker;
class Interface_ShareTool;
class Interface_Check;
class Interface_CopyTool;
class IGESData_IGESDumper;
class Message_Messenger;
@@ -40,13 +39,12 @@ class Message_Messenger;
//! (ReadWriteModule, GeneralModule, SpecificModule)
class IGESBasic_ToolExternalRefFileName
{
public:
public:
DEFINE_STANDARD_ALLOC
//! Returns a ToolExternalRefFileName, ready to work
Standard_EXPORT IGESBasic_ToolExternalRefFileName();
IGESBasic_ToolExternalRefFileName() {}
//! Reads own parameters from file. <PR> gives access to them,
//! <IR> detains parameter types and values
@@ -55,43 +53,14 @@ public:
//! Writes own parameters to IGESWriter
Standard_EXPORT void WriteOwnParams (const Handle(IGESBasic_ExternalRefFileName)& ent, IGESData_IGESWriter& IW) const;
//! Lists the Entities shared by a ExternalRefFileName <ent>, from
//! its specific (own) parameters
Standard_EXPORT void OwnShared (const Handle(IGESBasic_ExternalRefFileName)& ent, Interface_EntityIterator& iter) const;
//! Returns specific DirChecker
Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESBasic_ExternalRefFileName)& ent) const;
//! Performs Specific Semantic Check
Standard_EXPORT void OwnCheck (const Handle(IGESBasic_ExternalRefFileName)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
//! Copies Specific Parameters
Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileName)& entfrom, const Handle(IGESBasic_ExternalRefFileName)& entto, Interface_CopyTool& TC) const;
//! Dump of Specific Parameters
Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
protected:
private:
};
#endif // _IGESBasic_ToolExternalRefFileName_HeaderFile

Some files were not shown because too many files have changed in this diff Show More