Enumerations for drawing view type for use in the A3DDrawingViewData structure. More...

Modules

 Drawing Clip Frame
 Define a clipping frame for views.
 

Data Structures

struct  A3DDrawingViewData
 DrawingView structure. More...
 

Functions

A3DStatus A3DDrawingViewCreate (const A3DDrawingViewData *pData, A3DDrawingView **ppDrawingView)
 Creates an A3DDrawingView from A3DDrawingViewData structure. More...
 
A3DStatus A3DDrawingViewGet (const A3DDrawingView *pDrawingView, A3DDrawingViewData *pData)
 Populates the A3DDrawingViewData structure. More...
 

Detailed Description

Enumerations for drawing view type for use in the A3DDrawingViewData structure.

See also
Drawing Sheet
Version
5.0

Entity type is kA3DTypeDrawingView.

A local coordinate system can be applied on view, by setting A3DDrawingViewData::m_sOriginOnSheet, A3DDrawingViewData::m_sOffsetLocation, A3DDrawingViewData::m_dScale and A3DDrawingViewData::m_dAngle.
To convert local view coordinates into local sheet coordinate space, you can use the pseudo function below.

Matrix2D ViewToSheetMatrix( A3DDrawingViewData const & sViewData)
{
Marix2D sMatrix
sMatrix.SetAngle( sViewData.m_dAngle );
sMatrix.Translate( sViewData.m_sOffsetLocation );
sMatrix.Scale( sViewData.m_dScale );
sMatrix.Translate( sViewData.m_sOriginOnSheet );
return sMatrix;
}

Function Documentation

◆ A3DDrawingViewGet()

A3DStatus A3DDrawingViewGet ( const A3DDrawingView pDrawingView,
A3DDrawingViewData pData 
)

Populates the A3DDrawingViewData structure.

Version
5.0
Parameters
[in]pDrawingViewThe input view.
[out]pDataData of the view.
Returns
A3D_SUCCESS in case of success or an error code
Return values

◆ A3DDrawingViewCreate()

A3DStatus A3DDrawingViewCreate ( const A3DDrawingViewData pData,
A3DDrawingView **  ppDrawingView 
)

Creates an A3DDrawingView from A3DDrawingViewData structure.

Version
5.0
Parameters
[in]pDataThe input view data
[out]ppDrawingViewThe clipping view entity.
Returns
A3D_SUCCESS in case of success or an error code
Return values