当前位置: 首页>>代码示例>>C++>>正文


C++ AcDbIntArray::at方法代码示例

本文整理汇总了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;
}
开发者ID:wyrover,项目名称:GDES,代码行数:32,代码来源:TailraceDraw.cpp

示例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;
}
开发者ID:kanbang,项目名称:TIDS,代码行数:25,代码来源:SingleArcTunnelDraw.cpp

示例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;
}
开发者ID:kanbang,项目名称:TIDS,代码行数:12,代码来源:SimpleWindLibraryDraw.cpp

示例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;
}
开发者ID:kanbang,项目名称:myexercise,代码行数:12,代码来源:SimpleChimneyDraw.cpp

示例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;
}
开发者ID:wyrover,项目名称:GDES,代码行数:14,代码来源:PolyLineDirectionDraw.cpp

示例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;
}
开发者ID:kanbang,项目名称:myexercise,代码行数:14,代码来源:SphereNitrogenPipeDraw.cpp

示例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;
}
开发者ID:kanbang,项目名称:myexercise,代码行数:16,代码来源:SingleTunnelDraw.cpp

示例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;
}
开发者ID:wyrover,项目名称:GDES,代码行数:18,代码来源:GasPumpGEDraw.cpp

示例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;
}
开发者ID:kanbang,项目名称:myexercise,代码行数:40,代码来源:DoubleTunnelDraw.cpp


注:本文中的AcDbIntArray::at方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。