#include <IFSelect_TransformStandard.hxx>
Inheritance diagram for IFSelect_TransformStandard:
Public Member Functions | |
Standard_EXPORT | IFSelect_TransformStandard () |
Creates a TransformStandard, option StandardCopy, no Modifier . | |
Standard_EXPORT void | SetCopyOption (const Standard_Boolean option) |
Sets the Copy option to a new value : - True for StandardCopy - False for OnTheSpot . | |
Standard_EXPORT Standard_Boolean | CopyOption () const |
Returns the Copy option . | |
Standard_EXPORT void | SetSelection (const Handle(IFSelect_Selection)&sel) |
Sets a Selection (or unsets if Null) This Selection then defines the list of entities on which the Modifiers will be applied If it is set, it has priority on Selections of Modifiers Else, for each Modifier its Selection is evaluated By default, all the Model is taken . | |
Standard_EXPORT Handle_IFSelect_Selection | Selection () const |
Returns the Selection, Null by default . | |
Standard_EXPORT Standard_Integer | NbModifiers () const |
Returns the count of recorded Modifiers . | |
Standard_EXPORT Handle_IFSelect_Modifier | Modifier (const Standard_Integer num) const |
Returns a Modifier given its rank in the list . | |
Standard_EXPORT Standard_Integer | ModifierRank (const Handle(IFSelect_Modifier)&modif) const |
Returns the rank of a Modifier in the list, 0 if unknown . | |
Standard_EXPORT Standard_Boolean | AddModifier (const Handle(IFSelect_Modifier)&modif, const Standard_Integer atnum=0) |
Adds a Modifier to the list : - <atnum> = 0 (default) : at the end of the list - <atnum> > 0 : at rank <atnum> Returns True if done, False if <atnum> is out of range . | |
Standard_EXPORT Standard_Boolean | RemoveModifier (const Handle(IFSelect_Modifier)&modif) |
Removes a Modifier from the list Returns True if done, False if <modif> not in the list . | |
Standard_EXPORT Standard_Boolean | RemoveModifier (const Standard_Integer num) |
Removes a Modifier from the list, given its rank Returns True if done, False if <num> is out of range . | |
Standard_EXPORT Standard_Boolean | Perform (const Interface_Graph &G, const Handle(Interface_Protocol)&protocol, Interface_CheckIterator &checks, Handle(Interface_InterfaceModel)&newmod) |
Performs the Standard Transformation, by calling Copy then ApplyModifiers (which can return an error status) . | |
Standard_EXPORT void | Copy (const Interface_Graph &G, Interface_CopyTool &TC, Handle(Interface_InterfaceModel)&newmod) const |
This the first operation. It calls StandardCopy or OnTheSpot according the option . | |
Standard_EXPORT void | StandardCopy (const Interface_Graph &G, Interface_CopyTool &TC, Handle(Interface_InterfaceModel)&newmod) const |
This is the standard action of Copy : its takes into account only the remaining entities (noted by Graph Status positive) and their proper dependances of course. Produces a new model. . | |
Standard_EXPORT void | OnTheSpot (const Interface_Graph &G, Interface_CopyTool &TC, Handle(Interface_InterfaceModel)&newmod) const |
This is the OnTheSpot action : each entity is bound with ... itself. The produced model is the same as the starting one. . | |
Standard_EXPORT Standard_Boolean | ApplyModifiers (const Interface_Graph &G, const Handle(Interface_Protocol)&protocol, Interface_CopyTool &TC, Interface_CheckIterator &checks, Handle(Interface_InterfaceModel)&newmod) const |
Applies the modifiers sequencially. For each one, prepares required data (if a Selection is associated as a filter). For the option OnTheSpot, it determines if the graph may be changed and updates <newmod> if required If a Modifier causes an error (check "HasFailed"), ApplyModifier stops : the following Modifiers are ignored . | |
Standard_EXPORT Standard_Boolean | Updated (const Handle(Standard_Transient)&entfrom, Handle(Standard_Transient)&entto) const |
This methods allows to know what happened to a starting entity after the last Perform. It reads result from the map which was filled by Perform. . | |
Standard_EXPORT TCollection_AsciiString | Label () const |
Returns a text which defines the way a Transformer works : "On the spot edition" or "Standard Copy" followed by "<nn> Modifiers" . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes | |
Standard_Boolean | thecopy |
Handle_IFSelect_Selection | thesel |
IFSelect_SequenceOfGeneralModifier | themodifs |
Handle_Interface_CopyControl | themap |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from IFSelect_Transformer. |
|
Implements IFSelect_Transformer. |
|
|
|
|
|
|
|
|
|
Implements IFSelect_Transformer. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Implements IFSelect_Transformer. |
|
|
|
|
|
|
|
|