Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394::AvcCameraRegister Class Reference
[L1394_Register]

Class AvcCameraRegister implements the interface of class CameraRegister for AvcCameras. More...

#include <l1394_avccameraregister.h>

Inheritance diagram for L1394::AvcCameraRegister:

L1394::CameraRegister L1394::AvcRegister L1394::DeviceRegister List of all members.

Public Member Functions

CameraRegister constructor
These functions implement the CameraRegister interface for AvcCameras

 AvcCameraRegister (const FcpNode *parent_node, const int subunit_value)
 This method creates a CameraRegister object for AvcCameras.
 ~AvcCameraRegister ()
 destructor
Camera_register Interface
These functions implement the CameraRegister interface for AvcCameras

virtual bool onePush (const bool one_push=true) const
 This method activates or deactivates one-push mode of a feature.
virtual bool automatic (const bool on=true) const
 This method activates or deactivates the auto-mode of a feature.
virtual int setValue (const int value) const
 This method changes the value of a feature.
virtual int setTriggerMode (const int value) const
 This method sets the value of the trigger mode.
virtual bool setTriggerPolarity (const bool value) const
 This method enables or disables the trigger polarity.
virtual int getValue () const
 This method returns the actual value of a feature.
virtual int getMinValue () const
 This method returns the minimum value of a feature.
virtual int getMaxValue () const
 This method returns the maximum value of a feature.
virtual bool on (const bool=true) const
 This method enable or disable a feature.
virtual bool hasFeature () const
 This method tests if a feature is supported by the camera.
virtual bool hasOnePush () const
 This method check, if one-push mode is supported by the camera.
virtual bool hasReadout () const
 This method tests for readout mode of a feature.
virtual bool hasOnOff () const
 This method tests, if on-off mode is support by a feature.
virtual bool hasAuto () const
 This method tests for auto mode of a feature.
virtual bool hasManual () const
 This method tests for manual mode of a feature.
Some internal functions
These functions help to implement the interface.

void setOffset (int)

Detailed Description

Class AvcCameraRegister implements the interface of class CameraRegister for AvcCameras.

As described in class CameraRegister, class AvcCameraRegister defines how to execute a feature of a Camera based on the AV/C camera subunit Specification (Version 2.1).

For example-code see class Camera and AvcCamera.

Illegal combinations are ignored.

Author:
Michael Repplinger

Definition at line 43 of file l1394_avccameraregister.h.


Constructor & Destructor Documentation

L1394::AvcCameraRegister::AvcCameraRegister const FcpNode parent_node,
const int  subunit_value
 

This method creates a CameraRegister object for AvcCameras.

Parameters:
FcpNode* : pointer to the parent node.
subunit_value : The subunit value defines the subunit-type and the subunit-id of the device.

Definition at line 22 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::~AvcCameraRegister  ) 
 

destructor

Definition at line 26 of file l1394_avccameraregister.cpp.


Member Function Documentation

L1394::AvcCameraRegister::automatic const bool  on = true  )  const [virtual]
 

This method activates or deactivates the auto-mode of a feature.

Parameters:
on : enables or disables automatic mode of a feature.
Returns:
bool : new status of automatic mode.

Implements L1394::CameraRegister.

Definition at line 41 of file l1394_avccameraregister.cpp.

References CONTROL, L1394::AvcRegister::opcode, L1394::AvcRegister::parent_node, L1394::FcpNode::send(), L1394::QArray::setByte(), and L1394::AvcRegister::subunit_value.

L1394::AvcCameraRegister::getMaxValue  )  const [virtual]
 

This method returns the maximum value of a feature.

Returns:
int : maximum value of a feature.

Implements L1394::CameraRegister.

Definition at line 111 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::getMinValue  )  const [virtual]
 

This method returns the minimum value of a feature.

Returns:
int : minimum value of a feature

Implements L1394::CameraRegister.

Definition at line 105 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::getValue  )  const [virtual]
 

This method returns the actual value of a feature.

Returns:
int : actual value of a feature.

Implements L1394::CameraRegister.

Definition at line 93 of file l1394_avccameraregister.cpp.

