mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
59
samples/qt/Interface/src/Translate.h
Executable file
59
samples/qt/Interface/src/Translate.h
Executable file
@@ -0,0 +1,59 @@
|
||||
#ifndef TRANSLATE_H
|
||||
#define TRANSLATE_H
|
||||
#include "IESample.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
#include <TopTools_HSequenceOfShape.hxx>
|
||||
|
||||
class TranslateDlg;
|
||||
|
||||
class IESAMPLE_EXPORT Translate: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum { FormatBREP, FormatIGES, FormatSTEP, FormatCSFDB, FormatVRML, FormatSTL };
|
||||
|
||||
Translate( QObject* );
|
||||
~Translate();
|
||||
|
||||
bool importModel( const int, const Handle(AIS_InteractiveContext)& );
|
||||
bool exportModel( const int, const Handle(AIS_InteractiveContext)& );
|
||||
|
||||
QString info() const;
|
||||
|
||||
protected:
|
||||
virtual Handle(TopTools_HSequenceOfShape) importModel( const int, const QString& );
|
||||
virtual bool exportModel( const int, const QString&,
|
||||
const Handle(TopTools_HSequenceOfShape)& );
|
||||
virtual bool displayShSequence(const Handle(AIS_InteractiveContext)&,
|
||||
const Handle(TopTools_HSequenceOfShape)& );
|
||||
|
||||
private:
|
||||
QString selectFileName( const int, const bool );
|
||||
TranslateDlg* getDialog( const int, const bool );
|
||||
Handle(TopTools_HSequenceOfShape) getShapes( const Handle(AIS_InteractiveContext)& );
|
||||
|
||||
Handle(TopTools_HSequenceOfShape) importBREP( const QString& );
|
||||
Handle(TopTools_HSequenceOfShape) importIGES( const QString& );
|
||||
Handle(TopTools_HSequenceOfShape) importSTEP( const QString& );
|
||||
Handle(TopTools_HSequenceOfShape) importCSFDB( const QString& );
|
||||
|
||||
bool exportBREP( const QString&, const Handle(TopTools_HSequenceOfShape)& );
|
||||
bool exportIGES( const QString&, const Handle(TopTools_HSequenceOfShape)& );
|
||||
bool exportSTEP( const QString&, const Handle(TopTools_HSequenceOfShape)& );
|
||||
bool exportCSFDB( const QString&, const Handle(TopTools_HSequenceOfShape)& );
|
||||
bool exportSTL( const QString&, const Handle(TopTools_HSequenceOfShape)& );
|
||||
bool exportVRML( const QString&, const Handle(TopTools_HSequenceOfShape)& );
|
||||
|
||||
bool checkFacetedBrep( const Handle(TopTools_HSequenceOfShape)& );
|
||||
|
||||
protected:
|
||||
TranslateDlg* myDlg;
|
||||
QString myInfo;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user