WIL説明書(C++)  3.0.0
EvView.h
[詳解]
1 // $Revision: 1.1 $
2 /*
3  @file EvView.h
4  @brief CEvView class header
5  @author FAST Corporation
6 */
7 
8 #ifndef _EVVIEW_H_INCLUDED_
9 #define _EVVIEW_H_INCLUDED_
10 
11 #if _MSC_VER > 1000
12 #pragma once
13 #endif // _MSC_VER > 1000
14 
15 // ///////////////////////////////////////////////////////////////////////////
16 // INCLUDE
17 #include "EvDlgCtrl.h"
18 
19 // -- FVCL
20 #include "Data/FvImage.h"
21 #include "GDI/FvDisplay.h"
22 
23 // -- EVC
24 #include "EvDrawGrid.h"
25 #include "EvDrawAscope.h"
26 #include "EvDrawRectArea.h"
27 
28 // ///////////////////////////////////////////////////////////////////////////
29 // CLASS
30 #pragma pack(push,_FVCL_PACKING)
31 
32 class EVC_API CEvView : public CEvDlgCtrl
33 {
34 public:
35  CEvView( CWnd* parent=NULL, UINT dlgid=IDD );
36  virtual ~CEvView();
37 
38 public:
39  //{{AFX_DATA(CEvView)
40  enum { IDD = IDD_EVC_VIEW };
41  //}}AFX_DATA
42 
43  //{{AFX_VIRTUAL(CEvView)
44  public:
45  virtual BOOL Create( UINT ctrlID, const RECT& rect, CWnd* parent=NULL, UINT dlgid=IDD );
46  virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
47  virtual BOOL OnCmdMsg(UINT nID, INT nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
48  virtual BOOL PreTranslateMessage(MSG* pMsg);
49  protected:
50  virtual void DoDataExchange(CDataExchange* pDX);
51  //}}AFX_VIRTUAL
52 
53 protected:
54  //{{AFX_MSG(CEvView)
55  afx_msg INT OnCreate(LPCREATESTRUCT lpCreateStruct);
56  afx_msg BOOL OnEraseBkgnd(CDC* pDC);
57  afx_msg void OnPaint();
58  afx_msg void OnSize(UINT nType, INT cx, INT cy);
59  afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
60  afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
61  afx_msg BOOL OnMouseWheel(UINT nFlags, SHORT zDelta, CPoint pt);
62  afx_msg LRESULT OnNcHitTest( CPoint point );
63  afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
64  afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
65  afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
66  afx_msg void OnMouseMove(UINT nFlags, CPoint point);
67  afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
68  afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
69  //}}AFX_MSG
70 
71 public:
72  // DEFINE/TYPEDEF
73  struct tagSCROLLBAR
74  {
75  SCROLLINFO siH;
76  SCROLLINFO siV;
77  bool blVisible;
79  };
80 
82  {
84  CPoint pntMouse;
85  CPoint pntScrollBar;
86  CPoint pntDisplay;
87  CPoint pntEffective;
88  CPoint pntImage;
89  };
90 
91  // METHOD
92  virtual bool Update( bool bReDraw = true );
93  virtual void ReDraw( bool Invalidate = true );
94 
95  virtual void DoActual( bool bReDraw = true );
96  virtual void DoExpand( bool bReDraw = true );
97  virtual void DoReduce( bool bReDraw = true );
98 
99  virtual bool SetMagnification( DOUBLE mag );
100  virtual DOUBLE GetMagnification() const;
101  virtual bool FitImageSize( bool bFitWidth=true, bool bFitHeight=true );
102 
103  bool IsFitImageHorz() const;
104  bool IsFitImageVert() const;
105 
106  bool SetScrollBarVisible( bool blVisible );
107  bool GetScrollBarVisible() const;
108 
109  bool SetScrollBarImmediate( bool blEnable );
110  bool GetScrollBarImmediate() const;
111 
112  bool SetScrollBarPage( INT iBar, INT iSize, BOOL blReDraw = TRUE );
113  INT GetScrollBarPage( INT iBar );
114 
115  bool SetScrollBarPos( INT iBar, INT iPos, BOOL blReDraw = TRUE );
116  INT GetScrollBarPos( INT iBar );
117 
118  bool SetScrollBarRange( INT iBar, INT iMin, INT iMax, BOOL blReDraw = TRUE );
119  bool GetScrollBarRange( INT iBar, INT *piMin, INT *piMax );
120 
121  CSize GetImageSize() const;
122 
123  CPoint GetMousePosition( INT coordinate ) const;
124 
125  virtual bool SetImage( FVCL::Data::CFvImage* image );
126  virtual FVCL::Data::CFvImage* GetImage() const;
127 
128  virtual bool SetFocusOption( INT option );
129  virtual INT GetFocusOption() const;
130 
131  virtual bool SetGripOption( INT option );
132  virtual INT GetGripOption() const;
133 
134  virtual bool SetCursorType( INT iType );
135  virtual INT GetCursorType() const;
136 
137  virtual bool SetLayerVisible( INT iLayer, bool visible );
138  virtual bool GetLayerVisible( INT iLayer ) const;
139 
140  CEvDrawGrid& GetDrawGrid();
141  const CEvDrawGrid& GetDrawGrid() const;
142 
143  CEvDrawAscope& GetDrawAscope();
144  const CEvDrawAscope& GetDrawAscope() const;
145 
146  CEvDrawRectArea& GetDrawProcArea();
147  const CEvDrawRectArea& GetDrawProcArea() const;
148 
149  // OBJECT
151 
152 protected:
153  // FUNCTION
154  virtual void _OnDrawOverlay();
155  virtual bool _OnChangeCursor( UINT nFlags, CPoint point );
156 
157  bool _UpdateMouseInfo( UINT nFlags, CPoint point );
158  void _InitScrollBar();
159  void _UpdateScrollBar();
160 
161  // EVENT HANDLER
162  virtual void OnCommandPre( CEvDialog* dlg, WPARAM wParam, LPARAM lParam );
163  virtual void OnCommandPost( CEvDialog* dlg, WPARAM wParam, LPARAM lParam );
164  virtual void OnWndMsgPre( CEvDialog* dlg, UINT message, WPARAM wParam, LPARAM lParam );
165  virtual void OnWndMsgPost( CEvDialog* dlg, UINT message, WPARAM wParam, LPARAM lParam );
166 
167  // OBJECT
180  CSize m_sizeImage;
181 
182  DECLARE_MESSAGE_MAP()
183 };
184 
185 #pragma pack(pop)
186 
187 //{{AFX_INSERT_LOCATION}}
188 
189 #endif // _EVVIEW_H_INCLUDED_
virtual void DoDataExchange(CDataExchange *pDX)
ダイアログ データの交換と有効性チェック
Definition: EvDlgCtrl.cpp:29
CPoint pntEffective
マウス位置 (有効領域座標)
Definition: EvView.h:87
画像オブジェクトのインターフェース
画像ビュークラス
Definition: EvView.h:32
ダイアログコントロール基本クラスのヘッダ
CPoint pntDisplay
マウス位置 (表示領域座標)
Definition: EvView.h:86
tagSCROLLBAR m_tSCROLLBAR
スクロールバー情報
Definition: EvView.h:178
tagMOUSE_INFO m_tMouseInfo
マウス情報
Definition: EvView.h:179
UINT nFlags
マウス押下状態
Definition: EvView.h:83
SCROLLINFO siV
垂直スクロールバー
Definition: EvView.h:76
LPCSTR LPCTSTR
汎用文字列型(const付き)
Definition: FvDefs.h:57
ダイアログコントロール基本クラス
Definition: EvDlgCtrl.h:23
矩形領域描画クラス
Definition: EvDrawRectArea.h:23
FVCL::Data::CFvImage * m_pImage
画像オブジェクト
Definition: EvView.h:171
CSize m_sizeImage
画像のサイズ
Definition: EvView.h:180
画像表示クラスのインターフェース
マウス情報
Definition: EvView.h:81
int INT
整数型(32ビット)
Definition: FvDefs.h:36
#define IDD_EVC_VIEW
ダイアログリソースID
Definition: resource.h:13
INT m_GripOption
グリップオプション
Definition: EvView.h:173
CEvDrawAscope m_DrawAscope
濃度波形描画用
Definition: EvView.h:169
virtual BOOL PreTranslateMessage(MSG *pMsg)
ウィンドウメッセージの変換
Definition: EvDlgCtrl.cpp:81
CPoint pntScrollBar
マウス押下時のスクロールバー位置 (画像座標)
Definition: EvView.h:85
CPoint pntMouse
マウス押下位置 (表示領域座標)
Definition: EvView.h:84
double DOUBLE
倍精度浮動小数点型(64ビット)
Definition: FvDefs.h:62
short SHORT
整数型(16ビット)
Definition: FvDefs.h:34
bool m_bIsDialog
ウィンドウ種別
Definition: EvView.h:177
スクロールバー情報
Definition: EvView.h:73
INT m_iLayerSize
オーバレイ枚数(初期値)
Definition: EvView.h:176
濃度波形描画クラスのヘッダ
矩形構造体
Definition: _structure.h:145
FVCL::GDI::CFvDisplay m_display
画像描画クラス
Definition: EvView.h:150
bool blVisible
スクロールバー有効/無効
Definition: EvView.h:77
bool blImmediate
即座にスクロール
Definition: EvView.h:78
CEvDrawRectArea m_DrawProcArea
処理範囲描画用
Definition: EvView.h:170
int BOOL
ブーリアン型
Definition: FvDefs.h:31
unsigned int UINT
整数型(32ビット)[符号なし]
Definition: FvDefs.h:37
ディスプレイクラス
Definition: FvDisplay.h:31
ダイアログ基本クラス
Definition: EvDialog.h:25
濃度波形描画クラス
Definition: EvDrawAscope.h:23
グリッド描画クラスのヘッダ
グリッド描画クラス
Definition: EvDrawGrid.h:23
CPoint pntImage
マウス位置 (画像座標)
Definition: EvView.h:88
INT m_iCursorType
マウスカーソル操作モード
Definition: EvView.h:174
INT m_FocusOption
フォーカスオプション
Definition: EvView.h:172
SCROLLINFO siH
水平スクロールバー
Definition: EvView.h:75
virtual BOOL Create(UINT ctrlID, const RECT &rect, CWnd *parent, UINT dlgid)
モードレスダイアログの生成
Definition: EvDlgCtrl.cpp:53
画像オブジェクト
Definition: FvImage.h:64
CEvDrawGrid m_DrawGrid
グリッド描画用
Definition: EvView.h:168
矩形領域描画クラスのヘッダ
FVCL::CFvList< bool > m_LayerVisible
オーバレイ常時表示モード
Definition: EvView.h:175

Documentation copyright © 2007 FAST Corporation. [B-001864]
Generated on 2023年11月02日(木) 10時12分53秒 for WIL説明書(C++) by doxygen 1.8.11