osg::RenderOptionsBase Class Reference

RenderOptions Base Class.

#include <OSGRenderOptionsBase.h>

Inheritance diagram for osg::RenderOptionsBase:

osg::Attachment osg::FieldContainer osg::RenderOptions

List of all members.

Public Types

enum  {
  StatisticFieldId = Inherited::NextFieldId, PolygonModeFieldId = StatisticFieldId + 1, TwoSidedLightingFieldId = PolygonModeFieldId + 1, SpecTexLightingFieldId = TwoSidedLightingFieldId + 1,
  SortTransFieldId = SpecTexLightingFieldId + 1, ZWriteTransFieldId = SortTransFieldId + 1, LocalLightsFieldId = ZWriteTransFieldId + 1, CorrectTwoSidedLightingFieldId = LocalLightsFieldId + 1,
  OcclusionCullingFieldId = CorrectTwoSidedLightingFieldId + 1, OcclusionCullingModeFieldId = OcclusionCullingFieldId + 1, OcclusionCullingPixelsFieldId = OcclusionCullingModeFieldId + 1, AntialiasingFieldId = OcclusionCullingPixelsFieldId + 1,
  AntialiasingDistanceFieldId = AntialiasingFieldId + 1, AntialiasingScaleFieldId = AntialiasingDistanceFieldId + 1, AntialiasingTriggerFieldId = AntialiasingScaleFieldId + 1, FrustumCullingFieldId = AntialiasingTriggerFieldId + 1,
  BackfaceCullingFieldId = FrustumCullingFieldId + 1, SmallFeatureCullingFieldId = BackfaceCullingFieldId + 1, SmallFeaturePixelsFieldId = SmallFeatureCullingFieldId + 1, SmallFeatureThresholdFieldId = SmallFeaturePixelsFieldId + 1,
  FirstFrameFieldId = SmallFeatureThresholdFieldId + 1, NextFieldId = FirstFrameFieldId + 1
}
typedef RenderOptionsPtr Ptr
enum  { ParentsFieldId = Inherited::NextFieldId, InternalFieldId = ParentsFieldId + 1, NextFieldId = InternalFieldId + 1 }
enum  { NextFieldId = 1 }

Public Member Functions

FieldContainer Get


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


SFBoolgetSFStatistic (void)
 Get the RenderOptions::_sfStatistic field.
SFGLenumgetSFPolygonMode (void)
 Get the RenderOptions::_sfPolygonMode field.
SFBoolgetSFTwoSidedLighting (void)
 Get the RenderOptions::_sfTwoSidedLighting field.
SFBoolgetSFSpecTexLighting (void)
 Get the RenderOptions::_sfSpecTexLighting field.
SFBoolgetSFSortTrans (void)
 Get the RenderOptions::_sfSortTrans field.
SFBoolgetSFZWriteTrans (void)
 Get the RenderOptions::_sfZWriteTrans field.
SFBoolgetSFLocalLights (void)
 Get the RenderOptions::_sfLocalLights field.
SFBoolgetSFCorrectTwoSidedLighting (void)
 Get the RenderOptions::_sfCorrectTwoSidedLighting field.
SFBoolgetSFOcclusionCulling (void)
 Get the RenderOptions::_sfOcclusionCulling field.
SFInt32getSFOcclusionCullingMode (void)
 Get the RenderOptions::_sfOcclusionCullingMode field.
SFUInt32getSFOcclusionCullingPixels (void)
 Get the RenderOptions::_sfOcclusionCullingPixels field.
SFBoolgetSFAntialiasing (void)
 Get the RenderOptions::_sfAntialiasing field.
SFReal32getSFAntialiasingDistance (void)
 Get the RenderOptions::_sfAntialiasingDistance field.
SFReal32getSFAntialiasingScale (void)
 Get the RenderOptions::_sfAntialiasingScale field.
SFUInt32getSFAntialiasingTrigger (void)
 Get the RenderOptions::_sfAntialiasingTrigger field.
SFBoolgetSFFrustumCulling (void)
 Get the RenderOptions::_sfFrustumCulling field.
SFBoolgetSFBackfaceCulling (void)
 Get the RenderOptions::_sfBackfaceCulling field.
SFBoolgetSFSmallFeatureCulling (void)
 Get the RenderOptions::_sfSmallFeatureCulling field.
SFReal32getSFSmallFeaturePixels (void)
 Get the RenderOptions::_sfSmallFeaturePixels field.
SFUInt32getSFSmallFeatureThreshold (void)
 Get the RenderOptions::_sfSmallFeatureThreshold field.
SFBoolgetSFFirstFrame (void)
 Get the RenderOptions::_sfFirstFrame field.
bool & getStatistic (void)
 Get the value of the RenderOptions::_sfStatistic field.
const bool & getStatistic (void) const
 Get the value of the RenderOptions::_sfStatistic field.
GLenum & getPolygonMode (void)
 Get the value of the RenderOptions::_sfPolygonMode field.
const GLenum & getPolygonMode (void) const
 Get the value of the RenderOptions::_sfPolygonMode field.
bool & getTwoSidedLighting (void)
 Get the value of the RenderOptions::_sfTwoSidedLighting field.
const bool & getTwoSidedLighting (void) const
 Get the value of the RenderOptions::_sfTwoSidedLighting field.
bool & getSpecTexLighting (void)
 Get the value of the RenderOptions::_sfSpecTexLighting field.
const bool & getSpecTexLighting (void) const
 Get the value of the RenderOptions::_sfSpecTexLighting field.
bool & getSortTrans (void)
 Get the value of the RenderOptions::_sfSortTrans field.
const bool & getSortTrans (void) const
 Get the value of the RenderOptions::_sfSortTrans field.
bool & getZWriteTrans (void)
 Get the value of the RenderOptions::_sfZWriteTrans field.
const bool & getZWriteTrans (void) const
 Get the value of the RenderOptions::_sfZWriteTrans field.
bool & getLocalLights (void)
 Get the value of the RenderOptions::_sfLocalLights field.
const bool & getLocalLights (void) const
 Get the value of the RenderOptions::_sfLocalLights field.
bool & getCorrectTwoSidedLighting (void)
 Get the value of the RenderOptions::_sfCorrectTwoSidedLighting field.
const bool & getCorrectTwoSidedLighting (void) const
 Get the value of the RenderOptions::_sfCorrectTwoSidedLighting field.
bool & getOcclusionCulling (void)
 Get the value of the RenderOptions::_sfOcclusionCulling field.
const bool & getOcclusionCulling (void) const
 Get the value of the RenderOptions::_sfOcclusionCulling field.
Int32getOcclusionCullingMode (void)
 Get the value of the RenderOptions::_sfOcclusionCullingMode field.
const Int32getOcclusionCullingMode (void) const
 Get the value of the RenderOptions::_sfOcclusionCullingMode field.
UInt32getOcclusionCullingPixels (void)
 Get the value of the RenderOptions::_sfOcclusionCullingPixels field.
const UInt32getOcclusionCullingPixels (void) const
 Get the value of the RenderOptions::_sfOcclusionCullingPixels field.
bool & getAntialiasing (void)
 Get the value of the RenderOptions::_sfAntialiasing field.
const bool & getAntialiasing (void) const
 Get the value of the RenderOptions::_sfAntialiasing field.
Real32getAntialiasingDistance (void)
 Get the value of the RenderOptions::_sfAntialiasingDistance field.
const Real32getAntialiasingDistance (void) const
 Get the value of the RenderOptions::_sfAntialiasingDistance field.
Real32getAntialiasingScale (void)
 Get the value of the RenderOptions::_sfAntialiasingScale field.
const Real32getAntialiasingScale (void) const
 Get the value of the RenderOptions::_sfAntialiasingScale field.
UInt32getAntialiasingTrigger (void)
 Get the value of the RenderOptions::_sfAntialiasingTrigger field.
const UInt32getAntialiasingTrigger (void) const
 Get the value of the RenderOptions::_sfAntialiasingTrigger field.
bool & getFrustumCulling (void)
 Get the value of the RenderOptions::_sfFrustumCulling field.
const bool & getFrustumCulling (void) const
 Get the value of the RenderOptions::_sfFrustumCulling field.
bool & getBackfaceCulling (void)
 Get the value of the RenderOptions::_sfBackfaceCulling field.
const bool & getBackfaceCulling (void) const
 Get the value of the RenderOptions::_sfBackfaceCulling field.
bool & getSmallFeatureCulling (void)
 Get the value of the RenderOptions::_sfSmallFeatureCulling field.
const bool & getSmallFeatureCulling (void) const
 Get the value of the RenderOptions::_sfSmallFeatureCulling field.
Real32getSmallFeaturePixels (void)
 Get the value of the RenderOptions::_sfSmallFeaturePixels field.
const Real32getSmallFeaturePixels (void) const
 Get the value of the RenderOptions::_sfSmallFeaturePixels field.
UInt32getSmallFeatureThreshold (void)
 Get the value of the RenderOptions::_sfSmallFeatureThreshold field.
const UInt32getSmallFeatureThreshold (void) const
 Get the value of the RenderOptions::_sfSmallFeatureThreshold field.
bool & getFirstFrame (void)
 Get the value of the RenderOptions::_sfFirstFrame field.
const bool & getFirstFrame (void) const
 Get the value of the RenderOptions::_sfFirstFrame field.
Field Set


void setStatistic (const bool &value)
 Set the value of the RenderOptions::_sfStatistic field.
void setPolygonMode (const GLenum &value)
 Set the value of the RenderOptions::_sfPolygonMode field.
void setTwoSidedLighting (const bool &value)
 Set the value of the RenderOptions::_sfTwoSidedLighting field.
void setSpecTexLighting (const bool &value)
 Set the value of the RenderOptions::_sfSpecTexLighting field.
void setSortTrans (const bool &value)
 Set the value of the RenderOptions::_sfSortTrans field.
void setZWriteTrans (const bool &value)
 Set the value of the RenderOptions::_sfZWriteTrans field.
void setLocalLights (const bool &value)
 Set the value of the RenderOptions::_sfLocalLights field.
void setCorrectTwoSidedLighting (const bool &value)
 Set the value of the RenderOptions::_sfCorrectTwoSidedLighting field.
void setOcclusionCulling (const bool &value)
 Set the value of the RenderOptions::_sfOcclusionCulling field.
void setOcclusionCullingMode (const Int32 &value)
 Set the value of the RenderOptions::_sfOcclusionCullingMode field.
void setOcclusionCullingPixels (const UInt32 &value)
 Set the value of the RenderOptions::_sfOcclusionCullingPixels field.
void setAntialiasing (const bool &value)
 Set the value of the RenderOptions::_sfAntialiasing field.
void setAntialiasingDistance (const Real32 &value)
 Set the value of the RenderOptions::_sfAntialiasingDistance field.
void setAntialiasingScale (const Real32 &value)
 Set the value of the RenderOptions::_sfAntialiasingScale field.
void setAntialiasingTrigger (const UInt32 &value)
 Set the value of the RenderOptions::_sfAntialiasingTrigger field.
void setFrustumCulling (const bool &value)
 Set the value of the RenderOptions::_sfFrustumCulling field.
void setBackfaceCulling (const bool &value)
 Set the value of the RenderOptions::_sfBackfaceCulling field.
void setSmallFeatureCulling (const bool &value)
 Set the value of the RenderOptions::_sfSmallFeatureCulling field.
void setSmallFeaturePixels (const Real32 &value)
 Set the value of the RenderOptions::_sfSmallFeaturePixels field.
void setSmallFeatureThreshold (const UInt32 &value)
 Set the value of the RenderOptions::_sfSmallFeatureThreshold field.
void setFirstFrame (const bool &value)
 Set the value of the RenderOptions::_sfFirstFrame field.
Binary Access
virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Copy


virtual FieldContainerPtr shallowCopy (void) const
Parents


MFFieldContainerPtrgetParents (void)
const MFFieldContainerPtrgetParents (void) const
MFFieldContainerPtrgetMFParents (void)
void addParent (FieldContainerPtr parent)
void subParent (FieldContainerPtr parent)
Int32 findParent (FieldContainerPtr parent)
Parents


SFBoolgetInternal (void)
const SFBoolgetInternal (void) const
SFBoolgetSFInternal (void)
void setInternal (bool bVal)
Dump


virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
Get Instance Type Information


UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const


FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Changed


virtual void changed (BitVector whichField, UInt32 origin)

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
Construction


static RenderOptionsPtr create (void)
 create a new instance of the class
static RenderOptionsPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype
Get Class Type Information


static UInt16 getClassGroupId (void)

Static Public Attributes

