EnableDepthTest
Overloads
| Name | Description |
|---|---|
| EnableDepthTest(int id, bool enable) | 깊이버퍼 사용 설정. 기본값은 False 이며, True 로 설정할 경우 노트 항목이 모델 회전에 따라 모델 뒤로 갈 수 있음. |
| EnableDepthTest(bool enable) | 전체 깊이버퍼 사용 설정. 기본값은 False 이며, True 로 설정할 경우 노트 항목이 모델 회전에 따라 모델 뒤로 갈 수 있음. |
EnableDepthTest(int id, bool enable)
public void EnableDepthTest(int id, bool enable)
깊이버퍼 사용 설정. 기본값은 False 이며, True 로 설정할 경우 노트 항목이 모델 회전에 따라 모델 뒤로 갈 수 있음.
Parameters
| Name | Type | Description |
|---|---|---|
| id | int | 노트 아이디(ID) |
| enable | bool | 깊이버퍼 사용유무 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
// 지정 항목의 스타일 설정
int noteID = 1;
VIZCore3D.NET.Data.NoteStyle style = vizcore3d.Review.Note.GetStyle(noteID);
style.BackgroundColor = System.Drawing.Color.White;
style.BackgroudTransparent = true;
style.FontColor = System.Drawing.Color.Black;
style.FontSize = Data.FontSizeKind.SIZE10;
style.LineColor = System.Drawing.Color.Blue;
style.LineWidth = 4;
style.ArrowColor = System.Drawing.Color.Red;
style.ArrowWidth = 10;
vizcore3d.Review.Note.SetStyle(noteID, style);
// 노트 생성 시 스타일 설정
int surfaceNoteId = vizcore3d.Review.Note.AddNoteSurface(
"Note"
, new Data.Vertex3D(0, 0, 0)
, new Data.Vertex3D(100, 100, 100)
, style
);
// Enable DepthTest
vizcore3d.Review.EnableDepthTest(surfaceNoteId, true);
}
EnableDepthTest(bool enable)
public void EnableDepthTest(bool enable)
전체 깊이버퍼 사용 설정. 기본값은 False 이며, True 로 설정할 경우 노트 항목이 모델 회전에 따라 모델 뒤로 갈 수 있음.
Parameters
| Name | Type | Description |
|---|---|---|
| enable | bool | 깊이버퍼 사용유무 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
// 지정 항목의 스타일 설정
int noteID = 1;
VIZCore3D.NET.Data.NoteStyle style = vizcore3d.Review.Note.GetStyle(noteID);
style.BackgroundColor = System.Drawing.Color.White;
style.BackgroudTransparent = true;
style.FontColor = System.Drawing.Color.Black;
style.FontSize = Data.FontSizeKind.SIZE10;
style.LineColor = System.Drawing.Color.Blue;
style.LineWidth = 4;
style.ArrowColor = System.Drawing.Color.Red;
style.ArrowWidth = 10;
vizcore3d.Review.Note.SetStyle(noteID, style);
// 노트 생성 시 스타일 설정
int surfaceNoteId = vizcore3d.Review.Note.AddNoteSurface(
"Note"
, new Data.Vertex3D(0, 0, 0)
, new Data.Vertex3D(100, 100, 100)
, style
);
// Enable DepthTest
vizcore3d.Review.EnableDepthTest(surfaceNoteId, true);
}