62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
|
#pragma once
|
|||
|
|
|||
|
//Block<63>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>GBlock Fun
|
|||
|
|
|||
|
#include "BlockBasis.h"
|
|||
|
|
|||
|
class CBlockFun : public CBlockBasis
|
|||
|
{
|
|||
|
private:
|
|||
|
//Block rect(<28>s<EFBFBD>b<EFBFBD><62><EFBFBD>ӿ<EFBFBD><D3BF>JPin<69>A<EFBFBD>@<40>ӿ<EFBFBD><D3BF>XPin)
|
|||
|
CRect m_rcPinIn1;
|
|||
|
CRect m_rcPinIn2;
|
|||
|
CRect m_rcPinOut;
|
|||
|
|
|||
|
//<2F>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>s<EFBFBD>b<EFBFBD><62><EFBFBD>ӳs<D3B3><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|||
|
CBlockBasis* m_pBlkHead1;
|
|||
|
CBlockBasis* m_pBlkHead2;
|
|||
|
|
|||
|
//<2F>s<EFBFBD><73>Block<63>s<EFBFBD><73>(<28>s<EFBFBD>b<EFBFBD><62><EFBFBD>ӽs<D3BD><73>)
|
|||
|
int m_iBlkHead1Num;
|
|||
|
int m_iBlkHead2Num;
|
|||
|
|
|||
|
//<2F>B<EFBFBD>⤸flag
|
|||
|
int m_iOperFlag;
|
|||
|
|
|||
|
public:
|
|||
|
//<2F>غc<D8BA>B<EFBFBD>Ѻc<D1BA>l
|
|||
|
CBlockFun ();
|
|||
|
virtual ~CBlockFun ();
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>wrect
|
|||
|
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>w<EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD>Block<63><6B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
virtual CBlockBasis* GetBlkHead1Ptr () const;
|
|||
|
virtual CBlockBasis* GetBlkHead2Ptr () const;
|
|||
|
virtual void SetBlkHead1Ptr (CBlockBasis*);
|
|||
|
virtual void SetBlkHead2Ptr (CBlockBasis*);
|
|||
|
|
|||
|
//<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 GetBlkHead2Num () const;
|
|||
|
virtual void SetBlkHead1Num (int) ;
|
|||
|
virtual void SetBlkHead2Num (int) ;
|
|||
|
|
|||
|
//<2F><><EFBFBD>o<EFBFBD>B<EFBFBD>]<5D>w<EFBFBD>B<EFBFBD>⤸flag
|
|||
|
virtual int GetOperFlag () const;
|
|||
|
virtual void SetOperFlag (int);
|
|||
|
|
|||
|
virtual double GetBlkValue () const; //<2F><><EFBFBD>oBlock<63><6B>
|
|||
|
virtual int GetValueFlag () const; //<2F><><EFBFBD>oValue<75>X<EFBFBD><58>
|
|||
|
|
|||
|
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;
|
|||
|
};
|