OpenNI 1.5.7

#include <XnCppWrapper.h>

Inheritance diagram for xn::MockImageGenerator:

Public Member Functions

 MockImageGenerator (XnNodeHandle hNode=NULL)
 
 MockImageGenerator (const NodeWrapper &other)
 
XnStatus Create (Context &context, const XnChar *strName=NULL)
 
XnStatus CreateBasedOn (ImageGenerator &other, const XnChar *strName=NULL)
 
XnStatus SetData (XnUInt32 nFrameID, XnUInt64 nTimestamp, XnUInt32 nDataSize, const XnUInt8 *pImageMap)
 
XnStatus SetData (const ImageMetaData &imageMD, XnUInt32 nFrameID, XnUInt64 nTimestamp)
 
XnStatus SetData (const ImageMetaData &imageMD)
 
- Public Member Functions inherited from xn::ImageGenerator
 ImageGenerator (XnNodeHandle hNode=NULL)
 
 ImageGenerator (const NodeWrapper &other)
 
XnStatus Create (Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)
 
void GetMetaData (ImageMetaData &metaData) const
 
const XnRGB24PixelGetRGB24ImageMap () const
 
const XnYUV422DoublePixelGetYUV422ImageMap () const
 
const XnGrayscale8PixelGetGrayscale8ImageMap () const
 
const XnGrayscale16PixelGetGrayscale16ImageMap () const
 
const XnUInt8 * GetImageMap () const
 
XnBool IsPixelFormatSupported (XnPixelFormat Format) const
 
XnStatus SetPixelFormat (XnPixelFormat Format)
 
XnPixelFormat GetPixelFormat () const
 
XnStatus RegisterToPixelFormatChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
 
void UnregisterFromPixelFormatChange (XnCallbackHandle hCallback)
 
- Public Member Functions inherited from xn::MapGenerator
 MapGenerator (XnNodeHandle hNode=NULL)
 
 MapGenerator (const NodeWrapper &other)
 
XnUInt32 GetSupportedMapOutputModesCount () const
 
XnStatus GetSupportedMapOutputModes (XnMapOutputMode *aModes, XnUInt32 &nCount) const
 
XnStatus SetMapOutputMode (const XnMapOutputMode &OutputMode)
 
XnStatus GetMapOutputMode (XnMapOutputMode &OutputMode) const
 
XnUInt32 GetBytesPerPixel () const
 
XnStatus RegisterToMapOutputModeChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
 
void UnregisterFromMapOutputModeChange (XnCallbackHandle hCallback)
 
const CroppingCapability GetCroppingCap () const
 
CroppingCapability GetCroppingCap ()
 
GeneralIntCapability GetBrightnessCap ()
 
GeneralIntCapability GetContrastCap ()
 
GeneralIntCapability GetHueCap ()
 
GeneralIntCapability GetSaturationCap ()
 
GeneralIntCapability GetSharpnessCap ()
 
GeneralIntCapability GetGammaCap ()
 
GeneralIntCapability GetWhiteBalanceCap ()
 
GeneralIntCapability GetBacklightCompensationCap ()
 
GeneralIntCapability GetGainCap ()
 
GeneralIntCapability GetPanCap ()
 
GeneralIntCapability GetTiltCap ()
 
GeneralIntCapability GetRollCap ()
 
GeneralIntCapability GetZoomCap ()
 
GeneralIntCapability GetExposureCap ()
 
GeneralIntCapability GetAutoExposureCap ()
 
GeneralIntCapability GetIrisCap ()
 
GeneralIntCapability GetFocusCap ()
 
GeneralIntCapability GetLowLightCompensationCap ()
 
AntiFlickerCapability GetAntiFlickerCap ()
 
- Public Member Functions inherited from xn::Generator
 Generator (XnNodeHandle hNode=NULL)
 
 Generator (const NodeWrapper &other)
 
XnStatus StartGenerating ()
 
XnBool IsGenerating () const
 
XnStatus StopGenerating ()
 