static const osg::BitVector StatisticFieldMask
static const osg::BitVector PolygonModeFieldMask
static const osg::BitVector TwoSidedLightingFieldMask
static const osg::BitVector SpecTexLightingFieldMask
static const osg::BitVector SortTransFieldMask
static const osg::BitVector ZWriteTransFieldMask
static const osg::BitVector LocalLightsFieldMask
static const osg::BitVector CorrectTwoSidedLightingFieldMask
static const osg::BitVector OcclusionCullingFieldMask
static const osg::BitVector OcclusionCullingModeFieldMask
static const osg::BitVector OcclusionCullingPixelsFieldMask
static const osg::BitVector AntialiasingFieldMask
static const osg::BitVector AntialiasingDistanceFieldMask
static const osg::BitVector AntialiasingScaleFieldMask
static const osg::BitVector AntialiasingTriggerFieldMask
static const osg::BitVector FrustumCullingFieldMask
static const osg::BitVector BackfaceCullingFieldMask
static const osg::BitVector SmallFeatureCullingFieldMask
static const osg::BitVector SmallFeaturePixelsFieldMask
static const osg::BitVector SmallFeatureThresholdFieldMask
static const osg::BitVector FirstFrameFieldMask
static const osg::BitVector MTInfluenceMask
static const BitVector InternalFieldMask = (1 << Attachment::InternalFieldId)
static const BitVector ParentsFieldMask = (1 << Attachment::ParentsFieldId)
static const BitVector NextFieldMask
CoredNodePtr helper


static const bool isNodeCore = false

Protected Member Functions

Constructors


 RenderOptionsBase (void)
 RenderOptionsBase (const RenderOptionsBase &source)
Destructors


virtual ~RenderOptionsBase (void)
Sync


void executeSyncImpl (RenderOptionsBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
MT Destruction


virtual void onDestroy (void)
Sync


void executeSyncImpl (Attachment *pOther, const BitVector &whichField)
Sync


void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
MT Edit


template<class FieldTypeT>
void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
MT Construction


void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)

Static Protected Member Functions

Create Fieldcontainer


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

Protected Attributes

Fields


SFBool _sfStatistic
SFGLenum _sfPolygonMode
SFBool _sfTwoSidedLighting
SFBool _sfSpecTexLighting
SFBool _sfSortTrans
SFBool _sfZWriteTrans
SFBool _sfLocalLights
SFBool _sfCorrectTwoSidedLighting
SFBool _sfOcclusionCulling
SFInt32 _sfOcclusionCullingMode
SFUInt32 _sfOcclusionCullingPixels
SFBool _sfAntialiasing
SFReal32 _sfAntialiasingDistance
SFReal32 _sfAntialiasingScale
SFUInt32 _sfAntialiasingTrigger
SFBool _sfFrustumCulling
SFBool _sfBackfaceCulling
SFBool _sfSmallFeatureCulling
SFReal32 _sfSmallFeaturePixels
SFUInt32 _sfSmallFeatureThreshold
SFBool _sfFirstFrame
Fields


SFBool _sfInternal
MFFieldContainerPtr _parents
Member


UInt32 _shares

Private Types

typedef Attachment Inherited

Private Member Functions

void operator= (const RenderOptionsBase &source)

Static Private Attributes

static FieldDescription_desc []
 RenderOptions description.
static FieldContainerType _type

Friends

class FieldContainer


Detailed Description

Definition at line 101 of file OSGRenderOptionsBase.h.


Member Typedef Documentation

Reimplemented from osg::Attachment.

Reimplemented in osg::RenderOptions.

Definition at line 105 of file OSGRenderOptionsBase.h.

Definition at line 110 of file OSGRenderOptionsBase.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
StatisticFieldId 
PolygonModeFieldId 
TwoSidedLightingFieldId 
SpecTexLightingFieldId 
SortTransFieldId 
ZWriteTransFieldId 
LocalLightsFieldId 
CorrectTwoSidedLightingFieldId 
OcclusionCullingFieldId 
OcclusionCullingModeFieldId 
OcclusionCullingPixelsFieldId 
AntialiasingFieldId 
AntialiasingDistanceFieldId 
AntialiasingScaleFieldId 
AntialiasingTriggerFieldId 
FrustumCullingFieldId 
BackfaceCullingFieldId 
SmallFeatureCullingFieldId 
SmallFeaturePixelsFieldId 
SmallFeatureThresholdFieldId 
FirstFrameFieldId 
NextFieldId 

Definition at line 112 of file OSGRenderOptionsBase.h.

00113     {
00114         StatisticFieldId               = Inherited::NextFieldId,
00115         PolygonModeFieldId             = StatisticFieldId               + 1,
00116         TwoSidedLightingFieldId        = PolygonModeFieldId             + 1,
00117         SpecTexLightingFieldId         = TwoSidedLightingFieldId        + 1,
00118         SortTransFieldId               = SpecTexLightingFieldId         + 1,
00119         ZWriteTransFieldId             = SortTransFieldId               + 1,
00120         LocalLightsFieldId             = ZWriteTransFieldId             + 1,
00121         CorrectTwoSidedLightingFieldId = LocalLightsFieldId             + 1,
00122         OcclusionCullingFieldId        = CorrectTwoSidedLightingFieldId + 1,
00123         OcclusionCullingModeFieldId    = OcclusionCullingFieldId        + 1,
00124         OcclusionCullingPixelsFieldId  = OcclusionCullingModeFieldId    + 1,
00125         AntialiasingFieldId            = OcclusionCullingPixelsFieldId  + 1,
00126         AntialiasingDistanceFieldId    = AntialiasingFieldId            + 1,
00127         AntialiasingScaleFieldId       = AntialiasingDistanceFieldId    + 1,
00128         AntialiasingTriggerFieldId     = AntialiasingScaleFieldId       + 1,
00129         FrustumCullingFieldId          = AntialiasingTriggerFieldId     + 1,
00130         BackfaceCullingFieldId         = FrustumCullingFieldId          + 1,
00131         SmallFeatureCullingFieldId     = BackfaceCullingFieldId         + 1,
00132         SmallFeaturePixelsFieldId      = SmallFeatureCullingFieldId     + 1,
00133         SmallFeatureThresholdFieldId   = SmallFeaturePixelsFieldId      + 1,
00134         FirstFrameFieldId              = SmallFeatureThresholdFieldId   + 1,
00135         NextFieldId                    = FirstFrameFieldId              + 1
00136     };

anonymous enum [inherited]

Enumerator:
ParentsFieldId 
InternalFieldId 
NextFieldId 

Definition at line 86 of file OSGAttachmentImpl.h.

00087     { 
00088         ParentsFieldId     = Inherited::NextFieldId, 
00089         InternalFieldId    = ParentsFieldId  + 1,
00090         NextFieldId        = InternalFieldId + 1
00091     };

anonymous enum [inherited]

Enumerator:
NextFieldId 

Definition at line 73 of file OSGFieldContainerImpl.h.

00073 { NextFieldId = 1 };


Constructor & Destructor Documentation

osg::RenderOptionsBase::RenderOptionsBase ( void   )  [protected]

Definition at line 385 of file OSGRenderOptionsBase.cpp.

00385                                          :
00386     _sfStatistic              (bool(false)), 
00387     _sfPolygonMode            (GLenum(GL_FILL)), 
00388     _sfTwoSidedLighting       (bool(false)), 
00389     _sfSpecTexLighting        (bool(false)), 
00390     _sfSortTrans              (bool(true)), 
00391     _sfZWriteTrans            (bool(true)), 
00392     _sfLocalLights            (bool(true)), 
00393     _sfCorrectTwoSidedLighting(bool(true)), 
00394     _sfOcclusionCulling       (bool(false)), 
00395     _sfOcclusionCullingMode   (Int32(1)), 
00396     _sfOcclusionCullingPixels (UInt32(0)), 
00397     _sfAntialiasing           (bool(false)), 
00398     _sfAntialiasingDistance   (Real32(0.2)), 
00399     _sfAntialiasingScale      (Real32(2.0)), 
00400     _sfAntialiasingTrigger    (UInt32(0)), 
00401     _sfFrustumCulling         (bool(false)), 
00402     _sfBackfaceCulling        (bool(false)), 
00403     _sfSmallFeatureCulling    (), 
00404     _sfSmallFeaturePixels     (), 
00405     _sfSmallFeatureThreshold  (), 
00406     _sfFirstFrame             (bool(true)), 
00407     Inherited() 
00408 {
00409 }

osg::RenderOptionsBase::RenderOptionsBase ( const RenderOptionsBase source  )  [protected]

Definition at line 415 of file OSGRenderOptionsBase.cpp.

00415                                                                     :
00416     _sfStatistic              (source._sfStatistic              ), 
00417     _sfPolygonMode            (source._sfPolygonMode            ), 
00418     _sfTwoSidedLighting       (source._sfTwoSidedLighting       ), 
00419     _sfSpecTexLighting        (source._sfSpecTexLighting        ), 
00420     _sfSortTrans              (source._sfSortTrans              ), 
00421     _sfZWriteTrans            (source._sfZWriteTrans            ), 
00422     _sfLocalLights            (source._sfLocalLights            ), 
00423     _sfCorrectTwoSidedLighting(source._sfCorrectTwoSidedLighting), 
00424     _sfOcclusionCulling       (source._sfOcclusionCulling       ), 
00425     _sfOcclusionCullingMode   (source._sfOcclusionCullingMode   ), 
00426     _sfOcclusionCullingPixels (source._sfOcclusionCullingPixels ), 
00427     _sfAntialiasing           (source._sfAntialiasing           ), 
00428     _sfAntialiasingDistance   (source._sfAntialiasingDistance   ), 
00429     _sfAntialiasingScale      (source._sfAntialiasingScale      ), 
00430     _sfAntialiasingTrigger    (source._sfAntialiasingTrigger    ), 
00431     _sfFrustumCulling         (source._sfFrustumCulling         ), 
00432     _sfBackfaceCulling        (source._sfBackfaceCulling        ), 
00433     _sfSmallFeatureCulling    (source._sfSmallFeatureCulling    ), 
00434     _sfSmallFeaturePixels     (source._sfSmallFeaturePixels     ), 
00435     _sfSmallFeatureThreshold  (source._sfSmallFeatureThreshold  ), 
00436     _sfFirstFrame             (source._sfFirstFrame             ), 
00437     Inherited                 (source)
00438 {
00439 }

osg::RenderOptionsBase::~RenderOptionsBase ( void   )  [protected, virtual]

Definition at line 443 of file OSGRenderOptionsBase.cpp.

00444 {
00445 }


Member Function Documentation

osg::FieldContainerType & osg::RenderOptionsBase::getClassType ( void   )  [inline, static]

Reimplemented from osg::Attachment.

Definition at line 58 of file OSGRenderOptionsBase.inl.

References _type.

Referenced by create().

00059 {
00060     return _type; 
00061 } 

osg::UInt32 osg::RenderOptionsBase::getClassTypeId ( void   )  [inline, static]

Reimplemented from osg::Attachment.

Definition at line 65 of file OSGRenderOptionsBase.inl.

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

00066 {
00067     return _type.getId(); 
00068 } 

FieldContainerType & osg::RenderOptionsBase::getType ( void   )  [virtual]

Reimplemented from osg::Attachment.

Definition at line 327 of file OSGRenderOptionsBase.cpp.

References _type.

00328 {
00329     return _type; 
00330 } 

const FieldContainerType & osg::RenderOptionsBase::getType ( void   )  const [virtual]

Reimplemented from osg::Attachment.

Definition at line 332 of file OSGRenderOptionsBase.cpp.

References _type.

00333 {
00334     return _type;
00335 } 

UInt32 osg::RenderOptionsBase::getContainerSize ( void   )  const [virtual]

Reimplemented from osg::Attachment.

Definition at line 347 of file OSGRenderOptionsBase.cpp.

00348 { 
00349     return sizeof(RenderOptions); 
00350 }

SFBool * osg::RenderOptionsBase::getSFStatistic ( void   )  [inline]

Definition at line 101 of file OSGRenderOptionsBase.inl.

References _sfStatistic.

00102 {
00103     return &_sfStatistic;
00104 }

SFGLenum * osg::RenderOptionsBase::getSFPolygonMode ( void   )  [inline]

Definition at line 108 of file OSGRenderOptionsBase.inl.

References _sfPolygonMode.

00109 {
00110     return &_sfPolygonMode;
00111 }

SFBool * osg::RenderOptionsBase::getSFTwoSidedLighting ( void   )  [inline]

Definition at line 115 of file OSGRenderOptionsBase.inl.

References _sfTwoSidedLighting.

00116 {
00117     return &_sfTwoSidedLighting;
00118 }

SFBool * osg::RenderOptionsBase::getSFSpecTexLighting ( void   )  [inline]

Definition at line 122 of file OSGRenderOptionsBase.inl.

References _sfSpecTexLighting.

00123 {
00124     return &_sfSpecTexLighting;
00125 }

SFBool * osg::RenderOptionsBase::getSFSortTrans ( void   )  [inline]

Definition at line 129 of file OSGRenderOptionsBase.inl.

References _sfSortTrans.

00130 {
00131     return &_sfSortTrans;
00132 }

SFBool * osg::RenderOptionsBase::getSFZWriteTrans ( void   )  [inline]

Definition at line 136 of file OSGRenderOptionsBase.inl.

References _sfZWriteTrans.

00137 {
00138     return &_sfZWriteTrans;
00139 }

