Files
Extern/C3d/Include/attr_stamprib_attribute.h
SaraP f29512578a Extern :
- C3d aggiornamento delle librerie ( 117832).
2022-07-21 14:53:00 +02:00

94 lines
7.0 KiB
C++

////////////////////////////////////////////////////////////////////////////////
/**
\file
\brief \ru Атрибут ребра жесткости листового тела.
\en Attribute of reinforsed rib of sheet solid. \~
*/
////////////////////////////////////////////////////////////////////////////////
#ifndef __ATTR_STAMPRIB_ATTRIBUTE_H
#define __ATTR_STAMPRIB_ATTRIBUTE_H
#include <attr_geometric_attribute.h>
#include <op_swept_parameter.h>
//------------------------------------------------------------------------------
/** \brief \ru Атрибут ребра жесткости листового тела.
\en Attribute of reinforsed rib of sheet solid. \~
\details \ru Атрибут ребра жесткости листового тела. Двумерный контур ребра
жесткости и локальная система координат, в плоскости XY которой
расположен двумерный контур содержатся в MbGeomAttribute.
\en Attribute of reinforsed rib of sheet solid. Two-dimensional contour
of a rib and a local coordinate system the two-dimensional contour
is located in XY plane of are stored in MbGeomAttribute \n \~
\ingroup Model_Attributes
*/
class MATH_CLASS MbStampRibAttribute : public MbGeomAttribute
{
protected :
size_t index; ///< \ru Индекс сегмента в контуре, от которого будет установлено направление уклона. \en Index of a segment in the contour at which the inclination direction will be set.
SheetRibValues pars; ///< \ru Параметры операции. \en The operation parameters.
SPtr<MbSNameMaker> names; ///< \ru Именователь операции. \en An object defining names generation in the operation.
MbVector3D bendNorm; ///< \ru Нормаль поверхности сгиба (только для внутреннего использования). \en A normal to bend surface (for internal usage only).
MbCartPoint3D bendPoint; ///< \ru Точка на оси сгиба сгиба (только для внутреннего использования). \en A point on bend axis (for internal usage only).
private:
// \ru Конструктор копирования. \en Copy constructor.
MbStampRibAttribute( const MbStampRibAttribute & init, MbRegDuplicate * iReg );
public :
/// \ru Конструктор. \en Constructor.
MbStampRibAttribute( const MbSpaceItem & item, MbeCreatorType t, size_t index, const SheetRibValues & pars, const MbSNameMaker & n, bool keepItem);
/// \ru Конструктор. \en Constructor.
MbStampRibAttribute( const MbSpaceItem & item, MbeCreatorType t, size_t index, const SheetRibValues & pars, const MbSNameMaker & n, bool keepItem, const c3d::string_t & itemPrompt );
/// \ru Деструктор. \en Destructor.
virtual ~MbStampRibAttribute();
public:
// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
MbeAttributeType AttributeType() const override;
// \ru Сделать копию элемента. \en Create a copy of the element.
MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const override;
// \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
bool IsSame( const MbAttribute &, double accuracy ) const override;
// \ru Инициализировать данные по присланным. \en Initialize data.
bool Init( const MbAttribute & ) override;
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr ) override;
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr ) override;
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr ) override;
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr ) override;
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other ) override;
void GetCharValue( TCHAR * v ) const override; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
void GetProperties( MbProperties & ) override; // \ru Выдать свойства объекта. \en Get properties of the object.
size_t SetProperties( const MbProperties & ) override; // \ru Установить свойства объекта. \en Set properties of object.
MbePrompt GetPropertyName() override; // \ru Выдать заголовок свойства объекта. \en Get a name of object property.
/// \ru Дать индекс сегмента в контуре. \en Get index of a segment in the contour.
const size_t & GetIndex() const { return index; }
/// \ru Дать параметры операции. \en Get operation parameters.
const SheetRibValues & GetRibValues() const { return pars; }
/// \ru Дать именователь операции. \en Get an object defining a name of the operation.
const MbSNameMaker & GetNameMaker() const { return *names; }
/// \ru Дать нормаль к поверхности сгиба. \en Get normal to bend surface.
const MbVector3D & GetBendNormal() const { return bendNorm; }
/// \ru Установить нормаль к поверхности сгиба. \en Set normal to bend surface.
void SetBendNormal( const MbVector3D & n ) { bendNorm = n; }
/// \ru Дать точку на оси сгиба. \en Get point on bend axis.
const MbCartPoint3D & GetBendPoint() const { return bendPoint; }
/// \ru Установить точку на оси сгиба. \en Set point on bend axis.
void SetBendPoint( const MbCartPoint3D & p ) { bendPoint = p; }
DECLARE_PERSISTENT_CLASS( MbStampRibAttribute )
OBVIOUS_PRIVATE_COPY( MbStampRibAttribute )
};
IMPL_PERSISTENT_OPS( MbStampRibAttribute )
#endif // __ATTR_STAMPRIB_ATTRIBUTE_H