comparison base/Layer.h @ 7:49a95b174050

* Add more icons and rationalise menu options to the usual set (on the File menu) * Fixes to import/export of dense 3-D data sets and imported models
author Chris Cannam
date Thu, 19 Jan 2006 17:59:11 +0000
parents 44bbf5793d84
children 214054a0d8b8
comparison
equal deleted inserted replaced
6:44bbf5793d84 7:49a95b174050
87 */ 87 */
88 virtual int getCompletion() const { return 100; } 88 virtual int getCompletion() const { return 100; }
89 89
90 virtual void setObjectName(const QString &name); 90 virtual void setObjectName(const QString &name);
91 91
92 /**
93 * Convert the layer's data (though not those of the model it
94 * refers to) into an XML string for file output. This class
95 * implements the basic name/type/model-id output; subclasses will
96 * typically call this superclass implementation with extra
97 * attributes describing their particular properties.
98 */
92 virtual QString toXmlString(QString indent = "", 99 virtual QString toXmlString(QString indent = "",
93 QString extraAttributes = "") const; 100 QString extraAttributes = "") const;
94 101
102 /**
103 * Set the particular properties of a layer (those specific to the
104 * subclass) from a set of XML attributes. This is the effective
105 * inverse of the toXmlString method.
106 */
95 virtual void setProperties(const QXmlAttributes &) = 0; 107 virtual void setProperties(const QXmlAttributes &) = 0;
96 108
97 signals: 109 signals:
98 void modelChanged(); 110 void modelChanged();
99 void modelCompletionChanged(); 111 void modelCompletionChanged();