SFBool * osg::RenderOptionsBase::getSFLocalLights ( void   )  [inline]

Definition at line 143 of file OSGRenderOptionsBase.inl.

References _sfLocalLights.

00144 {
00145     return &_sfLocalLights;
00146 }

SFBool * osg::RenderOptionsBase::getSFCorrectTwoSidedLighting ( void   )  [inline]

Definition at line 150 of file OSGRenderOptionsBase.inl.

References _sfCorrectTwoSidedLighting.

00151 {
00152     return &_sfCorrectTwoSidedLighting;
00153 }

SFBool * osg::RenderOptionsBase::getSFOcclusionCulling ( void   )  [inline]

Definition at line 157 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCulling.

00158 {
00159     return &_sfOcclusionCulling;
00160 }

SFInt32 * osg::RenderOptionsBase::getSFOcclusionCullingMode ( void   )  [inline]

Definition at line 164 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCullingMode.

00165 {
00166     return &_sfOcclusionCullingMode;
00167 }

SFUInt32 * osg::RenderOptionsBase::getSFOcclusionCullingPixels ( void   )  [inline]

Definition at line 171 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCullingPixels.

00172 {
00173     return &_sfOcclusionCullingPixels;
00174 }

SFBool * osg::RenderOptionsBase::getSFAntialiasing ( void   )  [inline]

Definition at line 178 of file OSGRenderOptionsBase.inl.

References _sfAntialiasing.

00179 {
00180     return &_sfAntialiasing;
00181 }

SFReal32 * osg::RenderOptionsBase::getSFAntialiasingDistance ( void   )  [inline]

Definition at line 185 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingDistance.

00186 {
00187     return &_sfAntialiasingDistance;
00188 }

SFReal32 * osg::RenderOptionsBase::getSFAntialiasingScale ( void   )  [inline]

Definition at line 192 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingScale.

00193 {
00194     return &_sfAntialiasingScale;
00195 }

SFUInt32 * osg::RenderOptionsBase::getSFAntialiasingTrigger ( void   )  [inline]

Definition at line 199 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingTrigger.

00200 {
00201     return &_sfAntialiasingTrigger;
00202 }

SFBool * osg::RenderOptionsBase::getSFFrustumCulling ( void   )  [inline]

Definition at line 206 of file OSGRenderOptionsBase.inl.

References _sfFrustumCulling.

00207 {
00208     return &_sfFrustumCulling;
00209 }

SFBool * osg::RenderOptionsBase::getSFBackfaceCulling ( void   )  [inline]

Definition at line 213 of file OSGRenderOptionsBase.inl.

References _sfBackfaceCulling.

00214 {
00215     return &_sfBackfaceCulling;
00216 }

SFBool * osg::RenderOptionsBase::getSFSmallFeatureCulling ( void   )  [inline]

Definition at line 220 of file OSGRenderOptionsBase.inl.

References _sfSmallFeatureCulling.

00221 {
00222     return &_sfSmallFeatureCulling;
00223 }

SFReal32 * osg::RenderOptionsBase::getSFSmallFeaturePixels ( void   )  [inline]

Definition at line 227 of file OSGRenderOptionsBase.inl.

References _sfSmallFeaturePixels.

00228 {
00229     return &_sfSmallFeaturePixels;
00230 }

SFUInt32 * osg::RenderOptionsBase::getSFSmallFeatureThreshold ( void   )  [inline]

Definition at line 234 of file OSGRenderOptionsBase.inl.

References _sfSmallFeatureThreshold.

00235 {
00236     return &_sfSmallFeatureThreshold;
00237 }

SFBool * osg::RenderOptionsBase::getSFFirstFrame ( void   )  [inline]

Definition at line 241 of file OSGRenderOptionsBase.inl.

References _sfFirstFrame.

00242 {
00243     return &_sfFirstFrame;
00244 }

bool & osg::RenderOptionsBase::getStatistic ( void   )  [inline]

Definition at line 249 of file OSGRenderOptionsBase.inl.

References _sfStatistic, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00250 {
00251     return _sfStatistic.getValue();
00252 }

const bool & osg::RenderOptionsBase::getStatistic ( void   )  const [inline]

Definition at line 256 of file OSGRenderOptionsBase.inl.

References _sfStatistic, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00257 {
00258     return _sfStatistic.getValue();
00259 }

GLenum & osg::RenderOptionsBase::getPolygonMode ( void   )  [inline]

const GLenum & osg::RenderOptionsBase::getPolygonMode ( void   )  const [inline]

Definition at line 277 of file OSGRenderOptionsBase.inl.

References _sfPolygonMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00278 {
00279     return _sfPolygonMode.getValue();
00280 }

bool & osg::RenderOptionsBase::getTwoSidedLighting ( void   )  [inline]

Definition at line 291 of file OSGRenderOptionsBase.inl.

References _sfTwoSidedLighting, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00292 {
00293     return _sfTwoSidedLighting.getValue();
00294 }

const bool & osg::RenderOptionsBase::getTwoSidedLighting ( void   )  const [inline]

Definition at line 298 of file OSGRenderOptionsBase.inl.

References _sfTwoSidedLighting, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00299 {
00300     return _sfTwoSidedLighting.getValue();
00301 }

bool & osg::RenderOptionsBase::getSpecTexLighting ( void   )  [inline]

Definition at line 312 of file OSGRenderOptionsBase.inl.

References _sfSpecTexLighting, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00313 {
00314     return _sfSpecTexLighting.getValue();
00315 }

const bool & osg::RenderOptionsBase::getSpecTexLighting ( void   )  const [inline]

Definition at line 319 of file OSGRenderOptionsBase.inl.

References _sfSpecTexLighting, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00320 {
00321     return _sfSpecTexLighting.getValue();
00322 }

bool & osg::RenderOptionsBase::getSortTrans ( void   )  [inline]

Definition at line 333 of file OSGRenderOptionsBase.inl.

References _sfSortTrans, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00334 {
00335     return _sfSortTrans.getValue();
00336 }

const bool & osg::RenderOptionsBase::getSortTrans ( void   )  const [inline]

Definition at line 340 of file OSGRenderOptionsBase.inl.

References _sfSortTrans, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00341 {
00342     return _sfSortTrans.getValue();
00343 }

bool & osg::RenderOptionsBase::getZWriteTrans ( void   )  [inline]

Definition at line 354 of file OSGRenderOptionsBase.inl.

References _sfZWriteTrans, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00355 {
00356     return _sfZWriteTrans.getValue();
00357 }

const bool & osg::RenderOptionsBase::getZWriteTrans ( void   )  const [inline]

Definition at line 361 of file OSGRenderOptionsBase.inl.

References _sfZWriteTrans, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00362 {
00363     return _sfZWriteTrans.getValue();
00364 }

bool & osg::RenderOptionsBase::getLocalLights ( void   )  [inline]

Definition at line 375 of file OSGRenderOptionsBase.inl.

References _sfLocalLights, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00376 {
00377     return _sfLocalLights.getValue();
00378 }

const bool & osg::RenderOptionsBase::getLocalLights ( void   )  const [inline]

Definition at line 382 of file OSGRenderOptionsBase.inl.

References _sfLocalLights, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00383 {
00384     return _sfLocalLights.getValue();
00385 }

bool & osg::RenderOptionsBase::getCorrectTwoSidedLighting ( void   )  [inline]

const bool & osg::RenderOptionsBase::getCorrectTwoSidedLighting ( void   )  const [inline]

Definition at line 403 of file OSGRenderOptionsBase.inl.

References _sfCorrectTwoSidedLighting, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00404 {
00405     return _sfCorrectTwoSidedLighting.getValue();
00406 }

bool & osg::RenderOptionsBase::getOcclusionCulling ( void   )  [inline]

Definition at line 417 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00418 {
00419     return _sfOcclusionCulling.getValue();
00420 }

const bool & osg::RenderOptionsBase::getOcclusionCulling ( void   )  const [inline]

Definition at line 424 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00425 {
00426     return _sfOcclusionCulling.getValue();
00427 }

Int32 & osg::RenderOptionsBase::getOcclusionCullingMode ( void   )  [inline]

const Int32 & osg::RenderOptionsBase::getOcclusionCullingMode ( void   )  const [inline]

Definition at line 445 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCullingMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00446 {
00447     return _sfOcclusionCullingMode.getValue();
00448 }

UInt32 & osg::RenderOptionsBase::getOcclusionCullingPixels ( void   )  [inline]

const UInt32 & osg::RenderOptionsBase::getOcclusionCullingPixels ( void   )  const [inline]

Definition at line 466 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCullingPixels, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00467 {
00468     return _sfOcclusionCullingPixels.getValue();
00469 }

bool & osg::RenderOptionsBase::getAntialiasing ( void   )  [inline]

Definition at line 480 of file OSGRenderOptionsBase.inl.

References _sfAntialiasing, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00481 {
00482     return _sfAntialiasing.getValue();
00483 }

const bool & osg::RenderOptionsBase::getAntialiasing ( void   )  const [inline]

Definition at line 487 of file OSGRenderOptionsBase.inl.

References _sfAntialiasing, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00488 {
00489     return _sfAntialiasing.getValue();
00490 }

Real32 & osg::RenderOptionsBase::getAntialiasingDistance ( void   )  [inline]

Definition at line 501 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingDistance, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00502 {
00503     return _sfAntialiasingDistance.getValue();
00504 }

const Real32 & osg::RenderOptionsBase::getAntialiasingDistance ( void   )  const [inline]

Definition at line 508 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingDistance, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00509 {
00510     return _sfAntialiasingDistance.getValue();
00511 }

Real32 & osg::RenderOptionsBase::getAntialiasingScale ( void   )  [inline]

Definition at line 522 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingScale, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00523 {
00524     return _sfAntialiasingScale.getValue();
00525 }

const Real32 & osg::RenderOptionsBase::getAntialiasingScale ( void   )  const [inline]

Definition at line 529 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingScale, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00530 {
00531     return _sfAntialiasingScale.getValue();
00532 }

UInt32 & osg::RenderOptionsBase::getAntialiasingTrigger ( void   )  [inline]

Definition at line 543 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingTrigger, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00544 {
00545     return _sfAntialiasingTrigger.getValue();
00546 }

const UInt32 & osg::RenderOptionsBase::getAntialiasingTrigger ( void   )  const [inline]

Definition at line 550 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingTrigger, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00551 {
00552     return _sfAntialiasingTrigger.getValue();
00553 }

bool & osg::RenderOptionsBase::getFrustumCulling ( void   )  [inline]

Definition at line 564 of file OSGRenderOptionsBase.inl.

References _sfFrustumCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00565 {
00566     return _sfFrustumCulling.getValue();
00567 }

const bool & osg::RenderOptionsBase::getFrustumCulling ( void   )  const [inline]

Definition at line 571 of file OSGRenderOptionsBase.inl.

References _sfFrustumCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00572 {
00573     return _sfFrustumCulling.getValue();
00574 }

bool & osg::RenderOptionsBase::getBackfaceCulling ( void   )  [inline]

Definition at line 585 of file OSGRenderOptionsBase.inl.

References _sfBackfaceCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00586 {
00587     return _sfBackfaceCulling.getValue();
00588 }

const bool & osg::RenderOptionsBase::getBackfaceCulling ( void   )  const [inline]

Definition at line 592 of file OSGRenderOptionsBase.inl.

References _sfBackfaceCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00593 {
00594     return _sfBackfaceCulling.getValue();
00595 }

bool & osg::RenderOptionsBase::getSmallFeatureCulling ( void   )  [inline]

Definition at line 606 of file OSGRenderOptionsBase.inl.

References _sfSmallFeatureCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00607 {
00608     return _sfSmallFeatureCulling.getValue();
00609 }

const bool & osg::RenderOptionsBase::getSmallFeatureCulling ( void   )  const [inline]

Definition at line 613 of file OSGRenderOptionsBase.inl.

References _sfSmallFeatureCulling, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00614 {
00615     return _sfSmallFeatureCulling.getValue();
00616 }

Real32 & osg::RenderOptionsBase::getSmallFeaturePixels ( void   )  [inline]

Definition at line 627 of file OSGRenderOptionsBase.inl.

References _sfSmallFeaturePixels, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::RenderOptions::activateOptions().

00628 {
00629     return _sfSmallFeaturePixels.getValue();
00630 }

const Real32 & osg::RenderOptionsBase::getSmallFeaturePixels ( void   )  const [inline]

Definition at line 634 of file OSGRenderOptionsBase.inl.

References _sfSmallFeaturePixels, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00635 {
00636     return _sfSmallFeaturePixels.getValue();
00637 }

UInt32 & osg::RenderOptionsBase::getSmallFeatureThreshold ( void   )  [inline]

const UInt32 & osg::RenderOptionsBase::getSmallFeatureThreshold ( void   )  const [inline]

Definition at line 655 of file OSGRenderOptionsBase.inl.

References _sfSmallFeatureThreshold, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00656 {
00657     return _sfSmallFeatureThreshold.getValue();
00658 }

