Open CASCADE Technology
6.5.4
|
This class runs transformations made by Modifiers, as
the ModelCopier does when it produces files (the same set
of Modifiers can then be used, as to transform the starting
Model, as at file sending time).
First, considering the resulting model, two options :
More...
#include <IFSelect_TransformStandard.hxx>
Public Member Functions | |
IFSelect_TransformStandard () | |
Creates a TransformStandard, option StandardCopy, no Modifier | |
void | SetCopyOption (const Standard_Boolean option) |
Sets the Copy option to a new value : | |
Standard_Boolean | CopyOption () const |
Returns the Copy option | |
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 | |
Handle_IFSelect_Selection | Selection () const |
Returns the Selection, Null by default | |
Standard_Integer | NbModifiers () const |
Returns the count of recorded Modifiers | |
Handle_IFSelect_Modifier | Modifier (const Standard_Integer num) const |
Returns a Modifier given its rank in the list | |
Standard_Integer | ModifierRank (const Handle< IFSelect_Modifier > &modif) const |
Returns the rank of a Modifier in the list, 0 if unknown | |
Standard_Boolean | AddModifier (const Handle< IFSelect_Modifier > &modif, const Standard_Integer atnum=0) |
Adds a Modifier to the list : | |
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_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_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) | |
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 | |
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. | |
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_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_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. | |
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" |
- modifications are made directly on the starting model <br> (OnTheSpot option), or <br> - data are copied by the standard service Copy, only the <br> remaining (not yet sent in a file) entities are copied <br> (StandardCopy option) <br>
If a Selection is set, it forces the list of Entities on which
the Modifiers are applied. Else, each Modifier is considered
its Selection. By default, it is for the whole Model
Then, the Modifiers are sequentially applied
If at least one Modifier "May Change Graph", or if the option
StandardCopy is selected, the graph will be recomputed
(by the WorkSession, see method RunTransformer)
Remark that a TransformStandard with option StandardCopy
and no Modifier at all has the effect of computing the
remaining data (those not yet sent in any output file).
Moreover, the Protocol is not changed
Standard_Boolean IFSelect_TransformStandard::AddModifier | ( | const Handle< IFSelect_Modifier > & | modif, |
const Standard_Integer | atnum = 0 |
||
) |
Standard_Boolean IFSelect_TransformStandard::ApplyModifiers | ( | const Interface_Graph & | G, |
const Handle< Interface_Protocol > & | protocol, | ||
Interface_CopyTool & | TC, | ||
Interface_CheckIterator & | checks, | ||
Handle< Interface_InterfaceModel > & | newmod | ||
) | const |
void IFSelect_TransformStandard::Copy | ( | const Interface_Graph & | G, |
Interface_CopyTool & | TC, | ||
Handle< Interface_InterfaceModel > & | newmod | ||
) | const |
TCollection_AsciiString IFSelect_TransformStandard::Label | ( | ) | const [virtual] |
Implements IFSelect_Transformer.
Handle_IFSelect_Modifier IFSelect_TransformStandard::Modifier | ( | const Standard_Integer | num | ) | const |
Standard_Integer IFSelect_TransformStandard::ModifierRank | ( | const Handle< IFSelect_Modifier > & | modif | ) | const |
void IFSelect_TransformStandard::OnTheSpot | ( | const Interface_Graph & | G, |
Interface_CopyTool & | TC, | ||
Handle< Interface_InterfaceModel > & | newmod | ||
) | const |
Standard_Boolean IFSelect_TransformStandard::Perform | ( | const Interface_Graph & | G, |
const Handle< Interface_Protocol > & | protocol, | ||
Interface_CheckIterator & | checks, | ||
Handle< Interface_InterfaceModel > & | newmod | ||
) | [virtual] |
Implements IFSelect_Transformer.
Standard_Boolean IFSelect_TransformStandard::RemoveModifier | ( | const Handle< IFSelect_Modifier > & | modif | ) |
Handle_IFSelect_Selection IFSelect_TransformStandard::Selection | ( | ) | const |
void IFSelect_TransformStandard::StandardCopy | ( | const Interface_Graph & | G, |
Interface_CopyTool & | TC, | ||
Handle< Interface_InterfaceModel > & | newmod | ||
) | const |
Standard_Boolean IFSelect_TransformStandard::Updated | ( | const Handle< Standard_Transient > & | entfrom, |
Handle< Standard_Transient > & | entto | ||
) | const [virtual] |
Implements IFSelect_Transformer.