CreateCustomStyle
public NoteCustomStyle CreateCustomStyle()
현재 설정(Settings) 기반의 기본값으로 채워진 노트 커스텀 스타일을 생성합니다. 노트 생성 전에 미리 스타일을 정의할 때 사용합니다.
Returns
| Type | Description |
|---|---|
| NoteCustomStyle | Settings 기반 기본값으로 초기화된 NoteCustomStyle |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
private void Example()
{
// 노트 생성 전, 미리 커스텀 스타일 정의
VIZCore3DX.NET.Data.NoteCustomStyle style = vizcore3dx.Note.CreateCustomStyle();
var nodes = vizcore3dx.Object3D.FromFilter(Object3dFilter.SELECTED_ALL);
var surface = vizcore3dx.Object3D.GetSurfaceVertexClosestToModelCenter(nodes);
int offset = 5000;
style.BoxFillColor = Color.Red;
style.TextColor = Color.White;
style.ArrowColor = Color.Yellow;
style.ArrowHeadSize = 8;
vizcore3dx.Note.AddNoteSurface(
"Note1"
, new Vertex3D(surface.X + offset, surface.Y, surface.Z + offset)
, surface
, style
);
style.BoxFillColor = Color.Black;
style.TextColor = Color.White;
style.ArrowColor = Color.Cyan;
style.ArrowHeadSize = 8;
vizcore3dx.Note.AddNoteSurface(
"Note2"
, new Vertex3D(surface.X - offset, surface.Y, surface.Z - offset)
, surface
, style
);
}