bool & osg::RenderOptionsBase::getFirstFrame ( void   )  [inline]

Definition at line 669 of file OSGRenderOptionsBase.inl.

References _sfFirstFrame, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00670 {
00671     return _sfFirstFrame.getValue();
00672 }

const bool & osg::RenderOptionsBase::getFirstFrame ( void   )  const [inline]

Definition at line 676 of file OSGRenderOptionsBase.inl.

References _sfFirstFrame, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00677 {
00678     return _sfFirstFrame.getValue();
00679 }

void osg::RenderOptionsBase::setStatistic ( const bool &  value  )  [inline]

Definition at line 263 of file OSGRenderOptionsBase.inl.

References _sfStatistic, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00264 {
00265     _sfStatistic.setValue(value);
00266 }

void osg::RenderOptionsBase::setPolygonMode ( const GLenum &  value  )  [inline]

Definition at line 284 of file OSGRenderOptionsBase.inl.

References _sfPolygonMode, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

Referenced by osg::RenderOptions::setWireframe().

00285 {
00286     _sfPolygonMode.setValue(value);
00287 }

void osg::RenderOptionsBase::setTwoSidedLighting ( const bool &  value  )  [inline]

Definition at line 305 of file OSGRenderOptionsBase.inl.

References _sfTwoSidedLighting, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00306 {
00307     _sfTwoSidedLighting.setValue(value);
00308 }

void osg::RenderOptionsBase::setSpecTexLighting ( const bool &  value  )  [inline]

Definition at line 326 of file OSGRenderOptionsBase.inl.

References _sfSpecTexLighting, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00327 {
00328     _sfSpecTexLighting.setValue(value);
00329 }

void osg::RenderOptionsBase::setSortTrans ( const bool &  value  )  [inline]

Definition at line 347 of file OSGRenderOptionsBase.inl.

References _sfSortTrans, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00348 {
00349     _sfSortTrans.setValue(value);
00350 }

void osg::RenderOptionsBase::setZWriteTrans ( const bool &  value  )  [inline]

Definition at line 368 of file OSGRenderOptionsBase.inl.

References _sfZWriteTrans, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00369 {
00370     _sfZWriteTrans.setValue(value);
00371 }

void osg::RenderOptionsBase::setLocalLights ( const bool &  value  )  [inline]

Definition at line 389 of file OSGRenderOptionsBase.inl.

References _sfLocalLights, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00390 {
00391     _sfLocalLights.setValue(value);
00392 }

void osg::RenderOptionsBase::setCorrectTwoSidedLighting ( const bool &  value  )  [inline]

void osg::RenderOptionsBase::setOcclusionCulling ( const bool &  value  )  [inline]

Definition at line 431 of file OSGRenderOptionsBase.inl.

References _sfOcclusionCulling, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00432 {
00433     _sfOcclusionCulling.setValue(value);
00434 }

void osg::RenderOptionsBase::setOcclusionCullingMode ( const Int32 value  )  [inline]

void osg::RenderOptionsBase::setOcclusionCullingPixels ( const UInt32 value  )  [inline]

void osg::RenderOptionsBase::setAntialiasing ( const bool &  value  )  [inline]

Definition at line 494 of file OSGRenderOptionsBase.inl.

References _sfAntialiasing, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00495 {
00496     _sfAntialiasing.setValue(value);
00497 }

void osg::RenderOptionsBase::setAntialiasingDistance ( const Real32 value  )  [inline]

void osg::RenderOptionsBase::setAntialiasingScale ( const Real32 value  )  [inline]

Definition at line 536 of file OSGRenderOptionsBase.inl.

References _sfAntialiasingScale, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00537 {
00538     _sfAntialiasingScale.setValue(value);
00539 }

void osg::RenderOptionsBase::setAntialiasingTrigger ( const UInt32 value  )  [inline]

void osg::RenderOptionsBase::setFrustumCulling ( const bool &  value  )  [inline]

Definition at line 578 of file OSGRenderOptionsBase.inl.

References _sfFrustumCulling, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00579 {
00580     _sfFrustumCulling.setValue(value);
00581 }

void osg::RenderOptionsBase::setBackfaceCulling ( const bool &  value  )  [inline]

Definition at line 599 of file OSGRenderOptionsBase.inl.

References _sfBackfaceCulling, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00600 {
00601     _sfBackfaceCulling.setValue(value);
00602 }

void osg::RenderOptionsBase::setSmallFeatureCulling ( const bool &  value  )  [inline]

void osg::RenderOptionsBase::setSmallFeaturePixels ( const Real32 value  )  [inline]

Definition at line 641 of file OSGRenderOptionsBase.inl.

References _sfSmallFeaturePixels, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00642 {
00643     _sfSmallFeaturePixels.setValue(value);
00644 }

void osg::RenderOptionsBase::setSmallFeatureThreshold ( const UInt32 value  )  [inline]

void osg::RenderOptionsBase::setFirstFrame ( const bool &  value  )  [inline]

Definition at line 683 of file OSGRenderOptionsBase.inl.

References _sfFirstFrame, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00684 {
00685     _sfFirstFrame.setValue(value);
00686 }

UInt32 osg::RenderOptionsBase::getBinSize ( const BitVector whichField  )  [virtual]

Reimplemented from osg::Attachment.

Definition at line 449 of file OSGRenderOptionsBase.cpp.

References _sfAntialiasing, _sfAntialiasingDistance, _sfAntialiasingScale, _sfAntialiasingTrigger, _sfBackfaceCulling, _sfCorrectTwoSidedLighting, _sfFirstFrame, _sfFrustumCulling, _sfLocalLights, _sfOcclusionCulling, _sfOcclusionCullingMode, _sfOcclusionCullingPixels, _sfPolygonMode, _sfSmallFeatureCulling, _sfSmallFeaturePixels, _sfSmallFeatureThreshold, _sfSortTrans, _sfSpecTexLighting, _sfStatistic, _sfTwoSidedLighting, _sfZWriteTrans, AntialiasingDistanceFieldMask, AntialiasingFieldMask, AntialiasingScaleFieldMask, AntialiasingTriggerFieldMask, BackfaceCullingFieldMask, CorrectTwoSidedLightingFieldMask, FirstFrameFieldMask, FrustumCullingFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::Attachment::getBinSize(), LocalLightsFieldMask, osg::FieldBits::NoField, OcclusionCullingFieldMask, OcclusionCullingModeFieldMask, OcclusionCullingPixelsFieldMask, PolygonModeFieldMask, SmallFeatureCullingFieldMask, SmallFeaturePixelsFieldMask, SmallFeatureThresholdFieldMask, SortTransFieldMask, SpecTexLightingFieldMask, StatisticFieldMask, TwoSidedLightingFieldMask, and ZWriteTransFieldMask.

00450 {
00451     UInt32 returnValue = Inherited::getBinSize(whichField);
00452 
00453     if(FieldBits::NoField != (StatisticFieldMask & whichField))
00454     {
00455         returnValue += _sfStatistic.getBinSize();
00456     }
00457 
00458     if(FieldBits::NoField != (PolygonModeFieldMask & whichField))
00459     {
00460         returnValue += _sfPolygonMode.getBinSize();
00461     }
00462 
00463     if(FieldBits::NoField != (TwoSidedLightingFieldMask & whichField))
00464     {
00465         returnValue += _sfTwoSidedLighting.getBinSize();
00466     }
00467 
00468     if(FieldBits::NoField != (SpecTexLightingFieldMask & whichField))
00469     {
00470         returnValue += _sfSpecTexLighting.getBinSize();
00471     }
00472 
00473     if(FieldBits::NoField != (SortTransFieldMask & whichField))
00474     {
00475         returnValue += _sfSortTrans.getBinSize();
00476     }
00477 
00478     if(FieldBits::NoField != (ZWriteTransFieldMask & whichField))
00479     {
00480         returnValue += _sfZWriteTrans.getBinSize();
00481     }
00482 
00483     if(FieldBits::NoField != (LocalLightsFieldMask & whichField))
00484     {
00485         returnValue += _sfLocalLights.getBinSize();
00486     }
00487 
00488     if(FieldBits::NoField != (CorrectTwoSidedLightingFieldMask & whichField))
00489     {
00490         returnValue += _sfCorrectTwoSidedLighting.getBinSize();
00491     }
00492 
00493     if(FieldBits::NoField != (OcclusionCullingFieldMask & whichField))
00494     {
00495         returnValue += _sfOcclusionCulling.getBinSize();
00496     }
00497 
00498     if(FieldBits::NoField != (OcclusionCullingModeFieldMask & whichField))
00499     {
00500         returnValue += _sfOcclusionCullingMode.getBinSize();
00501     }
00502 
00503     if(FieldBits::NoField != (OcclusionCullingPixelsFieldMask & whichField))
00504     {
00505         returnValue += _sfOcclusionCullingPixels.getBinSize();
00506     }
00507 
00508     if(FieldBits::NoField != (AntialiasingFieldMask & whichField))
00509     {
00510         returnValue += _sfAntialiasing.getBinSize();
00511     }
00512 
00513     if(FieldBits::NoField != (AntialiasingDistanceFieldMask & whichField))
00514     {
00515         returnValue += _sfAntialiasingDistance.getBinSize();
00516     }
00517 
00518     if(FieldBits::NoField != (AntialiasingScaleFieldMask & whichField))
00519     {
00520         returnValue += _sfAntialiasingScale.getBinSize();
00521     }
00522 
00523     if(FieldBits::NoField != (AntialiasingTriggerFieldMask & whichField))
00524     {
00525         returnValue += _sfAntialiasingTrigger.getBinSize();
00526     }
00527 
00528     if(FieldBits::NoField != (FrustumCullingFieldMask & whichField))
00529     {
00530         returnValue += _sfFrustumCulling.getBinSize();
00531     }
00532 
00533     if(FieldBits::NoField != (BackfaceCullingFieldMask & whichField))
00534     {
00535         returnValue += _sfBackfaceCulling.getBinSize();
00536     }
00537 
00538     if(FieldBits::NoField != (SmallFeatureCullingFieldMask & whichField))
00539     {
00540         returnValue += _sfSmallFeatureCulling.getBinSize();
00541     }
00542 
00543     if(FieldBits::NoField != (SmallFeaturePixelsFieldMask & whichField))
00544     {
00545         returnValue += _sfSmallFeaturePixels.getBinSize();
00546     }
00547 
00548     if(FieldBits::NoField != (SmallFeatureThresholdFieldMask & whichField))
00549     {
00550         returnValue += _sfSmallFeatureThreshold.getBinSize();
00551     }
00552 
00553     if(FieldBits::NoField != (FirstFrameFieldMask & whichField))
00554     {
00555         returnValue += _sfFirstFrame.getBinSize();
00556     }
00557 
00558 
00559     return returnValue;
00560 }

void osg::RenderOptionsBase::copyToBin ( BinaryDataHandler pMem,
const BitVector whichField 
) [virtual]

Reimplemented from osg::Attachment.

Definition at line 562 of file OSGRenderOptionsBase.cpp.

References _sfAntialiasing, _sfAntialiasingDistance, _sfAntialiasingScale, _sfAntialiasingTrigger, _sfBackfaceCulling, _sfCorrectTwoSidedLighting, _sfFirstFrame, _sfFrustumCulling, _sfLocalLights, _sfOcclusionCulling, _sfOcclusionCullingMode, _sfOcclusionCullingPixels, _sfPolygonMode, _sfSmallFeatureCulling, _sfSmallFeaturePixels, _sfSmallFeatureThreshold, _sfSortTrans, _sfSpecTexLighting, _sfStatistic, _sfTwoSidedLighting, _sfZWriteTrans, AntialiasingDistanceFieldMask, AntialiasingFieldMask, AntialiasingScaleFieldMask, AntialiasingTriggerFieldMask, BackfaceCullingFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::Attachment::copyToBin(), CorrectTwoSidedLightingFieldMask, FirstFrameFieldMask, FrustumCullingFieldMask, LocalLightsFieldMask, osg::FieldBits::NoField, OcclusionCullingFieldMask, OcclusionCullingModeFieldMask, OcclusionCullingPixelsFieldMask, PolygonModeFieldMask, SmallFeatureCullingFieldMask, SmallFeaturePixelsFieldMask, SmallFeatureThresholdFieldMask, SortTransFieldMask, SpecTexLightingFieldMask, StatisticFieldMask, TwoSidedLightingFieldMask, and ZWriteTransFieldMask.

