Open CASCADE Technology 7.7.2
|
Definition of General Services for IGESBasic (specific part) This Services comprise : Shared & Implied Lists, Copy, Check. More...
#include <IGESBasic_GeneralModule.hxx>
Public Member Functions | |
IGESBasic_GeneralModule () | |
Creates a GeneralModule from IGESBasic and puts it into GeneralLib. | |
void | OwnSharedCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent, Interface_EntityIterator &iter) const override |
Lists the Entities shared by a given IGESEntity <ent>, from its specific parameters : specific for each type. | |
IGESData_DirChecker | DirChecker (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent) const override |
Returns a DirChecker, specific for each type of Entity (identified by its Case Number) : this DirChecker defines constraints which must be respected by the DirectoryPart. | |
void | OwnCheckCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &ent, const Interface_ShareTool &shares, Handle< Interface_Check > &ach) const override |
Performs Specific Semantic Check for each type of Entity. | |
Standard_Boolean | NewVoid (const Standard_Integer CN, Handle< Standard_Transient > &entto) const override |
Specific creation of a new void entity. | |
void | OwnCopyCase (const Standard_Integer CN, const Handle< IGESData_IGESEntity > &entfrom, const Handle< IGESData_IGESEntity > &entto, Interface_CopyTool &TC) const override |
Copies parameters which are specific of each Type of Entity. | |
virtual Standard_Integer | CategoryNumber (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Interface_ShareTool &shares) const override |
Returns a category number which characterizes an entity Structure for Groups, Figures & Co Description for External Refs Auxiliary for other. | |
![]() | |
void | FillSharedCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, Interface_EntityIterator &iter) const override |
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 override |
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 override |
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 override |
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 override=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 override |
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 override |
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 override |
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 override |
Returns the name of an IGES Entity (its NameValue) Can be redefined for an even more specific case ... | |
![]() | |
virtual void | FillShared (const Handle< Interface_InterfaceModel > &model, const Standard_Integer CN, const Handle< Standard_Transient > &ent, Interface_EntityIterator &iter) const |
Specific filling of the list of Entities shared by an Entity <ent>, according a Case Number <CN> (formerly computed by CaseNum), considered in the context of a Model <model> Default calls FillSharedCase (i.e., ignores the model) Can be redefined to use the model for working. | |
virtual void | FillSharedCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, Interface_EntityIterator &iter) const =0 |
Specific filling of the list of Entities shared by an Entity <ent>, according a Case Number <CN> (formerly computed by CaseNum). Can use the internal utility method Share, below. | |
void | Share (Interface_EntityIterator &iter, const Handle< Standard_Transient > &shared) const |
Adds an Entity to a Shared List (uses GetOneItem on <iter>) | |
virtual void | ListImplied (const Handle< Interface_InterfaceModel > &model, const Standard_Integer CN, const Handle< Standard_Transient > &ent, Interface_EntityIterator &iter) const |
List the Implied References of <ent> considered in the context of a Model <model> : i.e. the Entities which are Referenced while not considered as Shared (not copied if <ent> is, references not renewed by CopyCase but by ImpliedCase, only if referenced Entities have been Copied too) FillShared + ListImplied give the complete list of References Default calls ListImpliedCase (i.e. ignores the model) Can be redefined to use the model for working. | |
virtual void | ListImpliedCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, Interface_EntityIterator &iter) const |
List the Implied References of <ent> (see above) are Referenced while not considered as Shared (not copied if <ent> is, references not renewed by CopyCase but by ImpliedCase, only if referenced Entities have been Copied too) FillSharedCase + ListImpliedCase give the complete list of Referenced Entities The provided default method does nothing (Implied References are specific of a little amount of Entity Classes). | |
virtual void | CheckCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Interface_ShareTool &shares, Handle< Interface_Check > &ach) const =0 |
Specific Checking of an Entity <ent> Can check context queried through a ShareTool, as required. | |
virtual Standard_Boolean | CanCopy (const Standard_Integer CN, const Handle< Standard_Transient > &ent) const |
Specific answer to the question "is Copy properly implemented" Remark that it should be in phase with the implementation of NewVoid+CopyCase/NewCopyCase Default returns always False, can be redefined. | |
virtual Standard_Boolean | Dispatch (const Standard_Integer CN, const Handle< Standard_Transient > &entfrom, Handle< Standard_Transient > &entto, Interface_CopyTool &TC) const |
Dispatches an entity Returns True if it works by copy, False if it just duplicates the starting Handle. | |
virtual Standard_Boolean | NewVoid (const Standard_Integer CN, Handle< Standard_Transient > &entto) const =0 |
Creates a new void entity <entto> according to a Case Number This entity remains to be filled, by reading from a file or by copying from another entity of same type (see CopyCase) | |
virtual void | CopyCase (const Standard_Integer CN, const Handle< Standard_Transient > &entfrom, const Handle< Standard_Transient > &entto, Interface_CopyTool &TC) const =0 |
Specific Copy ("Deep") from <entfrom> to <entto> (same type) by using a CopyTool which provides its working Map. Use method Transferred from CopyTool to work. | |
virtual Standard_Boolean | NewCopiedCase (const Standard_Integer CN, const Handle< Standard_Transient > &entfrom, Handle< Standard_Transient > &entto, Interface_CopyTool &TC) const |
Specific operator (create+copy) defaulted to do nothing. It can be redefined : When it is not possible to work in two steps (NewVoid then CopyCase). This can occur when there is no default constructor : hence the result <entto> must be created with an effective definition. Remark : if NewCopiedCase is defined, CopyCase has nothing to do Returns True if it has produced something, false else. | |
virtual void | RenewImpliedCase (const Standard_Integer CN, const Handle< Standard_Transient > &entfrom, const Handle< Standard_Transient > &entto, const Interface_CopyTool &TC) const |
Specific Copying of Implied References A Default is provided which does nothing (must current case !) Already copied references (by CopyFrom) must remain unchanged Use method Search from CopyTool to work. | |
virtual void | WhenDeleteCase (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Standard_Boolean dispatched) const |
Prepares an entity to be deleted. What does it mean : Basically, any class of entity may define its own destructor By default, it does nothing but calling destructors on fields With the Memory Manager, it is useless to call destructor, it is done automatically when the Handle is nullified(cleared) BUT this is ineffective in looping structures (whatever these are "Implied" references or not). | |
virtual Standard_Integer | CategoryNumber (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Interface_ShareTool &shares) const |
Returns a category number which characterizes an entity Category Numbers are managed by the class Category <shares> can be used to evaluate this number in the context Default returns 0 which means "unspecified". | |
virtual Handle< TCollection_HAsciiString > | Name (const Standard_Integer CN, const Handle< Standard_Transient > &ent, const Interface_ShareTool &shares) const |
Determines if an entity brings a Name (or widerly, if a Name can be attached to it, through the ShareTool By default, returns a Null Handle (no name can be produced) Can be redefined. | |
![]() | |
Standard_Transient () | |
Empty constructor. | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. | |
virtual | ~Standard_Transient () |
Destructor must be virtual. | |
virtual void | Delete () const |
Memory deallocator for transient classes. | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. | |
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. | |
Additional Inherited Members | |
![]() | |
typedef void | base_type |
Returns a type descriptor about this object. | |
![]() | |
static const char * | get_type_name () |
Returns a type descriptor about this object. | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. | |
Definition of General Services for IGESBasic (specific part) This Services comprise : Shared & Implied Lists, Copy, Check.
IGESBasic_GeneralModule::IGESBasic_GeneralModule | ( | ) |
Creates a GeneralModule from IGESBasic and puts it into GeneralLib.
|
overridevirtual |
Returns a category number which characterizes an entity Structure for Groups, Figures & Co Description for External Refs Auxiliary for other.
Reimplemented from Interface_GeneralModule.
|
overridevirtual |
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.
Implements IGESData_GeneralModule.
|
overridevirtual |
Specific creation of a new void entity.
Implements IGESData_GeneralModule.
|
overridevirtual |
Performs Specific Semantic Check for each type of Entity.
Implements IGESData_GeneralModule.
|
overridevirtual |
Copies parameters which are specific of each Type of Entity.
Implements IGESData_GeneralModule.
|
overridevirtual |
Lists the Entities shared by a given IGESEntity <ent>, from its specific parameters : specific for each type.
Implements IGESData_GeneralModule.