기본 콘텐츠로 건너뛰기

UserType.dat 사용하기

OpenCasCade 배포판에서 UserType.dat 파일도 함께 배포하고 있습니다.
(배포판 설치 폴더의 Tools 폴더 안에 보면 UserType.dat 파일이 있습니다.)

다들 아시다시피 이것을 사용하면 사용자 정의 Type도 highlighting할수 있습니다.

이 UserType.dat 파일을 예를 들면
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE 폴더에 복사해 두면 OCC관련 Type들이 highlighting됩니다.

1
2
3
4
5
6
7
8
9
10
void C3DWnd::DisplayAxis()
{
    CLibMesh2dTestCaseView* pView = (CLibMesh2dTestCaseView*)GetParent();
    CLibMesh2dTestCaseDoc* pDoc = (CLibMesh2dTestCaseDoc*)pView->GetDocument();
 
    Handle(AIS_Trihedron) aTrihedron;
    Handle(Geom_Axis2Placement) anAxis = new Geom_Axis2Placement(gp::XOY());
    aTrihedron = new AIS_Trihedron(anAxis);
    pDoc->m_pAISContext->Display(aTrihedron);
}
cs

댓글