Open CASCADE Technology
6.5.4
|
Definition of General Services adapted to IGES.
This Services comprise : Shared & Implied Lists, Copy, Check
They are adapted according to the organisation of IGES
Entities : Directory Part, Lists of Associativities and
Properties are specifically processed
#include <IGESData_GeneralModule.hxx>
Public Member Functions | |
void | FillSharedCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, Interface_EntityIterator &iter) const |
Fills the list of Entities shared by an IGESEntity <ent>, according a Case Number <CN> (formerly computed by CaseNum). Considers Properties and Directory Part, and calls OwnSharedCase (which is adapted to each Type of Entity) | |
virtual void | OwnSharedCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent, Interface_EntityIterator &iter) const =0 |
Lists the Entities shared by a given IGESEntity <ent>, from its specific parameters : specific for each type | |
virtual void | ListImpliedCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, Interface_EntityIterator &iter) const |
Lists the Implied References of <ent>. Here, these are the Associativities, plus the Entities defined by OwnSharedCase | |
virtual void | OwnImpliedCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent, Interface_EntityIterator &iter) const |
Specific list of Entities implied by a given IGESEntity <ent> (in addition to Associativities). By default, there are none, but this method can be redefined as required | |
void | CheckCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Interface_ShareTool &shares, Handle< Interface_Check > &ach) const |
Semantic Checking of an IGESEntity. Performs general Checks, which use DirChecker, then call OwnCheck which does a check specific for each type of Entity | |
virtual IGESData_DirChecker | DirChecker (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent) const =0 |
Returns a DirChecker, specific for each type of Entity (identified by its Case Number) : this DirChecker defines constraints which must be respected by the DirectoryPart | |
virtual void | OwnCheckCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent, const Interface_ShareTool &shares, Handle< Interface_Check > &ach) const =0 |
Performs Specific Semantic Check for each type of Entity | |
virtual Standard_Boolean | CanCopy (const Standard_Integer CN, const Handle< Standard_Transient > &ent) const |
Specific answer to the question "is Copy properly implemented" For IGES, answer is always True | |
virtual Standard_Boolean | NewVoid (const Standard_Integer CN, Handle< Standard_Transient > &entto) const =0 |
Specific creation of a new void entity | |
void | CopyCase (const Standard_Integer CN, const Handle< Standard_Transient > &entfrom, const Handle< Standard_Transient > &entto, Interface_CopyTool &TC) const |
Copy ("Deep") from <entfrom> to <entto> (same type) by using a CopyTool which provides its working Map. For IGESEntities, Copies general data (Directory Part, List of Properties) and call OwnCopyCase | |
virtual void | OwnCopyCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &entfrom, const Handle< IGESData_IGESEntity > &entto, Interface_CopyTool &TC) const =0 |
Copies parameters which are specific of each Type of Entity | |
virtual void | RenewImpliedCase (const Standard_Integer CN, const Handle< Standard_Transient > &entfrom, const Handle< Standard_Transient > &entto, const Interface_CopyTool &TC) const |
Renewing of Implied References. For IGESEntities, Copies general data(List of Associativities) and calls OwnRenewCase | |
virtual void | OwnRenewCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &entfrom, const Handle< IGESData_IGESEntity > &entto, const Interface_CopyTool &TC) const |
Renews parameters which are specific of each Type of Entity : the provided default does nothing, but this method may be redefined as required | |
virtual void | WhenDeleteCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Standard_Boolean dispatched) const |
Prepares an IGES Entity for delete : works on directory part then calls OwnDeleteCase While dispatch requires to copy the entities, <dispatched> is ignored, entities are cleared in any case | |
virtual void | OwnDeleteCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent) const |
Specific preparation for delete, acts on own parameters Default does nothing, to be redefined as required | |
virtual Handle_TCollection_HAsciiString | Name (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Interface_ShareTool &shares) const |
Returns the name of an IGES Entity (its NameValue) Can be redefined for an even more specific case ... |
virtual Standard_Boolean IGESData_GeneralModule::CanCopy | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | ent | ||
) | const [virtual] |
Reimplemented from Interface_GeneralModule.
void IGESData_GeneralModule::CheckCase | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | ent, | ||
const Interface_ShareTool & | shares, | ||
Handle< Interface_Check > & | ach | ||
) | const [virtual] |
Implements Interface_GeneralModule.
void IGESData_GeneralModule::CopyCase | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | entfrom, | ||
const Handle< Standard_Transient > & | entto, | ||
Interface_CopyTool & | TC | ||
) | const [virtual] |
Implements Interface_GeneralModule.
virtual IGESData_DirChecker IGESData_GeneralModule::DirChecker | ( | const Standard_Integer | CN, |
const Handle< IGESData_IGESEntity > & | ent | ||
) | const [pure virtual] |
void IGESData_GeneralModule::FillSharedCase | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | ent, | ||
Interface_EntityIterator & | iter | ||
) | const [virtual] |
Implements Interface_GeneralModule.
virtual void IGESData_GeneralModule::ListImpliedCase | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | ent, | ||
Interface_EntityIterator & | iter | ||
) | const [virtual] |
Reimplemented from Interface_GeneralModule.
virtual Handle_TCollection_HAsciiString IGESData_GeneralModule::Name | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | ent, | ||
const Interface_ShareTool & | shares | ||
) | const [virtual] |
Reimplemented from Interface_GeneralModule.
virtual Standard_Boolean IGESData_GeneralModule::NewVoid | ( | const Standard_Integer | CN, |
Handle< Standard_Transient > & | entto | ||
) | const [pure virtual] |
virtual void IGESData_GeneralModule::OwnCheckCase | ( | const Standard_Integer | CN, |
const Handle< IGESData_IGESEntity > & | ent, | ||
const Interface_ShareTool & | shares, | ||
Handle< Interface_Check > & | ach | ||
) | const [pure virtual] |
virtual void IGESData_GeneralModule::OwnCopyCase | ( | const Standard_Integer | CN, |
const Handle< IGESData_IGESEntity > & | entfrom, | ||
const Handle< IGESData_IGESEntity > & | entto, | ||
Interface_CopyTool & | TC | ||
) | const [pure virtual] |
virtual void IGESData_GeneralModule::OwnDeleteCase | ( | const Standard_Integer | CN, |
const Handle< IGESData_IGESEntity > & | ent | ||
) | const [virtual] |
Reimplemented in IGESDraw_GeneralModule.
virtual void IGESData_GeneralModule::OwnImpliedCase | ( | const Standard_Integer | CN, |
const Handle< IGESData_IGESEntity > & | ent, | ||
Interface_EntityIterator & | iter | ||
) | const [virtual] |
Reimplemented in IGESDraw_GeneralModule.
virtual void IGESData_GeneralModule::OwnRenewCase | ( | const Standard_Integer | CN, |
const Handle< IGESData_IGESEntity > & | entfrom, | ||
const Handle< IGESData_IGESEntity > & | entto, | ||
const Interface_CopyTool & | TC | ||
) | const [virtual] |
Reimplemented in IGESDraw_GeneralModule.
virtual void IGESData_GeneralModule::OwnSharedCase | ( | const Standard_Integer | CN, |
const Handle< IGESData_IGESEntity > & | ent, | ||
Interface_EntityIterator & | iter | ||
) | const [pure virtual] |
virtual void IGESData_GeneralModule::RenewImpliedCase | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | entfrom, | ||
const Handle< Standard_Transient > & | entto, | ||
const Interface_CopyTool & | TC | ||
) | const [virtual] |
Reimplemented from Interface_GeneralModule.
virtual void IGESData_GeneralModule::WhenDeleteCase | ( | const Standard_Integer | CN, |
const Handle< Standard_Transient > & | ent, | ||
const Standard_Boolean | dispatched | ||
) | const [virtual] |
Reimplemented from Interface_GeneralModule.