Base: refactor InventorBuilder
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user