XnStatus RegisterToGenerationRunningChange (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
 
void UnregisterFromGenerationRunningChange (XnCallbackHandle hCallback)
 
XnStatus RegisterToNewDataAvailable (StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
 
void UnregisterFromNewDataAvailable (XnCallbackHandle hCallback)
 
XnBool IsNewDataAvailable (XnUInt64 *pnTimestamp=NULL) const
 
XnStatus WaitAndUpdateData ()
 
XnBool IsDataNew () const
 
const void * GetData ()
 
XnUInt32 GetDataSize () const
 
XnUInt64 GetTimestamp () const
 
XnUInt32 GetFrameID () const
 
const MirrorCapability GetMirrorCap () const
 
MirrorCapability GetMirrorCap ()
 
const AlternativeViewPointCapability GetAlternativeViewPointCap () const
 
AlternativeViewPointCapability GetAlternativeViewPointCap ()
 
const FrameSyncCapability GetFrameSyncCap () const
 
FrameSyncCapability GetFrameSyncCap ()
 
- Public Member Functions inherited from xn::ProductionNode
 ProductionNode (XnNodeHandle hNode=NULL)
 
 ProductionNode (const NodeWrapper &other)
 
NodeInfo GetInfo () const
 
XnStatus AddNeededNode (ProductionNode &needed)
 
XnStatus RemoveNeededNode (ProductionNode &needed)
 
void GetContext (Context &context) const
 
Context GetContext () const
 
XnBool IsCapabilitySupported (const XnChar *strCapabilityName) const
 
XnStatus SetIntProperty (const XnChar *strName, XnUInt64 nValue)
 
XnStatus SetRealProperty (const XnChar *strName, XnDouble dValue)
 
XnStatus SetStringProperty (const XnChar *strName, const XnChar *strValue)
 
XnStatus SetGeneralProperty (const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)
 
XnStatus GetIntProperty (const XnChar *strName, XnUInt64 &nValue) const
 
XnStatus GetRealProperty (const XnChar *strName, XnDouble &dValue) const
 
XnStatus GetStringProperty (const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize) const
 
XnStatus GetGeneralProperty (const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer) const
 
XnStatus LockForChanges (XnLockHandle *phLock)
 
void UnlockForChanges (XnLockHandle hLock)
 
XnStatus LockedNodeStartChanges (XnLockHandle hLock)
 
void LockedNodeEndChanges (XnLockHandle hLock)
 
const ErrorStateCapability GetErrorStateCap () const
 
ErrorStateCapability GetErrorStateCap ()
 
GeneralIntCapability GetGeneralIntCap (const XnChar *strCapability)
 
- Public Member Functions inherited from xn::NodeWrapper
 NodeWrapper (XnNodeHandle hNode)
 
 NodeWrapper (const NodeWrapper &other)
 
NodeWrapperoperator= (const NodeWrapper &other)
 
 ~NodeWrapper ()
 
 operator XnNodeHandle () const
 
XnNodeHandle GetHandle () const
 
XnBool operator== (const NodeWrapper &other)
 
XnBool operator!= (const NodeWrapper &other)
 
XnBool IsValid () const
 
const XnChar * GetName () const
 
XnStatus AddRef ()
 
void Release ()
 
void SetHandle (XnNodeHandle hNode)
 
void TakeOwnership (XnNodeHandle hNode)
 

Detailed Description

Represents a mock image generator

Constructor & Destructor Documentation

◆ MockImageGenerator() [1/2]

xn::MockImageGenerator::MockImageGenerator ( XnNodeHandle hNode = NULL)
inline

Ctor

Parameters
[in]hNodeNode handle

◆ MockImageGenerator() [2/2]

xn::MockImageGenerator::MockImageGenerator ( const NodeWrapper & other)
inline

Member Function Documentation

◆ Create()

XnStatus xn::MockImageGenerator::Create ( Context & context,
const XnChar * strName = NULL )
inline

Creates a mock image generator

Parameters
[in]contextThe context in which the node should be generated
[in]strNameOptional. The name of the new node.

◆ CreateBasedOn()

XnStatus xn::MockImageGenerator::CreateBasedOn ( ImageGenerator & other,
const XnChar * strName = NULL )
inline

Creates a mock image generator, copying the initial state from another image generator.

Parameters
[in]otherThe image generator to copy state from
[in]strNameOptional. The name of the new node.

◆ SetData() [1/3]

XnStatus xn::MockImageGenerator::SetData ( const ImageMetaData & imageMD)
inline

Sets the data of the mock node from a meta data object.

Parameters
[in]imageMDObject to take data from

◆ SetData() [2/3]

XnStatus xn::MockImageGenerator::SetData ( const ImageMetaData & imageMD,
XnUInt32 nFrameID,
XnUInt64 nTimestamp )
inline

Sets the data of the mock node from a meta data object, overriding frame ID and timestamp

Parameters
[in]imageMDObject to take data from
[in]nFrameIDFrame ID
[in]nTimestampTimestamp

◆ SetData() [3/3]

XnStatus xn::MockImageGenerator::SetData ( XnUInt32 nFrameID,
XnUInt64 nTimestamp,
XnUInt32 nDataSize,
const XnUInt8 * pImageMap )
inline

For full details and usage, see xnMockImageSetData


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