Base: refactor InventorBuilder

This commit is contained in:
wmayer
2022-12-02 19:06:27 +01:00
parent 663a9e665b
commit 4dc1fc8f01
3 changed files with 8 additions and 8 deletions

View File

@@ -480,9 +480,9 @@ void MaterialBindingItem::write(InventorOutput& out) const
// -----------------------------------------------------------------------------
DrawStyleItem::DrawStyleItem(DrawStyle style) : style(style)
void DrawStyleItem::setValue(DrawStyle value)
{
style = value;
}
void DrawStyleItem::write(InventorOutput& out) const
@@ -511,9 +511,9 @@ void ShapeHintsItem::write(InventorOutput& out) const
// -----------------------------------------------------------------------------
PolygonOffsetItem::PolygonOffsetItem(PolygonOffset offset) : offset(offset)
void PolygonOffsetItem::setValue(PolygonOffset value)
{
offset = value;
}
void PolygonOffsetItem::write(InventorOutput& out) const

View File

@@ -325,7 +325,7 @@ private:
class BaseExport DrawStyleItem : public NodeItem
{
public:
explicit DrawStyleItem(DrawStyle style);
void setValue(DrawStyle value);
void write(InventorOutput& out) const override;
private:
@@ -351,7 +351,7 @@ private:
class BaseExport PolygonOffsetItem : public NodeItem
{
public:
explicit PolygonOffsetItem(PolygonOffset offset);
void setValue(PolygonOffset value);
void write(InventorOutput& out) const override;
private:

View File

@@ -220,7 +220,7 @@ R"(DrawStyle {
{
QFETCH(QString, result);
Base::DrawStyleItem item{Base::DrawStyle{}};
Base::DrawStyleItem item;
builder.addNode(item);
QString string = QString::fromStdString(output.str());
@@ -267,7 +267,7 @@ R"(PolygonOffset {
{
QFETCH(QString, result);
Base::PolygonOffsetItem item{Base::PolygonOffset{}};
Base::PolygonOffsetItem item;
builder.addNode(item);
QString string = QString::fromStdString(output.str());