osgART::GenericVideo Class Reference

Inheritance diagram for osgART::GenericVideo:

osgART::VideoImageStream osgART::FieldContainer< T >

List of all members.

Public Member Functions

 GenericVideo ()
 Default constructor.
 GenericVideo (const GenericVideo &container, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor.
GenericVideooperator= (const GenericVideo &)
 assignemnt operator.
virtual osg::Object * cloneType () const
virtual osg::Object * clone (const osg::CopyOp &copyop) const
virtual bool isSameKindAs (const osg::Object *obj) const
virtual const char * libraryName () const
virtual const char * className () const
int getWidth () const
 x size of the GenericVideo.
int getHeight () const
 y size of the GenericVideo.
virtual int getID () const
 get GenericVideo id.
OpenThreads::Mutex & getMutex ()
 Get the mutex for a video object to lock against read/write operations.
Fieldget (const std::string &name)
 Access a field by its name.
virtual VideoConfigurationgetVideoConfiguration ()
 Get the video configuration struct.
void setFlip (bool horizontal, bool vertical)
 Set internal flipping.

Static Public Member Functions

static GenericVideocast (osg::Referenced *instance)
 Needed for plugin loaded objects which are used in other languages which don't support dynamic casting (e.g.

Protected Member Functions

virtual ~GenericVideo ()
 destructor.

Protected Attributes

bool m_vertical_flip
bool m_horizontal_flip
int m_video_id
OpenThreads::Mutex m_mutex

Static Protected Attributes

static int videoNum


Constructor & Destructor Documentation

osgART::GenericVideo::GenericVideo (  ) 

Initializes also the FieldContainer explicitly.

osgART::GenericVideo::GenericVideo ( const GenericVideo container,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Needed for cloning in OSG

virtual osgART::GenericVideo::~GenericVideo (  )  [protected, virtual]


Member Function Documentation

GenericVideo& osgART::GenericVideo::operator= ( const GenericVideo  ) 

virtual osg::Object* osgART::GenericVideo::cloneType (  )  const [inline, virtual]

Reimplemented from osgART::VideoImageStream.

virtual osg::Object* osgART::GenericVideo::clone ( const osg::CopyOp &  copyop  )  const [inline, virtual]

Reimplemented from osgART::VideoImageStream.

virtual bool osgART::GenericVideo::isSameKindAs ( const osg::Object *  obj  )  const [inline, virtual]

Reimplemented from osgART::VideoImageStream.

virtual const char* osgART::GenericVideo::libraryName (  )  const [inline, virtual]

Reimplemented from osgART::VideoImageStream.

virtual const char* osgART::GenericVideo::className (  )  const [inline, virtual]

Reimplemented from osgART::VideoImageStream.

int osgART::GenericVideo::getWidth (  )  const

Returns:
the width of the GenericVideo stream.

int osgART::GenericVideo::getHeight (  )  const

Returns:
the height of the GenericVideo stream.

virtual int osgART::GenericVideo::getID (  )  const [virtual]

Returns:
a GenericVideo identifier.

OpenThreads::Mutex& osgART::GenericVideo::getMutex (  )  [inline]

Returns:
reference to the internal mutex

Field* osgART::GenericVideo::get ( const std::string &  name  ) 

You need to cast the field into its respective type in order to access it.

Parameters:
name Name of the field
Returns:
pointer to the field (0L if not found)

Reimplemented from osgART::FieldContainer< T >.

virtual VideoConfiguration* osgART::GenericVideo::getVideoConfiguration (  )  [virtual]

Returns:
struct VideoConfiguration

void osgART::GenericVideo::setFlip ( bool  horizontal,
bool  vertical 
)

Parameters:
horizontal switch on and off horizontal flipping
vertical switch on and off vertical flipping

static GenericVideo* osgART::GenericVideo::cast ( osg::Referenced *  instance  )  [static]

Python)

Parameters:
instance instance to be casted to a tracker
Returns:
0 if can't cast otherwise correctly typed instance


Member Data Documentation

int osgART::GenericVideo::videoNum [static, protected]

OpenThreads::Mutex osgART::GenericVideo::m_mutex [protected]


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

Generated on Tue Aug 24 15:53:07 2010 for OSGART by  doxygen 1.5.6