00564 {
00565     Inherited::copyToBin(pMem, whichField);
00566 
00567     if(FieldBits::NoField != (StatisticFieldMask & whichField))
00568     {
00569         _sfStatistic.copyToBin(pMem);
00570     }
00571 
00572     if(FieldBits::NoField != (PolygonModeFieldMask & whichField))
00573     {
00574         _sfPolygonMode.copyToBin(pMem);
00575     }
00576 
00577     if(FieldBits::NoField != (TwoSidedLightingFieldMask & whichField))
00578     {
00579         _sfTwoSidedLighting.copyToBin(pMem);
00580     }
00581 
00582     if(FieldBits::NoField != (SpecTexLightingFieldMask & whichField))
00583     {
00584         _sfSpecTexLighting.copyToBin(pMem);
00585     }
00586 
00587     if(FieldBits::NoField != (SortTransFieldMask & whichField))
00588     {
00589         _sfSortTrans.copyToBin(pMem);
00590     }
00591 
00592     if(FieldBits::NoField != (ZWriteTransFieldMask & whichField))
00593     {
00594         _sfZWriteTrans.copyToBin(pMem);
00595     }
00596 
00597     if(FieldBits::NoField != (LocalLightsFieldMask & whichField))
00598     {
00599         _sfLocalLights.copyToBin(pMem);
00600     }
00601 
00602     if(FieldBits::NoField != (CorrectTwoSidedLightingFieldMask & whichField))
00603     {
00604         _sfCorrectTwoSidedLighting.copyToBin(pMem);
00605     }
00606 
00607     if(FieldBits::NoField != (OcclusionCullingFieldMask & whichField))
00608     {
00609         _sfOcclusionCulling.copyToBin(pMem);
00610     }
00611 
00612     if(FieldBits::NoField != (OcclusionCullingModeFieldMask & whichField))
00613     {
00614         _sfOcclusionCullingMode.copyToBin(pMem);
00615     }
00616 
00617     if(FieldBits::NoField != (OcclusionCullingPixelsFieldMask & whichField))
00618     {
00619         _sfOcclusionCullingPixels.copyToBin(pMem);
00620     }
00621 
00622     if(FieldBits::NoField != (AntialiasingFieldMask & whichField))
00623     {
00624         _sfAntialiasing.copyToBin(pMem);
00625     }
00626 
00627     if(FieldBits::NoField != (AntialiasingDistanceFieldMask & whichField))
00628     {
00629         _sfAntialiasingDistance.copyToBin(pMem);
00630     }
00631 
00632     if(FieldBits::NoField != (AntialiasingScaleFieldMask & whichField))
00633     {
00634         _sfAntialiasingScale.copyToBin(pMem);
00635     }
00636 
00637     if(FieldBits::NoField != (AntialiasingTriggerFieldMask & whichField))
00638     {
00639         _sfAntialiasingTrigger.copyToBin(pMem);
00640     }
00641 
00642     if(FieldBits::NoField != (FrustumCullingFieldMask & whichField))
00643     {
00644         _sfFrustumCulling.copyToBin(pMem);
00645     }
00646 
00647     if(FieldBits::NoField != (BackfaceCullingFieldMask & whichField))
00648     {
00649         _sfBackfaceCulling.copyToBin(pMem);
00650     }
00651 
00652     if(FieldBits::NoField != (SmallFeatureCullingFieldMask & whichField))
00653     {
00654         _sfSmallFeatureCulling.copyToBin(pMem);
00655     }
00656 
00657     if(FieldBits::NoField != (SmallFeaturePixelsFieldMask & whichField))
00658     {
00659         _sfSmallFeaturePixels.copyToBin(pMem);
00660     }
00661 
00662     if(FieldBits::NoField != (SmallFeatureThresholdFieldMask & whichField))
00663     {
00664         _sfSmallFeatureThreshold.copyToBin(pMem);
00665     }
00666 
00667     if(FieldBits::NoField != (FirstFrameFieldMask & whichField))
00668     {
00669         _sfFirstFrame.copyToBin(pMem);
00670     }
00671 
00672 
00673 }

void osg::RenderOptionsBase::copyFromBin ( BinaryDataHandler pMem,
const BitVector whichField 
) [virtual]

Reimplemented from osg::Attachment.

Definition at line 675 of file OSGRenderOptionsBase.cpp.

References _sfAntialiasing, _sfAntialiasingDistance, _sfAntialiasingScale, _sfAntialiasingTrigger, _sfBackfaceCulling, _sfCorrectTwoSidedLighting, _sfFirstFrame, _sfFrustumCulling, _sfLocalLights, _sfOcclusionCulling, _sfOcclusionCullingMode, _sfOcclusionCullingPixels, _sfPolygonMode, _sfSmallFeatureCulling, _sfSmallFeaturePixels, _sfSmallFeatureThreshold, _sfSortTrans, _sfSpecTexLighting, _sfStatistic, _sfTwoSidedLighting, _sfZWriteTrans, AntialiasingDistanceFieldMask, AntialiasingFieldMask, AntialiasingScaleFieldMask, AntialiasingTriggerFieldMask, BackfaceCullingFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::Attachment::copyFromBin(), CorrectTwoSidedLightingFieldMask, FirstFrameFieldMask, FrustumCullingFieldMask, LocalLightsFieldMask, osg::FieldBits::NoField, OcclusionCullingFieldMask, OcclusionCullingModeFieldMask, OcclusionCullingPixelsFieldMask, PolygonModeFieldMask, SmallFeatureCullingFieldMask, SmallFeaturePixelsFieldMask, SmallFeatureThresholdFieldMask, SortTransFieldMask, SpecTexLightingFieldMask, StatisticFieldMask, TwoSidedLightingFieldMask, and ZWriteTransFieldMask.

00677 {
00678     Inherited::copyFromBin(pMem, whichField);
00679 
00680     if(FieldBits::NoField != (StatisticFieldMask & whichField))
00681     {
00682         _sfStatistic.copyFromBin(pMem);
00683     }
00684 
00685     if(FieldBits::NoField != (PolygonModeFieldMask & whichField))
00686     {
00687         _sfPolygonMode.copyFromBin(pMem);
00688     }
00689 
00690     if(FieldBits::NoField != (TwoSidedLightingFieldMask & whichField))
00691     {
00692         _sfTwoSidedLighting.copyFromBin(pMem);
00693     }
00694 
00695     if(FieldBits::NoField != (SpecTexLightingFieldMask & whichField))
00696     {
00697         _sfSpecTexLighting.copyFromBin(pMem);
00698     }
00699 
00700     if(FieldBits::NoField != (SortTransFieldMask & whichField))
00701     {
00702         _sfSortTrans.copyFromBin(pMem);
00703     }
00704 
00705     if(FieldBits::NoField != (ZWriteTransFieldMask & whichField))
00706     {
00707         _sfZWriteTrans.copyFromBin(pMem);
00708     }
00709 
00710     if(FieldBits::NoField != (LocalLightsFieldMask & whichField))
00711     {
00712         _sfLocalLights.copyFromBin(pMem);
00713     }
00714 
00715     if(FieldBits::NoField != (CorrectTwoSidedLightingFieldMask & whichField))
00716     {
00717         _sfCorrectTwoSidedLighting.copyFromBin(pMem);
00718     }
00719 
00720     if(FieldBits::NoField != (OcclusionCullingFieldMask & whichField))
00721     {
00722         _sfOcclusionCulling.copyFromBin(pMem);
00723     }
00724 
00725     if(FieldBits::NoField != (OcclusionCullingModeFieldMask & whichField))
00726     {
00727         _sfOcclusionCullingMode.copyFromBin(pMem);
00728     }
00729 
00730     if(FieldBits::NoField != (OcclusionCullingPixelsFieldMask & whichField))
00731     {
00732         _sfOcclusionCullingPixels.copyFromBin(pMem);
00733     }
00734 
00735     if(FieldBits::NoField != (AntialiasingFieldMask & whichField))
00736     {
00737         _sfAntialiasing.copyFromBin(pMem);
00738     }
00739 
00740     if(FieldBits::NoField != (AntialiasingDistanceFieldMask & whichField))
00741     {
00742         _sfAntialiasingDistance.copyFromBin(pMem);
00743     }
00744 
00745     if(FieldBits::NoField != (AntialiasingScaleFieldMask & whichField))
00746     {
00747         _sfAntialiasingScale.copyFromBin(pMem);
00748     }
00749 
00750     if(FieldBits::NoField != (AntialiasingTriggerFieldMask & whichField))
00751     {
00752         _sfAntialiasingTrigger.copyFromBin(pMem);
00753     }
00754 
00755     if(FieldBits::NoField != (FrustumCullingFieldMask & whichField))
00756     {
00757         _sfFrustumCulling.copyFromBin(pMem);
00758     }
00759 
00760     if(FieldBits::NoField != (BackfaceCullingFieldMask & whichField))
00761     {
00762         _sfBackfaceCulling.copyFromBin(pMem);
00763     }
00764 
00765     if(FieldBits::NoField != (SmallFeatureCullingFieldMask & whichField))
00766     {
00767         _sfSmallFeatureCulling.copyFromBin(pMem);
00768     }
00769 
00770     if(FieldBits::NoField != (SmallFeaturePixelsFieldMask & whichField))
00771     {
00772         _sfSmallFeaturePixels.copyFromBin(pMem);
00773     }
00774 
00775     if(FieldBits::NoField != (SmallFeatureThresholdFieldMask & whichField))
00776     {
00777         _sfSmallFeatureThreshold.copyFromBin(pMem);
00778     }
00779 
00780     if(FieldBits::NoField != (FirstFrameFieldMask & whichField))
00781     {
00782         _sfFirstFrame.copyFromBin(pMem);
00783     }
00784 
00785 
00786 }

RenderOptionsPtr osg::RenderOptionsBase::create ( void   )  [inline, static]

Reimplemented from osg::Attachment.

Definition at line 72 of file OSGRenderOptionsBase.inl.

References osg::AttachmentPtr::dcast(), getClassType(), osg::NullFC, and shallowCopy().

00073 {
00074     RenderOptionsPtr fc; 
00075 
00076     if(getClassType().getPrototype() != OSG::NullFC) 
00077     {
00078         fc = RenderOptionsPtr::dcast(
00079             getClassType().getPrototype()-> shallowCopy()); 
00080     }
00081     
00082     return fc; 
00083 }

RenderOptionsPtr osg::RenderOptionsBase::createEmpty ( void   )  [inline, static]

Reimplemented from osg::Attachment.

Definition at line 87 of file OSGRenderOptionsBase.inl.

References osg::FieldContainer::newPtr().

00088 { 
00089     RenderOptionsPtr returnValue; 
00090     
00091     newPtr(returnValue); 
00092 
00093     return returnValue; 
00094 }

FieldContainerPtr osg::RenderOptionsBase::shallowCopy ( void   )  const [virtual]

Reimplemented from osg::Attachment.

Definition at line 338 of file OSGRenderOptionsBase.cpp.

References osg::FieldContainer::newPtr().

Referenced by create().

00339 { 
00340     RenderOptionsPtr returnValue; 
00341 
00342     newPtr(returnValue, dynamic_cast<const RenderOptions *>(this)); 
00343 
00344     return returnValue; 
00345 }

void osg::RenderOptionsBase::executeSyncImpl ( RenderOptionsBase pOther,
const BitVector whichField 
) [protected]

Definition at line 789 of file OSGRenderOptionsBase.cpp.

References _sfAntialiasing, _sfAntialiasingDistance, _sfAntialiasingScale, _sfAntialiasingTrigger, _sfBackfaceCulling, _sfCorrectTwoSidedLighting, _sfFirstFrame, _sfFrustumCulling, _sfLocalLights, _sfOcclusionCulling, _sfOcclusionCullingMode, _sfOcclusionCullingPixels, _sfPolygonMode, _sfSmallFeatureCulling, _sfSmallFeaturePixels, _sfSmallFeatureThreshold, _sfSortTrans, _sfSpecTexLighting, _sfStatistic, _sfTwoSidedLighting, _sfZWriteTrans, AntialiasingDistanceFieldMask, AntialiasingFieldMask, AntialiasingScaleFieldMask, AntialiasingTriggerFieldMask, BackfaceCullingFieldMask, CorrectTwoSidedLightingFieldMask, osg::Attachment::executeSyncImpl(), FirstFrameFieldMask, FrustumCullingFieldMask, LocalLightsFieldMask, osg::FieldBits::NoField, OcclusionCullingFieldMask, OcclusionCullingModeFieldMask, OcclusionCullingPixelsFieldMask, PolygonModeFieldMask, SmallFeatureCullingFieldMask, SmallFeaturePixelsFieldMask, SmallFeatureThresholdFieldMask, SortTransFieldMask, SpecTexLightingFieldMask, StatisticFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::syncWith(), TwoSidedLightingFieldMask, and ZWriteTransFieldMask.

Referenced by executeSync().

00791 {
00792 
00793     Inherited::executeSyncImpl(pOther, whichField);
00794 
00795     if(FieldBits::NoField != (StatisticFieldMask & whichField))
00796         _sfStatistic.syncWith(pOther->_sfStatistic);
00797 
00798     if(FieldBits::NoField != (PolygonModeFieldMask & whichField))
00799         _sfPolygonMode.syncWith(pOther->_sfPolygonMode);
00800 
00801     if(FieldBits::NoField != (TwoSidedLightingFieldMask & whichField))
00802         _sfTwoSidedLighting.syncWith(pOther->_sfTwoSidedLighting);
00803 
00804     if(FieldBits::NoField != (SpecTexLightingFieldMask & whichField))
00805         _sfSpecTexLighting.syncWith(pOther->_sfSpecTexLighting);
00806 
00807     if(FieldBits::NoField != (SortTransFieldMask & whichField))
00808         _sfSortTrans.syncWith(pOther->_sfSortTrans);
00809 
00810     if(FieldBits::NoField != (ZWriteTransFieldMask & whichField))
00811         _sfZWriteTrans.syncWith(pOther->_sfZWriteTrans);
00812 
00813     if(FieldBits::NoField != (LocalLightsFieldMask & whichField))
00814         _sfLocalLights.syncWith(pOther->_sfLocalLights);
00815 
00816     if(FieldBits::NoField != (CorrectTwoSidedLightingFieldMask & whichField))
00817         _sfCorrectTwoSidedLighting.syncWith(pOther->_sfCorrectTwoSidedLighting);
00818 
00819     if(FieldBits::NoField != (OcclusionCullingFieldMask & whichField))
00820         _sfOcclusionCulling.syncWith(pOther->_sfOcclusionCulling);
00821 
00822     if(FieldBits::NoField != (OcclusionCullingModeFieldMask & whichField))
00823         _sfOcclusionCullingMode.syncWith(pOther->_sfOcclusionCullingMode);
00824 
00825     if(FieldBits::NoField != (OcclusionCullingPixelsFieldMask & whichField))
00826         _sfOcclusionCullingPixels.syncWith(pOther->_sfOcclusionCullingPixels);
00827 
00828     if(FieldBits::NoField != (AntialiasingFieldMask & whichField))
00829         _sfAntialiasing.syncWith(pOther->_sfAntialiasing);
00830 
00831     if(FieldBits::NoField != (AntialiasingDistanceFieldMask & whichField))
00832         _sfAntialiasingDistance.syncWith(pOther->_sfAntialiasingDistance);
00833 
00834     if(FieldBits::NoField != (AntialiasingScaleFieldMask & whichField))
00835         _sfAntialiasingScale.syncWith(pOther->_sfAntialiasingScale);
00836 
00837     if(FieldBits::NoField != (AntialiasingTriggerFieldMask & whichField))
00838         _sfAntialiasingTrigger.syncWith(pOther->_sfAntialiasingTrigger);
00839 
00840     if(FieldBits::NoField != (FrustumCullingFieldMask & whichField))
00841         _sfFrustumCulling.syncWith(pOther->_sfFrustumCulling);
00842 
00843     if(FieldBits::NoField != (BackfaceCullingFieldMask & whichField))
00844         _sfBackfaceCulling.syncWith(pOther->_sfBackfaceCulling);
00845 
00846     if(FieldBits::NoField != (SmallFeatureCullingFieldMask & whichField))
00847         _sfSmallFeatureCulling.syncWith(pOther->_sfSmallFeatureCulling);
00848 
00849     if(FieldBits::NoField != (SmallFeaturePixelsFieldMask & whichField))
00850         _sfSmallFeaturePixels.syncWith(pOther->_sfSmallFeaturePixels);
00851 
00852     if(FieldBits::NoField != (SmallFeatureThresholdFieldMask & whichField))
00853         _sfSmallFeatureThreshold.syncWith(pOther->_sfSmallFeatureThreshold);
00854 
00855     if(FieldBits::NoField != (FirstFrameFieldMask & whichField))
00856         _sfFirstFrame.syncWith(pOther->_sfFirstFrame);
00857 
00858 
00859 }

void osg::RenderOptionsBase::executeSync ( FieldContainer other,
const BitVector whichField 
) [protected, virtual]

Reimplemented from osg::Attachment.

Definition at line 354 of file OSGRenderOptionsBase.cpp.

References executeSyncImpl().

00356 {
00357     this->executeSyncImpl((RenderOptionsBase *) &other, whichField);
00358 }

void osg::RenderOptionsBase::operator= ( const RenderOptionsBase source  )  [private]

MFFieldContainerPtr & Attachment::getParents ( void   )  [inherited]

Definition at line 95 of file OSGAttachment.cpp.

00096 {
00097     return _parents;
00098 }

const MFFieldContainerPtr & Attachment::getParents ( void   )  const [inherited]

Definition at line 100 of file OSGAttachment.cpp.

References osg::Attachment::_parents.

00101 {
00102     return _parents;
00103 }

MFFieldContainerPtr * Attachment::getMFParents ( void   )  [inherited]

Definition at line 105 of file OSGAttachment.cpp.

References osg::Attachment::_parents.

Referenced by osg::DVRLookupTable::changed().

00106 {
00107     return &_parents;
00108 }

void Attachment::addParent ( FieldContainerPtr  parent  )  [inherited]

Definition at line 110 of file OSGAttachment.cpp.

References osg::Attachment::_parents, and osg::MField< FieldTypeT, fieldNameSpace >::push_back().

00111 {
00112     _parents.push_back(parent);
00113 }

void Attachment::subParent ( FieldContainerPtr  parent  )  [inherited]

Int32 Attachment::findParent ( FieldContainerPtr  parent  )  [inherited]

Definition at line 125 of file OSGAttachment.cpp.

References osg::Attachment::_parents, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::MField< FieldTypeT, fieldNameSpace >::end(), and osg::MField< FieldTypeT, fieldNameSpace >::find().

00126 {
00127     MFFieldContainerPtr::iterator parentIt = _parents.find(parent);
00128 
00129     if(parentIt != _parents.end())
00130     {
00131         return parentIt - _parents.begin();
00132     }
00133     else
00134     {
00135         return -1;
00136     }
00137 }

SFBool & Attachment::getInternal ( void   )  [inherited]

Definition at line 142 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal.

00143 {
00144     return _sfInternal;
00145 }

const SFBool & Attachment::getInternal ( void   )  const [inherited]

Definition at line 147 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal.

00148 {
00149     return _sfInternal;
00150 }

SFBool * Attachment::getSFInternal ( void   )  [inherited]

Definition at line 152 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal.

00153 {
00154     return &_sfInternal;
00155 }

void Attachment::setInternal ( bool  bVal  )  [inherited]

Definition at line 157 of file OSGAttachment.cpp.

References osg::Attachment::_sfInternal, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().

00158 {
00159     _sfInternal.setValue(bVal);
00160 }

void Attachment::dump ( UInt32  uiIndent = 0,
const BitVector  bvFlags = 0 
) const [virtual, inherited]

Implements osg::FieldContainer.

Reimplemented in osg::FCPtrAttributeMap, osg::StringAttributeMap, osg::SimpleAttachment< AttachmentDescT >, osg::DVRClipObjects, osg::DVRIsoSurface, osg::DVRLookupTable, osg::DVRVolumeTexture, osg::FatBorderChunk, osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LightModelChunk, osg::LineChunk, osg::LogicOpChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::SClipPlaneChunk, osg::StateChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::VertexProgramChunk, osg::ShaderChunk, osg::ShaderParameterChunk, osg::SHLChunk, osg::SHLParameterChunk, osg::SimpleAttachment< osg::NameAttachmentDesc >, and osg::SimpleAttachment< osg::VoidPAttachmentDesc >.

Definition at line 213 of file OSGAttachment.cpp.

References osg::Attachment::_parents, osg::FieldContainerPtrBase::getFieldContainerId(), osg::TypeBase::getName(), osg::Attachment::getType(), osg::indentLog(), PLOG, and osg::MField< FieldTypeT, fieldNameSpace >::size().

Referenced by osg::SimpleAttachment< AttachmentDescT >::dump().

00215 {
00216     UInt32 i;
00217 
00218     AttachmentPtr thisP(this);
00219 
00220     indentLog(uiIndent, PLOG);
00221 
00222     PLOG << "Attachment"
00223          << "(" 
00224          << std::dec
00225          << thisP.getFieldContainerId()
00226          << ") : " 
00227          << getType().getName()
00228          << "("       
00229          << this 
00230          << ")" 
00231          << std::endl;
00232 
00233     indentLog(uiIndent, PLOG);
00234     PLOG << "[" << std::endl;
00235 
00236     indentLog(uiIndent + 4, PLOG);
00237     PLOG << "Parents : " << std::endl;
00238 
00239     for(i = 0; i < _parents.size(); i++)
00240     {
00241         indentLog(uiIndent + 4, PLOG);
00242         PLOG << "           " << i << ") " << &(*(_parents[i])) << std::endl;
00243     }
00244 
00245 //    thisP.dump(uiIndent, FCDumpFlags::RefCount);
00246 
00247     indentLog(uiIndent, PLOG);
00248     PLOG << "]" << std::endl;
00249 
00250     indentLog(uiIndent, PLOG);
00251     PLOG << "{" << std::endl;
00252 
00253     indentLog(uiIndent, PLOG);
00254     PLOG << "}" << std::endl;
00255 }

void Attachment::onDestroy ( void   )  [protected, virtual, inherited]

void Attachment::executeSyncImpl ( Attachment pOther,
const BitVector whichField 
) [protected, inherited]

void osg::FieldContainer::executeSyncImpl ( FieldContainer pOther,
const BitVector whichField 
) [inline, protected, inherited]

UInt16 osg::FieldContainer::getClassGroupId ( void   )  [inline, static, inherited]

Definition at line 71 of file OSGFieldContainerImpl.inl.

References osg::FieldContainer::_type, and osg::FieldContainerType::getGroupId().

00072 {
00073     return _type.getGroupId();
00074 }

UInt32 osg::FieldContainer::getTypeId ( void   )  const [inline, inherited]

Definition at line 77 of file OSGFieldContainerImpl.inl.

References osg::TypeBase::getId(), and osg::FieldContainer::getType().

Referenced by osg::TextureChunk::changeFrom(), and osg::CubeTextureChunk::changeFrom().

00078 {
00079     return getType().getId();
00080 }

UInt16 osg::FieldContainer::getGroupId ( void   )  const [inline, inherited]

const Char8 * osg::FieldContainer::getTypeName ( void   )  const [inline, inherited]

Definition at line 89 of file OSGFieldContainerImpl.inl.

References osg::TypeBase::getCName(), and osg::FieldContainer::getType().

00090 {
00091     return getType().getCName();
00092 }

Field * osg::FieldContainer::getField ( UInt32  fieldId  )  [inline, inherited]

Generic Field Access

Definition at line 95 of file OSGFieldContainerImpl.inl.

References osg::FieldDescription::getField(), osg::FieldContainerType::getFieldDescription(), and osg::FieldContainer::getType().