References L1394::AvcRegister::data_array, L1394::Quadlet::getByte(), L1394::Singleton< T, CreationPolicy, LifetimePolicy, ThreadingModel >::getInstance(), L1394::QArray::getSize(), L1394::AvcRegister::parent_node, L1394::FcpNode::send(), L1394::QArray::setByte(), and STATUS.

L1394::AvcCameraRegister::hasAuto  )  const [virtual]
 

This method tests for auto mode of a feature.

Returns:
bool : true if mode is supported, false if not.

Implements L1394::CameraRegister.

Definition at line 146 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::hasFeature  )  const [virtual]
 

This method tests if a feature is supported by the camera.

Returns:
bool : true if the feature is supported, false if not.

Reimplemented from L1394::AvcRegister.

Definition at line 117 of file l1394_avccameraregister.cpp.

References L1394::AvcRegister::data_array, L1394::Quadlet::getByte(), IMPLEMENTED, L1394::AvcRegister::parent_node, L1394::FcpNode::send(), L1394::QArray::setByte(), and SPECIFIC_INQUIRY.

L1394::AvcCameraRegister::hasManual  )  const [virtual]
 

This method tests for manual mode of a feature.

Returns:
bool : true if feature has manual support, false if not.

Implements L1394::CameraRegister.

Definition at line 152 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::hasOnePush  )  const [virtual]
 

This method check, if one-push mode is supported by the camera.

Returns:
bool : true if a feature supported this mode, false if not.

Implements L1394::CameraRegister.

Definition at line 128 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::hasOnOff  )  const [virtual]
 

This method tests, if on-off mode is support by a feature.

Returns:
bool : true if a feature support this mode, false if not.

Implements L1394::CameraRegister.

Definition at line 140 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::hasReadout  )  const [virtual]
 

This method tests for readout mode of a feature.

Returns:
bool : true if a feature supports this mode, false if not.

Implements L1394::CameraRegister.

Definition at line 134 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::on const   bool = true  )  const [inline, virtual]
 

This method enable or disable a feature.

After disabling a feature, no write access has affect until enabling the feature again.So this method can be used, to lock (unlock) a feature to a value.

Parameters:
set : true enable, false disable the feature.

Implements L1394::CameraRegister.

Definition at line 139 of file l1394_avccameraregister.h.

L1394::AvcCameraRegister::onePush const bool  one_push = true  )  const [virtual]
 

This method activates or deactivates one-push mode of a feature.

Parameters:
one_push : enables or disables one_push
Returns:
bool : new status of one-push mode.

Implements L1394::CameraRegister.

Definition at line 32 of file l1394_avccameraregister.cpp.

References ACCEPTED, L1394::AvcRegister::data_array, L1394::Quadlet::getByte(), L1394::AvcRegister::parent_node, L1394::FcpNode::send(), and L1394::QArray::setByte().

void L1394::AvcCameraRegister::setOffset int   )  [inline]
 

Definition at line 187 of file l1394_avccameraregister.h.

Referenced by L1394::AvcCamera::filter(), L1394::AvcCamera::pan(), L1394::AvcCamera::shutter(), L1394::AvcCamera::temperature(), L1394::AvcCamera::tilt(), and L1394::AvcCamera::trigger().

L1394::AvcCameraRegister::setTriggerMode const int  value  )  const [virtual]
 

This method sets the value of the trigger mode.

Parameters:
value : new value for trigger mode.
Returns:
int : value after changing the trigger mode.

Implements L1394::CameraRegister.

Definition at line 82 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::setTriggerPolarity const bool  value  )  const [virtual]
 

This method enables or disables the trigger polarity.

Parameters:
value : new value that should be set.
Returns:
int : the new value of the feature.

Implements L1394::CameraRegister.

Definition at line 88 of file l1394_avccameraregister.cpp.

L1394::AvcCameraRegister::setValue const int  value  )  const [virtual]
 

This method changes the value of a feature.

Parameters:
value : new value that should be set.
Returns:
int : the new value of the feature.

Implements L1394::CameraRegister.

Definition at line 53 of file l1394_avccameraregister.cpp.

References CONTROL, L1394::AvcRegister::data_array, L1394::QArray::getByte(), L1394::QArray::getSize(), NOT_IMPLEMENTED, L1394::AvcRegister::parent_node, L1394::FcpNode::send(), L1394::QArray::setByte(), and STATUS.


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:42 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/