FLImaging 6.5.8.1
GUIPropertyItemViewImageFigure.h
1#pragma once
2
11#include "GUIPropertyItemFigure.h"
12
14namespace FLImaging
15{
17 namespace GUI
18 {
19 class CGUIViewImage;
20 class CGUIPropertyItemViewImageList;
21 class CGUIManagerContextMenuPropertyItemViewImageFigure;
22
31 {
32 public:
40
48
59 CGUIPropertyItemViewImageFigure(CGUIPropertyItemViewImageList* pPIIVL);
60
68
81 virtual bool SetViewImageList(CGUIPropertyItemViewImageList* pPIIVL);
82
93 CGUIPropertyItemViewImageList* GetViewImageList();
94
103 virtual CMFCPropertyGridProperty* CreateGridProperty() override;
104
116
136 virtual const CResult MakeValidFigure(Base::CFLString<wchar_t> strValue, Base::CFLString<wchar_t>& strValidFigure, bool bMsgBox = false);
137
148 virtual void SetInstantApplyMode(bool bSet, bool bFixMode) override;
149
158 virtual void SetMagnetToImageBoundaryMode(bool bSet);
159
168 virtual bool IsMagnetToImageBoundaryMode() const;
169
178 virtual void SetMagnetAngleMode(bool bSet);
179
188 virtual bool IsMagnetAngleMode() const;
189
202 virtual const CResult LoadFigureGBR(const wchar_t* pWcsPath = nullptr);
203
216 virtual const CResult LoadFigureDXF(const wchar_t* pWcsPath = nullptr);
217
230 virtual const CResult SaveFigure(const wchar_t* pWcsFileNameWithPath = nullptr) const;
231
242 virtual void ShowFigure(bool bShow, bool bCreate = true);
243
252 virtual bool IsFigureVisible() const;
253
262 virtual void SetViewImage(const CGUIViewImage* pViewImage);
263
287
299 void SetAvailableContextMenu(EAvailablePropertyItemViewImageFigureContextMenu eAvailableMenu = EAvailablePropertyItemViewImageFigureContextMenu_Default);
300
313
314 protected:
315 UINT GetContextMenuFlag(EAvailablePropertyItemViewImageFigureContextMenu eMenu) const;
316 UINT GetContextMenuFlag(EAvailablePropertyItemViewImageFigureContextMenu eMenu, UINT uAssignFlag) const;
317
318 bool MakeDifferentTemplateType(Foundation::EFigureTemplateType eType, bool bMsgBox = true);
319
320 protected:
321 bool m_bEnableMagnetToImageBoundaryMode;
322 bool m_bEnableMagnetAngleMode;
323 CGUIManagerContextMenuPropertyItemViewImageFigure* m_pMgrContextMenu;
325
326 friend class CGUIViewImage;
327 friend class CGUIPropertyGridPropertyViewImageList;
328 friend class CGUIPropertyGridPropertyViewImageFigure;
329 friend class CGUIManagerViewImageObject;
330 friend class CGUIManagerContextMenuPropertyItemViewImageFigure;
331 };
332 }
333}
Template type 의 문자열 클래스
Definition INIUtilities.h:20
FLImaging 모듈의 수행 결과 객체
Definition ResultsDef.h:1514
UI 상의 프로퍼티 창에서 Figure 설정 시 사용되는 클래스
Definition GUIPropertyItemFigure.h:470
UI 상의 프로퍼티 창에서 Figure 설정 시 사용되는 클래스
Definition GUIPropertyItemViewImageFigure.h:31
virtual bool IsFigureVisible() const
Figure 객체가 이미지 뷰에서 보이는 상태인지, 숨겨진 상태인지 여부를 반환합니다.
virtual const CResult LoadFigureDXF(const wchar_t *pWcsPath=nullptr)
.dxf 확장자를 가진 파일을 불러옵니다.
virtual const CResult MakeValidFigure(Base::CFLString< wchar_t > strValue, Base::CFLString< wchar_t > &strValidFigure, bool bMsgBox=false)
매개변수의 Figure String 값을 해당 객체에서 이용 가능한 Figure Figure String 으로 변환하여 반환합니다. 예를 들어 Template Type 을 Int T...
virtual bool IsMagnetToImageBoundaryMode() const
Magnet To Image Boundary 모드로 설정한 경우 true, 설정하지 않은 경우 false 입니다.
virtual ~CGUIPropertyItemViewImageFigure()
기본 소멸자
virtual const CResult UpdateFigureObjectOnViewImage()
virtual CMFCPropertyGridProperty * CreateGridProperty() override
그리드 프로퍼티를 얻어 옵니다.
virtual void ShowFigure(bool bShow, bool bCreate=true)
virtual CGUIViewImage * GetSelectedViewImage() const
연결된 이미지 뷰 리스트에서 선택된 이미지 뷰를 얻어 옵니다.
virtual const CResult LoadFigureGBR(const wchar_t *pWcsPath=nullptr)
.gbr 확장자를 가진 파일을 불러옵니다.
EAvailablePropertyItemViewImageFigureContextMenu GetAvailableContextMenu() const
사용 가능한 컨텍스트 메뉴를 리턴합니다.
virtual void SetInstantApplyMode(bool bSet, bool bFixMode) override
Figure 의 Instant Apply 모드를 지정합니다. 기본값 false 입니다. Instant Apply 모드가 true 로 지정된 경우, OK 메뉴를 누르지 않아도 이미지 ...
CGUIPropertyItemViewImageFigure(CGUIPropertyItemViewImageList *pPIIVL)
생성자
void SetAvailableContextMenu(EAvailablePropertyItemViewImageFigureContextMenu eAvailableMenu=EAvailablePropertyItemViewImageFigureContextMenu_Default)
사용 가능한 컨텍스트 메뉴를 설정합니다.
virtual const CResult SaveFigure(const wchar_t *pWcsFileNameWithPath=nullptr) const
Figure Property 의 값을 .fig 파일로 저장합니다. 만약 nullptr 일 경우 GUI 상에서 file dialog 를 열어 파일 경로를 지정합니다.
CGUIPropertyItemViewImageList * GetViewImageList()
Figure 가 지정될 이미지 뷰 리스트 포인터를 얻어 옵니다.
virtual void SetViewImage(const CGUIViewImage *pViewImage)
이미지 뷰를 설정합니다.
virtual void SetMagnetToImageBoundaryMode(bool bSet)
Figure 의 Magnet To Image Boundary 모드 설정 여부를 지정합니다. 기본값 true 입니다. Magnet To Image Boundary 모드가 true 로 ...
virtual bool IsMagnetAngleMode() const
Magnet Angle 모드로 설정한 경우 true, 설정하지 않은 경우 false 입니다.
virtual bool SetViewImageList(CGUIPropertyItemViewImageList *pPIIVL)
Figure 가 지정될 이미지 뷰 리스트를 설정합니다.
CGUIPropertyItemViewImageFigure(const CGUIPropertyItemViewImageFigure &rhs)
복사 생성자
virtual void SetMagnetAngleMode(bool bSet)
Figure 의 Magnet Angle 모드 설정 여부를 지정합니다. 기본값 true 입니다. Magnet Angle 모드가 true 로 지정된 경우,...
이미지 뷰 클래스
Definition GUIViewImage.h:319
EFigureTemplateType
도형의 변수 자료형
Definition DefinitionsFigure.h:302
EAvailablePropertyItemViewImageFigureContextMenu
CGUIPropertyItemViewImageFigure에 대한 가능한 컨텍스트 메뉴
Definition GUIDefinitions.h:3811