Referenced by osg::QFCItem::expand(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::QFieldViewBase::getFieldPtr(), osg::QFieldEditorBase::getFieldPtr(), osg::getParentsField(), and osg::QFCItem::setup().

00096 {
00097     const FieldDescription *desc = getType().getFieldDescription(fieldId);
00098 
00099     return desc ? desc->getField(*this) : NULL;
00100 }

Field * osg::FieldContainer::getField ( const Char8 fieldName  )  [inline, inherited]

Generic Field Access

Definition at line 103 of file OSGFieldContainerImpl.inl.

References osg::FieldContainerType::findFieldDescription(), osg::FieldDescription::getField(), and osg::FieldContainer::getType().

00104 {
00105     const FieldDescription *desc =getType().findFieldDescription(fieldName);
00106 
00107     return desc ? desc->getField(*this) : NULL;
00108 }

void FieldContainer::changed ( BitVector  whichField,
UInt32  origin 
) [virtual, inherited]

Reimplemented in osg::RenderOptions, osg::ClusterWindow, osg::DisplayCalibration, osg::ImageComposer, osg::MultiDisplayWindow, osg::SortFirstWindow, osg::FCPtrAttributeMap, osg::StringAttributeMap, osg::AttachmentContainer, osg::Node, osg::Image, osg::ChunkMaterial, osg::FresnelMaterial, osg::Material, osg::MultiPassMaterial, osg::PhongMaterial, osg::SimpleMaterial, osg::SimpleTexturedMaterial, osg::SwitchMaterial, osg::Drawable, osg::MaterialDrawable, osg::Geometry, osg::Slices, osg::Particles, osg::DVRAppearance, osg::DVRClipGeometry, osg::DVRClipObjects, osg::DVRGeometry, osg::DVRIsoShader, osg::DVRIsoSurface, osg::DVRLookupTable, osg::DVRMtexLUTShader, osg::DVRShader, osg::DVRSimpleLUTShader, osg::DVRSimpleShader, osg::DVRVolume, osg::DVRVolumeTexture, osg::FatBorderChunk, osg::Surface, osg::Group, osg::DirectionalLight, osg::Light, osg::LightEnv, osg::PointLight, osg::SpotLight, osg::Billboard, osg::ClipPlane, osg::ComponentTransform, osg::DistanceLOD, osg::Inline, osg::InverseTransform, osg::MaterialGroup, osg::MaterialPool, osg::ProxyGroup, osg::ScreenGroup, osg::StateSortingGroup, osg::Switch, osg::Transform, osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LightModelChunk, osg::LineChunk, osg::LogicOpChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::SClipPlaneChunk, osg::State, osg::StateChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, osg::VertexProgramChunk, osg::GraphicStatisticsForeground, osg::SimpleStatisticsForeground, osg::StatisticsForeground, osg::Background, osg::Camera, osg::CameraDecorator, osg::ColorBufferViewport, osg::ColorDisplayFilter, osg::DepthClearBackground, osg::DisplayFilter, osg::DisplayFilterForeground, osg::DistortionDisplayFilter, osg::FBOViewport, osg::FileGrabForeground, osg::Foreground, osg::GrabForeground, osg::GradientBackground, osg::ImageBackground, osg::ImageForeground, osg::MatrixCamera, osg::MatrixCameraDecorator, osg::OffCenterPerspectiveCamera, osg::OrthographicCamera, osg::PassiveBackground, osg::PassiveViewport, osg::PassiveWindow, osg::PerspectiveCamera, osg::PolygonBackground, osg::PolygonForeground, osg::ProjectionCameraDecorator, osg::ResolutionDisplayFilter, osg::ShearedStereoCameraDecorator, osg::SkyBackground, osg::SolidBackground, osg::StereoBufferViewport, osg::StereoCameraDecorator, osg::TextureBackground, osg::TextureGrabBackground, osg::TextureGrabForeground, osg::TileCameraDecorator, osg::Viewport, osg::Window, osg::ShaderChunk, osg::ShaderParameter, osg::ShaderParameterBool, osg::ShaderParameterChunk, osg::ShaderParameterInt, osg::ShaderParameterMatrix, osg::ShaderParameterMInt, osg::ShaderParameterMMatrix, osg::ShaderParameterMReal, osg::ShaderParameterMVec2f, osg::ShaderParameterMVec3f, osg::ShaderParameterMVec4f, osg::ShaderParameterReal, osg::ShaderParameterString, osg::ShaderParameterVec2f, osg::ShaderParameterVec3f, osg::ShaderParameterVec4f, osg::SHLChunk, osg::SHLParameterChunk, osg::XWindow, and osg::QTWindow.

Definition at line 89 of file OSGFieldContainer.cpp.

Referenced by osg::StringAttributeMap::changed(), osg::State::changed(), osg::RenderOptions::changed(), osg::FCPtrAttributeMap::changed(), osg::DVRVolumeTexture::changed(), osg::DVRShader::changed(), osg::DVRLookupTable::changed(), osg::DVRIsoSurface::changed(), osg::DVRClipObjects::changed(), osg::DVRClipGeometry::changed(), and osg::FieldContainerPtrBase::executeSync().

00091 {
00092     // fprintf(stderr, "FC Changed %d %d\n", whichField, fromSync);
00093 }

template<class ObjectPtrT>
void osg::FieldContainer::newPtr ( ObjectPtrT &  result,
const typename ObjectPtrT::StoredObjectType *  prototypeP 
) [inline, static, protected, inherited]

Definition at line 138 of file OSGFieldContainerImpl.inl.

References osg::ChangeList::addCreated(), osg::PThreadBase::getAspect(), osg::PThreadBase::getCurrentChangeList(), osg::ThreadManager::getNumAspects(), osg::FieldContainerFactory::registerFieldContainer(), and osg::FieldContainerFactory::the().

Referenced by osg::XWindowBase::createEmpty(), osg::WIN32WindowBase::createEmpty(), osg::ViewportBase::createEmpty(), osg::VertexProgramChunkBase::createEmpty(), osg::TwoSidedLightingChunkBase::createEmpty(), osg::TransformChunkBase::createEmpty(), osg::TransformBase::createEmpty(), osg::TileCameraDecoratorBase::createEmpty(), osg::TextureTransformChunkBase::createEmpty(), osg::TextureGrabForegroundBase::createEmpty(), osg::TextureGrabBackgroundBase::createEmpty(), osg::TextureChunkBase::createEmpty(), osg::TextureBackgroundBase::createEmpty(), osg::TexGenChunkBase::createEmpty(), osg::SwitchMaterialBase::createEmpty(), osg::SwitchBase::createEmpty(), osg::SurfaceBase::createEmpty(), osg::StringAttributeMapBase::createEmpty(), osg::StereoBufferViewportBase::createEmpty(), osg::StencilChunkBase::createEmpty(), osg::StateSortingGroupBase::createEmpty(), osg::StateBase::createEmpty(), osg::SpotLightBase::createEmpty(), osg::SortFirstWindowBase::createEmpty(), osg::SolidBackgroundBase::createEmpty(), osg::SlicesBase::createEmpty(), osg::SkyBackgroundBase::createEmpty(), osg::SimpleTexturedMaterialBase::createEmpty(), osg::SimpleStatisticsForegroundBase::createEmpty(), osg::SimpleMaterialBase::createEmpty(), osg::SHLParameterChunkBase::createEmpty(), osg::SHLChunkBase::createEmpty(), osg::ShearedStereoCameraDecoratorBase::createEmpty(), osg::ShaderParameterVec4fBase::createEmpty(), osg::ShaderParameterVec3fBase::createEmpty(), osg::ShaderParameterVec2fBase::createEmpty(), osg::ShaderParameterStringBase::createEmpty(), osg::ShaderParameterRealBase::createEmpty(), osg::ShaderParameterMVec4fBase::createEmpty(), osg::ShaderParameterMVec3fBase::createEmpty(), osg::ShaderParameterMVec2fBase::createEmpty(), osg::ShaderParameterMRealBase::createEmpty(), osg::ShaderParameterMMatrixBase::createEmpty(), osg::ShaderParameterMIntBase::createEmpty(), osg::ShaderParameterMatrixBase::createEmpty(), osg::ShaderParameterIntBase::createEmpty(), osg::ShaderParameterBoolBase::createEmpty(), osg::ScreenGroupBase::createEmpty(), osg::SClipPlaneChunkBase::createEmpty(), osg::ResolutionDisplayFilterBase::createEmpty(), createEmpty(), osg::RegisterCombinersChunkBase::createEmpty(), osg::QTWindowBase::createEmpty(), osg::ProxyGroupBase::createEmpty(), osg::ProjectionCameraDecoratorBase::createEmpty(), osg::PolygonForegroundBase::createEmpty(), osg::PolygonChunkBase::createEmpty(), osg::PolygonBackgroundBase::createEmpty(), osg::PointLightBase::createEmpty(), osg::PointChunkBase::createEmpty(), osg::PhongMaterialBase::createEmpty(), osg::PerspectiveCameraBase::createEmpty(), osg::PassiveWindowBase::createEmpty(), osg::PassiveViewportBase::createEmpty(), osg::PassiveBackgroundBase::createEmpty(), osg::ParticlesBase::createEmpty(), osg::OrthographicCameraBase::createEmpty(), osg::OffCenterPerspectiveCameraBase::createEmpty(), osg::MultiPassMaterialBase::createEmpty(), osg::MultiDisplayWindowBase::createEmpty(), osg::MatrixCameraDecoratorBase::createEmpty(), osg::MatrixCameraBase::createEmpty(), osg::MaterialPoolBase::createEmpty(), osg::MaterialGroupBase::createEmpty(), osg::MaterialChunkBase::createEmpty(), osg::LogicOpChunkBase::createEmpty(), osg::LineChunkBase::createEmpty(), osg::LightModelChunkBase::createEmpty(), osg::LightEnvBase::createEmpty(), osg::LightChunkBase::createEmpty(), osg::InverseTransformBase::createEmpty(), osg::InlineBase::createEmpty(), osg::ImageForegroundBase::createEmpty(), osg::ImageBase::createEmpty(), osg::ImageBackgroundBase::createEmpty(), osg::GroupBase::createEmpty(), osg::GraphicStatisticsForegroundBase::createEmpty(), osg::GradientBackgroundBase::createEmpty(), osg::GrabForegroundBase::createEmpty(), osg::GLUTWindowBase::createEmpty(), osg::GeometryBase::createEmpty(), osg::FresnelMaterialBase::createEmpty(), osg::FragmentProgramChunkBase::createEmpty(), osg::FileGrabForegroundBase::createEmpty(), osg::FCPtrAttributeMapBase::createEmpty(), osg::FBOViewportBase::createEmpty(), osg::FatBorderChunkBase::createEmpty(), osg::DVRVolumeTextureBase::createEmpty(), osg::DVRVolumeBase::createEmpty(), osg::DVRSimpleShaderBase::createEmpty(), osg::DVRSimpleLUTShaderBase::createEmpty(), osg::DVRMtexLUTShaderBase::createEmpty(), osg::DVRLookupTableBase::createEmpty(), osg::DVRIsoSurfaceBase::createEmpty(), osg::DVRIsoShaderBase::createEmpty(), osg::DVRGeometryBase::createEmpty(), osg::DVRClipObjectsBase::createEmpty(), osg::DVRClipGeometryBase::createEmpty(), osg::DVRAppearanceBase::createEmpty(), osg::DistortionDisplayFilterBase::createEmpty(), osg::DistanceLODBase::createEmpty(), osg::DisplayFilterForegroundBase::createEmpty(), osg::DisplayCalibrationBase::createEmpty(), osg::DirectionalLightBase::createEmpty(), osg::DepthClearBackgroundBase::createEmpty(), osg::DepthChunkBase::createEmpty(), osg::CubeTextureChunkBase::createEmpty(), osg::ComponentTransformBase::createEmpty(), osg::ColorMaskChunkBase::createEmpty(), osg::ColorDisplayFilterBase::createEmpty(), osg::ColorBufferViewportBase::createEmpty(), osg::ClusterWindowBase::createEmpty(), osg::ClipPlaneChunkBase::createEmpty(), osg::ClipPlaneBase::createEmpty(), osg::ChunkMaterialBase::createEmpty(), osg::BlendChunkBase::createEmpty(), osg::BillboardBase::createEmpty(), osg::XWindowBase::shallowCopy(), osg::WIN32WindowBase::shallowCopy(), osg::ViewportBase::shallowCopy(), osg::VertexProgramChunkBase::shallowCopy(), osg::TwoSidedLightingChunkBase::shallowCopy(), osg::TransformChunkBase::shallowCopy(), osg::TransformBase::shallowCopy(), osg::TileCameraDecoratorBase::shallowCopy(), osg::TextureTransformChunkBase::shallowCopy(), osg::TextureGrabForegroundBase::shallowCopy(), osg::TextureGrabBackgroundBase::shallowCopy(), osg::TextureChunkBase::shallowCopy(), osg::TextureBackgroundBase::shallowCopy(), osg::TexGenChunkBase::shallowCopy(), osg::SwitchMaterialBase::shallowCopy(), osg::SwitchBase::shallowCopy(), osg::SurfaceBase::shallowCopy(), osg::StringAttributeMapBase::shallowCopy(), osg::StereoBufferViewportBase::shallowCopy(), osg::StencilChunkBase::shallowCopy(), osg::StateSortingGroupBase::shallowCopy(), osg::StateBase::shallowCopy(), osg::SpotLightBase::shallowCopy(), osg::SortFirstWindowBase::shallowCopy(), osg::SolidBackgroundBase::shallowCopy(), osg::SlicesBase::shallowCopy(), osg::SkyBackgroundBase::shallowCopy(), osg::SimpleTexturedMaterialBase::shallowCopy(), osg::SimpleStatisticsForegroundBase::shallowCopy(), osg::SimpleMaterialBase::shallowCopy(), osg::SHLParameterChunkBase::shallowCopy(), osg::SHLChunkBase::shallowCopy(), osg::ShearedStereoCameraDecoratorBase::shallowCopy(), osg::ShaderParameterVec4fBase::shallowCopy(), osg::ShaderParameterVec3fBase::shallowCopy(), osg::ShaderParameterVec2fBase::shallowCopy(), osg::ShaderParameterStringBase::shallowCopy(), osg::ShaderParameterRealBase::shallowCopy(), osg::ShaderParameterMVec4fBase::shallowCopy(), osg::ShaderParameterMVec3fBase::shallowCopy(), osg::ShaderParameterMVec2fBase::shallowCopy(), osg::ShaderParameterMRealBase::shallowCopy(), osg::ShaderParameterMMatrixBase::shallowCopy(), osg::ShaderParameterMIntBase::shallowCopy(), osg::ShaderParameterMatrixBase::shallowCopy(), osg::ShaderParameterIntBase::shallowCopy(), osg::ShaderParameterBoolBase::shallowCopy(), osg::ScreenGroupBase::shallowCopy(), osg::SClipPlaneChunkBase::shallowCopy(), osg::ResolutionDisplayFilterBase::shallowCopy(), shallowCopy(), osg::RegisterCombinersChunkBase::shallowCopy(), osg::QTWindowBase::shallowCopy(), osg::ProxyGroupBase::shallowCopy(), osg::ProjectionCameraDecoratorBase::shallowCopy(), osg::PolygonForegroundBase::shallowCopy(), osg::PolygonChunkBase::shallowCopy(), osg::PolygonBackgroundBase::shallowCopy(), osg::PointLightBase::shallowCopy(), osg::PointChunkBase::shallowCopy(), osg::PhongMaterialBase::shallowCopy(), osg::PerspectiveCameraBase::shallowCopy(), osg::PassiveWindowBase::shallowCopy(), osg::PassiveViewportBase::shallowCopy(), osg::PassiveBackgroundBase::shallowCopy(), osg::ParticlesBase::shallowCopy(), osg::OrthographicCameraBase::shallowCopy(), osg::OffCenterPerspectiveCameraBase::shallowCopy(), osg::MultiPassMaterialBase::shallowCopy(), osg::MultiDisplayWindowBase::shallowCopy(), osg::MatrixCameraDecoratorBase::shallowCopy(), osg::MatrixCameraBase::shallowCopy(), osg::MaterialPoolBase::shallowCopy(), osg::MaterialGroupBase::shallowCopy(), osg::MaterialChunkBase::shallowCopy(), osg::LogicOpChunkBase::shallowCopy(), osg::LineChunkBase::shallowCopy(), osg::LightModelChunkBase::shallowCopy(), osg::LightEnvBase::shallowCopy(), osg::LightChunkBase::shallowCopy(), osg::InverseTransformBase::shallowCopy(), osg::InlineBase::shallowCopy(), osg::ImageForegroundBase::shallowCopy(), osg::ImageBase::shallowCopy(), osg::ImageBackgroundBase::shallowCopy(), osg::GroupBase::shallowCopy(), osg::GraphicStatisticsForegroundBase::shallowCopy(), osg::GradientBackgroundBase::shallowCopy(), osg::GrabForegroundBase::shallowCopy(), osg::GLUTWindowBase::shallowCopy(), osg::GeometryBase::shallowCopy(), osg::FresnelMaterialBase::shallowCopy(), osg::FragmentProgramChunkBase::shallowCopy(), osg::FileGrabForegroundBase::shallowCopy(), osg::FCPtrAttributeMapBase::shallowCopy(), osg::FBOViewportBase::shallowCopy(), osg::FatBorderChunkBase::shallowCopy(), osg::DVRVolumeTextureBase::shallowCopy(), osg::DVRVolumeBase::shallowCopy(), osg::DVRSimpleShaderBase::shallowCopy(), osg::DVRSimpleLUTShaderBase::shallowCopy(), osg::DVRMtexLUTShaderBase::shallowCopy(), osg::DVRLookupTableBase::shallowCopy(), osg::DVRIsoSurfaceBase::shallowCopy(), osg::DVRIsoShaderBase::shallowCopy(), osg::DVRGeometryBase::shallowCopy(), osg::DVRClipObjectsBase::shallowCopy(), osg::DVRClipGeometryBase::shallowCopy(), osg::DVRAppearanceBase::shallowCopy(), osg::DistortionDisplayFilterBase::shallowCopy(), osg::DistanceLODBase::shallowCopy(), osg::DisplayFilterForegroundBase::shallowCopy(), osg::DisplayCalibrationBase::shallowCopy(), osg::DirectionalLightBase::shallowCopy(), osg::DepthClearBackgroundBase::shallowCopy(), osg::DepthChunkBase::shallowCopy(), osg::CubeTextureChunkBase::shallowCopy(), osg::ComponentTransformBase::shallowCopy(), osg::ColorMaskChunkBase::shallowCopy(), osg::ColorDisplayFilterBase::shallowCopy(), osg::ColorBufferViewportBase::shallowCopy(), osg::ClusterWindowBase::shallowCopy(), osg::ClipPlaneChunkBase::shallowCopy(), osg::ClipPlaneBase::shallowCopy(), osg::ChunkMaterialBase::shallowCopy(), osg::BlendChunkBase::shallowCopy(), and osg::BillboardBase::shallowCopy().

00141 {
00142     typedef typename ObjectPtrT::StoredObjectType ObjectType;
00143     
00144     UInt8 *pTmp;
00145     
00146     result._containerSize = sizeof(ObjectType);
00147     
00148     pTmp        = 
00149         static_cast<UInt8 *>(operator new(
00150             sizeof(Int32)      + // ReferenceCount
00151             sizeof(UInt32)     + // ContainerId
00152             sizeof(ObjectType) * ThreadManager::getNumAspects()));
00153     
00154     *(reinterpret_cast<Int32 *>(pTmp)) = 0;
00155     
00156     pTmp += sizeof(Int32);
00157     
00158     result._storeP = (pTmp + sizeof(UInt32));
00159 
00160 #ifdef OSG_DEBUG_FCPTR
00161     result._typedStoreP = reinterpret_cast<FieldContainer *>(result._storeP);
00162 #endif
00163 
00164     *(reinterpret_cast<UInt32 *>(pTmp)) = 
00165         FieldContainerFactory::the()->registerFieldContainer(result);
00166     
00167     Thread::getCurrentChangeList()->addCreated(
00168         *(reinterpret_cast<UInt32 *>(pTmp)));
00169     
00170     pTmp += sizeof(UInt32);
00171     
00172     ObjectType *aObject = reinterpret_cast<ObjectType *>(pTmp);
00173 
00174     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00175     {
00176         pTmp = 
00177             reinterpret_cast<UInt8 *>(new (pTmp) ObjectType(*prototypeP));
00178         
00179         pTmp += sizeof(ObjectType);
00180     }
00181     
00182     result->onCreate(prototypeP);
00183 
00184     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00185     {
00186         aObject[i].onCreateAspect(aObject, prototypeP);
00187     }
00188 
00189 #if defined(OSG_GV_BETA) && defined(OSG_DBG_MEM)
00190 
00191     fprintf(stderr, "GV_MEM_FC_DBG : (%u) cc (%p|%u)\n", 
00192             Thread::getAspect(),
00193             result._storeP,
00194 //            ObjectType::getClassType().getCName(),
00195             ObjectType::getClassType().getId());
00196 #endif
00197 
00198 #ifdef OSG_DEBUG_TYPED_FCPTR
00199     result.updateTypedStore();
00200 #endif
00201 }

template<class ObjectPtrT>
void osg::FieldContainer::newPtr ( ObjectPtrT &  result  )  [inline, static, protected, inherited]

Definition at line 204 of file OSGFieldContainerImpl.inl.

References osg::ChangeList::addCreated(), osg::PThreadBase::getAspect(), osg::PThreadBase::getCurrentChangeList(), osg::ThreadManager::getNumAspects(), osg::FieldContainerFactory::registerFieldContainer(), and osg::FieldContainerFactory::the().

00205 {
00206     typedef typename ObjectPtrT::StoredObjectType ObjectType;
00207     
00208     UInt8 *pTmp;
00209     
00210     result._containerSize = sizeof(ObjectType);
00211     
00212     pTmp        =             
00213         static_cast<UInt8 *>(operator new(
00214             sizeof(Int32)      + // ReferenceCount
00215             sizeof(UInt32)     + // ContainerId
00216             sizeof(ObjectType) * ThreadManager::getNumAspects()));
00217     
00218     *(reinterpret_cast<Int32 *>(pTmp)) = 0;
00219     
00220     pTmp  += sizeof(Int32);
00221     
00222     result._storeP = (pTmp + sizeof(UInt32));
00223     
00224 #ifdef OSG_DEBUG_FCPTR
00225     result._typedStoreP = reinterpret_cast<FieldContainer *>(result._storeP);
00226 #endif
00227 
00228     *(reinterpret_cast<UInt32 *>(pTmp)) = 
00229         FieldContainerFactory::the()->registerFieldContainer(result);
00230     
00231     Thread::getCurrentChangeList()->addCreated(
00232         *(reinterpret_cast<UInt32 *>(pTmp)));
00233     
00234     pTmp += sizeof(UInt32);
00235     
00236     ObjectType *aObject = reinterpret_cast<ObjectType *>(pTmp);
00237 
00238     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00239     {
00240         pTmp = reinterpret_cast<UInt8 *>(new (pTmp) ObjectType());
00241         
00242         pTmp += sizeof(ObjectType);
00243     }
00244     
00245     result->onCreate();
00246     
00247     for(UInt32 i = 0; i < ThreadManager::getNumAspects(); i++)
00248     {
00249         aObject[i].onCreateAspect(aObject);
00250     }
00251 
00252 #if defined(OSG_GV_BETA) && defined(OSG_DBG_MEM)
00253     fprintf(stderr, "GV_MEM_FC_DBG : (%u) c (%p|%u)\n", 
00254             Thread::getAspect(),
00255             result._storeP,
00256 //            ObjectType::getClassType().getCName(),
00257             ObjectType::getClassType().getId());
00258 #endif
00259     
00260 #ifdef OSG_DEBUG_TYPED_FCPTR
00261     result.updateTypedStore();
00262 #endif
00263 }

template<class FieldTypeT>
void osg::FieldContainer::beginEditX ( const BitVector whichField,
FieldTypeT &  field 
) [inline, protected, inherited]

Definition at line 285 of file OSGFieldContainerImpl.inl.

00286 {
00287 //    fieldR.beginEdit();
00288 }

template<class FieldTypeT>
void osg::FieldContainer::endEditX ( const BitVector whichField,
FieldTypeT &  field 
) [inline, protected, inherited]

Definition at line 291 of file OSGFieldContainerImpl.inl.

References osg::endEditCP().

00292 {
00293     FieldContainerPtr tmpPtr(this);
00294     endEditCP(tmpPtr, whichField);
00295 }

void osg::FieldContainer::onCreate ( const FieldContainer source = NULL  )  [inline, protected, inherited]

Definition at line 318 of file OSGFieldContainerImpl.inl.

Referenced by osg::ShaderParameterChunk::onCreate().

00319 {
00320 }

void osg::FieldContainer::onCreateAspect ( const FieldContainer aspect0,
const FieldContainer source = NULL 
) [inline, protected, inherited]

Definition at line 323 of file OSGFieldContainerImpl.inl.

00325 {
00326 }


Friends And Related Function Documentation

friend class FieldContainer [friend]

Reimplemented from osg::Attachment.

Reimplemented in osg::RenderOptions.

Definition at line 390 of file OSGRenderOptionsBase.h.


Member Data Documentation

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::StatisticFieldId)

