Files
Extern/C3d/Include/cr_stamp_remove_solid.h
T
Dario Sassi e8f0fa2d27 Extern :
- C3d aggiornamento delle librerie.
2020-09-14 16:42:31 +00:00

111 lines
7.0 KiB
C++

////////////////////////////////////////////////////////////////////////////////
/**
\file
\brief \ru Построение оболочки тела с без указанной операции.
\en Construction of a shell without the specified operation. \~
*/
////////////////////////////////////////////////////////////////////////////////
#ifndef __CR_STAMP_REMOVE_SOLID_H
#define __CR_STAMP_REMOVE_SOLID_H
#include <creator.h>
//#include <sheet_metal_param.h>
//#include <surf_plane.h>
//------------------------------------------------------------------------------
/** \brief \ru Строитель оболочки из листового материала с удалёнными элементами указанной операции.
\en The constructor of a shell from sheet material without elements of the specified operation. \~
\details \ru Строитель оболочки из листового материала с удалёнными элементами указанной операции.
Удаляет грани с указанным главным именем операции и затягивает образовавшуюся дыру расширением соседних граней. \n
\en The constructor of a shell from sheet material without elements of the specified operation.
It removes faces with specified main name and then mends the hole by stretching the neighbour faces. \n \~
\ingroup Model_Creators
*/
// ---
class MATH_CLASS MbRemoveOperationSolid : public MbCreator {
SimpleName removeName;
public :
MbRemoveOperationSolid( const SimpleName removeName,
const MbSNameMaker & names );
private:
MbRemoveOperationSolid( const MbRemoveOperationSolid &, MbRegDuplicate * iReg );
// \ru Объявление конструктора копирования без реализации, чтобы не было копирования по умолчанию. \en Declaration without implementation of the copy-constructor to prevent copying by default.
MbRemoveOperationSolid( const MbRemoveOperationSolid & );
public:
virtual ~MbRemoveOperationSolid();
// \ru Общие функции математического объекта \en Common functions of the mathematical object
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
virtual MbCreator & Duplicate( MbRegDuplicate * = NULL ) const; // \ru Сделать копию \en Create a copy
virtual bool IsSame ( const MbCreator & other, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
virtual bool IsSimilar( const MbCreator & item ) const; // \ru Являются ли объекты подобными? \en Determine whether an object is similar?
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
virtual void Transform( const MbMatrix3D &, MbRegTransform * = NULL ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
virtual void Move ( const MbVector3D &, MbRegTransform * = NULL ); // \ru Сдвиг \en Translation
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = NULL ); // \ru Повернуть вокруг оси \en Rotate about an axis
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
virtual void SetProperties( const MbProperties & properties ); // \ru Записать свойства объекта \en Set properties of the object
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
// \ru Общие функции твердого тела \en Common functions of solid solid
virtual bool CreateShell( MbFaceShell *& shell,
MbeCopyMode sameShell,
RPArray<MbSpaceItem> * items = NULL ); // \ru Построение \en Construction
private:
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
MbRemoveOperationSolid & operator = ( const MbRemoveOperationSolid & ); // \ru Не реализовано \en Not implemented
DECLARE_PERSISTENT_CLASS_NEW_DEL( MbRemoveOperationSolid )
};
IMPL_PERSISTENT_OPS( MbRemoveOperationSolid )
//------------------------------------------------------------------------------
/** \brief \ru Построить оболочку без указанной операции.
\en Constructs a shell without the specified operation. \~
\details \ru Построить оболочку без указанной операции.
Удаляет грани с указанным главным именем операции и затягивает образовавшуюся дыру расширением соседних граней. \n
\en Constructs a shell without the specified operation.
It removes faces with specified main name and then mends the hole by stretching the neighbour faces. \n \~
\param[in] initialShell - \ru Исходная оболочка.
\en The initial shell. \~
\param[in] sameShell - \ru Режим копирования исходной оболочки.
\en Mode of copying the initial shell. \~
\param[in] removeName - \ru Главное имя операции которую надо удалить.
\en The main name of the operation to be removed. \~
\param[in] names - \ru Именователь граней.
\en An object for naming faces. \~
\param[out] res - \ru Код результата операции.
\en Operation result code. \~
\param[out] shell - \ru Построенная оболочка.
\en The resultant shell. \~
\result \ru Возвращает строитель оболочки.
\en Returns the shell constructor. \~
\ingroup Model_Creators
*/
// ---
MATH_FUNC (MbCreator *) CreateRemovedOperationResult( MbFaceShell & initialShell,
const MbeCopyMode sameShell,
const SimpleName removeName,
const MbSNameMaker & names,
MbResultType & res,
MbFaceShell *& shell );
#endif // __CR_STAMP_REMOVE_SOLID_H