LibrePCB Developers Documentation
|
3D model implemented with OpenCascade More...
#include <occmodel.h>
Classes | |
struct | Data |
Public Types | |
typedef std::tuple< qreal, qreal, qreal > | Color |
Public Member Functions | |
OccModel () noexcept=delete | |
OccModel (const OccModel &other)=delete | |
~OccModel () noexcept | |
void | addToAssembly (const OccModel &model, const Point3D &pos, const Angle3D &rot, const Transform &transform, const QString &name) |
void | saveAsStep (const QString &name, const FilePath &fp) const |
QMap< Color, QVector< QVector3D > > | tesselate () const |
OccModel & | operator= (const OccModel &rhs)=delete |
Static Public Member Functions | |
static bool | isAvailable () noexcept |
static QString | getOccVersionString () noexcept |
static void | setVerboseOutput (bool verbose) noexcept |
static std::unique_ptr< OccModel > | createAssembly (const QString &name) |
static std::unique_ptr< OccModel > | createBoard (const Path &outline, const QVector< Path > &holes, const PositiveLength &thickness, const QColor &color) |
static std::unique_ptr< OccModel > | loadStep (const QByteArray content) |
static QByteArray | minifyStep (const QByteArray &content) |
Private Member Functions | |
OccModel (std::unique_ptr< Data > data) | |
Static Private Member Functions | |
static void | initOpenCascade () |
static QString | cleanString (const QString &str) |
static void | throwNotAvailable () |
Private Attributes | |
std::unique_ptr< Data > | mImpl |
Static Private Attributes | |
static bool | sOutputVerbosityConfigured = false |
3D model implemented with OpenCascade
typedef std::tuple<qreal, qreal, qreal> Color |
|
deletenoexcept |
|
noexcept |
void addToAssembly | ( | const OccModel & | model, |
const Point3D & | pos, | ||
const Angle3D & | rot, | ||
const Transform & | transform, | ||
const QString & | name | ||
) |
void saveAsStep | ( | const QString & | name, |
const FilePath & | fp | ||
) | const |
QMap< OccModel::Color, QVector< QVector3D > > tesselate | ( | ) | const |
|
staticnoexcept |
|
staticnoexcept |
|
staticnoexcept |
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |