Click or drag to resize
XDL

NObjectManager Class

NanObj 객체를 생성하고 속성값을 정의하는 클래스
주기 이동/회전/점위치이동/그룹/그룹해제/Undo/Redo 를 관리한다.
주기 기본 속성을 기정의된 경로 또는 임의 경로의 config 파일에 저장하고 로드하여 사용한다.
Inheritance Hierarchy
SystemObject
  NCommandManager
    Pixoneer.NXDL.NXAnnotationNObjectManager

Namespace: Pixoneer.NXDL.NXAnnotation
Assembly: NXAnnotation (in NXAnnotation.dll) Version: 2.0.3.38 (2.0.3.38)
Syntax
C#
public class NObjectManager : NCommandManager

The NObjectManager type exposes the following members.

Properties
 NameDescription
Public propertyLoadedIndexmapCount인덱스맵 주기의 인덱스맵 Type 개수를 가져온다.
Public propertyLoadedIndexmaps 인덱스맵 주기의 인덱스맵 타입 정보를 가져온다.
Public propertyParagraphs NanFigureText 에 default 로 쓰여질 텍스트 리스트를 가져온다. 한줄씩 리스트에 추가한다. NanFigureText 가 제목텍스트이거나 비밀텍스트일 경우 사용된다.
Public propertyPointSizeUnit 점 크기 단위(world 좌표계 단위)를 가져오거나 설정한다.
PointSize * PointSizeUnit => wPointSize(world 단위 point size) 계산
NDrawArgs::ConvWorldToPixelLength (ref wPointSize, ref dummy) 로 pixel 단위로 변환한 뒤에 실제 컨트롤에 적용
Public propertyTextSizeUnit 글씨 크기 단위(world 좌표계 단위)를 가져오거나 설정한다.
(NanFigureText::FontCount 또는 NAnnotationConfig::DefaultFontSize) * TextSizeUnit => world 단위 FontSize 계산
world 단위 FontSize / NanFigureText::WPP => 실제 NRichEditCtrl 에 설정되는 FontSize
Public propertyThickUnit 선 두계 단위(world 좌표계 단위)를 가져오거나 설정한다.
LineThick * ThickUnit => wthick(world 단위 line thick) 계산
NDrawArgs::ConvWorldToPixelLength (ref wthick, ref dummy) 로 pixel 단위로 변환한 뒤에 실제 컨트롤에 적용
Public propertyUseSizeUnit 글씨 크기, 선 두께, 점 크기를 계산할 때 설정한 TextSizeUnit, ThickUnit, PointSizeUnit을 사용할지 여부를 가져오거나 설정한다.
true로 설정하면 TextSizeUnit, ThickUnit, PointSizeUnit를 사용하고 false로 설정하면 Y방향 해상도를 사용한다.
Top
Methods
 NameDescription
Public methodChangePropertyDirect 선택한 주기들의 속성을 변경한다.
Public methodGetObjectProperties Canvas 뷰에 적용된 주기 기본 속성 정보를 가져온다.
Public methodCode exampleLoadDefaultDrawInfo(String) 고정 경로에 있는 config 파일(.xml)을 로드해서 Canvas 뷰의 주기 기본 속성값으로 설정한다.
Public methodLoadDefaultDrawInfo(String, String) 입력받은 경로에 있는 config 파일(.xml)을 로드해서 Canvas 뷰의 주기 기본 속성값으로 설정한다.
Public methodSaveDefaultDrawInfo(String) Canvas 뷰에 설정된 주기 기본 속성값을 가져와서 고정 경로에 있는 config 파일(.xml)에 저장한다.
Public methodSaveDefaultDrawInfo(String, String) Canvas 뷰에 설정된 주기 기본 속성값을 가져와서 지정한 경로에 config 파일(.xml) 로 저장한다.
Public methodSetObjectProperties 주기 기본 속성을 Canvas 뷰에 설정한다.
Top
Fields
 NameDescription
Public fieldArmyMarkPath NanBitmap 이 부대마크 타입일 경우 부대마크로 사용할 이미지 파일 경로
Public fieldBackColor Background 색
Public fieldDefaultFontFamily 글꼴
Public fieldDefaultFontSize 글씨 크기
Public fieldFillStyle 채우기 스타일
Public fieldForeColor Foreground 색
Public fieldHorizontalAlignment 글씨 가로축 정렬
Public fieldIndexMapColor NanBitmap 속성이 인덱스맵일 경우 인덱스맵에 표시할 위치(점) 색
Public fieldIsBold Bold 여부
Public fieldIsDrawBorder 선 그리기 여부
Public fieldIsDrawFill 면 채우기 여부
Public fieldIsItalic Italic 여부
Public fieldIsStrikethrough Strikethrough 여부
Public fieldIsUnderline Underline 여부
Public fieldLineColor 선 색
Public fieldLineStyle 선 스타일
Public fieldLineThick 선 두께
Public fieldPointSize 점 크기
Public fieldPointType 점 모양
Public fieldTextBackColor 글씨 채우기 배경색
Public fieldTextColor 글씨 색
Public fieldTextOpacity 글씨색 투명도 (0.0 ~ 1.0)
Public fieldTextStyle 글씨 채우기 스타일
Public fieldVerticalAlignment 글씨 세로축 정렬
Top
See Also