OSG::BinarySwapComposerBase Class Reference

BinarySwapComposer Base Class.

#include <OSGBinarySwapComposerBase.h>

Inheritance diagram for OSG::BinarySwapComposerBase:

OSG::ImageComposer OSG::ImageComposerBase OSG::AttachmentContainer OSG::FieldContainer OSG::ReflexiveContainer OSG::BinarySwapComposer List of all members.

dcast



typedef AttachmentContainer Self
typedef FieldContainerAttachment AttachmentObj
typedef FieldContainerAttachmentPtr AttachmentObjPtr
typedef SFFieldContainerAttachmentPtrMap SFAttachmentObjPtrMap
typedef SFAttachmentObjPtrMap::StoredType AttachmentObjPtrMap
typedef AttachmentObjPtrMap::iterator AttachmentObjPtrMapIt
 OSG_GEN_INTERNALPTR (AttachmentContainer)

Type definitions



static const bool isNodeCore = false
 OSG_GEN_INTERNALPTR (FieldContainer)
 OSG_RC_FIRST_FIELD_DECL (ChangedCallbacks)
 OSG_RC_LAST_FIELD_DECL (ChangedCallbacks)

Public Types

enum  { ShortFieldId = Inherited::NextFieldId, AlphaFieldId = ShortFieldId + 1, TileSizeFieldId = AlphaFieldId + 1, NextFieldId = TileSizeFieldId + 1 }
typedef ImageComposer Inherited
typedef ImageComposer ParentContainer
typedef Inherited::TypeObject TypeObject
typedef TypeObject::InitPhase InitPhase
enum  { EnabledFieldId = Inherited::NextFieldId, StatisticsFieldId = EnabledFieldId + 1, NextFieldId = StatisticsFieldId + 1 }
Type definitions


typedef Field *(ReflexiveContainer::*) FieldEditMethod (void)
typedef const Field *(ReflexiveContainer::*) FieldGetMethod (void) const

Public Member Functions

 OSG_GEN_INTERNALPTR (BinarySwapComposer)
 OSG_GEN_INTERNALPTR (ImageComposer)
FieldContainer Get


virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get


SFBool * editSFShort (void)
const SFBool * getSFShort (void) const
SFBool * editSFAlpha (void)
const SFBool * getSFAlpha (void) const
SFUInt32 * editSFTileSize (void)
const SFUInt32 * getSFTileSize (void) const
bool & editShort (void)
 Get the value of the BinarySwapComposer::_sfShort field.
const bool & getShort (void) const
 Get the value of the BinarySwapComposer::_sfShort field.
bool & editAlpha (void)
 Get the value of the BinarySwapComposer::_sfAlpha field.
const bool & getAlpha (void) const
 Get the value of the BinarySwapComposer::_sfAlpha field.
UInt32 & editTileSize (void)
 Get the value of the BinarySwapComposer::_sfTileSize field.
const UInt32 & getTileSize (void) const
 Get the value of the BinarySwapComposer::_sfTileSize field.
Field Set


void setShort (const bool &value)
 Set the value of the BinarySwapComposer::_sfShort field.
void setAlpha (const bool &value)
 Set the value of the BinarySwapComposer::_sfAlpha field.
void setTileSize (const UInt32 &value)
 Set the value of the BinarySwapComposer::_sfTileSize field.
Binary Access


virtual UInt32 getBinSize (ConstFieldMaskArg whichField)
virtual void copyToBin (BinaryDataHandler &pMem, ConstFieldMaskArg whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, ConstFieldMaskArg whichField)
Copy


virtual FieldContainerPtr shallowCopy (void) const
Sync


virtual void changed (ConstFieldMaskArg whichField, UInt32 origin, BitVector detail)
Output


virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
setup


void setup (bool isClient, UInt32 clusterId, WindowPtr localWindow, ClusterWindowPtr clusterWindow)
composition


