MFC-Simulator/TestSimulator/BlockAnd.h

55 lines
1.3 KiB
C
Raw Permalink Normal View History

2023-02-03 03:07:52 +01:00
#pragma once
//Block<63>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>GBlock And
#include "BlockBasis.h"
class CBlockAnd : 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;
public:
//<2F>غc<D8BA>B<EFBFBD>Ѻc<D1BA>l
CBlockAnd ();
virtual ~CBlockAnd ();
//<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) ;
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;
};