You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classCPath {
public:CPath(); // Default width 1px, default color BLACK, smoth=falseCPath(unsignedint width_px, CColor color, bool smooth) noexcept;
voidsetColor(const CColor& color) noexcept; // цвет
CColor getColor() constnoexcept;
voidsetWidth(unsignedint width_px) noexcept; // толщина в пикселяхunsignedintgetWidth() constnoexcept;
voidsetSmooth(bool flag) noexcept; // сглаживание, атрибут для обработки в дальнейшемboolisSmooth() constnoexcept;
// Добавляет следующую точку к линии// Если линия имеет одну из координат NaN - разрыв в линии, распознается методом toSeparatedPaths()voidappendPoint(const CPoint2D& point) noexcept;
const std::vector<CPoint2D>& getPoints() constnoexcept;
// Разбивает линию на несколько линий, разрыв определяется точкой с NaN-координатой или циклом
std::vector<CPath> toSeparatedPaths();
// Проверяет, зациклена ли кривая. Если да - отмечает, что есть цикл, чтоб не дублировать точку начала/конца при записи в файл voidupdateCycled() noexcept;
boolisCycled() constnoexcept;
};
The text was updated successfully, but these errors were encountered:
Почекать идеи интерполяции кривой можно:
The text was updated successfully, but these errors were encountered: