ACF $AcfVersion:0$
CDataNodePolylineBase.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <i2d/CPolyline.h>
7
8
9namespace i2d
10{
11
12
17{
18public:
20
24 virtual const iser::ISerializable& GetNodeData(int nodeIndex) const = 0;
25
29 virtual iser::ISerializable& GetNodeDataRef(int nodeIndex) = 0;
30
31 // reimplemented (iser::ISerializable)
32 virtual bool Serialize(iser::IArchive& archive) override;
33};
34
35
36} // namespace i2d
37
38
39
Base class for polylines with additional data stored in each node.
virtual iser::ISerializable & GetNodeDataRef(int nodeIndex)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
virtual const iser::ISerializable & GetNodeData(int nodeIndex) const =0
Get user data from the given node.
2D-object representing a polyline.
Definition CPolyline.h:19
Represents an input/output persistence archive for object serialization.
Definition IArchive.h:164
Common class for all classes which objects can be archived or restored from archive.
Contains the 2D objects.
Definition CAffine2d.h:11