RadarFX API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makRadarFx::DtCaptureProcess Class Reference

The DtCaptureProcess represents the capture of a single frame from the renderer. More...

Inheritance diagram for makRadarFx::DtCaptureProcess:
Inheritance graph
[legend]

Classes

struct  DtImageCaptureConfig
 DtImageCaptureConfig defines a request for an image from the RadarFX Server. More...
struct  DtObserverState
 structure used by Capture processes to keep around backups of the observer state so they can reset them after making changes More...

Public Member Functions

 DtCaptureProcess (makVrv::DtDe &de, DtImageRequest *msg)
 CTOR/DTOR.
virtual ~DtCaptureProcess ()
virtual void tick ()
 Tick needs to be called every frame to advance the capture process.
virtual bool isDone ()
 returns true once the process reaches one of the END states
virtual void processFrame (makVrv::DtVideoFrameBuffer *frame)=0
 is called by the image capture task to pass back the captured frame
- Public Member Functions inherited from makRadarFx::DtBaseProcess
 DtBaseProcess (makVrv::DtDe &de)
 CTOR/DTOR.
virtual ~DtBaseProcess ()
virtual bool isReadyToProcess ()
 is the capture process ready to capture the image
virtual DtBaseMessageresponse ()
 return the response for the process
virtual void clearResponse ()
 clear the response (usually used after the response has been sent)

Protected Types

enum  ProcessStep {
  WAITING, CONFIGURE_OBSERVER, CONFIGURE_VIEWPORT, WAIT_TERRAIN,
  FRAME_CAPTURE, CONFIGURE_OBSERVER_WAIT_FRAME, WAIT_FRAME, FRAME_RECEIVED,
  END_REQUEST, END_ERROR
}
 steps in the image capture process More...

Protected Member Functions

virtual void beginRequest ()
virtual void configureViewport ()
virtual void configureObserver ()
virtual void waitTerrain ()
virtual void installFrameCapture ()
virtual void respondError (std::string errorMsg, DtImageError err)=0
virtual void endRequest ()
virtual void restoreDisplay ()
virtual void configureSensor (const std::string &sensorName)=0
virtual std::string generateFilename (const std::string &path, const std::string &filename, DtImageFormat format)
 helper function for generating filenames for images
virtual void slot_coordinateSystemChanged ()
 slot for when the coordinate system changes

Protected Attributes

DtImageCaptureConfigmyCaptureConfig
makVrv::DtSignalConnectionManager myConnections
makVrv::DtCoordinateSystem * myCoordinateSystem = nullptr
 local clone of the system wide coordinate system.
ProcessStep myProcessStep
makVrv::DtVideoStream * myVideoStream
makVrv::DtObserver * myObserver
DtObserverStatemyOriginalState
double myWaitTime
int myWaitTerrainFrames
double myLastTime
double myTerrainTimeout
bool myTerrainTimeoutFlag
int myWaitFrameCount
- Protected Attributes inherited from makRadarFx::DtBaseProcess
makVrv::DtDe & myDe
DtBaseMessagemyResponse

Detailed Description

The DtCaptureProcess represents the capture of a single frame from the renderer.

this is the base class for sensor specific capture processes

Member Enumeration Documentation

steps in the image capture process

Enumerator:
WAITING 
CONFIGURE_OBSERVER 
CONFIGURE_VIEWPORT 
WAIT_TERRAIN 
FRAME_CAPTURE 
CONFIGURE_OBSERVER_WAIT_FRAME 
WAIT_FRAME 
FRAME_RECEIVED 
END_REQUEST 
END_ERROR 

Constructor & Destructor Documentation

makRadarFx::DtCaptureProcess::DtCaptureProcess ( makVrv::DtDe &  de,
DtImageRequest msg 
)

CTOR/DTOR.

virtual makRadarFx::DtCaptureProcess::~DtCaptureProcess ( )
virtual

Member Function Documentation

virtual void makRadarFx::DtCaptureProcess::tick ( )
virtual

Tick needs to be called every frame to advance the capture process.

Implements makRadarFx::DtBaseProcess.

virtual bool makRadarFx::DtCaptureProcess::isDone ( )
virtual

returns true once the process reaches one of the END states

Implements makRadarFx::DtBaseProcess.

virtual void makRadarFx::DtCaptureProcess::processFrame ( makVrv::DtVideoFrameBuffer *  frame)
pure virtual

is called by the image capture task to pass back the captured frame

Implemented in makRadarFx::DtMmwCaptureProcess, makRadarFx::DtSarCaptureProcess, and makRadarFx::DtIsarCaptureProcess.

virtual void makRadarFx::DtCaptureProcess::beginRequest ( )
protectedvirtual
virtual void makRadarFx::DtCaptureProcess::configureViewport ( )
protectedvirtual
virtual void makRadarFx::DtCaptureProcess::configureObserver ( )
protectedvirtual
virtual void makRadarFx::DtCaptureProcess::waitTerrain ( )
protectedvirtual
virtual void makRadarFx::DtCaptureProcess::installFrameCapture ( )
protectedvirtual
virtual void makRadarFx::DtCaptureProcess::respondError ( std::string  errorMsg,
DtImageError  err 
)
protectedpure virtual
virtual void makRadarFx::DtCaptureProcess::endRequest ( )
protectedvirtual
virtual void makRadarFx::DtCaptureProcess::restoreDisplay ( )
protectedvirtual
virtual void makRadarFx::DtCaptureProcess::configureSensor ( const std::string &  sensorName)
protectedpure virtual
virtual std::string makRadarFx::DtCaptureProcess::generateFilename ( const std::string &  path,
const std::string &  filename,
DtImageFormat  format 
)
protectedvirtual

helper function for generating filenames for images

virtual void makRadarFx::DtCaptureProcess::slot_coordinateSystemChanged ( )
protectedvirtual

slot for when the coordinate system changes

Member Data Documentation

DtImageCaptureConfig* makRadarFx::DtCaptureProcess::myCaptureConfig
protected
makVrv::DtSignalConnectionManager makRadarFx::DtCaptureProcess::myConnections
protected
makVrv::DtCoordinateSystem* makRadarFx::DtCaptureProcess::myCoordinateSystem = nullptr
protected

local clone of the system wide coordinate system.

for thread safety.

ProcessStep makRadarFx::DtCaptureProcess::myProcessStep
protected
makVrv::DtVideoStream* makRadarFx::DtCaptureProcess::myVideoStream
protected
makVrv::DtObserver* makRadarFx::DtCaptureProcess::myObserver
protected
DtObserverState* makRadarFx::DtCaptureProcess::myOriginalState
protected
double makRadarFx::DtCaptureProcess::myWaitTime
protected
int makRadarFx::DtCaptureProcess::myWaitTerrainFrames
protected
double makRadarFx::DtCaptureProcess::myLastTime
protected
double makRadarFx::DtCaptureProcess::myTerrainTimeout
protected
bool makRadarFx::DtCaptureProcess::myTerrainTimeoutFlag
protected
int makRadarFx::DtCaptureProcess::myWaitFrameCount
protected

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

Document ID: 1.0
Copyright © 2015 VT MÄK Inc. All Rights Reserved (www.mak.com)