OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
osgDB::VectorBaseSerializer Class Reference

#include <Serializer.h>

Inheritance diagram for osgDB::VectorBaseSerializer:
Inheritance graph
[legend]
Collaboration diagram for osgDB::VectorBaseSerializer:
Collaboration graph
[legend]

Public Member Functions

 VectorBaseSerializer (BaseSerializer::Type elementType, unsigned int elementSize)
 
Type getElementType () const
 
unsigned int getElementSize () const
 
virtual unsigned int size (const osg::Object &) const
 
virtual void resize (osg::Object &, unsigned int) const
 
virtual void reserve (osg::Object &, unsigned int) const
 
virtual void clear (osg::Object &) const
 
virtual void addElement (osg::Object &, void *) const
 
virtual void insertElement (osg::Object &, unsigned int, void *) const
 
virtual void setElement (osg::Object &, unsigned int, void *) const
 
virtual void * getElement (osg::Object &, unsigned int) const
 
virtual const void * getElement (const osg::Object &, unsigned int) const
 
- Public Member Functions inherited from osgDB::BaseSerializer
 BaseSerializer (int usage)
 
virtual bool set (osg::Object &, void *)
 
virtual bool get (const osg::Object &, void *)
 
virtual bool read (InputStream &, osg::Object &)=0
 
virtual bool write (OutputStream &, const osg::Object &)=0
 
virtual const std::string & getName () const =0
 
virtual IntLookupgetIntLookup ()
 
void setUsage (int usage)
 
int getUsage () const
 
void setUsage (bool hasGetter, bool hasSetter)
 
bool supportsReadWrite () const
 
bool supportsGetSet () const
 
bool supportsGet () const
 
bool supportsSet () const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Attributes

Type _elementType
 
unsigned int _elementSize
 
- Protected Attributes inherited from osgDB::BaseSerializer
int _firstVersion
 
int _lastVersion
 
int _usage
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Public Types inherited from osgDB::BaseSerializer
enum  Type {
  RW_UNDEFINED = 0, RW_USER, RW_OBJECT, RW_IMAGE,
  RW_LIST, RW_BOOL, RW_CHAR, RW_UCHAR,
  RW_SHORT, RW_USHORT, RW_INT, RW_UINT,
  RW_FLOAT, RW_DOUBLE, RW_VEC2F, RW_VEC2D,
  RW_VEC3F, RW_VEC3D, RW_VEC4F, RW_VEC4D,
  RW_QUAT, RW_PLANE, RW_MATRIXF, RW_MATRIXD,
  RW_MATRIX, RW_GLENUM, RW_STRING, RW_ENUM,
  RW_VEC2B, RW_VEC2UB, RW_VEC2S, RW_VEC2US,
  RW_VEC2I, RW_VEC2UI, RW_VEC3B, RW_VEC3UB,
  RW_VEC3S, RW_VEC3US, RW_VEC3I, RW_VEC3UI,
  RW_VEC4B, RW_VEC4UB, RW_VEC4S, RW_VEC4US,
  RW_VEC4I, RW_VEC4UI, RW_BOUNDINGBOXF, RW_BOUNDINGBOXD,
  RW_BOUNDINGSPHEREF, RW_BOUNDINGSPHERED, RW_VECTOR, RW_MAP
}
 
enum  Usage { READ_WRITE_PROPERTY = 1, GET_PROPERTY = 2, SET_PROPERTY = 4, GET_SET_PROPERTY = GET_PROPERTY | SET_PROPERTY }
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Detailed Description

Definition at line 838 of file Serializer.h.

Constructor & Destructor Documentation

osgDB::VectorBaseSerializer::VectorBaseSerializer ( BaseSerializer::Type  elementType,
unsigned int  elementSize 
)
inline

Definition at line 842 of file Serializer.h.

Member Function Documentation

virtual void osgDB::VectorBaseSerializer::addElement ( osg::Object ,
void *   
) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 853 of file Serializer.h.

virtual void osgDB::VectorBaseSerializer::clear ( osg::Object ) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 852 of file Serializer.h.

virtual void* osgDB::VectorBaseSerializer::getElement ( osg::Object ,
unsigned int   
) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 856 of file Serializer.h.

virtual const void* osgDB::VectorBaseSerializer::getElement ( const osg::Object ,
unsigned int   
) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 857 of file Serializer.h.

unsigned int osgDB::VectorBaseSerializer::getElementSize ( ) const
inline

Definition at line 847 of file Serializer.h.

Type osgDB::VectorBaseSerializer::getElementType ( ) const
inline

Definition at line 846 of file Serializer.h.

virtual void osgDB::VectorBaseSerializer::insertElement ( osg::Object ,
unsigned int  ,
void *   
) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 854 of file Serializer.h.

virtual void osgDB::VectorBaseSerializer::reserve ( osg::Object ,
unsigned int   
) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 851 of file Serializer.h.

virtual void osgDB::VectorBaseSerializer::resize ( osg::Object ,
unsigned int   
) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 850 of file Serializer.h.

virtual void osgDB::VectorBaseSerializer::setElement ( osg::Object ,
unsigned int  ,
void *   
) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 855 of file Serializer.h.

virtual unsigned int osgDB::VectorBaseSerializer::size ( const osg::Object ) const
inlinevirtual

Reimplemented in osgDB::IsAVectorSerializer< C >, and osgDB::VectorSerializer< C, P >.

Definition at line 849 of file Serializer.h.

Member Data Documentation

unsigned int osgDB::VectorBaseSerializer::_elementSize
protected

Definition at line 861 of file Serializer.h.

Type osgDB::VectorBaseSerializer::_elementType
protected

Definition at line 860 of file Serializer.h.


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