Extern :
- C3d aggiornamento delle librerie ( 114902).
This commit is contained in:
@@ -77,7 +77,7 @@ MATH_FUNC (bool) IsMultiShell( const MbFaceShell * shell, bool checkNesting = tr
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, RPArray<MbFaceShell> & parts, bool sort, c3d::IndicesVector * partIndices = c3d_null );
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, RPArray<MbFaceShell> & parts, bool sort, c3d::IndicesVector * partIndices = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -102,7 +102,7 @@ MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, RPArray<MbFaceShell> & par
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsVector & parts, bool sort, c3d::IndicesVector * partIndices = c3d_null );
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsVector & parts, bool sort, c3d::IndicesVector * partIndices = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -127,7 +127,7 @@ MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsVector & parts,
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsSPtrVector & parts, bool sort, c3d::IndicesVector * partIndices = c3d_null );
|
||||
MATH_FUNC (size_t) DetachShells( MbFaceShell & shell, c3d::ShellsSPtrVector & parts, bool sort, c3d::IndicesVector * partIndices = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -153,7 +153,7 @@ size_t CreateShells( const MbFaceShell & shell, ShellsVector & parts, bool sort
|
||||
{
|
||||
c3d::ShellSPtr outer( new MbFaceShell( shell ) ); // new shell on the same faces (новая оболочка с теми же гранями)
|
||||
|
||||
c3d::IndicesVector * partIndices = c3d_null;
|
||||
c3d::IndicesVector * partIndices = nullptr;
|
||||
|
||||
if ( ::DetachShells( *outer, parts, sort, partIndices ) > 0 ) {
|
||||
parts.push_back( outer );
|
||||
@@ -1350,13 +1350,13 @@ c3d::SolidSPtr GetTransformedSolid( c3d::SolidSPtr & solid, MbeCopyMode & copyMo
|
||||
{
|
||||
c3d::SolidSPtr resSolid( solid );
|
||||
|
||||
if ( (resSolid != c3d_null) && !matr.IsSingle() ) {
|
||||
if ( (resSolid != nullptr) && !matr.IsSingle() ) {
|
||||
MbSNameMaker n( transformedMainName, MbSNameMaker::i_SideNone, 0 );
|
||||
|
||||
MbSolid * resSolidPtr = c3d_null;
|
||||
MbSolid * resSolidPtr = nullptr;
|
||||
TransformValues tv( matr );
|
||||
::TransformedSolid( *solid, cm_Copy, tv, n, resSolidPtr );
|
||||
if ( resSolidPtr != c3d_null ) {
|
||||
if ( resSolidPtr != nullptr ) {
|
||||
resSolid = resSolidPtr;
|
||||
copyMode = cm_Same;
|
||||
}
|
||||
@@ -1380,10 +1380,10 @@ c3d::SolidSPtr GetTransformedSolid( c3d::SolidSPtr & solid, MbeCopyMode & copyMo
|
||||
*/
|
||||
// ---
|
||||
template <class Item>
|
||||
SPtr<Item> GetTransformedItem( SPtr<Item> & item, const MbMatrix3D & matr, MbRegDuplicate * iDupReg = c3d_null, MbRegTransform * iTransReg = c3d_null )
|
||||
SPtr<Item> GetTransformedItem( SPtr<Item> & item, const MbMatrix3D & matr, MbRegDuplicate * iDupReg = nullptr, MbRegTransform * iTransReg = nullptr )
|
||||
{
|
||||
SPtr<Item> resItem( item );
|
||||
if ( (resItem != c3d_null) && !matr.IsSingle() ) {
|
||||
if ( (resItem != nullptr) && !matr.IsSingle() ) {
|
||||
resItem = static_cast<Item *>( &item->Duplicate( iDupReg ) );
|
||||
resItem->Transform( matr, iTransReg );
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ typedef void( *SurfaceFunction )( const MbSurface & surf, // Поверхно
|
||||
MATH_FUNC( void ) MinSurfaceCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = c3d_null );
|
||||
MbVector * der = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -81,7 +81,7 @@ MATH_FUNC( void ) MinSurfaceCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) MaxSurfaceCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = c3d_null );
|
||||
MbVector * der = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -102,7 +102,7 @@ MATH_FUNC( void ) MaxSurfaceCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) GaussCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = c3d_null );
|
||||
MbVector * der = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -123,7 +123,7 @@ MATH_FUNC( void ) GaussCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) MeanCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = c3d_null );
|
||||
MbVector * der = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -144,7 +144,7 @@ MATH_FUNC( void ) MeanCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) UNormalCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = c3d_null );
|
||||
MbVector * der = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -165,7 +165,7 @@ MATH_FUNC( void ) UNormalCurvature( const MbSurface & surf,
|
||||
MATH_FUNC( void ) VNormalCurvature( const MbSurface & surf,
|
||||
const MbCartPoint & pnt,
|
||||
double & func,
|
||||
MbVector * der = c3d_null );
|
||||
MbVector * der = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -322,7 +322,7 @@ MATH_FUNC( void ) FacesMinMaxCurvature( const RPArray<MbFace> & faces,
|
||||
*/
|
||||
MATH_FUNC( double ) CurveOrientedCurvature( const MbCurve3D & curve,
|
||||
double & param,
|
||||
const MbVector3D * planeNorm = c3d_null );
|
||||
const MbVector3D * planeNorm = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -359,10 +359,10 @@ MATH_FUNC( void ) CurveMinMaxCurvature( const MbCurve3D & curve,
|
||||
double & maxParam,
|
||||
double & minCurv,
|
||||
double & minParam,
|
||||
c3d::DoubleVector * bendPoints = c3d_null,
|
||||
c3d::DoubleVector * maxPoints = c3d_null,
|
||||
c3d::DoubleVector * minPoints = c3d_null,
|
||||
c3d::DoublePairsVector * rapPoints = c3d_null );
|
||||
c3d::DoubleVector * bendPoints = nullptr,
|
||||
c3d::DoubleVector * maxPoints = nullptr,
|
||||
c3d::DoubleVector * minPoints = nullptr,
|
||||
c3d::DoublePairsVector * rapPoints = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -442,7 +442,7 @@ public:
|
||||
const MbFace * fp = edge.GetFacePlus();
|
||||
const MbFace * fm = edge.GetFaceMinus();
|
||||
|
||||
if ( fp != c3d_null && fm != c3d_null ) {
|
||||
if ( fp != nullptr && fm != nullptr ) {
|
||||
const MbSurface & sp = fp->GetSurface().GetSurface();
|
||||
const MbSurface & sm = fm->GetSurface().GetSurface();
|
||||
|
||||
@@ -457,11 +457,11 @@ public:
|
||||
dirMatch = ts_negative;
|
||||
}
|
||||
else {
|
||||
intCurve = c3d_null; // parameter error
|
||||
intCurve = nullptr; // parameter error
|
||||
}
|
||||
}
|
||||
else if ( (fp != c3d_null) || (fm != c3d_null) ) {
|
||||
const MbFace * f = (fp != c3d_null) ? fp : fm;
|
||||
else if ( (fp != nullptr) || (fm != nullptr) ) {
|
||||
const MbFace * f = (fp != nullptr) ? fp : fm;
|
||||
const MbSurface & s = f->GetSurface().GetSurface();
|
||||
|
||||
if ( &s == &surface1 && &s == &surface2 ) {
|
||||
@@ -484,13 +484,13 @@ public:
|
||||
dirMatch = ts_negative;
|
||||
}
|
||||
else {
|
||||
intCurve = c3d_null; // parameter error
|
||||
intCurve = nullptr; // parameter error
|
||||
}
|
||||
}
|
||||
}
|
||||
public:
|
||||
/// \ru Есть ли кривая пересечения? \en Does an intersection curve exist?
|
||||
bool IsCurve() const { return (intCurve != c3d_null); }
|
||||
bool IsCurve() const { return (intCurve != nullptr); }
|
||||
/// \ru Получить кривую пересечения? \en Get intersection curve.
|
||||
c3d::ConstIntersectionCurveSPtr GetCurve() const { return intCurve; }
|
||||
/// \ru Признак совпадения нормали первой поверхности и грани. \en The flag of the coincidence of the normal of the first surface and the corresponding face .
|
||||
|
||||
@@ -341,8 +341,8 @@ public:
|
||||
To fit surface use corresponding methods SegmentMesh or FitSurfaceToSegment. \n \~
|
||||
\param[in] idxSegment - \ru Индекс сегмента полигональной сетки.
|
||||
\en Index of a mesh segment. \~
|
||||
\return \ru Возвращает указатель на поверхность для сегмента, если поверхность определена, иначе - c3d_null.
|
||||
\en Returns pointer to segment surface if it exists, else - c3d_null. \~
|
||||
\return \ru Возвращает указатель на поверхность для сегмента, если поверхность определена, иначе - nullptr.
|
||||
\en Returns pointer to segment surface if it exists, else - nullptr. \~
|
||||
\ingroup Polygonal_Objects
|
||||
*/
|
||||
virtual const MbSurface * GetSegmentSurface( size_t idxSegment ) const = 0;
|
||||
|
||||
@@ -443,7 +443,7 @@ MATH_FUNC (MbCurve *) DuplicateCurve( const MbCurve & curve, VERSION version = M
|
||||
DEPRECATE_DECLARE
|
||||
MATH_FUNC (MbContour *) DuplicateContour( const MbContour & cntr,
|
||||
bool modifySegments,
|
||||
MbSNameMaker * names = c3d_null );
|
||||
MbSNameMaker * names = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -469,7 +469,7 @@ MATH_FUNC (MbContour *) DuplicateContour( const MbContour & cntr,
|
||||
MATH_FUNC (MbContour *) DuplicateContour( const MbContour & cntr,
|
||||
bool modifySegments,
|
||||
VERSION version,
|
||||
MbSNameMaker * names = c3d_null );
|
||||
MbSNameMaker * names = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -802,7 +802,7 @@ MATH_FUNC (bool) IsLikeStraightLine( const MbCurve & curve, double eps );
|
||||
DEPRECATE_DECLARE
|
||||
MATH_FUNC( MbContour * ) DeleteDegenerateSegments( const MbContour & cntr,
|
||||
bool modifySegments,
|
||||
MbSNameMaker * names = c3d_null );
|
||||
MbSNameMaker * names = nullptr );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Удалить вырожденные сегменты из контура.
|
||||
@@ -825,7 +825,7 @@ MATH_FUNC( MbContour * ) DeleteDegenerateSegments( const MbContour & cntr,
|
||||
MATH_FUNC( MbContour * ) DeleteDegenerateSegments( const MbContour & cntr,
|
||||
bool modifySegments,
|
||||
VERSION verison,
|
||||
MbSNameMaker * names = c3d_null );
|
||||
MbSNameMaker * names = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -283,11 +283,11 @@ MATH_FUNC (MbResultType) SpiralCurve( const MbPlacement3D & place,
|
||||
\details \ru Создать спираль. \n
|
||||
Если spiralAxis == true, то lawCurve - определяет плоскую ось спирали. \n
|
||||
Если spiralAxis == false, то lawCurve - определяет закон изменения радиуса спирали. \n
|
||||
Если lawCurve == c3d_null, то строится коническая спираль с углом конусности angle. \n
|
||||
Если lawCurve == nullptr, то строится коническая спираль с углом конусности angle. \n
|
||||
\en Create a spiral. \n
|
||||
If 'spiralAxis' == true, 'lawCurve' determines the axis of a spiral. \n
|
||||
If spiralAxis == false, then 'lawCurve' - determines a radius law. \n
|
||||
If lawCurve == c3d_null, a conical spiral is created with the specified taper angle. \n \~
|
||||
If lawCurve == nullptr, a conical spiral is created with the specified taper angle. \n \~
|
||||
\param[in] point0 - \ru Начало локальной системы координат (ЛСК).
|
||||
\en The origin of local coordinate system (LCS). \~
|
||||
\param[in] point1 - \ru Точка на оси Z ЛСК.
|
||||
@@ -644,7 +644,7 @@ MATH_FUNC (MbResultType) CreatePolyArcCurve3D( const MbCurve3D & curve,
|
||||
MATH_FUNC (bool) GetSpaceCurve( const MbItem & item,
|
||||
bool keepPlacement,
|
||||
SPtr<MbCurve3D> & curve0,
|
||||
std::vector< SPtr<MbCurve3D> > * curves = c3d_null );
|
||||
std::vector< SPtr<MbCurve3D> > * curves = nullptr );
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
@@ -666,9 +666,9 @@ MATH_FUNC (bool) GetSpaceCurve( const MbItem & item,
|
||||
\param[in] deviationAngle - \ru Параметру точности.
|
||||
\en The parameter of accuracy. \~
|
||||
\return \ru Возвращает указатель на построенную кривую с нулевум счетчиком ссылок \n
|
||||
или c3d_null, если не удалось построить развертку для заданных параметров.
|
||||
или nullptr, если не удалось построить развертку для заданных параметров.
|
||||
\en The pointer to the constructed curve with zero counter of references\n
|
||||
return c3d_null, if unwrap curve can't be construvted for this parameters
|
||||
return nullptr, if unwrap curve can't be construvted for this parameters
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
|
||||
@@ -61,8 +61,8 @@ MATH_FUNC (void) CalculatePolygon( const MbCurve & curve,
|
||||
локальной системы координат.
|
||||
\en Create a polygonal object for two-dimensional object in the XOY-plane
|
||||
of the local coordinate system. \~
|
||||
\param[in] obj - \ru Двумерный объект (если c3d_null, то объект не создаётся).
|
||||
\en Two-dimensional object (if c3d_null, object isn't created). \~
|
||||
\param[in] obj - \ru Двумерный объект (если nullptr, то объект не создаётся).
|
||||
\en Two-dimensional object (if nullptr, object isn't created). \~
|
||||
\param[in] plane - \ru Локальная система координат.
|
||||
\en A local coordinate system. \~
|
||||
\param[in] sag - \ru Максимальное отклонение полигонального объекта от оригинала по прогибу.
|
||||
|
||||
@@ -184,7 +184,7 @@ MATH_FUNC (MbResultType) OffsetPhantom( const MbSolid & solid,
|
||||
const SweptValues & params,
|
||||
const MbSNameMaker & operNames,
|
||||
MbFaceShell *& result,
|
||||
size_t * hpShellFaceInd = c3d_null ); // \ru Номер грани в исходной оболочки для построения хот-точки); \en The face number in the initial shell for a hot-point creation);
|
||||
size_t * hpShellFaceInd = nullptr ); // \ru Номер грани в исходной оболочки для построения хот-точки); \en The face number in the initial shell for a hot-point creation);
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -261,7 +261,7 @@ MATH_FUNC (MbResultType) SmoothPositionData( const MbSolid & sol
|
||||
const SmoothValues & params,
|
||||
RPArray<MbPositionData> & result,
|
||||
double edgeParam = 0.5,
|
||||
const MbCurveEdge * dimensionEdge = c3d_null );
|
||||
const MbCurveEdge * dimensionEdge = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -293,7 +293,7 @@ MATH_FUNC (MbResultType) SmoothPositionData( const MbSolid & sol
|
||||
const SmoothValues & params,
|
||||
RPArray<MbPositionData> & result,
|
||||
double edgeParam = 0.5,
|
||||
const MbCurveEdge * dimensionEdge = c3d_null );
|
||||
const MbCurveEdge * dimensionEdge = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -39,8 +39,8 @@ class MATH_CLASS MbFaceShell;
|
||||
\en Number of elements in the array. \~
|
||||
\param[out] res - \ru Результат операции.
|
||||
\en The operation result. \~
|
||||
\return \ru Возвращает массив элементов, если он создан, или c3d_null в противном случае.
|
||||
\en Returns an array of elements if it has been created, otherwise returns c3d_null. \~
|
||||
\return \ru Возвращает массив элементов, если он создан, или nullptr в противном случае.
|
||||
\en Returns an array of elements if it has been created, otherwise returns nullptr. \~
|
||||
\ingroup Algorithms_3D
|
||||
*/
|
||||
// ---
|
||||
@@ -48,11 +48,11 @@ template <class Type>
|
||||
inline SArray<Type> * CreateArray( size_t cnt, MbResultType & res )
|
||||
{
|
||||
SArray<Type> * arr = new SArray<Type> ( cnt, 1 );
|
||||
if ( arr != c3d_null && arr->GetAddr() == c3d_null ) {
|
||||
if ( arr != nullptr && arr->GetAddr() == nullptr ) {
|
||||
delete arr;
|
||||
arr = c3d_null;
|
||||
arr = nullptr;
|
||||
}
|
||||
if ( arr == c3d_null )
|
||||
if ( arr == nullptr )
|
||||
res = rt_TooManyPoints;
|
||||
|
||||
return arr;
|
||||
@@ -79,7 +79,7 @@ template <class Type>
|
||||
inline bool ReserveArray( SArray<Type> & arr, size_t n, MbResultType & res )
|
||||
{
|
||||
arr.Reserve( n );
|
||||
if ( arr.GetAddr() == c3d_null ) {
|
||||
if ( arr.GetAddr() == nullptr ) {
|
||||
res = rt_TooManyPoints;
|
||||
return false;
|
||||
}
|
||||
@@ -107,7 +107,7 @@ template <class Type>
|
||||
inline bool AddItem( SArray<Type> & arr, const Type & item, MbResultType & res )
|
||||
{
|
||||
arr.Add( item );
|
||||
if ( arr.GetAddr() == c3d_null ) {
|
||||
if ( arr.GetAddr() == nullptr ) {
|
||||
res = rt_TooManyPoints;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -640,7 +640,7 @@ MATH_FUNC (MbResultType) UnbendSheetSolid( MbSolid & sol
|
||||
const MbCartPoint & fixedPoint,
|
||||
const MbSNameMaker & nameMaker,
|
||||
MbSolid *& result,
|
||||
RPArray<MbContour3D> * ribContours = c3d_null );
|
||||
RPArray<MbContour3D> * ribContours = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
+20
-20
@@ -180,7 +180,7 @@ MATH_FUNC (MbResultType) MeshSolid( const MbMesh & mesh,
|
||||
const GridsToShellValues & params,
|
||||
const MbSNameMaker & names,
|
||||
MbSolid *& result,
|
||||
IProgressIndicator * prog = c3d_null );
|
||||
IProgressIndicator * prog = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -202,7 +202,7 @@ MATH_FUNC (MbResultType) MeshSolid( const MbMesh & mesh,
|
||||
MATH_FUNC (MbResultType) GridSolid( const MbGrid & grid,
|
||||
const MbSNameMaker & names,
|
||||
MbSolid *& result,
|
||||
IProgressIndicator * prog = c3d_null );
|
||||
IProgressIndicator * prog = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -227,7 +227,7 @@ MATH_FUNC (MbResultType) GridSolid( const MbGrid & grid,
|
||||
const GridsToShellValues & params,
|
||||
const MbSNameMaker & names,
|
||||
MbSolid *& result,
|
||||
IProgressIndicator * prog = c3d_null );
|
||||
IProgressIndicator * prog = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -249,7 +249,7 @@ MATH_FUNC (MbResultType) GridSolid( const MbGrid & grid,
|
||||
MATH_FUNC (MbResultType) CollectionSolid( const MbCollection & grid,
|
||||
const MbSNameMaker & names,
|
||||
MbSolid *& result,
|
||||
IProgressIndicator * progBar = c3d_null );
|
||||
IProgressIndicator * progBar = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -636,8 +636,8 @@ MATH_FUNC (MbResultType) EvolutionSolid( const MbSweptData & sweptData
|
||||
\en An array of generating contours coordinate systems. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть nullptr).
|
||||
\en A guide curve (can be nullptr). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] ps - \ru Множество точек на образующих контурах, задающий их начальные точки.
|
||||
@@ -672,8 +672,8 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
\en An array of generating contours coordinate systems. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть nullptr).
|
||||
\en A guide curve (can be nullptr). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] guideCurves - \ru Множество направляющих кривых, задающих траектории соответствующих точек контуров.
|
||||
@@ -693,7 +693,7 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
RPArray<MbContour> & c,
|
||||
const MbCurve3D * spine, // осевая линия может быть c3d_null
|
||||
const MbCurve3D * spine, // осевая линия может быть nullptr
|
||||
const LoftedValues & params,
|
||||
RPArray<MbCurve3D> * guideCurves,
|
||||
SArray<MbCartPoint3D> * ps,
|
||||
@@ -711,8 +711,8 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
\en An array of surfaces of generating contours. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть nullptr).
|
||||
\en A guide curve (can be nullptr). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] guideCurves - \ru Множество направляющих кривых, задающих траектории соответствующих точек контуров.
|
||||
@@ -732,7 +732,7 @@ MATH_FUNC (MbResultType) LoftedSolid( SArray<MbPlacement3D> & pl,
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) LoftedSolid( RPArray<MbSurface> & surfs,
|
||||
RPArray<MbContour> & c,
|
||||
const MbCurve3D * spine, // осевая линия может быть c3d_null
|
||||
const MbCurve3D * spine, // осевая линия может быть nullptr
|
||||
const LoftedValues & params,
|
||||
RPArray<MbCurve3D> * guideCurves,
|
||||
SArray<MbCartPoint3D> * ps,
|
||||
@@ -967,8 +967,8 @@ MATH_FUNC(MbResultType) EvolutionResult( MbSolid & solid,
|
||||
\en An array of generating contours coordinate systems. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] spine - \ru Направляющая кривая (может быть nullptr).
|
||||
\en A guide curve (can be nullptr). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] oType - \ru Тип булевой операции.
|
||||
@@ -1020,8 +1020,8 @@ MATH_FUNC(MbResultType) LoftedResult( MbSolid & solid,
|
||||
\en An array of generating contours surfaces. \~
|
||||
\param[in] c - \ru Множество образующих контуров.
|
||||
\en An array of generating contours. \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть c3d_null).
|
||||
\en A guide curve (can be c3d_null). \~
|
||||
\param[in] spine - \ru Осевая кривая (может быть nullptr).
|
||||
\en A guide curve (can be nullptr). \~
|
||||
\param[in] params - \ru Параметры операции.
|
||||
\en The operation parameters. \~
|
||||
\param[in] oType - \ru Тип булевой операции.
|
||||
@@ -1989,7 +1989,7 @@ MATH_FUNC (MbResultType) UnionResult( MbSolid * solid,
|
||||
const MbSNameMaker & names,
|
||||
bool isArray,
|
||||
MbSolid *& result,
|
||||
RPArray<MbSolid> * notGluedSolids = c3d_null );
|
||||
RPArray<MbSolid> * notGluedSolids = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -2032,7 +2032,7 @@ MATH_FUNC (MbResultType) UnionSolid( RPArray<MbSolid> & solids,
|
||||
const MbSNameMaker & names,
|
||||
bool isArray,
|
||||
MbSolid *& result,
|
||||
RPArray<MbSolid> * notGluedSolids = c3d_null );
|
||||
RPArray<MbSolid> * notGluedSolids = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -2392,8 +2392,8 @@ MATH_FUNC (MbResultType) ThinSolid( const MbSurface & surface,
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Создать отверстие, карман, фигурный паз в теле.
|
||||
\en Create a hole, a pocket, a groove in the solid. \~
|
||||
\details \ru Cоздать отверстие, карман, фигурный паз в теле или создать cверло, бобышку, если solid==c3d_null. \n
|
||||
\en Create a hole, a pocket, a groove in the solid or create a drill, a boss if 'solid' == c3d_null. \n \~
|
||||
\details \ru Cоздать отверстие, карман, фигурный паз в теле или создать cверло, бобышку, если solid==nullptr. \n
|
||||
\en Create a hole, a pocket, a groove in the solid or create a drill, a boss if 'solid' == nullptr. \n \~
|
||||
\param[in] solid - \ru Исходное тело.
|
||||
\en The source solid. \~
|
||||
\param[in] sameShell - \ru Режим копирования тела.
|
||||
|
||||
@@ -694,28 +694,26 @@ MATH_FUNC (MbResultType) TriBezierSurface( ptrdiff_t k,
|
||||
\en Create a triangular B-spline surface. \~
|
||||
\details \ru Создать треугольную В-сплайн поверхность по 3 точкам. \n
|
||||
\en Create a triangular B-spline surface from three points. \n \~
|
||||
\param[in] p0 - \ru Первая точка.
|
||||
\en The first point. \~
|
||||
\param[in] p1 - \ru Вторая точка.
|
||||
\en The second point. \~
|
||||
\param[in] p2 - \ru Третья точка.
|
||||
\en The third point. \~
|
||||
\param[in] d - \ru Порядок поверхности.
|
||||
\en The surface order. \~
|
||||
\param[out] resSurface - \ru Треугольная В-сплайн поверхность.
|
||||
\en The triangular B-spline surface. \~
|
||||
\param[in] surface - \ru Исходная поверхность.
|
||||
\en The initial surface. \~
|
||||
\param[in] degree - \ru Порядок поверхности.
|
||||
\en The surface order. \~
|
||||
\param[in] uCount - \ru Число элементов вдоль первого направления.
|
||||
\en The elements count along first direction. \~
|
||||
\param[in] vCount - \ru Число элементов вдоль второго направления.
|
||||
\en The elements count along second direction. \~
|
||||
\param[out] result - \ru Симплексная поверхность.
|
||||
\en The simplex surface. \~
|
||||
\result \ru Возвращает код результата операции.
|
||||
\en Returns operation result code. \~
|
||||
\ingroup Surface_Modeling
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) TriSplineSurface( const MbCartPoint3D & p0,
|
||||
const MbCartPoint3D & p1,
|
||||
const MbCartPoint3D & p2,
|
||||
const MbCartPoint3D & p3,
|
||||
ptrdiff_t d,
|
||||
ptrdiff_t count,
|
||||
MbSurface *& resSurface );
|
||||
MATH_FUNC (MbResultType) SimplexSurface( const MbSurface & surface,
|
||||
size_t degree,
|
||||
size_t uCount,
|
||||
size_t vCount,
|
||||
MbSurface *& result );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -723,10 +721,10 @@ MATH_FUNC (MbResultType) TriSplineSurface( const MbCartPoint3D & p0,
|
||||
\en Create a characteristic polyline of a spline surface. \~
|
||||
\details \ru Построить характеристическую ломаную сплайновой поверхности. \n
|
||||
Функция работает с поверхностями типа st_SplineSurface, st_HermitSurface,
|
||||
st_TriBezierSurface, st_TriSplineSurface. \n
|
||||
st_TriBezierSurface, st_SimplexSurface. \n
|
||||
\en Create a characteristic polyline of a spline surface. \n
|
||||
The function accepts the surfaces of types st_SplineSurface, st_HermitSurface,
|
||||
st_TriBezierSurface, st_TriSplineSurface. \n \~
|
||||
st_TriBezierSurface, st_SimplexSurface. \n \~
|
||||
\param[in] surf - \ru Поверхность.
|
||||
\en The surface. \~
|
||||
\param[out] segments - \ru Сегменты характеристической ломаной.
|
||||
@@ -798,8 +796,8 @@ MATH_FUNC (MbResultType) MiddlePlaces( const MbCurve3D & curve1
|
||||
\en The first guide curve. \~
|
||||
\param[in] g2 - \ru Вторая направляющая кривая (g1==g2 совпадает с первой при cs_Round).
|
||||
\en The second guide curve (g1==g2 the same first guide for st_Round). \~
|
||||
\param[in] c0 - \ru Дополнительная направляющая кривая (может быть c3d_null).
|
||||
\en The additional guide curve (may be c3d_null). \~
|
||||
\param[in] c0 - \ru Дополнительная направляющая кривая (может быть nullptr).
|
||||
\en The additional guide curve (may be nullptr). \~
|
||||
\param[in] form - \ru Форма сечения поверхности (0, 1, 2, 3).
|
||||
\en The form of the surface section (0, 1, 2, 3). \~
|
||||
\param[in] sense - \ru Направление нормали поверхности направляющей кривой (для guide1==guide2).
|
||||
|
||||
@@ -224,8 +224,8 @@ MATH_FUNC (MbResultType) OffsetCurve( const MbCurve3D & curve,
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Создать проекцию кривой на поверхность.
|
||||
\en Create a curve projection onto the surface. \~
|
||||
\details \ru Создать проекцию кривой curve на поверхность surface (направление проецирования direction может быть c3d_null). \n
|
||||
\en Create the projection of a curve onto surface 'surface' (the projection direction 'direction' can be c3d_null). \n \~
|
||||
\details \ru Создать проекцию кривой curve на поверхность surface (направление проецирования direction может быть nullptr). \n
|
||||
\en Create the projection of a curve onto surface 'surface' (the projection direction 'direction' can be nullptr). \n \~
|
||||
\param[in] surface - \ru Поверхность для проецирования.
|
||||
\en The surface to project onto. \~
|
||||
\param[in] curve - \ru Проецируемая кривая.
|
||||
@@ -257,8 +257,8 @@ MATH_FUNC (MbResultType) CurveProjection( const MbSurface & surface,
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Создать проекцию кривой на поверхность.
|
||||
\en Create a curve projection onto the surface. \~
|
||||
\details \ru Создать проекцию кривой curve на поверхность surface (направление проецирования direction может быть c3d_null). \n
|
||||
\en Create the projection of a curve onto surface 'surface' (the projection direction 'direction' can be c3d_null). \n \~
|
||||
\details \ru Создать проекцию кривой curve на поверхность surface (направление проецирования direction может быть nullptr). \n
|
||||
\en Create the projection of a curve onto surface 'surface' (the projection direction 'direction' can be nullptr). \n \~
|
||||
\param[in] surface - \ru Поверхность для проецирования.
|
||||
\en The surface to project onto. \~
|
||||
\param[in] curve - \ru Проецируемая кривая.
|
||||
@@ -1159,7 +1159,7 @@ MATH_FUNC (MbResultType) ConnectingSpline( const MbCurve3D & curve1, double t1,
|
||||
что начало кривой сопряжения будет находится в точке с параметором t1,
|
||||
t1 и t2 - параметры кривых curve1 и curve2, в соответствующих точках которых начинается и заканчивается скругление. \n
|
||||
Параметр sense - прямое или обратное направление кривой скругления. \n
|
||||
Кривая filletCurve - это кривая сопряжения, дуга (когда surface == c3d_null) или кривая на поверхности цилиндра surface. \n
|
||||
Кривая filletCurve - это кривая сопряжения, дуга (когда surface == nullptr) или кривая на поверхности цилиндра surface. \n
|
||||
Поверхность surface - это цилиндрическая поверхность, на которой строится кривая сопряжения в общем случае.
|
||||
Для управления жизненным циклом поверхномти следует миспользовать методы ::AddRefItem(surface) и ::ReleaseItem(surface). \n
|
||||
\en Create a fillet curve for curves. \n
|
||||
@@ -1175,7 +1175,7 @@ MATH_FUNC (MbResultType) ConnectingSpline( const MbCurve3D & curve1, double t1,
|
||||
that the fillet curve start is at the point with parameter t1,
|
||||
t1 and t2 are parameters of curves 'curve1' and 'curve2' which correspond to the start point and the end point of the fillet. \n
|
||||
Parameter 'sense' determines forward or backward orientation of the fillet curve. \n
|
||||
Curve filletCurve is a fillet curve, an arc (when 'surface' == c3d_null) or a curve on a cylindric surface 'surface'. \n
|
||||
Curve filletCurve is a fillet curve, an arc (when 'surface' == nullptr) or a curve on a cylindric surface 'surface'. \n
|
||||
Surface 'surface' is a cylindric surface on which the fillet curve is constructed in general case.
|
||||
Use ::AddRefItem(surface) and ::ReleaseItem(surface) methods to manage the surface lifecycle. \n \~
|
||||
\param[in] curve1 - \ru Соединяемая кривая 1.
|
||||
@@ -1200,8 +1200,8 @@ MATH_FUNC (MbResultType) ConnectingSpline( const MbCurve3D & curve1, double t1,
|
||||
\en The fillet type. \~
|
||||
\param[in] names - \ru Именователь кривых каркаса.
|
||||
\en An object defining the frame curves names. \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён c3d_null).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be c3d_null). \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён nullptr).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be nullptr). \~
|
||||
\param[out] result - \ru Каркас с построенными кривыми.
|
||||
\en The frame with the constructed curves. \~
|
||||
\return \ru Возвращает код результата операции.
|
||||
|
||||
@@ -603,7 +603,7 @@ bool IsPlanar( const SpacePointsVector & pnts, MbPlacement3D * place, double mEp
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( isPlanar && place != c3d_null )
|
||||
if ( isPlanar && place != nullptr )
|
||||
place->Init( wrkPlace );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,8 +92,8 @@ MATH_FUNC (MbeState) DeleteCurvePart( const MbCartPoint & p1,
|
||||
\en The point indicating the piece of a curve to be kept. \~
|
||||
\param[in, out] curve - \ru Изменяемая кривая.
|
||||
\en The curve to be modified. \~
|
||||
\param[in, out] part2 - \ru Всегда c3d_null.
|
||||
\en This value is always c3d_null. \~
|
||||
\param[in, out] part2 - \ru Всегда nullptr.
|
||||
\en This value is always nullptr. \~
|
||||
\return \ru Состояние кривой после ее модификации.
|
||||
\en The state of a curve after its modification. \~
|
||||
\warning \ru Для внутреннего использования.
|
||||
@@ -124,8 +124,8 @@ MATH_FUNC (MbeState) TrimmCurvePart( List<MbCurve> & curveList,
|
||||
\en The point indicating the piece of a closed curve to be kept \~
|
||||
\param[in, out] curve - \ru Изменяемая кривая.
|
||||
\en The curve to be modified. \~
|
||||
\param[in, out] part2 - \ru Всегда c3d_null.
|
||||
\en This value is always c3d_null. \~
|
||||
\param[in, out] part2 - \ru Всегда nullptr.
|
||||
\en This value is always nullptr. \~
|
||||
\return \ru Состояние кривой после ее модификации.
|
||||
\en The state of a curve after its modification. \~
|
||||
\warning \ru Для внутреннего использования.
|
||||
@@ -155,8 +155,8 @@ MATH_FUNC (MbeState) TrimmCurvePart( const MbCartPoint & p1,
|
||||
\en Boundary curve for justification. \~
|
||||
\param[in] pnt - \ru Точка для выбора нужной части кривой.
|
||||
\en The point for selecting the piece of a curve. \~
|
||||
\param[in, out] part2 - \ru Всегда c3d_null.
|
||||
\en This value is always c3d_null. \~
|
||||
\param[in, out] part2 - \ru Всегда nullptr.
|
||||
\en This value is always nullptr. \~
|
||||
\return \ru Состояние кривой после ее модификации.
|
||||
\en The state of a curve after modification. \~
|
||||
\warning \ru Для внутреннего использования.
|
||||
@@ -222,8 +222,8 @@ MATH_FUNC (MbeState) BreakByClosedCurves( MbCurve & curve,
|
||||
const RPArray<const MbCurve> & limits,
|
||||
bool inside,
|
||||
PArray<MbCurve> & part2,
|
||||
SArray<MbCrossPoint> * cross = c3d_null,
|
||||
bool * isEqualCurve = c3d_null,
|
||||
SArray<MbCrossPoint> * cross = nullptr,
|
||||
bool * isEqualCurve = nullptr,
|
||||
bool cutOnCurve = false );
|
||||
|
||||
|
||||
|
||||
@@ -440,7 +440,7 @@ MATH_FUNC (MbeProcessState) MinMaxDistances( const MbSurface & surface1,
|
||||
MbMinMaxSurfDists & allResults,
|
||||
MbMinMaxSurfDists & minResults,
|
||||
MbMinMaxSurfDists & maxResults,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
IProgressIndicator * indicator = nullptr );
|
||||
|
||||
|
||||
#endif // __ALG_DIMENSION_H
|
||||
|
||||
@@ -1028,7 +1028,7 @@ void DrawVertexEdges( const Vertex * vertex, int vR, int vG, int vB,
|
||||
MbStepData stepData( ist_SpaceStep, Math::visualSag );
|
||||
MbFormNote note(true, false);
|
||||
for ( size_t k = 0, cnt = edges.size(); k < cnt; ++k ) {
|
||||
if ( edges[k] != c3d_null ) {
|
||||
if ( edges[k] != nullptr ) {
|
||||
edges[k]->GetCurve().CalculateMesh( stepData, note, edgeMesh );
|
||||
DrawGI::DrawMesh( &edgeMesh, TRGB_WHITE );
|
||||
DrawGI::DrawMesh( &edgeMesh, eR, eG, eB );
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
#define EMPTY_STR StrData<const TCHAR *>( c3d_null ) ///< \ru Создание пустой строки \en Creation of an empty string
|
||||
#define EMPTY_STR StrData<const TCHAR *>( nullptr ) ///< \ru Создание пустой строки \en Creation of an empty string
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -279,14 +279,14 @@ MATH_FUNC (ProgressBarWrapper *) CreateProgressBar( IProgressIndicator * progInd
|
||||
\en The wrapper of the execution progress indicator. \~
|
||||
\param[in] msg - \ru Данные о строке.
|
||||
\en Data of a string \~
|
||||
\return \ru true, если progBar != c3d_null и удалось задать имя процесса.
|
||||
\return \ru true, если progBar != nullptr и удалось задать имя процесса.
|
||||
\en true if 'progBar' is not null and the process name is successfully set. \~
|
||||
\ingroup Base_Items
|
||||
*/
|
||||
// ---
|
||||
inline bool SetProgressBarName( ProgressBarWrapper * progBar, IStrData & msg )
|
||||
{
|
||||
if ( progBar != c3d_null )
|
||||
if ( progBar != nullptr )
|
||||
return progBar->SetName( msg );
|
||||
return false;
|
||||
}
|
||||
@@ -308,7 +308,7 @@ inline bool SetProgressBarName( ProgressBarWrapper * progBar, IStrData & msg )
|
||||
// ---
|
||||
inline bool SetProgressBarValue( ProgressBarWrapper * progBar, size_t v )
|
||||
{
|
||||
if ( progBar != c3d_null && !progBar->IsCancel() )
|
||||
if ( progBar != nullptr && !progBar->IsCancel() )
|
||||
return progBar->SetProgress( v );
|
||||
return false;
|
||||
}
|
||||
@@ -328,7 +328,7 @@ inline bool SetProgressBarValue( ProgressBarWrapper * progBar, size_t v )
|
||||
// ---
|
||||
inline void FinishProgressBar( ProgressBarWrapper * progBar )
|
||||
{
|
||||
if ( progBar != c3d_null ) {
|
||||
if ( progBar != nullptr ) {
|
||||
if ( progBar->IsCancel() ) progBar->Stop();
|
||||
else progBar->Success();
|
||||
}
|
||||
@@ -347,7 +347,7 @@ inline void FinishProgressBar( ProgressBarWrapper * progBar )
|
||||
// ---
|
||||
inline bool StopProgressBar( ProgressBarWrapper * progBar )
|
||||
{
|
||||
if ( progBar != c3d_null && progBar->IsCancel() ) {
|
||||
if ( progBar != nullptr && progBar->IsCancel() ) {
|
||||
progBar->Stop();
|
||||
return true;
|
||||
}
|
||||
@@ -362,14 +362,14 @@ inline bool StopProgressBar( ProgressBarWrapper * progBar )
|
||||
\en The wrapper of the execution progress indicator. \~
|
||||
\param[in] useParentName - \ru Флаг использования имени родителя.
|
||||
\en The flag of using the parent name. \~
|
||||
\return \ru true, если progBar != c3d_null.
|
||||
\return \ru true, если progBar != nullptr.
|
||||
\en true if 'progBar' is not null. \~
|
||||
\ingroup Base_Items
|
||||
*/
|
||||
// ---
|
||||
inline bool UseParentName( ProgressBarWrapper * progBar, bool useParentName )
|
||||
{
|
||||
if ( progBar != c3d_null ) {
|
||||
if ( progBar != nullptr ) {
|
||||
progBar->UseParentName( useParentName );
|
||||
return true;
|
||||
}
|
||||
@@ -389,7 +389,7 @@ inline bool UseParentName( ProgressBarWrapper * progBar, bool useParentName )
|
||||
// ---
|
||||
inline bool IsParentNameUsed( const ProgressBarWrapper * progBar )
|
||||
{
|
||||
if ( progBar != c3d_null )
|
||||
if ( progBar != nullptr )
|
||||
return progBar->IsParentNameUsed();
|
||||
|
||||
return false;
|
||||
|
||||
@@ -76,7 +76,7 @@ MbFaceShell * ConvertGridToShell( const MbGrid & grid,
|
||||
const GridsToShellValues & params,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbResultType & res,
|
||||
IProgressIndicator * progBar = c3d_null );
|
||||
IProgressIndicator * progBar = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -86,7 +86,7 @@ MbFaceShell * ConvertMeshToShell( const MbMesh & mesh,
|
||||
const GridsToShellValues & params,
|
||||
const MbSNameMaker & snMaker,
|
||||
MbResultType & res,
|
||||
IProgressIndicator * progBar = c3d_null );
|
||||
IProgressIndicator * progBar = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -57,9 +57,9 @@ class MbVector3D;
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
nullptr, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for a given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for a given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -87,9 +87,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_1( const MbCartPoint3D & mbPoint0, const Mb
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
nullptr, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for a given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for a given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -113,9 +113,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_1( const MbCartPoint & mbPoint0, const MbCart
|
||||
\param[in] mbVertex - \ru Координаты вершины угла, в который надо вписать конику.
|
||||
\en Coordinates of the vertex of angle which should be inscribed into the conic. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -138,9 +138,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_2( std::vector<MbCartPoint3D> & vmbConicPoi
|
||||
\param[in] mbVertex - \ru Координаты вершины угла, в который надо вписать конику.
|
||||
\en Coordinates of the vertex of angle which should be inscribed into the conic. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -165,9 +165,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_2( std::vector<MbCartPoint> & vmbConicPoints,
|
||||
\param[in] mbTangent2 - \ru Наклон в конце кривой.
|
||||
\en Inclination at end of a curve. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -193,9 +193,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_3( const std::vector<MbCartPoint3D> & vmbCo
|
||||
\param[in] mbTangent2 - \ru Наклон в конце кривой.
|
||||
\en Inclination at end of a curve. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -224,9 +224,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_3( const std::vector<MbCartPoint> & vmbConicP
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
nullptr, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -256,9 +256,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_4( const MbCartPoint3D & mbPoint1, const Mb
|
||||
\en The discriminant is less than 1. Otherwise it
|
||||
will be set to 0.99999999 automatically. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось построить конику для заданных параметров.
|
||||
nullptr, если не удалось построить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -288,9 +288,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_4( const MbCartPoint & mbPoint1, const MbCart
|
||||
\param[in] tanPntNb - \ru Номер точке, в которой задан наклон.
|
||||
\en Point number at which the inclination is specified. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -319,9 +319,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_5( const std::vector<MbCartPoint3D> & vmbCo
|
||||
\param[in] tanPntNb - \ru Номер точке, в которой задан наклон.
|
||||
\en Point number at which the inclination is specified. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -342,9 +342,9 @@ MATH_FUNC ( MbCurve * ) NurbsConic_5( const std::vector<MbCartPoint> & vmbConicP
|
||||
\en The container for points of a conic: the first point is start point, the last point is end point.
|
||||
there should be exactly 5 points. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
*/
|
||||
// ---
|
||||
@@ -365,9 +365,9 @@ MATH_FUNC ( MbCurve3D * ) NurbsConic_6( const std::vector<MbCartPoint3D> & vmbCo
|
||||
\en The container for points of a conic: the first point is start point, the last point is end point.
|
||||
there should be exactly 5 points. \~
|
||||
\return \ru Указатель на построенную кривую \n
|
||||
c3d_null, если не удалось постороить конику для заданных параметров.
|
||||
nullptr, если не удалось постороить конику для заданных параметров.
|
||||
\en The pointer to the constructed curve \n
|
||||
is c3d_null if a try to construct a conic for given parameters has failed. \~
|
||||
is nullptr if a try to construct a conic for given parameters has failed. \~
|
||||
\ingroup Curve_Modeling
|
||||
*/
|
||||
// ---
|
||||
|
||||
@@ -43,14 +43,14 @@ class MATH_CLASS MbCubicSpline3D;
|
||||
радиус скругления в этой точке. При создании заполняются поля m_lineSeg и m_arcSeg.
|
||||
m_lineSeg - это прямолинейный сегмент из этой точки в следующую. Для последней точки
|
||||
и замкнутой ломаной - из последней в первую. m_arcSeg - дуга скругления в данной точке.
|
||||
Если какой-то сегмент был полностью удален или не создан, то его указатель должен быть c3d_null.
|
||||
Если какой-то сегмент был полностью удален или не создан, то его указатель должен быть nullptr.
|
||||
Объектами m_lineSeg и m_arcSeg не владеет, поэтому и не удаляет их. Объекты из полилинии.
|
||||
\en Some points may be deleted while the construction, therefore the old index is entered,
|
||||
it is filled and used in a model. Parameters of a point are its coordinates and
|
||||
fillet radius in this point. In a time of creation the fields 'm_lineSeg' and 'm_lineSeg' are being filled.
|
||||
'm_lineSeg' is the straight-line segment from this point to the next point. For the last point
|
||||
and a closed polyline - from the last point to the first point. 'm_arcSeg'is the arc of a fillet in the given point.
|
||||
If a segment has been fully deleted or it was not created then the pointer should be c3d_null.
|
||||
If a segment has been fully deleted or it was not created then the pointer should be nullptr.
|
||||
Object 'm_lineSeg' and 'm_arcSeg' are not owned, therefore they are not deleted. Objects from a polyline. \~
|
||||
\ingroup Data_Structures
|
||||
*/
|
||||
@@ -69,8 +69,8 @@ public:
|
||||
: m_oldIndex( SYS_MAX_T )
|
||||
, m_point ()
|
||||
, m_radius ( 0.0 )
|
||||
, m_lineSeg ( c3d_null )
|
||||
, m_arcSeg ( c3d_null )
|
||||
, m_lineSeg ( nullptr )
|
||||
, m_arcSeg ( nullptr )
|
||||
{}
|
||||
/// \ru Конструктор копирования. \en Copy constructor.
|
||||
Polyline3DPoint( const Polyline3DPoint & other )
|
||||
@@ -250,9 +250,9 @@ MATH_FUNC (void) CreateSmoothFromBezier( const MbBezier & bez, RPArray<MbCurve>
|
||||
/** \brief \ru Создать кривую заданного типа базе NURBS-кривой.
|
||||
\en Create a curve of a given type as NURBS-curve. \~
|
||||
\details \ru Работает для двух типов: pt_LineSegment и pt_Arc. Если не удалось
|
||||
аппроксимировать с заданной точностью функция вернет c3d_null.
|
||||
аппроксимировать с заданной точностью функция вернет nullptr.
|
||||
\en It works for the two types: 'pt_LineSegment' and 'pt_Arc'. If approximation with the given tolerance has failed
|
||||
then the function returns c3d_null. \~
|
||||
then the function returns nullptr. \~
|
||||
\param[in] nurbs - \ru Исходная NURBS-кривая.
|
||||
\en The initial NURBS-curve. \~
|
||||
\param[in] type - \ru Тип кривой, которую требуется создать.
|
||||
@@ -288,7 +288,7 @@ MATH_FUNC (MbCurve *) ConvertNurbsToCurveOfType( const MbNurbs & nurbs, MbePlane
|
||||
*/
|
||||
// ---
|
||||
MATH_FUNC (MbCurve *) GetFlatCurve( const MbCurve3D & curve3D, const MbMatrix3D & into,
|
||||
MbRect1D * pRgn = c3d_null, VERSION version = Math::DefaultMathVersion() );
|
||||
MbRect1D * pRgn = nullptr, VERSION version = Math::DefaultMathVersion() );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
+11
-11
@@ -95,10 +95,10 @@ public:
|
||||
// \ru Общие функции геометрического объекта \en Common functions of a geometric object
|
||||
|
||||
virtual MbeSpaceType IsA() const; // \ru Тип объекта. \en An object type.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * iReg = c3d_null ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * iReg = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * iReg = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * iReg = nullptr ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * iReg = nullptr ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * iReg = nullptr ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * iReg = nullptr ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame( const MbSpaceItem & other, double accuracy = LENGTH_EPSILON ) const; // \ru Являются ли объекты равными? \en Are the objects equal?
|
||||
virtual bool IsSimilar( const MbSpaceItem & ) const; // \ru Являются ли объекты подобными? \en Are the objects similar?
|
||||
virtual bool SetEqual ( const MbSpaceItem & ); // \ru Сделать объекты равным \en Make the objects equal
|
||||
@@ -152,11 +152,11 @@ public:
|
||||
virtual const MbItem * GetItemByName( SimpleName n, MbPath & path, MbMatrix3D & from ) const;
|
||||
|
||||
// \ru Преобразовать согласно матрице c использованием регистратора селектированные содержимые объекты. \en Transform selected objects according to the matrix using the registrator.
|
||||
virtual void TransformSelected( const MbMatrix3D & matr, MbRegTransform * iReg = c3d_null );
|
||||
virtual void TransformSelected( const MbMatrix3D & matr, MbRegTransform * iReg = nullptr );
|
||||
// \ru Сдвинуть вдоль вектора с использованием регистратора селектированные содержимые объекты. \en Move selected objects along the vector using the registrator.
|
||||
virtual void MoveSelected( const MbVector3D & to, MbRegTransform * iReg = c3d_null );
|
||||
virtual void MoveSelected( const MbVector3D & to, MbRegTransform * iReg = nullptr );
|
||||
// \ru Повернуть вокруг оси на заданный угол с использованием регистратора селектированные содержимые объекты. \en Rotate selected objects about the axis by the given angle using the registrator.
|
||||
virtual void RotateSelected( const MbAxis3D & axis, double angle, MbRegTransform * iReg = c3d_null );
|
||||
virtual void RotateSelected( const MbAxis3D & axis, double angle, MbRegTransform * iReg = nullptr );
|
||||
/// \ru Отдать селектированные содержимые объекты. \en Get selected objects.
|
||||
bool DetachSelected( RPArray<MbItem> & items, SArray<MbMatrix3D> & matrs, bool selected = true );
|
||||
/// \ru Отцепить все видимые или невидимые объекты. \en Detach all visible or invisible objects. \~
|
||||
@@ -313,8 +313,8 @@ template <class ItemsVector>
|
||||
MbAssembly::MbAssembly( const ItemsVector & items )
|
||||
: MbItem()
|
||||
, assemblyItems()
|
||||
, constraintSystem( c3d_null )
|
||||
, m_reactor( c3d_null )
|
||||
, constraintSystem( nullptr )
|
||||
, m_reactor( nullptr )
|
||||
{
|
||||
#ifdef C3D_DEBUG
|
||||
// Check a condition of the single owner.
|
||||
@@ -339,7 +339,7 @@ MbAssembly::MbAssembly( const ItemsVector & items )
|
||||
template <class ItemsVector>
|
||||
void MbAssembly::_Init( const ItemsVector & items )
|
||||
{
|
||||
C3D_ASSERT( assemblyItems.empty() && (constraintSystem == c3d_null) );
|
||||
C3D_ASSERT( assemblyItems.empty() && (constraintSystem == nullptr) );
|
||||
SimpleName idCounter = 0;
|
||||
|
||||
for ( size_t i = 0, iCount = items.size(); i < iCount; ++i )
|
||||
@@ -386,7 +386,7 @@ void MbAssembly::GetFacesSet( FacesVector & faces ) const
|
||||
template <class FacesVector>
|
||||
void MbInstance::GetFacesSet( FacesVector & faces ) const
|
||||
{
|
||||
if ( item != c3d_null ) {
|
||||
if ( item != nullptr ) {
|
||||
if ( item->IsA() == st_Solid )
|
||||
static_cast<const MbSolid &>( *item ).GetFacesSet( faces );
|
||||
else if ( item->IsA() == st_Assembly )
|
||||
|
||||
@@ -51,10 +51,10 @@ public :
|
||||
|
||||
// \ru Общие функции геометрического объекта. \en Common functions of a geometric object.
|
||||
virtual MbeSpaceType IsA() const; // \ru Тип объекта. \en An object type.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame ( const MbSpaceItem & other, double accuracy = LENGTH_EPSILON ) const; // \ru Являются ли объекты равными? \en Whether the objects are equal?
|
||||
virtual bool IsSimilar( const MbSpaceItem & init ) const; // \ru Являются ли объекты подобными? \en Whether the objects are similar?
|
||||
virtual bool SetEqual ( const MbSpaceItem & init ); // \ru Сделать объекты равным. \en Make the objects equal.
|
||||
|
||||
@@ -185,7 +185,7 @@ public :
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -234,7 +234,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -280,7 +280,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -333,7 +333,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -414,7 +414,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ protected :
|
||||
public :
|
||||
virtual MbeAttributeType AttributeFamily() const; // \ru Выдать тип атрибута. \en Get attribute type.
|
||||
virtual MbeAttributeType AttributeType() const = 0; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ) = 0; // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -46,13 +46,13 @@ public :
|
||||
// \ru Выполнить действия при конвертации владельца. \en Perform actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging he owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -137,7 +137,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -173,7 +173,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -209,7 +209,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -243,7 +243,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -280,7 +280,7 @@ public:
|
||||
public:
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual void GetCharValue( TCHAR * v ) const; // \ru Выдать строковое значение свойства. \en Get a string value of the property.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
|
||||
@@ -38,7 +38,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -86,7 +86,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -137,7 +137,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -184,7 +184,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
public :
|
||||
virtual MbeAttributeType AttributeFamily() const; // \ru Тип атрибута \en Type of an attribute
|
||||
virtual MbeAttributeType AttributeType() const = 0; // \ru Выдать подтип атрибута \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0; // \ru Сделать копию элемента \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const = 0; // \ru Сделать копию элемента \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const = 0; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ) = 0; // \ru Инициализировать данные по присланным \en Initialize data.
|
||||
|
||||
@@ -39,13 +39,13 @@ public :
|
||||
// \ru Действия при конвертации владельца. \en Actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
/// \ru Действия при трансформировании владельца. \en Actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Действия при перемещении владельца. \en Actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Действия при вращении владельца. \en Actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Действия при копировании владельца. \en Actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Действия при объединении владельца. \en Actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Действия при замене владельца. \en Actions when replacing the owner.
|
||||
|
||||
@@ -43,20 +43,20 @@ public:
|
||||
// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const;
|
||||
// \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const;
|
||||
// \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual bool Init( const MbAttribute & );
|
||||
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
|
||||
|
||||
@@ -52,19 +52,19 @@ public:
|
||||
// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const;
|
||||
// \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const;
|
||||
// \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual bool Init( const MbAttribute & );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public :
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -92,7 +92,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -159,7 +159,7 @@ public :
|
||||
// \ru Общие функции объекта \en Common functions of object
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -221,7 +221,7 @@ public :
|
||||
|
||||
virtual MbeAttributeType AttributeFamily() const; // \ru Дать тип атрибута. \en Get type of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -233,13 +233,13 @@ public :
|
||||
// \ru Выполнить действия при конвертации владельца \en Perform actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -289,7 +289,7 @@ public:
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по атрибуту. \en Initialize by attribute.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
|
||||
@@ -37,7 +37,7 @@ public :
|
||||
// Выдать подтип атрибута (временно).
|
||||
virtual MbeAttributeType AttributeType() const = 0;
|
||||
// Сделать копию элемента.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const = 0;
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const = 0; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
// Инициализировать данные по присланным.
|
||||
virtual bool Init( const MbAttribute & ) = 0;
|
||||
@@ -49,13 +49,13 @@ public :
|
||||
// Действия при конвертации владельца.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// Действия при трансформировании владельца.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// Действия при перемещении владельца.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// Действия при вращении владельца.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// Действия при копировании владельца.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// Действия при объединении владельца.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// Действия при замене владельца.
|
||||
@@ -100,7 +100,7 @@ public :
|
||||
// Выдать подтип атрибута (временно).
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// Сделать копию элемента.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const;
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // Определить, являются ли объекты равными.
|
||||
// Инициализировать данные по присланным.
|
||||
virtual bool Init( const MbAttribute & ) ;
|
||||
@@ -326,7 +326,7 @@ public :
|
||||
// Выдать подтип атрибута (временно).
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// Сделать копию элемента.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const ;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const ;
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // Определить, являются ли объекты равными.
|
||||
// Инициализировать данные по присланным.
|
||||
virtual bool Init( const MbAttribute & ) ;
|
||||
|
||||
@@ -37,7 +37,7 @@ public :
|
||||
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
@@ -83,7 +83,7 @@ public :
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
@@ -129,7 +129,7 @@ public :
|
||||
// \ru Общие функции объекта. \en Common functions of object.
|
||||
|
||||
virtual MbeAttributeType AttributeType() const; // \ru Дать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
|
||||
@@ -49,20 +49,20 @@ public:
|
||||
// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const;
|
||||
// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const;
|
||||
// \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const;
|
||||
// \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
virtual bool Init( const MbAttribute & );
|
||||
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
\ingroup Model_Attributes
|
||||
*/
|
||||
class MATH_CLASS MbUserAttribute : public MbAttribute, public MbSyncItem {
|
||||
typedef std_unique_ptr<membuf> UniqueMembufPtr;
|
||||
typedef std::unique_ptr<membuf> UniqueMembufPtr;
|
||||
protected :
|
||||
MbUserAttribType userType_; ///< \ru Тип пользовательского атрибута. \en Type of user attribute.
|
||||
c3d::string_t prompt_; ///< \ru Строка описания. \en String of description.
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
/// \ru Выдать подтип пользовательского атрибута по пользовательскому типу. \en Get subtype of an user attribute by user-defined type.
|
||||
static MbeAttributeType AttributeType( const MbUserAttribType & userType );
|
||||
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ); // \ru Инициализировать данные по присланным. \en Initialize data by given attribute.
|
||||
|
||||
@@ -117,13 +117,13 @@ public:
|
||||
// \ru Выполнить действия при конвертации владельца \en Perform actions when converting the owner
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца \en Perform actions when transforming the owner
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при копировании владельца \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Выполнить действия при объединении владельца \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -197,7 +197,7 @@ public :
|
||||
/// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbUserAttribType AttrTypeEx() const = 0;
|
||||
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const = 0; // \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual bool IsSame( const MbAttribute &, double accuracy ) const = 0; // \ru Определить, являются ли объекты равными. \en Determine whether objects are equal.
|
||||
virtual bool Init( const MbAttribute & ) = 0; // \ru Инициализировать данные по присланным. \en Initialize data.
|
||||
|
||||
@@ -206,13 +206,13 @@ public :
|
||||
// \ru Выполнить действия при конвертации владельца. \en Perform actions when converting the owner.
|
||||
virtual void OnConvertOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при трансформировании владельца. \en Perform actions when transforming the owner.
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при перемещении владельца. \en Perform actions when moving the owner.
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при вращении владельца. \en Perform actions when rotating the owner.
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
// \ru Выполнить действия при копировании владельца. \en Perform actions when copying the owner.
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null );
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr );
|
||||
// \ru Выполнить действия при объединении владельца. \en Perform actions when merging the owner.
|
||||
virtual void OnMergeOwner( const MbAttributeContainer & owner, MbAttributeContainer & other );
|
||||
// \ru Выполнить действия при замене владельца. \en Perform actions when replacing the owner.
|
||||
@@ -256,7 +256,7 @@ public:
|
||||
/// \ru Выдать идентификатор атрибута. \en Get attribute identifier.
|
||||
const MbUserAttribType & GetUserAttrId() const { return userAttrId; }
|
||||
/// \ru Выдать атрибуты. \en Get attributes.
|
||||
const MbAttribute * GetAttribute( size_t k ) const { return ((k < attributes.size()) ? attributes[k] : c3d_null); }
|
||||
const MbAttribute * GetAttribute( size_t k ) const { return ((k < attributes.size()) ? attributes[k] : nullptr); }
|
||||
// \ru Выдать количество атрибутов. \en Get the number of attributes.
|
||||
size_t AttributesCount() const { return attributes.size(); }
|
||||
|
||||
@@ -300,7 +300,7 @@ MbUserAttribute * UserAttrDefinition<AttrClass>::ReduceUserAttrib( const MbExter
|
||||
MbUserAttribute * resAttr = new MbUserAttribute( _T("AttrClass"), attrId );
|
||||
resAttr->InitActions( source );
|
||||
{
|
||||
const char * charBuf = c3d_null;
|
||||
const char * charBuf = nullptr;
|
||||
size_t memLen = 0;
|
||||
{
|
||||
membuf memBuf;
|
||||
@@ -330,7 +330,7 @@ MbUserAttribute * UserAttrDefinition<AttrClass>::ReduceUserAttrib( const MbExter
|
||||
template <typename AttrClass>
|
||||
MbExternalAttribute * UserAttrDefinition<AttrClass>::AdvanceUserAttrib( const MbUserAttribute & source )
|
||||
{
|
||||
AttrClass * resAttr = c3d_null;
|
||||
AttrClass * resAttr = nullptr;
|
||||
MbUserAttribType attrId;
|
||||
source.GetUserAttribId( attrId );
|
||||
{
|
||||
@@ -360,7 +360,7 @@ MbExternalAttribute * UserAttrDefinition<AttrClass>::AdvanceUserAttrib( const Mb
|
||||
// ---
|
||||
template <typename AttrClass>
|
||||
MbFixAttrSet * UserAttrDefinition<AttrClass>::DisassembleUserAttrib( const MbExternalAttribute & /*source*/ ) {
|
||||
return c3d_null;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ bool UserAttrDefinition<AttrClass>::ReassembleUserAttrib( const MbFixAttrSet & /
|
||||
template <typename AttrDefClass>
|
||||
UserAttrDefinitionInstance<AttrDefClass>::UserAttrDefinitionInstance( const MbUserAttribType & type )
|
||||
: AttrDefInstance( type )
|
||||
, attrDef( c3d_null )
|
||||
, attrDef( nullptr )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -390,7 +390,7 @@ UserAttrDefinitionInstance<AttrDefClass>::UserAttrDefinitionInstance( const MbUs
|
||||
template <typename AttrDefClass>
|
||||
UserAttrDefinitionInstance<AttrDefClass>::~UserAttrDefinitionInstance()
|
||||
{
|
||||
if ( attrDef != c3d_null )
|
||||
if ( attrDef != nullptr )
|
||||
delete attrDef;
|
||||
}
|
||||
|
||||
@@ -401,7 +401,7 @@ UserAttrDefinitionInstance<AttrDefClass>::~UserAttrDefinitionInstance()
|
||||
template <typename AttrDefClass>
|
||||
IAttrDefinition * UserAttrDefinitionInstance<AttrDefClass>::GetAttrDefinition()
|
||||
{
|
||||
if ( attrDef == c3d_null ) {
|
||||
if ( attrDef == nullptr ) {
|
||||
ScopedLock ll( GetLock() );
|
||||
attrDef = new AttrDefClass();
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ public :
|
||||
/// \ru Выдать подтип атрибута. \en Get subtype of an attribute.
|
||||
virtual MbeAttributeType AttributeType() const = 0;
|
||||
/// \ru Сделать копию элемента. \en Create a copy of the element.
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = c3d_null ) const = 0;
|
||||
virtual MbAttribute & Duplicate( MbRegDuplicate * = nullptr ) const = 0;
|
||||
/** \brief \ru Определить, являются ли объекты равными.
|
||||
\en Determine whether objects are equal. \~
|
||||
\details \ru Равными считаются однотипные объекты, все данные которых одинаковы (равны).
|
||||
@@ -336,7 +336,7 @@ public :
|
||||
\en Perform actions when transforming the owner, \n
|
||||
This function is called after transforming the owning object in a case when GetActionForTransform() == trn_Self.
|
||||
The registrator of transformed objects may be passed as input parameter. \~ */
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = c3d_null ) = 0;
|
||||
virtual void OnTransformOwner( const MbAttributeContainer & owner, const MbMatrix3D &, MbRegTransform * = nullptr ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при перемещении владельца. \n
|
||||
Вызывается после перемещения владеющего объекта при условии GetActionForTransform() == trn_Self.
|
||||
@@ -344,7 +344,7 @@ public :
|
||||
\en Perform actions when moving the owner. \n
|
||||
This function is called after moving the owning object in a case when GetActionForTransform() == trn_Self.
|
||||
The registrator of transformed objects may be passed as input parameter. \~ */
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = c3d_null ) = 0;
|
||||
virtual void OnMoveOwner( const MbAttributeContainer & owner, const MbVector3D &, MbRegTransform * = nullptr ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при вращении владельца. \n
|
||||
Вызывается после вращения владеющего объекта при условии GetActionForTransform() == trn_Self.
|
||||
@@ -352,7 +352,7 @@ public :
|
||||
\en Perform actions when rotating the owner. \n
|
||||
This function is called after rotating the owning object in a case when GetActionForTransform() == trn_Self.
|
||||
The registrator of transformed objects may be passed as input parameter. \~ */
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = c3d_null ) = 0;
|
||||
virtual void OnRotateOwner( const MbAttributeContainer & owner, const MbAxis3D &, double angle, MbRegTransform * = nullptr ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при копировании владельца. \n
|
||||
Вызывается после копирования владеющего объекта при условии GetActionForCopy() == cpy_Self. \n
|
||||
@@ -360,7 +360,7 @@ public :
|
||||
\en Perform actions when copying the owner. \n
|
||||
This function is called after copying the owning object in a case when GetActionForCopy() == cpy_Self. \n
|
||||
The following objects are passed as input parameters: the owning object copy and registrator of copied objects. \~ */
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = c3d_null ) = 0;
|
||||
virtual void OnCopyOwner( const MbAttributeContainer & owner, MbAttributeContainer & other, MbRegDuplicate * = nullptr ) = 0;
|
||||
|
||||
/**\ru Выполнить действия при объединении владельца. \n
|
||||
Вызывается перед слиянием владельца при условии GetActionForMerge() == mrg_Self. \n
|
||||
|
||||
@@ -169,13 +169,13 @@ public:
|
||||
/// \ru Выполнить действия при конвертации атрибутов. \en Perform actions when converting the attributes.
|
||||
void AttributesConvert( MbAttributeContainer & other ) const;
|
||||
/// \ru Выполнить действия при трансформировании атрибутов. \en Perform actions when transforming the attributes.
|
||||
void AttributesTransform( const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
void AttributesTransform( const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
/// \ru Выполнить действия при перемещении атрибутов. \en Perform actions when moving the attributes.
|
||||
void AttributesMove ( const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
void AttributesMove ( const MbVector3D &, MbRegTransform * = nullptr );
|
||||
/// \ru Выполнить действия при вращении атрибутов. \en Perform actions when rotating the attributes.
|
||||
void AttributesRotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
void AttributesRotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
/// \ru Выполнить действия при копировании атрибутов. \en Perform actions when copying the attributes.
|
||||
void AttributesCopy ( MbAttributeContainer & other, MbRegDuplicate * = c3d_null ) const;
|
||||
void AttributesCopy ( MbAttributeContainer & other, MbRegDuplicate * = nullptr ) const;
|
||||
/// \ru Выполнить действия при объединении атрибутов. \en Perform actions when merging the attributes.
|
||||
void AttributesMerge ( MbAttributeContainer & other );
|
||||
/// \ru Выполнить действия при замене атрибутов. \en Perform actions when replacing the attributes.
|
||||
@@ -195,7 +195,7 @@ public:
|
||||
double GetDensity() const;
|
||||
|
||||
/// \ru Установить визуальные свойства объекта. \en Set visual properties of the object.
|
||||
void SetVisual( float a, float d, float sp, float sh, float t, float e );
|
||||
void SetVisual( float a, float d, float sp, float sh, float t, float e, uint rgb = 0 );
|
||||
/** \brief \ru Выдать визуальные свойства объекта.
|
||||
\en Get visual properties of the object. \~
|
||||
\details \ru Выдать визуальные свойства объекта.
|
||||
@@ -215,7 +215,7 @@ public:
|
||||
\return \ru true если есть такой атрибут \n false в противном случае
|
||||
\en True if there is the attribute MbVisual \n otherwise false. \~
|
||||
*/
|
||||
bool GetVisual( float & a, float & d, float & sp, float & sh, float & t, float & e ) const;
|
||||
bool GetVisual( float & a, float & d, float & sp, float & sh, float & t, float & e, uint rgb = 0 ) const;
|
||||
|
||||
/// \ru Есть ли у объекта свой цвет. \en .
|
||||
|
||||
@@ -226,7 +226,7 @@ public:
|
||||
\return \ru true если есть такой атрибут \n false в противном случае
|
||||
\en True if there is the attribute MbColor \n otherwise false. \~
|
||||
*/
|
||||
bool IsColored() const { return (GetSimpleAttribute( at_Color ) != c3d_null); }
|
||||
bool IsColored() const { return (GetSimpleAttribute( at_Color ) != nullptr); }
|
||||
/// \ru Изменить цвет объекта. \en Change color of the object.
|
||||
void SetColor( uint32 );
|
||||
/// \ru Изменить цвет объекта (0-255). \en Change color of the object (0-255).
|
||||
@@ -322,7 +322,7 @@ MATH_FUNC (bool) AddCommonAttributes( const MbAttributeContainer & srcItem,
|
||||
MbeAttributeType attrType,
|
||||
const c3d::string_t & attrPrompt,
|
||||
MbAttributeContainer & dstItem,
|
||||
c3d::AttrVector * bufAttrs = c3d_null );
|
||||
c3d::AttrVector * bufAttrs = nullptr );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Удалить обобщенные атрибуты.
|
||||
|
||||
@@ -45,8 +45,8 @@ typedef const void * cdet_app_item;
|
||||
//----------------------------------------------------------------------------------------
|
||||
// Constants
|
||||
//---
|
||||
const cdet_item CDET_NULL = c3d_null; ///< \ru Пустой объект набора для контроля столкновений. \en Empty object of the collision query set.
|
||||
const cdet_app_item CDET_APP_NULL = c3d_null; ///< \ru "Нулевой" объект модели приложения. \en "Null object" of the client app.
|
||||
const cdet_item CDET_NULL = nullptr; ///< \ru Пустой объект набора для контроля столкновений. \en Empty object of the collision query set.
|
||||
const cdet_app_item CDET_APP_NULL = nullptr; ///< \ru "Нулевой" объект модели приложения. \en "Null object" of the client app.
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
/** \brief \ru Структура данных и обратных вызовов для запроса на поиск соударений.
|
||||
@@ -87,8 +87,8 @@ struct cdet_query
|
||||
const MbRefItem * refItem;
|
||||
const MbMatrix3D * wMatrix;
|
||||
geom_element()
|
||||
: appItem( c3d_null )
|
||||
, refItem( c3d_null )
|
||||
: appItem( nullptr )
|
||||
, refItem( nullptr )
|
||||
, wMatrix( &MbMatrix3D::identity ) {}
|
||||
};
|
||||
|
||||
@@ -127,7 +127,7 @@ struct cdet_query_result: public cdet_query
|
||||
private:
|
||||
static cback_res QueryFunc( cdet_query * query, message code, cback_data & )
|
||||
{
|
||||
C3D_ASSERT( c3d_null != query );
|
||||
C3D_ASSERT( nullptr != query );
|
||||
cdet_query_result * q = static_cast<cdet_query_result*>( query );
|
||||
switch( code )
|
||||
{
|
||||
@@ -172,7 +172,7 @@ private:
|
||||
{
|
||||
case CDET_QUERY_STARTED: // The collision query is started for all solids of the set
|
||||
{
|
||||
q->first = q->second = c3d_null;
|
||||
q->first = q->second = nullptr;
|
||||
return CBACK_VOID;
|
||||
}
|
||||
case CDET_FINISHED: // A pair of solids is finished.
|
||||
@@ -368,7 +368,7 @@ public:
|
||||
MbCollisionFace( const MbFace & f )
|
||||
: item( CDET_NULL )
|
||||
, mathFace( &f )
|
||||
, partFace( c3d_null )
|
||||
, partFace( nullptr )
|
||||
{}
|
||||
|
||||
const MbFace & Face() const { return *mathFace; }
|
||||
|
||||
@@ -162,7 +162,7 @@ public: /*
|
||||
// Use AppItem() insead this
|
||||
cdet_app_item Component( size_t solIdx ) const;
|
||||
// The func is deprecated. Instead, use CheckCollisions
|
||||
cdet_result InterferenceDetect( void * formalPar = c3d_null ) const;
|
||||
cdet_result InterferenceDetect( void * formalPar = nullptr ) const;
|
||||
// The func is deprecated. Use SetDistanceTracking instead.
|
||||
void SetDistanceComputationObjects( const MbLumpAndFaces &, const MbLumpAndFaces & );
|
||||
// The func is deprecated. Use AddSolid/AddItem instead.
|
||||
@@ -197,7 +197,7 @@ inline cdet_result MbCollisionDetectionUtility::CheckCollisions()
|
||||
/// \ru Узел дерева объемов. \en A node of the bounding volume tree.
|
||||
typedef const MtRefItem * cdet_bvt_node;
|
||||
/// \ru Пустое дерево объемов. \en An empty bounding volume tree.
|
||||
const cdet_bvt_node CDET_BVT_NULL = c3d_null;
|
||||
const cdet_bvt_node CDET_BVT_NULL = nullptr;
|
||||
/// \ru Пара ветвей поддерева объемов. \en A pair of branches of the bounding volume subtree.
|
||||
typedef std::pair<cdet_bvt_node,cdet_bvt_node> cdet_bvt_pair;
|
||||
|
||||
|
||||
@@ -70,13 +70,13 @@ public:
|
||||
|
||||
public:
|
||||
/// \ru Пересечение - есть тело. \en Intersection is a solid.
|
||||
bool IsSolid() const { return ((solid != c3d_null) || (isSolid && !edges.empty())); }
|
||||
bool IsSolid() const { return ((solid != nullptr) || (isSolid && !edges.empty())); }
|
||||
/// \ru Пересечение касательной областью поверхности. \en Intersection by a tangent region of a surface.
|
||||
bool IsSurface() const { return !isTangentCurve && !edges.empty(); }
|
||||
/// \ru Пересечение вдоль касательной линии. \en Intersection along a tangent line.
|
||||
bool IsCurve() const { return isTangentCurve && !edges.empty(); }
|
||||
/// \ru Пересечение точкой (еще не реализовано). \en Intersection is a point (not implemented yet).
|
||||
bool IsPoint() const { return ((pointFrame != c3d_null) && (pointFrame->GetVerticesCount() > 0)); }
|
||||
bool IsPoint() const { return ((pointFrame != nullptr) && (pointFrame->GetVerticesCount() > 0)); }
|
||||
|
||||
/// \ru Установить флаг пересечения вдоль касательной линии. \en Set the flag of intersection along a tangent line.
|
||||
//void SetTangent( bool b ) { isTangentCurve = b; }
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
template <class EdgesVector>
|
||||
void GetCurves( EdgesVector & curves ) const;
|
||||
/// \ru Получить указатель на кривую пересечения по индексу. \en Get a pointer to an intersection curve by the index.
|
||||
const MbCurveEdge * GetCurve( size_t k ) const { return ((k < edges.size()) ? edges[k].get() : c3d_null); }
|
||||
const MbCurveEdge * GetCurve( size_t k ) const { return ((k < edges.size()) ? edges[k].get() : nullptr); }
|
||||
/// \ru Получить номера касающихся граней первого/второго тела. \en Get numbers concerning faces of the first/second solid.
|
||||
template <class OutputIndicesVector>
|
||||
void GetFaceNumbers( bool first, OutputIndicesVector & ) const;
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
void GetFaceNumbersPairs( OutputIndicesPairsVector & ) const;
|
||||
|
||||
/// \ru Количество точек касания. \en The number of touch points.
|
||||
size_t GetPointsCount() const { return ((pointFrame != c3d_null) ? pointFrame->GetVerticesCount() : 0); }
|
||||
size_t GetPointsCount() const { return ((pointFrame != nullptr) ? pointFrame->GetVerticesCount() : 0); }
|
||||
/// \ru Получить набор точек касания. \en Get a set of touch points.
|
||||
const MbPointFrame * GetPointFrame() const { return pointFrame; }
|
||||
|
||||
@@ -117,8 +117,8 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & initEdge
|
||||
: edges ( )
|
||||
, faceIndices1 ( )
|
||||
, faceIndices2 ( )
|
||||
, solid ( c3d_null )
|
||||
, pointFrame ( c3d_null )
|
||||
, solid ( nullptr )
|
||||
, pointFrame ( nullptr )
|
||||
, isTangentCurve( false )
|
||||
, isSolid ( isSolidEgdes )
|
||||
{
|
||||
@@ -127,7 +127,7 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & initEdge
|
||||
c3d::EdgeSPtr edge;
|
||||
edges.reserve( addCnt );
|
||||
for ( size_t k = 0; k < addCnt; ++k ) {
|
||||
if ( initEdges[k] != c3d_null ) {
|
||||
if ( initEdges[k] != nullptr ) {
|
||||
edge = const_cast<MbCurveEdge *>( &(*initEdges[k]) );
|
||||
edges.push_back( edge );
|
||||
}
|
||||
@@ -146,8 +146,8 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & in
|
||||
: edges ( )
|
||||
, faceIndices1 ( )
|
||||
, faceIndices2 ( )
|
||||
, solid ( c3d_null )
|
||||
, pointFrame ( c3d_null )
|
||||
, solid ( nullptr )
|
||||
, pointFrame ( nullptr )
|
||||
, isTangentCurve( false )
|
||||
, isSolid ( false )
|
||||
{
|
||||
@@ -157,7 +157,7 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector & in
|
||||
c3d::EdgeSPtr edge;
|
||||
edges.reserve( edgesCnt );
|
||||
for ( size_t k = 0; k < edgesCnt; ++k ) {
|
||||
if ( initEdges[k] != c3d_null ) {
|
||||
if ( initEdges[k] != nullptr ) {
|
||||
edge = const_cast<MbCurveEdge *>(&(*initEdges[k]));
|
||||
edges.push_back( edge );
|
||||
}
|
||||
@@ -177,8 +177,8 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector &
|
||||
: edges ( )
|
||||
, faceIndices1 ( )
|
||||
, faceIndices2 ( )
|
||||
, solid ( c3d_null )
|
||||
, pointFrame ( c3d_null )
|
||||
, solid ( nullptr )
|
||||
, pointFrame ( nullptr )
|
||||
, isTangentCurve( false )
|
||||
, isSolid ( false )
|
||||
{
|
||||
@@ -189,7 +189,7 @@ MbShellsIntersectionData::MbShellsIntersectionData( const EdgesVector &
|
||||
edges.reserve( edgesCnt );
|
||||
size_t k;
|
||||
for ( k = 0; k < edgesCnt; ++k ) {
|
||||
if ( initEdges[k] != c3d_null ) {
|
||||
if ( initEdges[k] != nullptr ) {
|
||||
edge = const_cast<MbCurveEdge *>(&(*initEdges[k]));
|
||||
edges.push_back( edge );
|
||||
}
|
||||
@@ -340,9 +340,9 @@ bool CheckBoundaryEdges( const Edges & allEdges, Edges * boundaryEdges )
|
||||
|
||||
if ( boundaryEdges != &allEdges ) {
|
||||
for ( size_t i = 0, cnt = allEdges.size(); i < cnt; ++i ) {
|
||||
if ( allEdges[i] != c3d_null && allEdges[i]->IsBoundaryFace( METRIC_PRECISION ) ) {
|
||||
if ( allEdges[i] != nullptr && allEdges[i]->IsBoundaryFace( METRIC_PRECISION ) ) {
|
||||
isBoundary = true;
|
||||
if ( boundaryEdges != c3d_null )
|
||||
if ( boundaryEdges != nullptr )
|
||||
boundaryEdges->push_back( allEdges[i] );
|
||||
else
|
||||
break;
|
||||
@@ -415,9 +415,9 @@ bool CheckInexactVertices( const Vertices & vertArr, double mAcc, Vertices * ine
|
||||
if ( inexactVerts != &vertArr ) {
|
||||
for ( size_t i = 0, icnt = vertArr.size(); i < icnt; ++i ) {
|
||||
MbVertex * v = vertArr[i];
|
||||
if ( v != c3d_null && v->GetTolerance() > mAcc ) {
|
||||
if ( v != nullptr && v->GetTolerance() > mAcc ) {
|
||||
isInexactVertex = true;
|
||||
if ( inexactVerts != c3d_null )
|
||||
if ( inexactVerts != nullptr )
|
||||
inexactVerts->push_back( v );
|
||||
else
|
||||
break;
|
||||
@@ -480,12 +480,12 @@ bool CheckInexactEdges( const Edges & allEdges, double mAcc, Edges * inexactEdge
|
||||
bool isInexactEdge = false;
|
||||
|
||||
for ( size_t i = 0, icnt = allEdges.size(); i < icnt; ++i ) {
|
||||
if ( allEdges[i] != c3d_null) {
|
||||
if ( allEdges[i] != nullptr) {
|
||||
bool isSpaceNear = !::IsInexactEdge( *allEdges[i], mAcc );
|
||||
|
||||
if ( !isSpaceNear ) {
|
||||
isInexactEdge = true;
|
||||
if ( inexactEdges != c3d_null )
|
||||
if ( inexactEdges != nullptr )
|
||||
inexactEdges->push_back( allEdges[i] );
|
||||
else
|
||||
break;
|
||||
@@ -498,7 +498,7 @@ bool CheckInexactEdges( const Edges & allEdges, double mAcc, Edges * inexactEdge
|
||||
double mLen = allEdges[i]->GetLengthEvaluation();
|
||||
if ( mLen > METRIC_PRECISION && mLen > mTol + METRIC_PRECISION ) {
|
||||
isInexactEdge = true;
|
||||
if ( inexactEdges != c3d_null )
|
||||
if ( inexactEdges != nullptr )
|
||||
inexactEdges->push_back( allEdges[i] );
|
||||
else
|
||||
break;
|
||||
|
||||
@@ -84,10 +84,10 @@ public:
|
||||
// \ru Общие функции геометрического объекта \en Common functions of a geometric object
|
||||
virtual MbeSpaceType IsA() const; // \ru Тип объекта. \en A type of an object.
|
||||
virtual MbeSpaceType Type() const; // \ru Групповой тип объекта. \en Group type of object.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Translate along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual MbSpaceItem & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Создать копию. \en Create a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать согласно матрице. \en Transform according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвинуть вдоль вектора. \en Translate along a vector.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame ( const MbSpaceItem & init, double accuracy = LENGTH_EPSILON ) const; // \ru Являются ли объекты равными? \en Are the objects equal?
|
||||
virtual bool SetEqual ( const MbSpaceItem & init ); // \ru Сделать объекты равным. \en Make the objects equal.
|
||||
virtual double DistanceToPoint ( const MbCartPoint3D & ) const; // \ru Вычислить расстояние до точки. \en Calculate the distance to a point.
|
||||
@@ -184,9 +184,7 @@ public:
|
||||
|
||||
/// \ru Удалить точки. \en Delete points.
|
||||
void PointsRemove() { points.clear();
|
||||
#ifdef C3D_STANDARD_CXX_11_PARTIAL
|
||||
points.shrink_to_fit();
|
||||
#endif
|
||||
points.shrink_to_fit();
|
||||
cube.SetEmpty(); }
|
||||
/// \ru Удалить точку с заданным номером. \en Delete point by the given index.
|
||||
void PointRemove ( size_t i ) { if ( i < points.size() ) points.erase( points.begin() + i ); cube.SetEmpty(); }
|
||||
@@ -282,17 +280,13 @@ public:
|
||||
/// \ru Удалить всю триангуляцию и освободить память. \en Delete all triangulation and free the memory.
|
||||
void HardFlush() { points.clear(); normals.clear(); escorts.clear();
|
||||
triangles.clear(); quadrangles.clear(); elements.clear(); segments.clear(); //grids.clear();
|
||||
#ifdef C3D_STANDARD_CXX_11_PARTIAL
|
||||
points.shrink_to_fit(); normals.shrink_to_fit(); escorts.shrink_to_fit();
|
||||
triangles.shrink_to_fit(); quadrangles.shrink_to_fit(); elements.shrink_to_fit(); segments.shrink_to_fit(); //grids.shrink_to_fit();
|
||||
#endif
|
||||
cube.SetEmpty(); }
|
||||
/// \ru Освободить лишнюю память. \en Free the unnecessary memory.
|
||||
void Adjust() {
|
||||
#ifdef C3D_STANDARD_CXX_11_PARTIAL
|
||||
points.shrink_to_fit(); normals.shrink_to_fit(); escorts.shrink_to_fit();
|
||||
triangles.shrink_to_fit(); quadrangles.shrink_to_fit(); elements.shrink_to_fit(); segments.shrink_to_fit(); //grids.shrink_to_fit();
|
||||
#endif
|
||||
}
|
||||
|
||||
/// \ru Инициализировать объект. \en Initialize object.
|
||||
|
||||
@@ -56,8 +56,8 @@ public:
|
||||
public:
|
||||
MtGeomArgument( const MbRefItem * p, const MbItem * h );
|
||||
MtGeomArgument( const MtGeomArgument & );
|
||||
MtGeomArgument() : propItem( c3d_null ), propName( c3d::UNDEFINED_SNAME )
|
||||
, hash( c3d::UNDEFINED_SNAME ), item( c3d_null ), root( c3d_null ) {}
|
||||
MtGeomArgument() : propItem( nullptr ), propName( c3d::UNDEFINED_SNAME )
|
||||
, hash( c3d::UNDEFINED_SNAME ), item( nullptr ), root( nullptr ) {}
|
||||
|
||||
public:
|
||||
/** \brief \ru Получить непосредственный объект сборки, содержащий ссылочный объект.
|
||||
@@ -120,7 +120,7 @@ public:
|
||||
|
||||
public:
|
||||
/// \ru Возвращает true, если ограничение не действительно. \en Return true if the constraint is invalid.
|
||||
bool IsNull() const { return m_cItem == c3d_null; }
|
||||
bool IsNull() const { return m_cItem == nullptr; }
|
||||
/// \ru Тип сопряжения (геометрического ограничения). \en Type of geometric constraint.
|
||||
MtMateType ConstraintType() const;
|
||||
/// \ru Текущее значение размера. \en Current value of the dimension.
|
||||
|
||||
@@ -38,8 +38,8 @@ public:
|
||||
/// \ru Конструктор по точке. \en Constructor by point.
|
||||
MpVertex( const MbCartPoint & initP )
|
||||
: point( initP )
|
||||
, begEdge( c3d_null )
|
||||
, endEdge( c3d_null )
|
||||
, begEdge( nullptr )
|
||||
, endEdge( nullptr )
|
||||
{}
|
||||
|
||||
/// \ru Деструктор. \en Destructor.
|
||||
@@ -737,7 +737,7 @@ IMPL_PERSISTENT_OPS( MpGraph )
|
||||
*/ // ---
|
||||
inline void DeleteVertex( MpVertex *& vertex ) {
|
||||
delete vertex;
|
||||
vertex = c3d_null;
|
||||
vertex = nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -751,7 +751,7 @@ inline void DeleteVertex( MpVertex *& vertex ) {
|
||||
*/ // ---
|
||||
inline void DeleteEdge( MpEdge *& edge ) {
|
||||
delete edge;
|
||||
edge = c3d_null;
|
||||
edge = nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -765,7 +765,7 @@ inline void DeleteEdge( MpEdge *& edge ) {
|
||||
*/ // ---
|
||||
inline void DeleteLoop( MpLoop *& loop ) {
|
||||
delete loop;
|
||||
loop = c3d_null;
|
||||
loop = nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -779,7 +779,7 @@ inline void DeleteLoop( MpLoop *& loop ) {
|
||||
*/ // ---
|
||||
inline void DeleteGraph( MpGraph *& graph ) {
|
||||
delete graph;
|
||||
graph = c3d_null;
|
||||
graph = nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -848,7 +848,7 @@ MATH_FUNC (MpGraph *) EncloseContoursBuilder( const RPArray<MbCurve> & curveLi
|
||||
double accuracy,
|
||||
bool strict,
|
||||
VERSION version,
|
||||
IProgressIndicator * progInd = c3d_null );
|
||||
IProgressIndicator * progInd = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -886,7 +886,7 @@ MATH_FUNC (MpGraph *) OuterContoursBuilder( const RPArray<MbCurve> & curveList,
|
||||
double accuracy,
|
||||
bool strict,
|
||||
VERSION version,
|
||||
IProgressIndicator * progInd = c3d_null );
|
||||
IProgressIndicator * progInd = nullptr );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Перестроить контуры, построенные ранее вокруг точки.
|
||||
@@ -924,7 +924,7 @@ MATH_FUNC (MpGraph *) ContoursReconstructor( const RPArray<MbCurve> & curveLis
|
||||
double accuracy,
|
||||
bool strict,
|
||||
VERSION version,
|
||||
IProgressIndicator * progInd = c3d_null );
|
||||
IProgressIndicator * progInd = nullptr );
|
||||
|
||||
|
||||
#endif // __CONTOUR_GRAPH_H
|
||||
|
||||
@@ -573,7 +573,7 @@ public:
|
||||
/// \ru Задать диапазон. \en Set range.
|
||||
void SetRange( double vPlus, double vMinus );
|
||||
/// \ru Получить номинал. \en Get value.
|
||||
bool GetValue( double& v );
|
||||
bool GetValue( double& v ) const;
|
||||
/// \ru Получить границы диапазона и значение, если они заданы. \en Get bounds of range and a value if they are specified.
|
||||
bool GetRange( double& v, double& vPlus, double& vMinus ) const;
|
||||
/// \ru Получить границы диапазона, если они заданы. \en Get bounds of the range if they are specified.
|
||||
|
||||
@@ -454,7 +454,7 @@ public:
|
||||
virtual bool AttatchIdAttributes() const { return true; }
|
||||
|
||||
/// \ru Получить пользовательский преобразователь строк. \en Get user string transformer.
|
||||
virtual SPtr<IC3DCharEncodingTransformer> GetUserCharEncodingTransformer() const { return SPtr<IC3DCharEncodingTransformer>(c3d_null); }
|
||||
virtual SPtr<IC3DCharEncodingTransformer> GetUserCharEncodingTransformer() const { return SPtr<IC3DCharEncodingTransformer>(nullptr); }
|
||||
|
||||
}; // IConvertorProperty3D
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
/** \brief \ru Прообраз новой интерфейсной функции - получить наполнение.
|
||||
\en Prototype of a new interface function - get the filling. \~
|
||||
*/
|
||||
virtual MbItem * GetContent() /*{ return c3d_null; }*/ = 0;
|
||||
virtual MbItem * GetContent() /*{ return nullptr; }*/ = 0;
|
||||
|
||||
/** \brief \ru Создать документ с новой сборкой при импорте.
|
||||
\en Create a document with a new assembly while importing. \~
|
||||
@@ -75,8 +75,8 @@ public:
|
||||
\en Assembly name. \~
|
||||
\param[in] solids - \ru Тела, добавляемые в сборку.
|
||||
\en Solids to add into the assembly. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr CreateAssembly( const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
@@ -89,8 +89,8 @@ public:
|
||||
\en Solids to add into a part. \~
|
||||
\param[in] fileName - \ru Имя детали.
|
||||
\en A part name. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of the part if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr CreatePart( const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
@@ -98,8 +98,8 @@ public:
|
||||
\en Get an assembly for export. \~
|
||||
\details \ru Увеличить счётчик ссылок результирующей сборки на 1.
|
||||
\en Increase the reference counter of the resultant assembly by 1. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr GetInstanceAssembly( ) = 0;
|
||||
|
||||
@@ -108,8 +108,8 @@ public:
|
||||
\en Get the detail for export. \~
|
||||
\details \ru Увеличить счётчик ссылок результирующей детали на 1.
|
||||
\en Increase the reference counter of the resultant part by 1. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of the part if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr GetInstancePart( ) = 0;
|
||||
|
||||
@@ -157,6 +157,9 @@ public:
|
||||
};
|
||||
|
||||
|
||||
class MaAtributePostRemover;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Формирователь геометрического представления PMI.
|
||||
\en Generator of PMI's geometry shape. \~
|
||||
@@ -168,11 +171,14 @@ public:
|
||||
// ---
|
||||
class CONV_CLASS C3DPmiToItem : public MbRefItem {
|
||||
SPtr<C3DSymbolToItem> symToItem;
|
||||
MaAtributePostRemover* tempAttributeManager;
|
||||
public:
|
||||
C3DPmiToItem( SPtr<C3DSymbolToItem> = SPtr<C3DSymbolToItem>() );
|
||||
|
||||
virtual SPtr<MbItem> operator() ( const MaAnnotationItem* ) const;
|
||||
virtual SPtr<MaAnnotationItem> operator() ( const MbItem* ) const;
|
||||
|
||||
void AddPartItem( const MbItem& ); // Добавить элемент для установления связи PMI и элемента модели
|
||||
|
||||
virtual ~C3DPmiToItem();
|
||||
};
|
||||
@@ -341,8 +347,8 @@ public:
|
||||
\en LCS of the assembly in the parent's model. \~
|
||||
\param[in] fileName - \ru Имя сборки.
|
||||
\en Assembly name. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr CreateAssembly( const MbPlacement3D &place, const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
@@ -356,23 +362,23 @@ public:
|
||||
\en Solids included in the part. \~
|
||||
\param[in] fileName - \ru Название детали.
|
||||
\en Solid's name. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of the part if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr CreatePart( const MbPlacement3D &place, const c3d::ItemsSPtrVector & componentItems, const c3d::string_t& fileName ) = 0;
|
||||
|
||||
/** \brief \ru Получить сборку для экспорта.
|
||||
\en Get an assembly for export. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр сборки, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of an assembly if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelAssemblyPtr GetInstanceAssembly( ) = 0;
|
||||
|
||||
|
||||
/** \brief \ru Получить деталь для экспорта.
|
||||
\en Get the detail for export. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, c3d_null в противном случае.
|
||||
\en Instance of the part if the operation succeeded, c3d_null - otherwise. \~
|
||||
\return \ru Экземпляр детали, если операция прошла успешно, nullptr в противном случае.
|
||||
\en Instance of the part if the operation succeeded, nullptr - otherwise. \~
|
||||
*/
|
||||
virtual ModelPartPtr GetInstancePart( ) = 0;
|
||||
|
||||
@@ -445,15 +451,15 @@ public:
|
||||
\en Get an empty interface of the insertion for creation of subassembly or a part while importing. \~
|
||||
\details \ru Увеличить счётчик ссылок на 1.
|
||||
\en Increase the reference counter by 1. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and c3d_null otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или nullptr в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and nullptr otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr PrepareInstance() = 0;
|
||||
|
||||
/** \brief \ru Получить интерфейс следующей вставки для создания подсборки или детали при экспорте.
|
||||
\en Get the interface of the next insertion for creation of a subassembly or a part while exporting. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and c3d_null otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или nullptr в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and nullptr otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr NextInstance( bool includeInvisible ) = 0;
|
||||
|
||||
@@ -524,15 +530,15 @@ public:
|
||||
\en Get an empty interface of the insertion for creation of subassembly or a part while importing. \~
|
||||
\details \ru Увеличить счётчик ссылок на 1.
|
||||
\en Increase the reference counter by 1. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and c3d_null otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или nullptr в противном случае.
|
||||
\en Interface of the instance if the operation succeeded and nullptr otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr PrepareInstance() = 0;
|
||||
|
||||
/** \brief \ru Получить интерфейс следующей вставки для создания подсборки или детали при экспорте.
|
||||
\en Get the interface of the next insertion for creation of a subassembly or a part while exporting. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или c3d_null в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and c3d_null otherwise. \~
|
||||
\return \ru Интерфейс вставки, если операция прошла успешно или nullptr в противном случае.
|
||||
\en Interface of the insertion if the operation succeeded and nullptr otherwise. \~
|
||||
*/
|
||||
virtual ModelInstancePtr NextInstance( bool includeInvisible ) = 0;
|
||||
|
||||
|
||||
@@ -102,8 +102,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC( MbeConvResType ) ImportFromFile( MbModel& model,
|
||||
const path_string& fileName,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
|
||||
/** \brief \ru Прочитать файл обменного формата в элемент.
|
||||
@@ -126,8 +126,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC( MbeConvResType ) ImportFromFile( c3d::ItemSPtr& item,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
/** \brief \ru Прочитать файл обменного формата в модель.
|
||||
\en Read a file of an exchange format into model. \~
|
||||
@@ -149,8 +149,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC( MbeConvResType ) ImportFromFile( ItModelDocument& mDoc,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
/** \brief \ru Записать модель в файл обменного формата.
|
||||
\en Write the model into an exchange format file. \~
|
||||
@@ -172,8 +172,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC( MbeConvResType ) ExportIntoFile( MbModel& model,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
/** \brief \ru Записать модель в файл обменного формата.
|
||||
\en Write the model into an exchange format file. \~
|
||||
@@ -195,8 +195,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC( MbeConvResType ) ExportIntoFile( MbItem& item,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
/** \brief \ru Записать модельный документ в файл обменного формата.
|
||||
\en Write the model into an exchange format file. \~
|
||||
@@ -218,8 +218,8 @@ namespace c3d {
|
||||
*/
|
||||
CONV_FUNC( MbeConvResType ) ExportIntoFile( ItModelDocument& mDoc,
|
||||
const path_string& filePath,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
|
||||
/** \brief \ru Импортировать данные из буфера в модель.
|
||||
@@ -241,8 +241,8 @@ namespace c3d {
|
||||
CONV_FUNC( MbeConvResType ) ImportFromBuffer( MbModel& model,
|
||||
const C3DExchangeBuffer& buffer,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
|
||||
/** \brief \ru Импортировать данные из буфера в модель.
|
||||
@@ -264,8 +264,8 @@ namespace c3d {
|
||||
CONV_FUNC( MbeConvResType ) ImportFromBuffer( c3d::ItemSPtr& item,
|
||||
const C3DExchangeBuffer& buffer,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
|
||||
/** \brief \ru Экспортировать модель в буфер.
|
||||
@@ -287,8 +287,8 @@ namespace c3d {
|
||||
CONV_FUNC( MbeConvResType ) ExportIntoBuffer( MbModel& model,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
C3DExchangeBuffer& buffer,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
|
||||
/** \brief \ru Экспортировать модель в буфер.
|
||||
@@ -310,8 +310,8 @@ namespace c3d {
|
||||
CONV_FUNC( MbeConvResType ) ExportIntoBuffer( MbItem& item,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
C3DExchangeBuffer& buffer,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
/** \brief \ru Экспортировать модельный документ в буфер.
|
||||
\en Export model document into buffer. \~
|
||||
@@ -332,8 +332,8 @@ namespace c3d {
|
||||
CONV_FUNC( MbeConvResType ) ExportIntoBuffer( ItModelDocument& item,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
C3DExchangeBuffer& buffer,
|
||||
IConvertorProperty3D* prop = c3d_null,
|
||||
IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr,
|
||||
IProgressIndicator* indicator = nullptr );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/** \brief \ru Буфер для обмена.
|
||||
@@ -349,7 +349,7 @@ namespace c3d {
|
||||
|
||||
// \ru Конструктор. \en Constructor.
|
||||
C3DExchangeBuffer()
|
||||
: data( c3d_null )
|
||||
: data( nullptr )
|
||||
, count( 0 ) {
|
||||
}
|
||||
|
||||
@@ -416,10 +416,10 @@ public:
|
||||
\en Implementation of converter's properties interface. \~
|
||||
\param[in] idoc - \ru Реализация интерфейса документа.
|
||||
\en Implementation of document interface. \~
|
||||
\param[in] stream - \ru Поток, из которого производится чтение (может быть c3d_null).
|
||||
\en Stream from which reading is performed (can be c3d_null). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть c3d_null).
|
||||
\en The process progress indicator (can be c3d_null). \~
|
||||
\param[in] stream - \ru Поток, из которого производится чтение (может быть nullptr).
|
||||
\en Stream from which reading is performed (can be nullptr). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть nullptr).
|
||||
\en The process progress indicator (can be nullptr). \~
|
||||
\param[in] qeuryStitch - \ru Диалог запроса на сшивку поверхностей.
|
||||
\en Dialog of request for stitching the surfaces. \~
|
||||
\return \ru Код завершения операции.
|
||||
@@ -440,10 +440,10 @@ public:
|
||||
\en Implementation of converter's properties interface. \~
|
||||
\param[in] idoc - \ru Реализация интерфейса документа.
|
||||
\en Implementation of document interface. \~
|
||||
\param[in] stream - \ru Поток, в который производится запись (может быть c3d_null).
|
||||
\en Stream in which the record is performed (can be c3d_null). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть c3d_null).
|
||||
\en The process progress indicator (can be c3d_null). \~
|
||||
\param[in] stream - \ru Поток, в который производится запись (может быть nullptr).
|
||||
\en Stream in which the record is performed (can be nullptr). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть nullptr).
|
||||
\en The process progress indicator (can be nullptr). \~
|
||||
\return \ru Код завершения операции.
|
||||
\en Code of the operation termination. \~
|
||||
\ingroup ACIS_Exchange
|
||||
@@ -845,8 +845,8 @@ CONV_FUNC( MbeConvResType ) SATRead( IConvertorProperty3D& prop, ItModelDocument
|
||||
\en Implementation of converter's properties interface. \~
|
||||
\param[in] idoc - \ru Реализация интерфейса документа.
|
||||
\en Implementation of document interface. \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть c3d_null).
|
||||
\en The process progress indicator (can be c3d_null). \~
|
||||
\param[in] indicator - \ru Индикатор хода процесса (может быть nullptr).
|
||||
\en The process progress indicator (can be nullptr). \~
|
||||
\return \ru Код завершения операции.
|
||||
\en Code of the operation termination. \~
|
||||
\ingroup ACIS_Exchange
|
||||
@@ -1144,7 +1144,7 @@ namespace c3d {
|
||||
const char* data,
|
||||
size_t length,
|
||||
MbeModelExchangeFormat modelFormat,
|
||||
IConvertorProperty3D* prop = c3d_null, IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr, IProgressIndicator* indicator = nullptr );
|
||||
|
||||
/** \brief \ru Экспортировать модель в буфер.
|
||||
\en Export model into buffer. \~
|
||||
@@ -1195,7 +1195,7 @@ namespace c3d {
|
||||
DEPRECATE_DECLARE CONV_FUNC( MbeConvResType ) ExportIntoBuffer( MbItem& item, MbeModelExchangeFormat modelFormat,
|
||||
char*& data,
|
||||
size_t& length,
|
||||
IConvertorProperty3D* prop = c3d_null, IProgressIndicator* indicator = c3d_null );
|
||||
IConvertorProperty3D* prop = nullptr, IProgressIndicator* indicator = nullptr );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -54,33 +54,47 @@ namespace JTC {
|
||||
std::vector<MbCartPoint3D> boundaryPoints;
|
||||
double metricTolerance;
|
||||
public:
|
||||
TopoMesh(); // Конструктор
|
||||
/// Конструктор
|
||||
TopoMesh();
|
||||
|
||||
virtual ~TopoMesh(); //Деструктор
|
||||
/// Деструктор
|
||||
virtual ~TopoMesh();
|
||||
|
||||
bool Init( const MbMesh& mesh, bool enableDiagnostics = false ); // Инициализировать
|
||||
/// Инициализировать
|
||||
bool Init( const MbMesh& mesh, bool enableDiagnostics = false );
|
||||
|
||||
const MbMesh* GetMesh() const; // Получить сетку
|
||||
/// Получить сетку
|
||||
const MbMesh* GetMesh() const;
|
||||
|
||||
size_t MeshPolygonsCount() const; // Число полигонов
|
||||
/// Число полигонов
|
||||
size_t MeshPolygonsCount() const;
|
||||
|
||||
MeshPolygonPtr Polygon( size_t index ) const; // Получить полигон
|
||||
/// Получить полигон
|
||||
MeshPolygonPtr Polygon( size_t index ) const;
|
||||
|
||||
size_t MeshVerticisCount() const; // Число вершин
|
||||
/// Число вершин
|
||||
size_t MeshVerticisCount() const;
|
||||
|
||||
MeshVertexPtr Vertex( size_t index ) const; // Получить вершину
|
||||
/// Получить вершину
|
||||
MeshVertexPtr Vertex( size_t index ) const;
|
||||
|
||||
std::map< size_t, std::vector<size_t> > GetDegeneratedTriangles() const; // Получить вырожденные треуголники
|
||||
/// Получить вырожденные треуголники
|
||||
std::map< size_t, std::vector<size_t> > GetDegeneratedTriangles() const;
|
||||
|
||||
std::vector<MbCartPoint3D> GetBoundaryPoints() const; // Получить граничные точки сетки
|
||||
/// Получить граничные точки сетки
|
||||
std::vector<MbCartPoint3D> GetBoundaryPoints() const;
|
||||
|
||||
void Reset(); // Сбросить все данные
|
||||
/// Сбросить все данные
|
||||
void Reset();
|
||||
|
||||
size_t NextBoundaryVertex( size_t indexBoundaryVertex, const std::vector<size_t>& allBoundary ) const; // Получить следующую в цепочке граничную вершину.
|
||||
/// Получить следующую в цепочке граничную вершину.
|
||||
size_t NextBoundaryVertex( size_t indexBoundaryVertex, const std::vector<size_t>& allBoundary ) const;
|
||||
|
||||
bool InitVoidBoundFrom( std::vector<size_t>& freeBoundaryVerticis ); // Сформировать внешнюю границу начиная с указанной вершины.
|
||||
/// Сформировать внешнюю границу начиная с указанной вершины.
|
||||
bool InitVoidBoundFrom( std::vector<size_t>& freeBoundaryVerticis );
|
||||
|
||||
double MetricTolerance() const; // Получить точность задания расстояния.
|
||||
/// Получить точность задания расстояния.
|
||||
double MetricTolerance() const;
|
||||
|
||||
OBVIOUS_PRIVATE_COPY( TopoMesh )
|
||||
};
|
||||
|
||||
@@ -70,20 +70,20 @@ public:
|
||||
~MbAttributeProvider();
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Выдать тип элемента. \en Get an element type.
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвинуть вдоль вектора. \en Move along a vector.
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Определить, являются ли объекты подобными. \en Determine whether the objects are similar.
|
||||
virtual bool SetEqual( const MbCreator & ); // \ru Сделать равным. \en Make equal.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию. \en Create a copy.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию. \en Create a copy.
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта. \en Get a name of object property.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction.
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction.
|
||||
|
||||
// \ru Добавить отдельный атрибут (забрать во владение) \en Add a separate attribute.
|
||||
void AddAttribute( const MbName & name, MbAttribute * attr );
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
/// \ru Записать полученные атрибуты. \en Save the received attributes.
|
||||
void ReceiveAttributes ( c3d::AttrVector & attrs );
|
||||
/// \ru Скопировать атрибуты. \en Copy attributes.
|
||||
void DuplicateAttributes( c3d::AttrVector & attrs, MbRegDuplicate * iReg = c3d_null ) const;
|
||||
void DuplicateAttributes( c3d::AttrVector & attrs, MbRegDuplicate * iReg = nullptr ) const;
|
||||
/// \ru Дать количество атрибутов. \en Get the attributes count.
|
||||
size_t AttributesCount() const { return attributes.size(); }
|
||||
/// \ru Добавить атрибут. \en Add an attribute.
|
||||
|
||||
@@ -67,10 +67,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = c3d_null ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = nullptr ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = nullptr ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = nullptr ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property.
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
@@ -90,7 +90,7 @@ public :
|
||||
// \ru Общие функции твердого тела. \en Common functions of solid.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
virtual void SetYourVersion( VERSION version, bool forAll );
|
||||
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
/// \ru Общее количество строителей. \en Total count of creators.
|
||||
size_t GetCreatorsCount() const { return creators.size(); }
|
||||
/// \ru Дать строитель. \en Get the creator.
|
||||
const MbCreator * GetCreator( size_t k ) const { return ( (k < creators.size()) ? creators[k] : c3d_null ); }
|
||||
const MbCreator * GetCreator( size_t k ) const { return ( (k < creators.size()) ? creators[k] : nullptr ); }
|
||||
/// \ru Удалить из журнала строители первого тела. \en Delete first-solid creators from the history tree.
|
||||
bool DeleteFirstCreators();
|
||||
private :
|
||||
|
||||
@@ -39,7 +39,7 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
|
||||
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
|
||||
@@ -51,7 +51,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private :
|
||||
virtual void ReadDistances ( reader &in );
|
||||
|
||||
@@ -62,15 +62,15 @@ public :
|
||||
|
||||
// \ru Общие функции строителя \en The common functions of the creator
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -80,7 +80,7 @@ public :
|
||||
virtual void SetBasisPoints( const MbControlData3D & ); // \ru Изменить объект по контрольным точкам. \en Change the object by control points.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateSpaceCurve( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual bool CreateSpaceCurve( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = nullptr );
|
||||
|
||||
/** \} */
|
||||
|
||||
@@ -115,8 +115,8 @@ IMPL_PERSISTENT_OPS( MbConnectingCurveCreator )
|
||||
\en An object defining the edges names. \~
|
||||
\param[out] res - \ru Код результата операции.
|
||||
\en Operation result code. \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён c3d_null).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be c3d_null). \~
|
||||
\param[out] surface - \ru Поверхность, которая будет создана и на которой базируется соединительная кривая, (может быть возращён nullptr).
|
||||
\en A surface on which the fillet curve is based on, it will be created by the method (can be nullptr). \~
|
||||
\result \ru Возвращает строитель.
|
||||
\en Returns the constructor. \~
|
||||
\ingroup Curve3D_Modeling
|
||||
|
||||
@@ -66,10 +66,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -85,7 +85,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Оставляемая часть (если part больше 0, то оставляем часть тела со стороны нормали поверхности). \en A part to be kept (if part is bigger than 0, then keep a part of solid from the side of surface normal).
|
||||
ThreeStates GetPart() const { return part; }
|
||||
|
||||
@@ -42,10 +42,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -56,7 +56,7 @@ public :
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным. \en Make equal.
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
/** \ru \name Функции строителя, разделяющие отдельные части оболочки.
|
||||
\en \name Functions of the creator subdividing separate parts of the shell.
|
||||
@@ -183,7 +183,7 @@ MbCreator * CreateDetach( MbFaceShell & solid,
|
||||
MbResultType & res )
|
||||
{
|
||||
res = rt_Error;
|
||||
MbCreator * result = c3d_null;
|
||||
MbCreator * result = nullptr;
|
||||
|
||||
::MakeDetachShells( solid, partSolid, sort );
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ public: // \ru Деструктор \en Destructor
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbeCreatorType Type() const; // \ru Получить групповой тип объекта. \en Get the group type of the object.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -55,13 +55,13 @@ public: // \ru Общие функции математического объе
|
||||
|
||||
/// \ru Построение оболочки \en Creation of a shell.
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Построение каркаса кривых. \en Creation of a wire-frame.
|
||||
virtual bool CreateWireFrame( MbWireFrame *& frame, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Построение каркаса точек. \en Creation of a point-frame.
|
||||
virtual bool CreatePointFrame( MbPointFrame *& frame, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Переместить строитель. \en Displace the creator.
|
||||
virtual bool Perform( MbCreator * ) const;
|
||||
|
||||
@@ -110,12 +110,12 @@ public: // \ru Деструктор \en Destructor
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbeCreatorType Type() const; // \ru Получить групповой тип объекта. \en Get the group type of the object.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -123,13 +123,13 @@ public: // \ru Общие функции математического объе
|
||||
|
||||
/// \ru Построение оболочки \en Creation of a shell.
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Построение каркаса кривых. \en Creation of a wire-frame.
|
||||
virtual bool CreateWireFrame( MbWireFrame *& frame, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Построение каркаса точек. \en Creation of a point-frame.
|
||||
virtual bool CreatePointFrame( MbPointFrame *& frame, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Переместить строитель. \en Displace the creator.
|
||||
virtual bool Perform( MbCreator * ) const;
|
||||
|
||||
@@ -177,12 +177,12 @@ public: // \ru Деструктор \en Destructor
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbeCreatorType Type() const; // \ru Получить групповой тип объекта. \en Get the group type of the object.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -190,13 +190,13 @@ public: // \ru Общие функции математического объе
|
||||
|
||||
/// \ru Построение оболочки \en Creation of a shell.
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Построение каркаса кривых. \en Creation of a wire-frame.
|
||||
virtual bool CreateWireFrame( MbWireFrame *& frame, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Построение каркаса точек. \en Creation of a point-frame.
|
||||
virtual bool CreatePointFrame( MbPointFrame *& frame, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
/// \ru Переместить строитель. \en Displace the creator.
|
||||
virtual bool Perform( MbCreator * ) const;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
, fp ( faceProp )
|
||||
, np ( new MbPlacement3D( nPlace ) )
|
||||
, edgeNb ( -1 )
|
||||
, pl ( c3d_null )
|
||||
, pl ( nullptr )
|
||||
, reverse ( rev )
|
||||
, step ( false )
|
||||
{
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
, angle ( ang )
|
||||
, faceIndices( )
|
||||
, fp ( faceProp )
|
||||
, np ( nPlace ? new MbPlacement3D( *nPlace ) : c3d_null )
|
||||
, np ( nPlace ? new MbPlacement3D( *nPlace ) : nullptr )
|
||||
, edgeNb ( edgeInd )
|
||||
, pl ( new SArray<ptrdiff_t>( partLines ) )
|
||||
, reverse ( rev )
|
||||
@@ -82,10 +82,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -98,7 +98,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private :
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -46,10 +46,10 @@ public:
|
||||
\{ */
|
||||
/// \ru Получить регистрационный тип (для копирования, дублирования). \en Get the registration type (for copying, duplication).
|
||||
virtual MbeCreatorType IsA() const;
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru сделать копию \en create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru сделать копию \en create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru выдать свойства объекта \en get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru записать свойства объекта \en set properties of the object
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
private :
|
||||
|
||||
@@ -111,10 +111,10 @@ public :
|
||||
\en \name Common functions of the shell creator.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -128,7 +128,7 @@ public :
|
||||
virtual bool SetEqual( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * = nullptr ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
private:
|
||||
|
||||
@@ -27,7 +27,7 @@ class MATH_CLASS MbCurveEvolutionSolid : public MbCurveSweptSolid {
|
||||
protected :
|
||||
MbSweptData sweptData; ///< \ru Данные об образующей. \en Generating curve data.
|
||||
SPtr<MbCurve3D> spineCurve; ///< \ru Направляющая кривая. \en Spine curve.
|
||||
SPtr<MbCurve3D> directionCurve; ///< \ru Кривая вектора ориентации матрицы преобразования (может быть c3d_null для простой траектории). \en A curve of the transformation matrix orientation (it may be c3d_null for a simple trajectory).
|
||||
SPtr<MbCurve3D> directionCurve; ///< \ru Кривая вектора ориентации матрицы преобразования (может быть nullptr для простой траектории). \en A curve of the transformation matrix orientation (it may be nullptr for a simple trajectory).
|
||||
MbVector3D direction; ///< \ru Вектор ориентации матрицы преобразования (может быть нулевой, в случае автоопределения). \en Vector of transformation matrix orientation (it's equal zero in the mode of automatic direction calculation).
|
||||
SPtr<MbSNameMaker> spineNames; ///< \ru Именователь направляющей. \en An object defining the name of the spine curve.
|
||||
EvolutionValues parameters; ///< \ru Параметры. \en Parameters.
|
||||
@@ -128,10 +128,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
|
||||
@@ -46,10 +46,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -62,7 +62,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( ExtensionValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -59,7 +59,7 @@ public :
|
||||
OperationType oType,
|
||||
const MbSNameMaker & operNames,
|
||||
const RPArray<MbSNameMaker> & contoursNames,
|
||||
const c3d::CreatorsSPtrVector * creators = c3d_null,
|
||||
const c3d::CreatorsSPtrVector * creators = nullptr,
|
||||
bool sameCreators = true );
|
||||
|
||||
private :
|
||||
@@ -73,10 +73,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Cделать копию. \en Make a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг. \en Move.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Cделать копию. \en Make a copy.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг. \en Move.
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта. \en Get properties of the object.
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта. \en Set properties of the object.
|
||||
@@ -94,7 +94,7 @@ public :
|
||||
\en \name Common functions of the rigid solid (forming operations).
|
||||
\{ */
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение. \en Construction.
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение. \en Construction.
|
||||
|
||||
virtual MbFaceShell * InitShell( bool in );
|
||||
virtual void InitBasis( RPArray<MbSpaceItem> & items );
|
||||
|
||||
@@ -60,10 +60,10 @@ public :
|
||||
// \ru Общие функции математического объекта. \en Common functions of the mathematical object.
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around 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.
|
||||
@@ -76,7 +76,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private :
|
||||
virtual void ReadDistances ( reader &in );
|
||||
|
||||
@@ -69,10 +69,10 @@ public :
|
||||
// \ru Переопределение функций базового класса \en The base class functions override
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around 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
|
||||
@@ -88,7 +88,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
virtual MbFaceShell * InitShell( bool in );
|
||||
virtual void InitBasis( RPArray<MbSpaceItem> & items );
|
||||
|
||||
@@ -45,15 +45,15 @@ public:
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
virtual void SetBasisPoints( const MbControlData3D & ); // \ru Изменить объект по контрольным точкам. \en Change the object by control points.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = nullptr );
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; ///< \ru Тип элемента \en Element type
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); ///< \ru Преобразовать элемент согласно матрице \en Transform an element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); ///< \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); ///< \ru Преобразовать элемент согласно матрице \en Transform an element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); ///< \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными. \en Whether the objects are similar
|
||||
@@ -58,7 +58,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); ///< \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); ///< \ru Построение \en Construction
|
||||
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
|
||||
@@ -29,7 +29,7 @@ protected :
|
||||
RPArray<MbContourOnSurface> curves; ///< \ru Плоские сечения. \en Plane sections.
|
||||
SPtr<MbCurve3D> spine; ///< \ru Осевая линия (может отсутствовать). \en Spine curve (can be absent).
|
||||
LoftedValues parameters; ///< \ru Параметры. \en Parameters.
|
||||
RPArray<MbCurve3D> * guideCurves; ///< \ru Массив направляющих кривых (может быть c3d_null). \en An array of guide curves (can be c3d_null).
|
||||
RPArray<MbCurve3D> * guideCurves; ///< \ru Массив направляющих кривых (может быть nullptr). \en An array of guide curves (can be nullptr).
|
||||
SArray<MbCartPoint3D> * userPnts; ///< \ru Пользовательские точки на сечениях. \en Custom points on the sections.
|
||||
|
||||
public:
|
||||
@@ -64,10 +64,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать \en Transform
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать \en Transform
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
|
||||
@@ -48,13 +48,13 @@ private:
|
||||
|
||||
public:
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
|
||||
// \ru Построение оболочки по исходным данным \en Construction of a shell from the given data
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
|
||||
/// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MedianShellValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -42,12 +42,12 @@ public:
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; ///< \ru Тип элемента \en Element type
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); ///< \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); ///< \ru Выдать заголовок свойства объекта \en Get name of object property
|
||||
virtual void GetProperties( MbProperties & ); ///< \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -59,7 +59,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MeshSurfaceValues & params ) const;
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
|
||||
@@ -41,12 +41,12 @@ public: // \ru деструктор \en destructor
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru сделать копию \en create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru выдать заголовок свойства объекта \en get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru выдать свойства объекта \en get properties of the object
|
||||
@@ -56,7 +56,7 @@ public: // \ru Общие функции математического объе
|
||||
|
||||
/// \ru Построение оболочки. \en creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru обновить форму оболочки \en update shape of the shell
|
||||
// \ru Выдать базовые объекты. \en Get basis objects.
|
||||
virtual void GetBasisItems( RPArray<MbSpaceItem> & s );
|
||||
@@ -106,12 +106,12 @@ public: // \ru деструктор \en destructor
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru сделать копию \en create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru выдать заголовок свойства объекта \en get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru выдать свойства объекта \en get properties of the object
|
||||
@@ -121,7 +121,7 @@ public: // \ru Общие функции математического объе
|
||||
|
||||
/// \ru построение оболочки \en creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru обновить форму оболочки \en update shape of the shell
|
||||
// \ru Выдать базовые объекты. \en Get basis objects.
|
||||
virtual void GetBasisItems( RPArray<MbSpaceItem> & s );
|
||||
|
||||
@@ -62,12 +62,12 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru Обновить форму оболочки \en Update shape of the shell
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
|
||||
@@ -53,15 +53,15 @@ public:
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
virtual void SetBasisPoints( const MbControlData3D & ); // \ru Изменить объект по контрольным точкам. \en Change the object by control points.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = nullptr );
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ public: // \ru Деструктор \en Destructor
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг по вектору \en Translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -57,7 +57,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru Обновить форму оболочки \en Update shape of the shell
|
||||
|
||||
private:
|
||||
|
||||
@@ -43,7 +43,7 @@ MATH_FUNC (MbFaceShell *) CreateNurbsSurfacesShell( NurbsSurfaceValues & p
|
||||
const MbSNameMaker & operNames,
|
||||
bool isPhantom,
|
||||
MbResultType & res,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
IProgressIndicator * indicator = nullptr );
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -65,7 +65,7 @@ MATH_FUNC (MbFaceShell *) CreateNurbsSurfacesShell( NurbsSurfaceValues & p
|
||||
// ---
|
||||
MATH_FUNC (MbResultType) CheckNurbsSurfacesShell( const NurbsSurfaceValues & params,
|
||||
const MbFaceShell & shell,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
IProgressIndicator * indicator = nullptr );
|
||||
|
||||
|
||||
#endif // __NURBS_SURFACES_SHELL_H
|
||||
|
||||
@@ -50,12 +50,12 @@ public:
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru сделать копию \en create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru сделать копию \en create a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru сделать равным \en make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru сдвиг по вектору \en translation by a vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru выдать заголовок свойства объекта \en get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru выдать свойства объекта \en get properties of the object
|
||||
@@ -67,7 +67,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru построение оболочки \en creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
virtual void Refresh( MbFaceShell & outer ); ///< \ru обновить форму оболочки \en update shape of the shell
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
@@ -110,7 +110,7 @@ MATH_FUNC (MbCreator *) CreateNurbsShell( NurbsSurfaceValues & parameters,
|
||||
bool isPhantom,
|
||||
MbResultType & res,
|
||||
MbFaceShell *& shell,
|
||||
IProgressIndicator * indicator = c3d_null );
|
||||
IProgressIndicator * indicator = nullptr );
|
||||
|
||||
|
||||
#endif // __CR_NURBS_SURFACES_SOLID_H
|
||||
|
||||
@@ -92,15 +92,15 @@ public :
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -113,7 +113,7 @@ public :
|
||||
virtual bool SetInternalCreators( MbeCreatorType, c3d::CreatorsSPtrVector & ); // \ru Получить внутренние построители по типу. \en Get internal creators by type.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = nullptr );
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
@@ -54,10 +54,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr );
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -72,7 +72,7 @@ public :
|
||||
|
||||
// \ru Построение оболочки по исходным данным \en Construction of a shell from the given data
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( PatchValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -52,15 +52,15 @@ public:
|
||||
|
||||
// \ru Общие функции строителя. \en The common functions of the creator.
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * iReg = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual bool IsSame ( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool IsSimilar( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
virtual bool SetEqual ( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Дать имя свойства объекта \en Get the object property name
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
virtual bool SetInternalCreators( MbeCreatorType, c3d::CreatorsSPtrVector & ); // \ru Получить внутренние построители по типу. \en Get internal creators by type.
|
||||
|
||||
// \ru Построить кривую по журналу построения \en Create a curve from the history tree
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = c3d_null );
|
||||
virtual bool CreateWireFrame( MbWireFrame *&, MbeCopyMode, RPArray<MbSpaceItem> * items = nullptr );
|
||||
|
||||
/** \} */
|
||||
|
||||
|
||||
@@ -65,10 +65,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
|
||||
@@ -43,10 +43,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around 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
|
||||
@@ -60,7 +60,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray <MbSpaceItem> *items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( RibValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -46,12 +46,12 @@ public:
|
||||
|
||||
public: // \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; ///< \ru Тип элемента \en Element type
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; ///< \ru Сделать копию \en Make a copy
|
||||
virtual bool IsSame( const MbCreator &, double accuracy ) const; // \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
virtual bool SetEqual ( const MbCreator & ); ///< \ru Сделать равным \en Make equal
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); ///< \ru Преобразовать по матрице \en Transform according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); ///< \ru Сдвиг по вектору \en Translation by the vector
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); ///< \ru Поворот вокруг оси \en Rotation about an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & properties ); ///< \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & properties ); ///< \ru Записать свойства объекта \en Write properties of the object
|
||||
@@ -63,7 +63,7 @@ public: // \ru Общие функции математического объе
|
||||
public:
|
||||
/// \ru Построение оболочки \en Creation of a shell
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null );
|
||||
RPArray<MbSpaceItem> * items = nullptr );
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( RuledSurfaceValues & params ) const;
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
|
||||
@@ -54,10 +54,10 @@ public :
|
||||
\en \name Common functions of the mathematical object.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -75,7 +75,7 @@ public :
|
||||
\en \name Common functions of the rigid solid (forming operations).
|
||||
\{ */
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
virtual void SetYourVersion( VERSION version );
|
||||
/** \} */
|
||||
|
||||
@@ -47,15 +47,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = nullptr ); // \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
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -58,14 +58,14 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbBendByEdgeValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -49,15 +49,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbBendOverSegValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -50,15 +50,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
@@ -122,7 +122,7 @@ MATH_FUNC (MbCreator *) CreateBendUnbend( SPtr<MbFaceShell> & init
|
||||
const MbSNameMaker & names,
|
||||
MbResultType & res,
|
||||
MbFaceShell *& shell,
|
||||
RPArray<MbContour3D> * ribContours = c3d_null );
|
||||
RPArray<MbContour3D> * ribContours = nullptr );
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -44,15 +44,15 @@ public:
|
||||
// \ru Общие функции математического объекта. \en Common functions of the mathematical object.
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента. \en A type of element.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию. \en Create a copy.
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси. \en Rotate around an axis.
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг. \en Translation.
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси. \en Rotate around 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.
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
// \ru Общие функции твердого тела. \en Common functions of solid.
|
||||
|
||||
// \ru Построение оболочки листового тела. \en Construction of a sheet metal shell.
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell, RPArray <MbSpaceItem> *items = c3d_null );
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell, RPArray <MbSpaceItem> *items = nullptr );
|
||||
// \ru Получить параметры. \en Get the parameters.
|
||||
void GetParameters( MbSolidToSheetMetalValues & params ) const { params = parameters; }
|
||||
// \ru Установить параметры. \en Set the parameters.
|
||||
|
||||
@@ -50,15 +50,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbClosedCornerValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -57,15 +57,15 @@ public:
|
||||
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbJointBendValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -82,10 +82,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -101,7 +101,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
virtual MbFaceShell * InitShell( bool in );
|
||||
|
||||
|
||||
@@ -45,15 +45,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \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
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -42,15 +42,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = nullptr ); // \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
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -43,10 +43,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * ireg = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * ireg = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * ireg = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -62,7 +62,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
virtual void SetYourVersion( VERSION version, bool forAll );
|
||||
|
||||
|
||||
@@ -68,10 +68,10 @@ public :
|
||||
\en \name Common functions of the shell creator.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -85,7 +85,7 @@ public :
|
||||
virtual bool SetEqual( const MbCreator & ); // \ru Сделать равным \en Make equal
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
const MbFaceShell * GetShell() const { return outer; } /// \ru Дать оболочку. \en Get a shell.
|
||||
@@ -158,7 +158,7 @@ bool MbSimpleCreator::DeleteShellCopies( const CreatorsVector & creators )
|
||||
size_t i;
|
||||
for ( i = 0; i < creatorsCnt; ++i ) {
|
||||
MbCreator * creator = creators[i];
|
||||
if ( creator != c3d_null ) {
|
||||
if ( creator != nullptr ) {
|
||||
if ( creator->IsA() == ct_SimpleCreator ) {
|
||||
MbSimpleCreator * simpleCreator = static_cast<MbSimpleCreator *>(creator);
|
||||
simpleShells.push_back( std::make_pair( i, simpleCreator->GetShell() ) );
|
||||
@@ -184,7 +184,7 @@ bool MbSimpleCreator::DeleteShellCopies( const CreatorsVector & creators )
|
||||
if ( shell1 && shell2 && (shell1 != shell2) ) {
|
||||
if ( shell1->IsSame( *shell2, LENGTH_EPSILON ) ) {
|
||||
sc2.SetShell( *shell1 );
|
||||
simpleShells[j].second = c3d_null;
|
||||
simpleShells[j].second = nullptr;
|
||||
isReplaced = true;
|
||||
}
|
||||
}
|
||||
@@ -194,7 +194,7 @@ bool MbSimpleCreator::DeleteShellCopies( const CreatorsVector & creators )
|
||||
std::sort( simpleShells.begin(), simpleShells.end(), ::SortByShellPointers );
|
||||
simpleShells.erase( std::unique( simpleShells.begin(), simpleShells.end(), ::AreEqualShellPointers ), simpleShells.end() );
|
||||
if ( simpleShells.size() > 1 ) {
|
||||
if ( simpleShells.front().second == c3d_null )
|
||||
if ( simpleShells.front().second == nullptr )
|
||||
simpleShells.erase( simpleShells.begin() );
|
||||
}
|
||||
}
|
||||
@@ -215,7 +215,7 @@ bool MbSimpleCreator::IsThisShell( const MbFaceShell & shell, const CreatorsVect
|
||||
if ( creators.size() > 0 ) {
|
||||
for ( size_t i = creators.size(); i--; ) {
|
||||
const MbCreator * creator = creators[i];
|
||||
if ( (creator != c3d_null) && (creator->IsA() == ct_SimpleCreator) ) {
|
||||
if ( (creator != nullptr) && (creator->IsA() == ct_SimpleCreator) ) {
|
||||
const MbSimpleCreator & simpleCreator = static_cast<const MbSimpleCreator &>(*creator);
|
||||
if ( simpleCreator.GetShell() == &shell ) {
|
||||
res = true;
|
||||
@@ -253,10 +253,10 @@ public :
|
||||
\en \name Common functions of the shell creator.
|
||||
\{ */
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const ; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -267,7 +267,7 @@ public :
|
||||
virtual bool IsSimilar ( const MbCreator & ) const; // \ru Являются ли объекты подобными \en Whether the objects are similar
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
/** \} */
|
||||
|
||||
DECLARE_PERSISTENT_CLASS_NEW_DEL( MbReverseCreator )
|
||||
|
||||
@@ -41,10 +41,10 @@ public :
|
||||
|
||||
virtual MbeCreatorType IsA() const = 0; // \ru Тип элемента \en A type of element
|
||||
virtual MbeCreatorType Type() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate *iReg = c3d_null ) const = 0; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate *iReg = nullptr ) const = 0; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform( const MbMatrix3D &matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move( const MbVector3D &to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate( const MbAxis3D &axis, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ) = 0; // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ) = 0; // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -57,7 +57,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ) = 0; // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ) = 0; // \ru Построение \en Construction
|
||||
|
||||
/// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( SmoothValues & params ) const { params = parameters; }
|
||||
|
||||
+27
-27
@@ -91,7 +91,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
}
|
||||
/// \ru Конструктор по двумерному контуру в локальной системе координат. \en Constructor by two-dimensional contour in the local coordinate system.
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
SPtr<MbContour> sketchContour;
|
||||
sketchContour = same ? const_cast<MbContour *>(&item) : static_cast<MbContour *>(&item.Duplicate());
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
C3D_ASSERT( (direction.MaxFactor() < LENGTH_EPSILON) || !direction.Orthogonal( place.GetAxisZ(), ANGLE_EPSILON ) );
|
||||
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
::AddRefItems( items, same, sketchContours );
|
||||
}
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
C3D_ASSERT( (direction.MaxFactor() < LENGTH_EPSILON) || !direction.Orthogonal( place.GetAxisZ(), ANGLE_EPSILON ) );
|
||||
|
||||
@@ -165,7 +165,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
::AddRefItems( items, same, spaceCurves );
|
||||
}
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
::AddRefItems( items, same, spaceCurves );
|
||||
}
|
||||
@@ -191,7 +191,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
SPtr<MbSurface> surface;
|
||||
surface = same ? const_cast<MbSurface *>(&item) : static_cast<MbSurface *>(&item.Duplicate());
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
::AddRefItems( items, same, surfaces );
|
||||
}
|
||||
@@ -219,7 +219,7 @@ public:
|
||||
, spaceCurves ( )
|
||||
, surfaces ( )
|
||||
, creators ( )
|
||||
, solidShell ( c3d_null )
|
||||
, solidShell ( nullptr )
|
||||
{
|
||||
::AddRefItems( items, same, surfaces );
|
||||
}
|
||||
@@ -322,12 +322,12 @@ public:
|
||||
DeleteItems();
|
||||
size_t creatorsCnt = solidCreators.size();
|
||||
if ( creatorsCnt > 0 ) {
|
||||
MbRegDuplicate * iReg = c3d_null;
|
||||
MbRegDuplicate * iReg = nullptr;
|
||||
MbAutoRegDuplicate autoReg( iReg );
|
||||
SPtr<MbCreator> creator;
|
||||
creators.reserve( creatorsCnt );
|
||||
for ( size_t k = 0; k < creatorsCnt; ++k ) {
|
||||
if ( solidCreators[k] != c3d_null ) {
|
||||
if ( solidCreators[k] != nullptr ) {
|
||||
creator = sameCreators ? &const_cast<MbCreator &>( *solidCreators[k] ) : static_cast<MbCreator *>( &solidCreators[k]->Duplicate( iReg ) );
|
||||
creators.push_back( creator );
|
||||
::DetachItem( creator );
|
||||
@@ -343,17 +343,17 @@ public:
|
||||
/// \ru Являются ли объекты подобными. \en Determine whether the objects are similar.
|
||||
bool IsSimilar( const MbSplitData & ) const;
|
||||
/// \ru Преобразовать элемент согласно матрице. \en Transform element according to the matrix.
|
||||
void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null );
|
||||
void Transform( const MbMatrix3D &, MbRegTransform * = nullptr );
|
||||
/// \ru Сдвинуть по вектору. \en Shift by a vector.
|
||||
void Move ( const MbVector3D &, MbRegTransform * = c3d_null );
|
||||
void Move ( const MbVector3D &, MbRegTransform * = nullptr );
|
||||
/// \ru Повернуть вокруг оси. \en Rotate about an axis.
|
||||
void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null );
|
||||
void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr );
|
||||
/// \ru Отсутствуют ли объекты? \en Are the objects absent?
|
||||
bool IsEmpty() const {
|
||||
return ( sketchContours.empty() &&
|
||||
spaceCurves.empty() &&
|
||||
surfaces.empty() &&
|
||||
(creators.empty() && (solidShell == c3d_null)) ); }
|
||||
(creators.empty() && (solidShell == nullptr)) ); }
|
||||
/// \ru Являются ли объекты равными? \en Determine whether an object is equal?
|
||||
bool IsSame( const MbSplitData &, double accuracy ) const;
|
||||
|
||||
@@ -377,9 +377,9 @@ public:
|
||||
/// \ru Установить направление выдавливания двумерных кривых. \en Set extrusion direction of two-dimensional curves.
|
||||
void SetSketchSense( MbeSenseValue zdir ) { sense = zdir; }
|
||||
/// \ru Получить двумерную кривую по индексу. \en Get two-dimensional curve by index.
|
||||
const MbContour * GetSketchCurve( size_t k ) const { return ((k < sketchContours.size()) ? sketchContours[k].get() : c3d_null ); }
|
||||
const MbContour * GetSketchCurve( size_t k ) const { return ((k < sketchContours.size()) ? sketchContours[k].get() : nullptr ); }
|
||||
/// \ru Получить двумерную кривую по индексу. \en Get two-dimensional curve by index.
|
||||
MbContour * SetSketchCurve( size_t k ) { return ((k < sketchContours.size()) ? sketchContours[k].get() : c3d_null ); }
|
||||
MbContour * SetSketchCurve( size_t k ) { return ((k < sketchContours.size()) ? sketchContours[k].get() : nullptr ); }
|
||||
/// \ru Получить все двумерные кривые. \en Get all two-dimensional curves.
|
||||
template <class PlaneContoursVector>
|
||||
void GetSketchCurves( PlaneContoursVector & curvs ) const
|
||||
@@ -401,9 +401,9 @@ public:
|
||||
/// \ru Выдать количество пространственных кривых. \en Get number of spatial curves.
|
||||
size_t GetSpaceCurvesCount() const { return spaceCurves.size(); }
|
||||
/// \ru Получить пространственную кривую по индексу. \en Get a spatial curve by index.
|
||||
const MbCurve3D * GetSpaceCurve( size_t k ) const { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : c3d_null ); }
|
||||
const MbCurve3D * GetSpaceCurve( size_t k ) const { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : nullptr ); }
|
||||
/// \ru Получить пространственную кривую по индексу. \en Get a spatial curve by index.
|
||||
MbCurve3D * SetSpaceCurve( size_t k ) { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : c3d_null ); }
|
||||
MbCurve3D * SetSpaceCurve( size_t k ) { return ((k < spaceCurves.size()) ? spaceCurves[k].get() : nullptr ); }
|
||||
/// \ru Получить все пространственные кривые. \en Get all spatial curves.
|
||||
template <class SpaceCurvesVector>
|
||||
void GetSpaceCurves( SpaceCurvesVector & curvs ) const
|
||||
@@ -425,9 +425,9 @@ public:
|
||||
/// \ru Выдать количество поверхностей. \en Get number of surfaces.
|
||||
size_t GetSurfacesCount() const { return surfaces.size(); }
|
||||
/// \ru Получить поверхность по индексу. \en Get a surface by index.
|
||||
const MbSurface * GetSurface( size_t k ) const { return ((k < surfaces.size()) ? surfaces[k].get() : c3d_null); }
|
||||
const MbSurface * GetSurface( size_t k ) const { return ((k < surfaces.size()) ? surfaces[k].get() : nullptr); }
|
||||
/// \ru Получить поверхность по индексу. \en Get a surface by index.
|
||||
MbSurface * SetSurface( size_t k ) { return ((k < surfaces.size()) ? surfaces[k].get() : c3d_null); }
|
||||
MbSurface * SetSurface( size_t k ) { return ((k < surfaces.size()) ? surfaces[k].get() : nullptr); }
|
||||
/// \ru Получить все поверхности. \en Get all surfaces.
|
||||
template <class SurfacesVector>
|
||||
void GetSurfaces( SurfacesVector & surfs ) const
|
||||
@@ -449,9 +449,9 @@ public:
|
||||
/// \ru Выдать количество строителей тела. \en Get number of solid creators.
|
||||
size_t GetCreatorsCount() const { return creators.size(); }
|
||||
/// \ru Получить строитель по индексу. \en Get constructor by index.
|
||||
const MbCreator * GetCreator( size_t k ) const { return ((k < creators.size()) ? creators[k].get() : c3d_null ); }
|
||||
const MbCreator * GetCreator( size_t k ) const { return ((k < creators.size()) ? creators[k].get() : nullptr ); }
|
||||
/// \ru Получить строитель по индексу. \en Get constructor by index.
|
||||
MbCreator * SetCreator( size_t k ) { return ((k < creators.size()) ? creators[k].get() : c3d_null ); }
|
||||
MbCreator * SetCreator( size_t k ) { return ((k < creators.size()) ? creators[k].get() : nullptr ); }
|
||||
/// \ru Получить все строители. \en Get all creators.
|
||||
template <class CreatorsVector>
|
||||
void GetCreators( CreatorsVector & crs ) const
|
||||
@@ -468,17 +468,17 @@ public:
|
||||
template <class CreatorsVector>
|
||||
void GetCreatorsCopies( CreatorsVector & crs ) const
|
||||
{
|
||||
MbRegDuplicate * iReg = c3d_null;
|
||||
MbRegDuplicate * iReg = nullptr;
|
||||
MbAutoRegDuplicate autoReg( iReg );
|
||||
|
||||
crs.reserve( crs.size() + creators.size() );
|
||||
c3d::CreatorSPtr creator;
|
||||
for ( size_t k = 0, addCnt = creators.size(); k < addCnt; ++k ) {
|
||||
if ( creators[k] != c3d_null )
|
||||
if ( creators[k] != nullptr )
|
||||
creator = static_cast<MbCreator *>( &creators[k]->Duplicate( iReg ) );
|
||||
crs.push_back( creator );
|
||||
::DetachItem( creator );
|
||||
creator = c3d_null;
|
||||
creator = nullptr;
|
||||
}
|
||||
}
|
||||
/// \ru Получить все строители. \en Get all creators.
|
||||
|
||||
@@ -41,10 +41,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const;
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -58,7 +58,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private: // \ru Не реализовано \en Not implemented
|
||||
// \ru Объявление конструктора копирования без реализации, чтобы не было копирования по умолчанию. \en Declaration without implementation of the copy-constructor to prevent copying by default.
|
||||
|
||||
@@ -67,15 +67,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual MbePrompt GetPropertyName(); // \ru Выдать заголовок свойства объекта \en Get a name of object property
|
||||
virtual void GetProperties ( MbProperties &properties ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbBeadValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -66,13 +66,13 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around 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
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell, MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbJalousieValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -63,13 +63,13 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around 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
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( MbJogValues & params ) const { params = jogParameters; }
|
||||
|
||||
@@ -59,15 +59,15 @@ public:
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en Type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate about an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double, MbRegTransform * = nullptr ); // \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
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
private:
|
||||
// \ru Объявление оператора присваивания без реализации, чтобы не было присваивания по умолчанию. \en The declaration of the assignment operator without implementation to prevent an assignment by default.
|
||||
|
||||
@@ -46,10 +46,10 @@ public :
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
|
||||
virtual MbeCreatorType IsA () const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual void Transform ( const MbMatrix3D & matr, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D & to, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D & axis, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around 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
|
||||
@@ -62,7 +62,7 @@ public :
|
||||
// \ru Общие функции твердого тела \en Common functions of solid
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *&shell, MbeCopyMode sameShell,
|
||||
RPArray <MbSpaceItem> *items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray <MbSpaceItem> *items = nullptr ); // \ru Построение \en Construction
|
||||
|
||||
// \ru Дать параметры. \en Get the parameters.
|
||||
void GetParameters( SheetRibValues & params ) const { params = parameters; }
|
||||
|
||||
@@ -49,15 +49,15 @@ public:
|
||||
|
||||
// \ru Общие функции математического объекта \en Common functions of the mathematical object
|
||||
virtual MbeCreatorType IsA() const; // \ru Тип элемента \en A type of element
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = c3d_null ) const; // \ru Сделать копию \en Create a copy
|
||||
virtual MbCreator & Duplicate( MbRegDuplicate * = nullptr ) 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 * = c3d_null ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = c3d_null ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = c3d_null ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
virtual void Transform( const MbMatrix3D &, MbRegTransform * = nullptr ); // \ru Преобразовать элемент согласно матрице \en Transform element according to the matrix
|
||||
virtual void Move ( const MbVector3D &, MbRegTransform * = nullptr ); // \ru Сдвиг \en Translation
|
||||
virtual void Rotate ( const MbAxis3D &, double angle, MbRegTransform * = nullptr ); // \ru Повернуть вокруг оси \en Rotate around an axis
|
||||
|
||||
virtual void GetProperties( MbProperties & ); // \ru Выдать свойства объекта \en Get properties of the object
|
||||
virtual void SetProperties( const MbProperties & ); // \ru Записать свойства объекта \en Set properties of the object
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
|
||||
virtual bool CreateShell( MbFaceShell *& shell,
|
||||
MbeCopyMode sameShell,
|
||||
RPArray<MbSpaceItem> * items = c3d_null ); // \ru Построение \en Construction
|
||||
RPArray<MbSpaceItem> * items = nullptr ); // \ru Построение \en Construction
|
||||
// \ru Дать базовые объекты. \en Get the base objects.
|
||||
virtual void GetBasisItems( RPArray<MbSpaceItem> & s );
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user