virtual void open (void)
virtual void startFrame (void)
virtual void startViewport (ViewportPtr port)
virtual void composeViewport (ViewportPtr port)
virtual void composeWindow (void)
virtual void close (void)
features


virtual bool getClientRendering (void)
virtual UInt32 getUsableServers (void)
Field Get


SFBool * editSFEnabled (void)
const SFBool * getSFEnabled (void) const
SFBool * editSFStatistics (void)
const SFBool * getSFStatistics (void) const
bool & editEnabled (void)
 Get the value of the ImageComposer::_sfEnabled field.
const bool & getEnabled (void) const
 Get the value of the ImageComposer::_sfEnabled field.
bool & editStatistics (void)
 Get the value of the ImageComposer::_sfStatistics field.
const bool & getStatistics (void) const
 Get the value of the ImageComposer::_sfStatistics field.
Field Set


void setEnabled (const bool &value)
 Set the value of the ImageComposer::_sfEnabled field.
void setStatistics (const bool &value)
 Set the value of the ImageComposer::_sfStatistics field.
Constructors


 OSG_RC_FIRST_FIELD_DECL (Attachments)
 OSG_RC_LAST_FIELD_DECL (Attachments)
Set


void addAttachment (const AttachmentObjPtr attachmentP, UInt16 binding=0)
void subAttachment (const AttachmentObjPtr attachmentP, UInt16 binding=0)
AttachmentObjPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentObjPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
your_category


const SFAttachmentObjPtrMapgetSFAttachments (void) const
Set


void callChangedFunctors (ConstFieldMaskArg whichField)
Container Access


UInt32 addChangedFunctor (ChangedFunctor func, std::string createSymbol)
template<class FunctorT>
void subChangedFunctor (FunctorT func)
void subChangedFunctor (UInt32 uiId)
void clearChangedFunctors (void)
Field Flags


const FieldFlagsgetFieldFlags (void)
Helper


OSG_SYSTEM_DLLMAPPING void addReference (void)
OSG_SYSTEM_DLLMAPPING void subReference (void)
OSG_SYSTEM_DLLMAPPING void subReferenceLocalVar (void)
OSG_SYSTEM_DLLMAPPING Int32 getRefCount (void) const
Comparison


virtual OSG_SYSTEM_DLLMAPPING
void 
invalidateVolume (void)
dcast


OSG_SYSTEM_DLLMAPPING UInt32 getTypeId (void) const
OSG_SYSTEM_DLLMAPPING UInt16 getGroupId (void) const
OSG_SYSTEM_DLLMAPPING const
Char8 * 
getTypeName (void) const
Get Field


OSG_SYSTEM_DLLMAPPING UInt32 getNumFields (void) const
OSG_SYSTEM_DLLMAPPING EditFieldHandlePtr editField (UInt32 fieldId)
OSG_SYSTEM_DLLMAPPING EditFieldHandlePtr editField (const Char8 *fieldName)
OSG_SYSTEM_DLLMAPPING GetFieldHandlePtr getField (UInt32 fieldId) const
OSG_SYSTEM_DLLMAPPING GetFieldHandlePtr getField (const Char8 *fieldName) const
Get Field Description


OSG_SYSTEM_DLLMAPPING FieldDescriptionBasegetFieldDescription (UInt32 fieldId)
OSG_SYSTEM_DLLMAPPING FieldDescriptionBasegetFieldDescription (const Char8 *fieldName)
Comparison


OSG_SYSTEM_DLLMAPPING EditFieldHandlePtr invalidEditField (void)
OSG_SYSTEM_DLLMAPPING GetFieldHandlePtr invalidGetField (void) const

Static Public Member Functions

Class Get


static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
static UInt16 getClassGroupId (void)
 access the type of the class
Construction


static BinarySwapComposerPtr create (void)
 create a new instance of the class
static BinarySwapComposerPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype

Public Attributes

General Fieldcontainer Declaration


 OSG_ABSTR_FIELD_CONTAINER_DECL

