src/linetypes/object.h

changeset 158
5bd755eaa5a8
parent 150
b6cbba6e29a1
child 177
f69d53c053df
equal deleted inserted replaced
157:869fe95c4e5e 158:5bd755eaa5a8
77 virtual const glm::vec3& getPoint(int index) const; 77 virtual const glm::vec3& getPoint(int index) const;
78 virtual QDataStream& serialize(QDataStream& stream) const; 78 virtual QDataStream& serialize(QDataStream& stream) const;
79 virtual QDataStream& deserialize(QDataStream& stream); 79 virtual QDataStream& deserialize(QDataStream& stream);
80 virtual Type typeIdentifier() const = 0; 80 virtual Type typeIdentifier() const = 0;
81 virtual QString toLDrawCode() const = 0; 81 virtual QString toLDrawCode() const = 0;
82 virtual QString iconName() const;
82 83
83 protected: 84 protected:
84 template<Property property, typename Function> 85 template<Property property, typename Function>
85 void handle(SetPropertyResult* result, const PropertyKeyValue& pair, Function function); 86 void handle(SetPropertyResult* result, const PropertyKeyValue& pair, Function function);
86 virtual void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair); 87 virtual void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair);

mercurial