Open CASCADE Technology  7.7.0
Public Member Functions | Static Public Member Functions
IGESData_BasicEditor Class Reference

This class provides various functions of basic edition, such as : More...

#include <IGESData_BasicEditor.hxx>

Public Member Functions

 IGESData_BasicEditor ()
 Creates an empty Basic Editor which should be initialized via Init() method. More...
 
 IGESData_BasicEditor (const Handle< IGESData_Protocol > &protocol)
 Creates a Basic Editor, with a new IGESModel, ready to run. More...
 
 IGESData_BasicEditor (const Handle< IGESData_IGESModel > &model, const Handle< IGESData_Protocol > &protocol)
 Creates a Basic Editor for IGES Data, ready to run. More...
 
void Init (const Handle< IGESData_Protocol > &protocol)
 Initialize a Basic Editor, with a new IGESModel, ready to run. More...
 
void Init (const Handle< IGESData_IGESModel > &model, const Handle< IGESData_Protocol > &protocol)
 Initialize a Basic Editor for IGES Data, ready to run. More...
 
Handle< IGESData_IGESModelModel () const
 Returns the designated model. More...
 
Standard_Boolean SetUnitFlag (const Standard_Integer flag)
 Sets a new unit from its flag (param 14 of Global Section) Returns True if done, False if <flag> is incorrect. More...
 
Standard_Boolean SetUnitValue (const Standard_Real val)
 Sets a new unit from its value in meters (rounded to the closest one, max gap 1%) Returns True if done, False if <val> is too far from a suitable value. More...
 
Standard_Boolean SetUnitName (const Standard_CString name)
 Sets a new unit from its name (param 15 of Global Section) Returns True if done, False if <name> is incorrect Remark : if <flag> has been set to 3 (user defined), <name> is then free. More...
 
void ApplyUnit (const Standard_Boolean enforce=Standard_False)
 Applies unit value to convert header data : Resolution, MaxCoord, MaxLineWeight Applies unit only once after SetUnit... has been called, if <enforce> is given as True. It can be called just before writing the model to a file, i.e. when definitive values are finally known. More...
 
void ComputeStatus ()
 Performs the re-computation of status on the whole model (Subordinate Status and Use Flag of each IGES Entity), which can have required values according the way they are referenced (see definitions of Logical use, Physical use, etc...) More...
 
Standard_Boolean AutoCorrect (const Handle< IGESData_IGESEntity > &ent)
 Performs auto-correction on an IGESEntity Returns True if something has changed, False if nothing done. More...
 
Standard_Integer AutoCorrectModel ()
 Performs auto-correction on the whole Model Returns the count of modified entities. More...
 

Static Public Member Functions

static Standard_Integer UnitNameFlag (const Standard_CString name)
 From the name of unit, computes flag number, 0 if incorrect (in this case, user defined entity remains possible) More...
 
static Standard_Real UnitFlagValue (const Standard_Integer flag)
 From the flag of unit, determines value in MM, 0 if incorrect. More...
 
static Standard_CString UnitFlagName (const Standard_Integer flag)
 From the flag of unit, determines its name, "" if incorrect. More...
 
static Standard_CString IGESVersionName (const Standard_Integer flag)
 From the flag of IGES version, returns name, "" if incorrect. More...
 
static Standard_Integer IGESVersionMax ()
 Returns the maximum allowed value for IGESVersion Flag. More...
 
static Standard_CString DraftingName (const Standard_Integer flag)
 From the flag of drafting standard, returns name, "" if incorrect. More...
 
static Standard_Integer DraftingMax ()
 Returns the maximum allowed value for Drafting Flag. More...
 

Detailed Description

This class provides various functions of basic edition, such as :

Constructor & Destructor Documentation

◆ IGESData_BasicEditor() [1/3]

IGESData_BasicEditor::IGESData_BasicEditor ( )

Creates an empty Basic Editor which should be initialized via Init() method.

◆ IGESData_BasicEditor() [2/3]

IGESData_BasicEditor::IGESData_BasicEditor ( const Handle< IGESData_Protocol > &  protocol)

Creates a Basic Editor, with a new IGESModel, ready to run.

◆ IGESData_BasicEditor() [3/3]