Static Public Attributes

static const OSG::BitVector ShortFieldMask
static const OSG::BitVector AlphaFieldMask
static const OSG::BitVector TileSizeFieldMask
static const OSG::BitVector NextFieldMask
static const OSG::BitVector EnabledFieldMask
static const OSG::BitVector StatisticsFieldMask

Protected Member Functions

Constructors


 BinarySwapComposerBase (void)
 BinarySwapComposerBase (const BinarySwapComposerBase &source)
Destructors


virtual ~BinarySwapComposerBase (void)
Generic Field Access


GetFieldHandlePtr getHandleShort (void) const
EditFieldHandlePtr editHandleShort (void)
GetFieldHandlePtr getHandleAlpha (void) const
EditFieldHandlePtr editHandleAlpha (void)
GetFieldHandlePtr getHandleTileSize (void) const
EditFieldHandlePtr editHandleTileSize (void)
Sync


virtual void resolveLinks (void)
get


bool isClient (void)
UInt32 clusterId (void)
UInt32 clusterSize (void)
UInt32 serverCount (void)
WindowPtr localWindow (void)
ClusterWindowPtr clusterWindow (void)
helpers


bool getScreenAlignedBBox (NodePtr root, ViewportPtr vp, UInt32 &l, UInt32 &b, UInt32 &r, UInt32 &t, UInt32 &front, UInt32 &back)
Generic Field Access


GetFieldHandlePtr getHandleEnabled (void) const
EditFieldHandlePtr editHandleEnabled (void)
GetFieldHandlePtr getHandleStatistics (void) const
EditFieldHandlePtr editHandleStatistics (void)
Sync


EditFieldHandlePtr editHandleAttachments (void)
GetFieldHandlePtr getHandleAttachments (void) const
Edit


OSG_SYSTEM_DLLMAPPING void subReferenceUnresolved (void)
MT Construction


OSG_SYSTEM_DLLMAPPING void onCreateAspect (const FieldContainer *createAspect, const FieldContainer *source=NULL)
OSG_SYSTEM_DLLMAPPING void onCreate (const FieldContainer *source=NULL)
virtual OSG_SYSTEM_DLLMAPPING
void 
onDestroy (UInt32 uiContainerId)
Changed


OSG_SYSTEM_DLLMAPPING void onCreate (const ReflexiveContainer *source=NULL)
virtual OSG_SYSTEM_DLLMAPPING
void 
onDestroyAspect (UInt32 uiContainerId, UInt32 uiAspect)
MT Construction


virtual OSG_SYSTEM_DLLMAPPING
bool 
deregister (UInt32 uiContainerId)
MT Construction


OSG_SYSTEM_DLLMAPPING void registerChangedContainer (void)
virtual OSG_SYSTEM_DLLMAPPING
void 
registerChangedContainerV (void)
Local Edit


void editSField (ConstFieldMaskArg whichField)
template<class FieldT>
void editMField (ConstFieldMaskArg whichField, FieldT &oField)
MT Destruction


void execEndEdit (ConstFieldMaskArg whichField)
void clearChangeEntry (ContainerChangeEntry *pRef)
Edit


OSG_SYSTEM_DLLMAPPING void setId (UInt32 uiContainerId)
OSG_SYSTEM_DLLMAPPING UInt32 getId (void) const

Static Protected Member Functions

static void classDescInserter (TypeObject &oType)
static Char8 * getClassname (void)
Init


static void initMethod (InitPhase ePhase)
Fields


static void classDescInserter (TypeObject &oType)
MT Construction


template<class ObjectT>
static void newPtr (typename ObjectT::ObjPtr &result, const ObjectT *prototypeP)
template<class ObjectT>
static void newPtr (typename ObjectT::ObjPtr &result)

Protected Attributes

Fields


SFBool _sfShort
SFBool _sfAlpha
SFUInt32 _sfTileSize
protected variables