Definition at line 138 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::PolygonModeFieldId)

Definition at line 139 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::TwoSidedLightingFieldId)

Definition at line 140 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::SpecTexLightingFieldId)

Definition at line 141 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::SortTransFieldId)

Definition at line 142 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::ZWriteTransFieldId)

Definition at line 143 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::LocalLightsFieldId)

Definition at line 144 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::OcclusionCullingFieldId)

Definition at line 146 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::AntialiasingFieldId)

Definition at line 149 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::AntialiasingDistanceFieldId)

Definition at line 150 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::AntialiasingScaleFieldId)

Definition at line 151 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::AntialiasingTriggerFieldId)

Definition at line 152 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::FrustumCullingFieldId)

Definition at line 153 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::BackfaceCullingFieldId)

Definition at line 154 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::SmallFeatureCullingFieldId)

Definition at line 155 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::SmallFeaturePixelsFieldId)

Definition at line 156 of file OSGRenderOptionsBase.h.

Referenced by osg::RenderOptions::activateOptions(), copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (TypeTraits<BitVector>::One << RenderOptionsBase::FirstFrameFieldId)

Definition at line 158 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), and getBinSize().

Initial value:

 
    (Inherited::MTInfluenceMask) | 
    (static_cast<BitVector>(0x0) << Inherited::NextFieldId)

Reimplemented from osg::FieldContainer.

Definition at line 161 of file OSGRenderOptionsBase.h.

OcclusionStopAndWait (1) or OcclusionMultiFrame (2)

Definition at line 327 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getOcclusionCullingMode(), getSFOcclusionCullingMode(), and setOcclusionCullingMode().

culls objects with this number of visible pixels default is zero.

Definition at line 328 of file OSGRenderOptionsBase.h.

Referenced by copyFromBin(), copyToBin(), executeSyncImpl(), getBinSize(), getOcclusionCullingPixels(), getSFOcclusionCullingPixels(), and setOcclusionCullingPixels().

Reimplemented from osg::Attachment.

Definition at line 392 of file OSGRenderOptionsBase.h.

Reimplemented from osg::Attachment.

Definition at line 393 of file OSGRenderOptionsBase.h.

Referenced by getClassType(), getClassTypeId(), and getType().

const BitVector Attachment::InternalFieldMask = (1 << Attachment::InternalFieldId) [static, inherited]

const BitVector Attachment::ParentsFieldMask = (1 << Attachment::ParentsFieldId) [static, inherited]

SFBool osg::Attachment::_sfInternal [protected, inherited]

const BitVector osg::FieldContainer::NextFieldMask [static, inherited]

Initial value:

 
                    (TypeTraits<BitVector>::One << NextFieldId)

Definition at line 75 of file OSGFieldContainerImpl.h.

const bool osg::FieldContainer::isNodeCore = false [static, inherited]

Reimplemented in osg::NodeCore.

Definition at line 181 of file OSGFieldContainerImpl.h.

UInt32 osg::FieldContainer::_shares [protected, inherited]

Definition at line 199 of file OSGFieldContainerImpl.h.


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

Generated on Mon Mar 17 11:11:21 2008 for OpenSG by  doxygen 1.5.5