Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-mesh-patch.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_SP_MESHPATCH_H
3#define SEEN_SP_MESHPATCH_H
4
8/*
9 * Authors: Tavmjong Bah
10 *
11 * Copyright (C) 2012 Tavmjong Bah
12 *
13 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
14 */
15
16#include <glibmm/ustring.h>
17#include "sp-object.h"
18
20class SPMeshpatch final : public SPObject {
21public:
23 ~SPMeshpatch() override;
24 int tag() const override { return tag_of<decltype(*this)>; }
25
28 Glib::ustring * tensor_string;
29 //SVGLength tx[4]; // Tensor points
30 //SVGLength ty[4]; // Tensor points
31
32protected:
33 void build(SPDocument* doc, Inkscape::XML::Node* repr) override;
34 void set(SPAttr key, const char* value) override;
35 void modified(unsigned int flags) override;
36 Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags) override;
37};
38
39#endif /* !SEEN_SP_MESHPATCH_H */
40
41/*
42 Local Variables:
43 mode:c++
44 c-file-style:"stroustrup"
45 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
46 indent-tabs-mode:nil
47 fill-column:99
48 End:
49*/
50// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
SPAttr
Definition attributes.h:27
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Definition cast.h:26
Interface for refcounted XML nodes.
Definition node.h:80
Typed SVG document implementation.
Definition document.h:101
Gradient Meshpatch.
int tag() const override
void modified(unsigned int flags) override
modified
SPMeshpatch * getNextMeshpatch()
SPMeshpatch * getPrevMeshpatch()
Inkscape::XML::Node * write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags) override
Virtual set: set attribute to value.
void build(SPDocument *doc, Inkscape::XML::Node *repr) override
Glib::ustring * tensor_string
~SPMeshpatch() override
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160
Inkscape::XML::Node * repr
Definition sp-object.h:193
static cairo_user_data_key_t key
Interface for XML documents.
Definition document.h:43