33 void setPrimitiveType(PrimitiveModel::Type newType); |
33 void setPrimitiveType(PrimitiveModel::Type newType); |
34 int segments() const; |
34 int segments() const; |
35 void setSegments(int newSegments); |
35 void setSegments(int newSegments); |
36 int divisions() const; |
36 int divisions() const; |
37 void setDivisions(int newDivisions); |
37 void setDivisions(int newDivisions); |
|
38 const CircularSection& section() const; |
|
39 void setSection(const CircularSection& newSection); |
38 int triangleCount(DocumentManager*) const override; |
40 int triangleCount(DocumentManager*) const override; |
39 QString iconName() const override; |
41 QString iconName() const override; |
40 void serialize(class Serializer& serializer) override; |
42 void serialize(class Serializer& serializer) override; |
41 |
43 |
42 private: |
44 private: |
43 QString buildFilename() const; |
45 QString buildFilename() const; |
44 void buildPrimitiveBody(Model& model, bool newParameter = false) const; |
46 void buildPrimitiveBody(Model& model, bool newParameter = false) const; |
45 QString stem() const; |
47 QString stem() const; |
46 |
48 |
47 PrimitiveModel::Type m_type = PrimitiveModel::Circle; |
49 PrimitiveModel::Type m_type = PrimitiveModel::Circle; |
48 int m_segments = MediumResolution; |
50 CircularSection m_section; |
49 int m_divisions = MediumResolution; |
|
50 }; |
51 }; |