CVCounter Class Reference

#include <ClassBox.h>

List of all members.

Public Member Functions

 CVCounter ()
virtual ~CVCounter ()
virtual void Init ()
virtual void Clear ()
virtual void SetMax (int m)
 カウンタの最大値(最終目標)を設定
virtual void SetFill (int m)
 取り敢えずの目標(最短目標)を設定
virtual void SetPos (int p)
 カウンタの現在位置を設定
virtual void PutFill ()
 取り敢えずの目標(最短目標)までカウンタを進める.
virtual int GetMax ()
 カウンタの最大値(最終目標)を得る
virtual int GetFill ()
 取り敢えずの目標(最短目標)を得る.
virtual int GetPos ()
 カウンタの現在位置を得る
virtual void Start (int m=100, char *tn=NULL)
 カウンタのスタート & タイトル定義
virtual void Stop ()
 カウンタのストップ
virtual void StepIt (int n=1)
 カウンタのメモリを増やす
virtual bool isCanceled ()
 カウンタがオペレータにより,キャンセルされたか
virtual void ResetRate (int n, int m)
 nの目盛り幅を mで読み替える.ここでの定義はあまり意味は無い.
virtual void SetTitle (char *tn)
 カウンタのタイトルを設定
virtual CVCounterGetUsableCounter ()
 現在使用可能な目盛りの有効領域を確保
virtual CVCounterMakeChildCounter (int n)
 子カウンタの作成(有効領域を再定義)
virtual void DeleteChildCounter ()
 子カウンタの削除(有効領域の無効化)

Public Attributes

int max
 カウンタの最大値(0〜)
int pos
 カウンタの値
int fill
 ローカルターゲット(取り敢えず到達すべき目標)
bool cancel
 カウンターがキャンセルされた.
bool start
 カウンタはスタートしている
const char * title

Detailed Description

上位のカウンタークラスを使用する際のアクセスポイントとなる,仮想的なクラス. このクラスのインスタンスを直接使用することは殆ど無い. 例えば,上位クラスとしては CProgressBarDLG を参照せよ.

Definition at line 137 of file ClassBox.h.


Constructor & Destructor Documentation

CVCounter (  )  [inline]

Definition at line 148 of file ClassBox.h.

References CVCounter::cancel, CVCounter::fill, CVCounter::max, CVCounter::pos, CVCounter::start, and CVCounter::title.

00148                 {
00149         max    = 0;
00150         pos    = 0;
00151         fill   = 0;
00152         title  = NULL;
00153         cancel = false;
00154         start  = false;
00155     }

virtual ~CVCounter (  )  [inline, virtual]

Definition at line 157 of file ClassBox.h.

00157 {}


Member Function Documentation

virtual void Clear (  )  [inline, virtual]

Definition at line 160 of file ClassBox.h.

References CVCounter::Init().

00160 {Init();}

Here is the call graph for this function:

virtual void DeleteChildCounter (  )  [inline, virtual]

Definition at line 179 of file ClassBox.h.

Referenced by jbxl::CloseTriSolid(), BREP_SOLID::FreeData(), jbxl::readGraphicFile(), and jbxl::zzSobel().

Here is the caller graph for this function:

virtual int GetFill (  )  [inline, virtual]

Definition at line 166 of file ClassBox.h.

References CVCounter::fill.

virtual int GetMax (  )  [inline, virtual]

Definition at line 165 of file ClassBox.h.

References CVCounter::max.

virtual int GetPos (  )  [inline, virtual]

Definition at line 167 of file ClassBox.h.

References CVCounter::pos.

virtual CVCounter* GetUsableCounter (  )  [inline, virtual]
virtual void Init (  )  [inline, virtual]

Definition at line 159 of file ClassBox.h.

References CVCounter::cancel, CVCounter::fill, CVCounter::max, CVCounter::pos, and CVCounter::title.

Referenced by CVCounter::Clear().

00159 {max=pos=fill=0; title=""; cancel=false;};

Here is the caller graph for this function:

virtual bool isCanceled (  )  [inline, virtual]
virtual CVCounter* MakeChildCounter ( int  n  )  [inline, virtual]

Definition at line 178 of file ClassBox.h.

References CVCounter::ResetRate(), and CVCounter::SetMax().

Referenced by jbxl::CloseTriSolid(), BREP_SOLID::FreeData(), jbxl::readGraphicFile(), and jbxl::zzSobel().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void PutFill (  )  [inline, virtual]
virtual void ResetRate ( int  n,
int  m 
) [inline, virtual]

Definition at line 174 of file ClassBox.h.

References CVCounter::fill, and CVCounter::pos.

Referenced by jbxl::CreateTriSolidFromSTL(), jbxl::CreateTriSolidFromVector(), and CVCounter::MakeChildCounter().

Here is the caller graph for this function:

virtual void SetFill ( int  m  )  [inline, virtual]

Definition at line 162 of file ClassBox.h.

References CVCounter::fill.

virtual void SetMax ( int  m  )  [inline, virtual]
virtual void SetPos ( int  p  )  [inline, virtual]

Definition at line 163 of file ClassBox.h.

References CVCounter::pos.

Referenced by jbxl::readCmnHeadFile(), jbxl::readGraphicSlices(), jbxl::readUserSetData(), jbxl::readXHeadFile(), jbxl::writeCmnHeadData(), and jbxl::writeGraphicFile().

Here is the caller graph for this function:

virtual void SetTitle ( char *  tn  )  [inline, virtual]

Definition at line 175 of file ClassBox.h.

References CVCounter::title.

Referenced by jbxl::readGraphicFile(), and jbxl::readGraphicSlices().

Here is the caller graph for this function:

virtual void Start ( int  m = 100,
char *  tn = NULL 
) [inline, virtual]

Definition at line 169 of file ClassBox.h.

References CVCounter::SetMax(), CVCounter::start, and CVCounter::title.

Referenced by BrepSolidList::getMerge().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void StepIt ( int  n = 1  )  [inline, virtual]
virtual void Stop (  )  [inline, virtual]

Member Data Documentation

bool cancel

Definition at line 143 of file ClassBox.h.

Referenced by CVCounter::CVCounter(), CVCounter::Init(), and CVCounter::isCanceled().

int fill
int max
int pos
bool start

Definition at line 144 of file ClassBox.h.

Referenced by CVCounter::CVCounter(), CVCounter::Start(), and CVCounter::Stop().

const char* title

The documentation for this class was generated from the following file:

Generated on 15 Nov 2023 for JunkBox_Lib++ (for Windows) by  doxygen 1.6.1