bool _isClient
UInt32 _clusterId
UInt32 _clusterSize
UInt32 _serverCount
WindowPtr _localWindow
ClusterWindowPtr _clusterWindow
Fields


SFBool _sfEnabled
SFBool _sfStatistics
Fields


SFAttachmentObjPtrMap _sfAttachments
Type information


FieldFlags_pFieldFlags
MFChangedFunctorCallback _mfChangedFunctors
Int32 _iRefCount
Member


BitVector _bvChanged
ContainerChangeEntry_pContainerChanges
UInt32 _uiContainerId

Static Protected Attributes

static TypeObject _type

Private Member Functions

void operator= (const BinarySwapComposerBase &source)

Detailed Description

Definition at line 80 of file OSGBinarySwapComposerBase.h.


Member Typedef Documentation

Reimplemented from OSG::ImageComposer.

Reimplemented in OSG::BinarySwapComposer.

Definition at line 84 of file OSGBinarySwapComposerBase.h.

Reimplemented from OSG::ImageComposerBase.

Definition at line 85 of file OSGBinarySwapComposerBase.h.

Reimplemented from OSG::ImageComposerBase.

Definition at line 87 of file OSGBinarySwapComposerBase.h.

Reimplemented from OSG::ImageComposerBase.

Definition at line 88 of file OSGBinarySwapComposerBase.h.

Definition at line 70 of file OSGAttachmentContainer.h.

typedef FieldContainerAttachmentPtr OSG::AttachmentContainer::AttachmentObjPtr [inherited]

Definition at line 71 of file OSGAttachmentContainer.h.

typedef SFFieldContainerAttachmentPtrMap OSG::AttachmentContainer::SFAttachmentObjPtrMap [inherited]

Definition at line 72 of file OSGAttachmentContainer.h.

typedef SFAttachmentObjPtrMap::StoredType OSG::AttachmentContainer::AttachmentObjPtrMap [inherited]

Definition at line 74 of file OSGAttachmentContainer.h.

typedef AttachmentObjPtrMap::iterator OSG::AttachmentContainer::AttachmentObjPtrMapIt [inherited]

Definition at line 75 of file OSGAttachmentContainer.h.

typedef Field*(ReflexiveContainer::*) OSG::ReflexiveContainer::FieldEditMethod(void) [inherited]

Definition at line 79 of file OSGReflexiveContainer.h.

typedef const Field*(ReflexiveContainer::*) OSG::ReflexiveContainer::FieldGetMethod(void) const [inherited]

Definition at line 81 of file OSGReflexiveContainer.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
ShortFieldId 
AlphaFieldId 
TileSizeFieldId 
NextFieldId 

Definition at line 96 of file OSGBinarySwapComposerBase.h.

00097     {
00098         ShortFieldId = Inherited::NextFieldId,
00099         AlphaFieldId = ShortFieldId + 1,
00100         TileSizeFieldId = AlphaFieldId + 1,
00101         NextFieldId = TileSizeFieldId + 1
00102     };

anonymous enum [inherited]

Enumerator:
EnabledFieldId 
StatisticsFieldId 
NextFieldId 

Definition at line 95 of file OSGImageComposerBase.h.

00096     {
00097         EnabledFieldId = Inherited::NextFieldId,
00098         StatisticsFieldId = EnabledFieldId + 1,
00099         NextFieldId = StatisticsFieldId + 1
00100     };


Constructor & Destructor Documentation

OSG::BinarySwapComposerBase::BinarySwapComposerBase ( void   )  [protected]

Definition at line 372 of file OSGBinarySwapComposerBase.cpp.

00372                                                    :
00373     Inherited(),
00374     _sfShort                  (bool(true)),
00375     _sfAlpha                  (bool(false)),
00376     _sfTileSize               (UInt32(44))
00377 {
00378 }

OSG::BinarySwapComposerBase::BinarySwapComposerBase ( const BinarySwapComposerBase source  )  [protected]

