本文整理汇总了C++中AcDbIntArray::at方法的典型用法代码示例。如果您正苦于以下问题:C++ AcDbIntArray::at方法的具体用法?C++ AcDbIntArray::at怎么用?C++ AcDbIntArray::at使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcDbIntArray
的用法示例。
在下文中一共展示了AcDbIntArray::at方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: subMoveGripPointsAt
Acad::ErrorStatus TailraceGEDraw::subMoveGripPointsAt( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
if ( idx == 0 )
{
m_insertPt += offset; // 插入点偏移
caculPts();
}
// if(idx == 1)
// {
// // 1) 计算x轴的端点坐标
// AcGeVector3d v(AcGeVector3d::kXAxis);
// v.rotateBy(m_angle,AcGeVector3d::kZAxis);
// v.rotateBy(3.1415926/2,AcGeVector3d::kZAxis);
// AcGePoint3d pt = m_insertPt + v*m_lenth;
//
// // 2) 进行坐标偏移计算
// pt += offset;
//
// // 坐标相减,得到一个向量,然后得到向量长度
// m_lenth = (pt - m_insertPt).length();
// caculPts();
// }
}
return Acad::eOk;
}
示例2: subMoveGripPointsAt
Acad::ErrorStatus DoubleArcTunnelDraw::subMoveGripPointsAt( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
if ( idx == 0 )
{
m_startPt += offset;
}
if ( idx == 1 )
{
m_endPt += offset;
}
// 弧的中点
if ( idx == 2 )
{
m_thirdPt += offset;
}
}
return Acad::eOk;
}
示例3: subMoveGripPointsAt
Acad::ErrorStatus SimpleWindLibraryDraw::subMoveGripPointsAt ( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
// 始节点
if ( idx == 0 ) m_insertPt += offset;
}
return Acad::eOk;
}
示例4: subMoveGripPointsAt
Acad::ErrorStatus SimpleChimneyDraw::subMoveGripPointsAt ( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
m_pts[idx] += offset;
}
return Acad::eOk;
}
示例5: subMoveGripPointsAt
Acad::ErrorStatus PolyLineDirectionDraw::subMoveGripPointsAt( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
if ( idx == 0 )
{
m_insertPt += offset; // 插入点偏移
}
}
return Acad::eOk;
}
示例6: subMoveGripPointsAt
Acad::ErrorStatus SphereNitrogenPipeDraw::subMoveGripPointsAt( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
if ( idx == 0 )
{
m_pt += offset; // 插入点偏移
}
}
return Acad::eOk;
}
示例7: subMoveGripPointsAt
Acad::ErrorStatus SingleTunnelDraw::subMoveGripPointsAt ( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
//----- This method is never called unless you return eNotImplemented
//----- from the new moveGripPointsAt() method below (which is the default implementation)
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
// 始节点
if ( idx == 0 ) m_startPt += offset;
if ( idx == 1 ) m_endPt += offset;
}
return Acad::eOk;
}
示例8: subMoveGripPointsAt
Acad::ErrorStatus GasPumpGEDraw::subMoveGripPointsAt( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
int len = indices.length();
for(int i=0;i<len;i++)
{
int idx = indices.at(i);
if(idx == 0)
{
// 当前夹点是圆心,移动图形
m_startPt += offset;
m_endPt += offset;
}
}
return Acad::eOk;
}
示例9: subMoveGripPointsAt
Acad::ErrorStatus DoubleTunnelDraw::subMoveGripPointsAt ( const AcDbIntArray& indices, const AcGeVector3d& offset )
{
assertWriteEnabled () ;
for( int i = 0; i < indices.length(); i++ )
{
int idx = indices.at( i );
if ( idx == 0 )
{
/*if(m_startPt == m_endPt)
{
m_startPt += offset;
m_endPt += offset;
}
else
{*/
m_startPt += offset;
//}
updateExtraParams();
}
if ( idx == 1 )
{
//if(m_startPt == m_endPt) // 始末点重合
//{
// AcGePoint3d pt(m_startPt);
// pt.x = pt.x + m_width*0.3; // 外环半径的60%
// pt += offset;
// m_endPt = pt;
//}
//else
//{
m_endPt += offset;
//}
updateExtraParams();
}
}
return Acad::eOk;
}