appkit  1.5.1
RoadNarrows Robotics Application Kit
rnr::StateImage Class Reference

#include <State.orig.h>

Inheritance diagram for rnr::StateImage:
rnr::State

Public Member Functions

 StateImage (Session &session, const CvSize &sizeDisplay, const CvSize &sizeIoI, int nInitAction=UIActionNone)
 
virtual int getNextAction (Session &session, int nTimeoutMs)
 
virtual void resetView (Session &session)
 
void setIoI (IplImage *pImgIoI)
 
void markupPanImg (Session &session)
 
virtual void markupImg (Session &session)
 
virtual void showMarkupImg (Session &session)
 
virtual void showImg (Session &session, IplImage *pImg)
 
virtual CvPoint mapPt (CvPoint &ptHiRes)
 
virtual CvPoint mapPtPan (CvPoint &ptHiRes)
 
virtual CvRect mapRect (CvRect &rectHiRes)
 
virtual void transZoomIn (Session &session)
 
virtual void transZoomOut (Session &session)
 
virtual void transPan (Session &session)
 
- Public Member Functions inherited from rnr::State
 State (int nStateId, const std::string &strStateName="", const std::string &strRefTag="")
 Initialization constructor. More...
 
 State (int nStateId, const std::string &strStateName, const std::string &strRefTag, StateEvent *listStateEvents[])
 List constructor. More...
 
virtual ~State ()
 Destructor.
 
int addStateEvents (StateEvent *pStateEvent,...)
 Add a list of state events to this state. More...
 
void addStateEvent (StateEvent *pStateEvent)
 Add state to this state. More...
 
bool deleteStateEvent (int nEventId)
 Delete state event from this state. More...
 
uint_t setTimeOut (uint_t usecTimeOut)
 Set recieve event time out. More...
 
uint_t getTimeOut ()
 Get recieve event time out. More...
 
virtual int receiveEvent ()
 Receive next event. More...
 
virtual void queueNextEvent (int nEventId)
 Queue the next event to be "recieved". More...
 
virtual int dispatchEvent (int nPrevStateId, int nEventId)
 Dispatch received event by executing associated action and transitioning to the next state. More...
 
virtual void actionEnterState (int nPrevStateId, int nEventId)
 Execute 'enter state' action. More...
 
virtual void actionExitState (int nNextStateId, int nEventId)
 Execute 'exit state' action. More...
 
virtual int actionDefault (int nPrevStateId, int nEventId)
 Execute 'default' action. More...
 
int getStateId () const
 Get state id. More...
 
std::string getStateName () const
 Get state name. More...
 
std::string getRefTag () const
 Get state reference tag. More...
 
std::string getEventName (int nEventId)
 Get state event name. More...
 
std::string getActionName (int nEventId)
 Get state action name. More...
 
virtual void printState (FILE *fp=stdout, int indent=0)
 Print out state. More...
 
 State (Session &session, int nInitAction=UIActionNone)
 
virtual int setNextAction (int nAction)
 Set the next input action to process. More...
 
int getCurAction ()
 Get the currently retrieved input action. More...
 
bool hasFatal ()
 Test if state has fatal condition. More...
 
void setFatal ()
 
bool isModified ()
 
void setModifiedState (bool bModified)
 
void maskHardButton (bool bEnDis)
 Enable/disable masking of hard button input. More...
 
virtual bool isHardButtonPushed (Session &session)
 
virtual void prompt (Session &session)
 Prompt user, given the state. More...
 
virtual void setMenuStates (Session &session)
 
virtual void transQuit (Session &session)
 
virtual void transPrev (Session &session)
 

Public Attributes

Mouse m_mouse
 mouse instance
 
IplImage * m_pImgIoI
 pointer to current image of interest
 
IplImage * m_pImgShadow
 pointer to "shadow" (low-res) IoI
 
IplImage * m_pImgMarked
 pointer to marked up image
 
IplImage * m_pImgDisplay
 pointer to displayed image
 
CvSize m_sizeDisplay
 size of display region
 
CvSize m_sizeIoI
 image of interest size
 
WinIoI * m_pTransIoI
 displayed ioi transformation
 
WinIoI * m_pTransShadow
 displayed shadow transformation
 
CvRect m_rectIoIRoI
 image of interest region of interest
 
CvPoint m_ptPanRaw
 last pan raw point position
 
CvPoint m_ptPan
 last transformed pan point position
 
bool m_bIoICanZoomIn
 image of interest can [not] zoom in
 
bool m_bIoICanZoomOut
 image of interest can [not] zoom out
 
bool m_bIoIIsPanning
 image of interest panning [not] active
 
bool m_bShadowChanged
 shadow image does [not] need to update
 

Protected Member Functions

virtual void buildInterface (Session &session)
 
virtual void destroyInterface ()
 
- Protected Member Functions inherited from rnr::State
void init (int nStateId, const std::string &strStateName="", const std::string &strRefTag="")
 Initialize data. More...
 
virtual std::string getReservedStateName (int nStateId)
 Get the reserved state name. More...
 
virtual void initButtonMenu ()
 

Additional Inherited Members

- Public Types inherited from rnr::State
typedef std::map< int, StateEvent * > TransTblMap_T
 transition table type
 
- Static Public Attributes inherited from rnr::State
static const int StateIdUndef = 0
 undefined state
 
static const int StateIdStart = 1
 start state
 
static const int StateIdPrev = 2
 the previous state
 
static const int StateIdThis = 3
 the current (this) state
 
static const int StateIdTerminate = 4
 terminate state
 
static const int StateIdNumOf = 5
 number of reserved state id's
 
- Protected Attributes inherited from rnr::State
int m_nStateId
 state id
 
std::string m_strStateName
 state name
 
std::string m_strRefTag
 state tag (short id string)
 
TransTblMap_T m_mapTransTbl
 state transition table
 
int m_nQueuedEventId
 queue state event
 
bool m_bHasQueuedEvent
 [no] queued state event
 
uint_t m_usecTimeOut
 receive event time out (useconds)
 
Window * m_pWin
 bound window
 
Menu * m_pMenu
 button menu
 
int m_nInitAction
 initial state input action
 
int m_nCurAction
 current state input action
 
bool m_bFatal
 fatal error
 
bool m_bModified
 state [not] modified
 
bool m_bHardBttnEnable
 enable/disable hard button input
 

Detailed Description

Image Manipulation Workflow State Data Class

Definition at line 214 of file State.orig.h.


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