Definition at line 380 of file OSGBinarySwapComposerBase.cpp.

00380                                                                                    :
00381     Inherited(source),
00382     _sfShort                  (source._sfShort                  ),
00383     _sfAlpha                  (source._sfAlpha                  ),
00384     _sfTileSize               (source._sfTileSize               )
00385 {
00386 }

OSG::BinarySwapComposerBase::~BinarySwapComposerBase ( void   )  [protected, virtual]

Definition at line 391 of file OSGBinarySwapComposerBase.cpp.

00392 {
00393 }


Member Function Documentation

OSG::BinarySwapComposerBase::OSG_GEN_INTERNALPTR ( BinarySwapComposer   ) 

OSG::FieldContainerType & OSG::BinarySwapComposerBase::getClassType ( void   )  [inline, static]

Reimplemented from OSG::ImageComposerBase.

Definition at line 56 of file OSGBinarySwapComposerBase.inl.

References _type.

Referenced by create().

00057 {
00058     return _type;
00059 }

OSG::UInt32 OSG::BinarySwapComposerBase::getClassTypeId ( void   )  [inline, static]

Reimplemented from OSG::ImageComposerBase.

Definition at line 63 of file OSGBinarySwapComposerBase.inl.

References _type, and OSG::TypeBase::getId().

00064 {
00065     return _type.getId();
00066 }

OSG::UInt16 OSG::BinarySwapComposerBase::getClassGroupId ( void   )  [inline, static]

Reimplemented from OSG::ImageComposerBase.

Definition at line 69 of file OSGBinarySwapComposerBase.inl.

References _type, and OSG::ReflexiveContainerType::getGroupId().

00070 {
00071     return _type.getGroupId();
00072 }

FieldContainerType & OSG::BinarySwapComposerBase::getType ( void   )  [virtual]

Reimplemented from OSG::ImageComposerBase.

Definition at line 196 of file OSGBinarySwapComposerBase.cpp.

References _type.

00197 {
00198     return _type;
00199 }

const FieldContainerType & OSG::BinarySwapComposerBase::getType ( void   )  const [virtual]

Reimplemented from OSG::ImageComposerBase.

Definition at line 201 of file OSGBinarySwapComposerBase.cpp.

References _type.

00202 {
00203     return _type;
00204 }

UInt32 OSG::BinarySwapComposerBase::getContainerSize ( void   )  const [virtual]

Reimplemented from OSG::ImageComposerBase.

Definition at line 206 of file OSGBinarySwapComposerBase.cpp.

00207 {
00208     return sizeof(BinarySwapComposer);
00209 }

SFBool * OSG::BinarySwapComposerBase::editSFShort ( void   ) 

Definition at line 214 of file OSGBinarySwapComposerBase.cpp.

References _sfShort, OSG::FieldContainer::editSField(), and ShortFieldMask.

00215 {
00216     editSField(ShortFieldMask);
00217 
00218     return &_sfShort;
00219 }

const SFBool * OSG::BinarySwapComposerBase::getSFShort ( void   )  const

Definition at line 221 of file OSGBinarySwapComposerBase.cpp.

References _sfShort.

00222 {
00223     return &_sfShort;
00224 }

SFBool * OSG::BinarySwapComposerBase::editSFAlpha ( void   ) 

Definition at line 233 of file OSGBinarySwapComposerBase.cpp.

References _sfAlpha, AlphaFieldMask, and OSG::FieldContainer::editSField().

00234 {
00235     editSField(AlphaFieldMask);
00236 
00237     return &_sfAlpha;
00238 }

const SFBool * OSG::BinarySwapComposerBase::getSFAlpha ( void   )  const

Definition at line 240 of file OSGBinarySwapComposerBase.cpp.

References _sfAlpha.

00241 {
00242     return &_sfAlpha;
00243 }

SFUInt32 * OSG::BinarySwapComposerBase::editSFTileSize ( void   ) 

