Drawing View
Types
Functions
Detailed Description
- group a3d_drawing_view
Enumerations for drawing view type for use in the A3DDrawingViewData structure.
Entity type is kA3DTypeDrawingView.
See also
- Version
5.0
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
-
A3DStatus A3DDrawingViewGet(const A3DDrawingView *pDrawingView, A3DDrawingViewData *pData)
Populates the A3DDrawingViewData structure.
- Version
5.0
- Parameters:
pDrawingView – [in] The input view.
pData – [out] Data of the view.
- Return values:
A3D_INITIALIZE_NOT_CALLED –
A3D_INVALID_DATA_STRUCT_SIZE –
A3D_INVALID_DATA_STRUCT_NULL –
A3D_INVALID_ENTITY_NULL –
A3D_INVALID_ENTITY_TYPE –
A3D_SUCCESS –
- Returns:
A3D_SUCCESS in case of success or an error code
-
A3DStatus A3DDrawingViewCreate(const A3DDrawingViewData *pData, A3DDrawingView **ppDrawingView)
Creates an A3DDrawingView from A3DDrawingViewData structure.
- Version
5.0
- Parameters:
pData – [in] The input view data
ppDrawingView – [out] The clipping view entity.
- Return values:
A3D_INVALID_DATA_STRUCT_SIZE –
A3D_INVALID_DATA_STRUCT_NULL –
A3D_INVALID_ENTITY_TYPE –
A3D_DRW_VIEW_INVALID_SCALE –
A3D_DRW_VIEW_INVALID_TYPE –
A3D_DRW_VIEW_CANNOT_CREATE –
A3D_SUCCESS –
- Returns:
A3D_SUCCESS in case of success or an error code