Files
Extern/C3d/Include/cr_unwrap_curve.h
T
SaraP 52f91a1dbb Extern :
- C3d aggiornamento librerie ( 118037).
2025-06-05 08:23:20 +02:00

68 lines
3.8 KiB
C++

////////////////////////////////////////////////////////////////////////////////
/**
\file
\brief \ru Строитель развёрнутой кривой.
\en Unwrapped curve creator.
*/
////////////////////////////////////////////////////////////////////////////////
#ifndef __CR_UNWRAP_CURVE_H
#define __CR_UNWRAP_CURVE_H
#include <creator.h>
#include <op_curve_parameter.h>
//------------------------------------------------------------------------------
/** \brief \ru Строитель развёрнутой кривой.
\en Unwrapped curve creator. \~
\details \ru Строитель развёрнутой кривой.\n
\en Unwrapped curve creator.\n \~
\ingroup Model_Creators
*/
// ---
class MATH_CLASS MbUnwrapCurveCreator : public MbCreator {
private:
MbCurvesWrappingParams _params; ///< \ru Параметры разворачивания. \en Parameters of the unwrapping.
protected:
/// \ru Конструктор копирования. \en Copy-constructor.
MbUnwrapCurveCreator( const MbUnwrapCurveCreator & other, MbRegDuplicate * iReg );
public:
/// \ru Конструктор по параметрам. \en Constructor by parameters.
MbUnwrapCurveCreator( const MbCurvesWrappingParams & params );
public:
virtual ~MbUnwrapCurveCreator() {};
// \ru Общие функции строителя. \en The common functions of the creator.
MbeCreatorType IsA() const override; // \ru Тип элемента \en A type of element
MbCreator & Duplicate( MbRegDuplicate * iReg = nullptr ) const override; // \ru Сделать копию \en Create a copy
bool IsSame ( const MbCreator &, double accuracy ) const override; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
bool IsSimilar( const MbCreator & ) const override; // \ru Являются ли объекты подобными \en Whether the objects are similar
bool SetEqual ( const MbCreator & ) override; // \ru Сделать равным \en Make equal
void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ) override; // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
void Move ( const MbVector3D &, MbRegTransform * = nullptr ) override; // \ru Сдвиг \en Translation
void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ) override; // \ru Повернуть вокруг оси \en Rotate about an axis
MbePrompt GetPropertyName() override; // \ru Дать имя свойства объекта \en Get the object property name
void GetProperties ( MbProperties & ) override; // \ru Выдать свойства объекта \en Get properties of the object
void SetProperties ( const MbProperties & ) override; // \ru Записать свойства объекта \en Set properties of the object
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = nullptr ) override;
const MbPrecision & GetPrecision() const override { return _params; } // \ru Выдать точность построения. \en Get the precision of object construction.
private:
MbUnwrapCurveCreator(); // \ru Не реализовано \en Not implemented
OBVIOUS_PRIVATE_COPY( MbUnwrapCurveCreator )
DECLARE_PERSISTENT_CLASS_NEW_DEL( MbUnwrapCurveCreator )
}; // MbUnwrapCurveCreator
IMPL_PERSISTENT_OPS( MbUnwrapCurveCreator )
#endif // __CR_UNWRAP_CURVE_H