Definition at line 252 of file OSGBinarySwapComposerBase.cpp.

References _sfTileSize, OSG::FieldContainer::editSField(), and TileSizeFieldMask.

00253 {
00254     editSField(TileSizeFieldMask);
00255 
00256     return &_sfTileSize;
00257 }

const SFUInt32 * OSG::BinarySwapComposerBase::getSFTileSize ( void   )  const

Definition at line 259 of file OSGBinarySwapComposerBase.cpp.

References _sfTileSize.

00260 {
00261     return &_sfTileSize;
00262 }

bool & OSG::BinarySwapComposerBase::editShort ( void   )  [inline]

Definition at line 79 of file OSGBinarySwapComposerBase.inl.

References _sfShort, OSG::FieldContainer::editSField(), and ShortFieldMask.

00080 {
00081     editSField(ShortFieldMask);
00082 
00083     return _sfShort.getValue();
00084 }

const bool & OSG::BinarySwapComposerBase::getShort ( void   )  const [inline]

Definition at line 88 of file OSGBinarySwapComposerBase.inl.

References _sfShort.

Referenced by OSG::BinarySwapComposer::composeViewport(), and OSG::BinarySwapComposer::writeProc().

00089 {
00090     return _sfShort.getValue();
00091 }

bool & OSG::BinarySwapComposerBase::editAlpha ( void   )  [inline]

Definition at line 112 of file OSGBinarySwapComposerBase.inl.

References _sfAlpha, AlphaFieldMask, and OSG::FieldContainer::editSField().

00113 {
00114     editSField(AlphaFieldMask);
00115 
00116     return _sfAlpha.getValue();
00117 }

const bool & OSG::BinarySwapComposerBase::getAlpha ( void   )  const [inline]

Definition at line 121 of file OSGBinarySwapComposerBase.inl.

References _sfAlpha.

Referenced by OSG::BinarySwapComposer::composeViewport(), and OSG::BinarySwapComposer::writeProc().

00122 {
00123     return _sfAlpha.getValue();
00124 }

UInt32 & OSG::BinarySwapComposerBase::editTileSize ( void   )  [inline]

Definition at line 145 of file OSGBinarySwapComposerBase.inl.

References _sfTileSize, OSG::FieldContainer::editSField(), and TileSizeFieldMask.

00146 {
00147     editSField(TileSizeFieldMask);
00148 
00149     return _sfTileSize.getValue();
00150 }

const UInt32 & OSG::BinarySwapComposerBase::getTileSize ( void   )  const [inline]

void OSG::BinarySwapComposerBase::setShort ( const bool &  value  )  [inline]

Definition at line 103 of file OSGBinarySwapComposerBase.inl.

References _sfShort, OSG::FieldContainer::editSField(), and ShortFieldMask.

00104 {
00105     editSField(ShortFieldMask);
00106 
00107     _sfShort.setValue(value);
00108 }

void OSG::BinarySwapComposerBase::setAlpha ( const bool &  value  )  [inline]

Definition at line 136 of file OSGBinarySwapComposerBase.inl.

References _sfAlpha, AlphaFieldMask, and OSG::FieldContainer::editSField().

00137 {
00138     editSField(AlphaFieldMask);
00139 
00140     _sfAlpha.setValue(value);
00141 }

void OSG::BinarySwapComposerBase::setTileSize ( const UInt32 &  value  )  [inline]

Definition at line 169 of file OSGBinarySwapComposerBase.inl.

References _sfTileSize, OSG::FieldContainer::editSField(), and TileSizeFieldMask.

00170 {
00171     editSField(TileSizeFieldMask);
00172 
00173     _sfTileSize.setValue(value);
00174 }

UInt32 OSG::BinarySwapComposerBase::getBinSize ( ConstFieldMaskArg  whichField  )  [virtual]

Reimplemented from OSG::ImageComposerBase.

Definition at line 277 of file OSGBinarySwapComposerBase.cpp.

References