68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
|
#pragma once
|
|||
|
|
|||
|
//Block<63><6B>¦<EFBFBD><C2A6><EFBFBD>O
|
|||
|
|
|||
|
class CBlockBasis
|
|||
|
{
|
|||
|
protected:
|
|||
|
CRect m_rcBlk; //Block rect
|
|||
|
|
|||
|
int m_iBlkNum; //Block<63><6B>vector<6F><72><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73>
|
|||
|
|
|||
|
public:
|
|||
|
//<2F>غc<D8BA>B<EFBFBD>Ѻc<D1BA>l
|
|||
|
CBlockBasis ();
|
|||
|
virtual ~CBlockBasis ();
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>wrect
|
|||
|
CRect GetBlkRect () const;
|
|||
|
virtual void SetBlkRect (CPoint, int, int);
|
|||
|
virtual CRect GetPinIn1Rect () const;
|
|||
|
virtual CRect GetPinIn2Rect () const;
|
|||
|
virtual CRect GetPinOutRect () const;
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>wBlock<63>s<EFBFBD><73>
|
|||
|
int GetBlkNum () const;
|
|||
|
void SetBlkNum (int);
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>w<EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD>Block<63><6B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
virtual CBlockBasis* GetBlkHead1Ptr () const;
|
|||
|
virtual CBlockBasis* GetBlkHead1Ptr (int) const;
|
|||
|
virtual CBlockBasis* GetBlkHead2Ptr () const;
|
|||
|
virtual void SetBlkHead1Ptr (CBlockBasis*);
|
|||
|
virtual void SetBlkHead2Ptr (CBlockBasis*);
|
|||
|
virtual void DeleteBlkHead1Ptr (int); //<2F><>Block Out<75>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>vector<6F><72><EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>w<EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD>Block<63><6B><EFBFBD>s<EFBFBD><73>
|
|||
|
virtual int GetBlkHead1Num () const;
|
|||
|
virtual int GetBlkHead1Num (int) const;
|
|||
|
virtual int GetBlkHead2Num () const;
|
|||
|
virtual void SetBlkHead1Num (int) ;
|
|||
|
virtual void SetBlkHead2Num (int) ;
|
|||
|
virtual void ClearBlkHead1Num (); //<2F>M<EFBFBD><4D>Block Out<75>s<EFBFBD><73><EFBFBD>s<EFBFBD><73>vector
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>w<EFBFBD>s<EFBFBD><73>Block Out<75><74><EFBFBD>ƥ<EFBFBD>
|
|||
|
virtual int GetBlkHeadSize () const;
|
|||
|
virtual void SetBlkHeadSize (int);
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>wBlock In, Fun<75><6E>flag
|
|||
|
virtual int GetInputFlag () const;
|
|||
|
virtual void SetInputFlag (int);
|
|||
|
virtual int GetOperFlag () const;
|
|||
|
virtual void SetOperFlag (int);
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>wBlock<63><6B>
|
|||
|
virtual double GetBlkValue () const;
|
|||
|
virtual double GetBlkValue (int) const; //<2F><><EFBFBD>oBlock Out<75><74><EFBFBD>wchannel<65><6C><EFBFBD><EFBFBD>
|
|||
|
virtual void SetBlkValue (double);
|
|||
|
virtual void SetBlkValue ();
|
|||
|
virtual int GetValueFlag () const;
|
|||
|
virtual int GetValueFlag (int) const;
|
|||
|
|
|||
|
virtual void Move (CPoint); //<2F><><EFBFBD><EFBFBD>Block
|
|||
|
virtual void Draw (CDC*); //ø<>sBlock
|
|||
|
virtual void DrawLine (CDC*); //ø<>sBlock<63>s<EFBFBD><73><EFBFBD>u
|
|||
|
|
|||
|
//<2F>P<EFBFBD>_Block<63><6B><EFBFBD><EFBFBD>
|
|||
|
virtual int BlkTypeIs () const;
|
|||
|
};
|