IGESData_BasicEditor::IGESData_BasicEditor ( const Handle< IGESData_IGESModel > &  model,
const Handle< IGESData_Protocol > &  protocol 
)

Creates a Basic Editor for IGES Data, ready to run.

Member Function Documentation

◆ ApplyUnit()

void IGESData_BasicEditor::ApplyUnit ( const Standard_Boolean  enforce = Standard_False)

Applies unit value to convert header data : Resolution, MaxCoord, MaxLineWeight Applies unit only once after SetUnit... has been called, if <enforce> is given as True. It can be called just before writing the model to a file, i.e. when definitive values are finally known.

◆ AutoCorrect()

Standard_Boolean IGESData_BasicEditor::AutoCorrect ( const Handle< IGESData_IGESEntity > &  ent)

Performs auto-correction on an IGESEntity Returns True if something has changed, False if nothing done.

Works with the specific IGES Services : DirChecker which allows to correct data in "Directory Part" of Entities (such as required values for status, or references to be null), and the specific IGES service OwnCorrect, which is specialised for each type of entity.

◆ AutoCorrectModel()

Standard_Integer IGESData_BasicEditor::AutoCorrectModel ( )

Performs auto-correction on the whole Model Returns the count of modified entities.

◆ ComputeStatus()

void IGESData_BasicEditor::ComputeStatus ( )

Performs the re-computation of status on the whole model (Subordinate Status and Use Flag of each IGES Entity), which can have required values according the way they are referenced (see definitions of Logical use, Physical use, etc...)

◆ DraftingMax()

static Standard_Integer IGESData_BasicEditor::DraftingMax ( )
static

Returns the maximum allowed value for Drafting Flag.

◆ DraftingName()

static Standard_CString IGESData_BasicEditor::DraftingName ( const Standard_Integer  flag)
static

From the flag of drafting standard, returns name, "" if incorrect.

◆ IGESVersionMax()

static Standard_Integer IGESData_BasicEditor::IGESVersionMax ( )
static

Returns the maximum allowed value for IGESVersion Flag.

◆ IGESVersionName()

static Standard_CString IGESData_BasicEditor::IGESVersionName ( const Standard_Integer  flag)
static

From the flag of IGES version, returns name, "" if incorrect.

◆ Init() [1/2]

void IGESData_BasicEditor::Init ( const Handle< IGESData_Protocol > &  protocol)

Initialize a Basic Editor, with a new IGESModel, ready to run.

◆ Init() [2/2]

void IGESData_BasicEditor::Init ( const Handle< IGESData_IGESModel > &  model,
const Handle< IGESData_Protocol > &  protocol 
)

Initialize a Basic Editor for IGES Data, ready to run.

◆ Model()

Handle< IGESData_IGESModel > IGESData_BasicEditor::Model ( ) const

Returns the designated model.

◆ SetUnitFlag()

Standard_Boolean IGESData_BasicEditor::SetUnitFlag ( const Standard_Integer  flag)

Sets a new unit from its flag (param 14 of Global Section) Returns True if done, False if <flag> is incorrect.

◆ SetUnitName()

Standard_Boolean IGESData_BasicEditor::SetUnitName ( const Standard_CString  name)

Sets a new unit from its name (param 15 of Global Section) Returns True if done, False if <name> is incorrect Remark : if <flag> has been set to 3 (user defined), <name> is then free.

◆ SetUnitValue()

Standard_Boolean IGESData_BasicEditor::SetUnitValue ( const Standard_Real  val)

Sets a new unit from its value in meters (rounded to the closest one, max gap 1%) Returns True if done, False if <val> is too far from a suitable value.

◆ UnitFlagName()

static Standard_CString IGESData_BasicEditor::UnitFlagName ( const Standard_Integer  flag)
static

From the flag of unit, determines its name, "" if incorrect.

◆ UnitFlagValue()

static Standard_Real IGESData_BasicEditor::UnitFlagValue ( const Standard_Integer  flag)
static

From the flag of unit, determines value in MM, 0 if incorrect.

◆ UnitNameFlag()

static Standard_Integer IGESData_BasicEditor::UnitNameFlag ( const Standard_CString  name)
static

From the name of unit, computes flag number, 0 if incorrect (in this case, user defined entity remains possible)


The documentation for this class was generated from the following file: