Open CASCADE Technology
7.7.0
|
Base class to work with CAD transfer properties. Stores the necessary settings for a single Provider type. Configures and creates special provider to transfer CAD files. More...
#include <DE_ConfigurationNode.hxx>
Data Structures | |
struct | DE_SectionGlobal |
< Internal parameters for transfer process More... | |
Public Member Functions | |
DE_ConfigurationNode () | |
Initializes all field by default. More... | |
DE_ConfigurationNode (const Handle< DE_ConfigurationNode > &theConfigurationNode) | |
Copies values of all fields. More... | |
virtual bool | Load (const TCollection_AsciiString &theResourcePath="") |
Updates values according the resource file. More... | |
virtual bool | Load (const Handle< DE_ConfigurationContext > &theResource)=0 |
Updates values according the resource. More... | |
bool | Save (const TCollection_AsciiString &theResourcePath) const |
Writes configuration to the resource file. More... | |
virtual TCollection_AsciiString | Save () const =0 |
Writes configuration to the string. More... | |
virtual Handle< DE_Provider > | BuildProvider ()=0 |
Creates new provider for the own format. More... | |
virtual Handle< DE_ConfigurationNode > | Copy () const =0 |
Copies values of all fields. More... | |
virtual bool | UpdateLoad () |
Update loading status. Checking for the license. More... | |
virtual bool | IsImportSupported () const |
Checks the import supporting. More... | |
virtual bool | IsExportSupported () const |
Checks the export supporting. More... | |
virtual TCollection_AsciiString | GetFormat () const =0 |
Gets CAD format name of associated provider. More... | |
virtual TCollection_AsciiString | GetVendor () const =0 |
Gets provider's vendor name of associated provider. More... | |
virtual TColStd_ListOfAsciiString | GetExtensions () const =0 |
Gets list of supported file extensions. More... | |
virtual bool | CheckExtension (const TCollection_AsciiString &theExtension) const |
Checks the file extension to verify a format. More... | |
virtual bool | CheckContent (const Handle< NCollection_Buffer > &theBuffer) const |
Checks the file content to verify a format. More... | |
Standard_Boolean | IsEnabled () const |
Gets the provider loading status. More... | |
void | SetEnabled (const Standard_Boolean theIsLoaded) |
Sets the provider loading status. More... | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. More... | |
virtual | ~Standard_Transient () |
Destructor must be virtual. More... | |
virtual void | Delete () const |
Memory deallocator for transient classes. More... | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. More... | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. More... | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. More... | |
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. More... | |
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. More... | |
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. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. More... | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. More... | |
Data Fields | |
struct DE_ConfigurationNode::DE_SectionGlobal | GlobalParameters |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. More... | |
Static Public Member Functions inherited from Standard_Transient | |
static const char * | get_type_name () |
Returns a type descriptor about this object. More... | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. More... | |
Base class to work with CAD transfer properties. Stores the necessary settings for a single Provider type. Configures and creates special provider to transfer CAD files.
Nodes are grouped by Vendor's name and Format type. The Vendor name is not defined by default. The Format type is not defined by default. The supported CAD extensions are not defined by default. The import process is not supported. The export process is not supported.
The algorithm for standalone transfer operation: 1) Create new empty Node object 2) Configure the current Node 2.1) Use the external resource file to configure (::Load) 2.2) Change the internal parameters directly: 2.2.1) Change field values of "GlobalParameters" 2.2.2) Change field values of "InternalParameters" 3) Create one-time transfer provider (::BuildProvider) 4) Initiate the transfer process: 4.1) Import (if "::IsImportSupported: returns TRUE) 4.1.1) Validate the support of input format (::CheckContent or ::CheckExtension) 4.1.2) Use created provider's "::Read" method 4.2) Export (if "::IsExportSupported: returns TRUE) 4.2.1) Use created provider's "::Write" method 5) Check the provider's output
DE_ConfigurationNode::DE_ConfigurationNode | ( | ) |
Initializes all field by default.
DE_ConfigurationNode::DE_ConfigurationNode | ( | const Handle< DE_ConfigurationNode > & | theConfigurationNode | ) |
Copies values of all fields.
[in] | theConfigurationNode | object to copy |
|
pure virtual |
Creates new provider for the own format.
Implemented in STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWPly_ConfigurationNode, DEXCAFCascade_ConfigurationNode, RWGltf_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWStl_ConfigurationNode, and RWObj_ConfigurationNode.
|
virtual |
Checks the file content to verify a format.
[in] | theBuffer | read stream buffer to check content |
Reimplemented in STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWPly_ConfigurationNode, DEXCAFCascade_ConfigurationNode, IGESCAFControl_ConfigurationNode, and RWStl_ConfigurationNode.
|
virtual |
Checks the file extension to verify a format.
[in] | theExtension | input file extension |
|
pure virtual |
Copies values of all fields.
Implemented in RWPly_ConfigurationNode, STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWGltf_ConfigurationNode, DEXCAFCascade_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWObj_ConfigurationNode, and RWStl_ConfigurationNode.
|
pure virtual |
Gets list of supported file extensions.
Implemented in STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWPly_ConfigurationNode, DEXCAFCascade_ConfigurationNode, RWGltf_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWStl_ConfigurationNode, and RWObj_ConfigurationNode.
|
pure virtual |
Gets CAD format name of associated provider.
Implemented in STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWPly_ConfigurationNode, DEXCAFCascade_ConfigurationNode, RWGltf_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWStl_ConfigurationNode, and RWObj_ConfigurationNode.
|
pure virtual |
Gets provider's vendor name of associated provider.
Implemented in STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWPly_ConfigurationNode, DEXCAFCascade_ConfigurationNode, RWGltf_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWStl_ConfigurationNode, and RWObj_ConfigurationNode.
|
inline |
Gets the provider loading status.
|
virtual |
Checks the export supporting.
Reimplemented in STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWPly_ConfigurationNode, DEXCAFCascade_ConfigurationNode, RWGltf_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWStl_ConfigurationNode, and RWObj_ConfigurationNode.
|
virtual |
Checks the import supporting.
Reimplemented in STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWPly_ConfigurationNode, DEXCAFCascade_ConfigurationNode, RWGltf_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWStl_ConfigurationNode, and RWObj_ConfigurationNode.
|
virtual |
Updates values according the resource file.
[in] | theResourcePath | file path to resource |
|
pure virtual |
Updates values according the resource.
[in] | theResource | input resource to use |
Implemented in RWPly_ConfigurationNode, STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWGltf_ConfigurationNode, DEXCAFCascade_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWObj_ConfigurationNode, and RWStl_ConfigurationNode.
bool DE_ConfigurationNode::Save | ( | const TCollection_AsciiString & | theResourcePath | ) | const |
Writes configuration to the resource file.
[in] | theResourcePath | file path to resource |
|
pure virtual |
Writes configuration to the string.
Implemented in RWPly_ConfigurationNode, STEPCAFControl_ConfigurationNode, DEBRepCascade_ConfigurationNode, RWGltf_ConfigurationNode, DEXCAFCascade_ConfigurationNode, IGESCAFControl_ConfigurationNode, Vrml_ConfigurationNode, RWObj_ConfigurationNode, and RWStl_ConfigurationNode.
|
inline |
Sets the provider loading status.
[in] | theIsLoaded | input load status |
|
virtual |
Update loading status. Checking for the license.
struct DE_ConfigurationNode::DE_SectionGlobal DE_ConfigurationNode::GlobalParameters |