osg::RenderOptions Class Reference

#include <OSGRenderOptions.h>

Inheritance diagram for osg::RenderOptions:

osg::RenderOptionsBase osg::Attachment osg::FieldContainer

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

virtual void changed (BitVector whichField, UInt32 origin)
void setWireframe (bool value)
bool getWireframe (void)
BitVector getChanged (void)
BitVector getLastChanged (void)
void activateOptions (RenderAction *action)
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)

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

 RenderOptions (void)
 RenderOptions (const RenderOptions &source)
virtual ~RenderOptions (void)
Sync


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


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


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


virtual void onDestroy (void)
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

BitVector _changed
BitVector _last_changed
Real32 _gl_version
GLenum _polygon_mode
bool _backface_culling
bool _two_sided_lighting
bool _spec_tex_lighting
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 RenderOptionsBase Inherited

Private Member Functions

void operator= (const RenderOptions &source)

Static Private Member Functions

static void initMethod (void)

Friends

class FieldContainer
class RenderOptionsBase


Detailed Description

Definition at line 50 of file OSGRenderOptions.h.


Member Typedef Documentation

Reimplemented from osg::RenderOptionsBase.

Definition at line 54 of file OSGRenderOptions.h.

Definition at line 110 of file OSGRenderOptionsBase.h.


Member Enumeration Documentation

anonymous enum [inherited]

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

RenderOptions::RenderOptions ( void   )  [protected]

Parameters:
\return 

Definition at line 56 of file OSGRenderOptions.cpp.

00056                                  :
00057     Inherited(),
00058     _changed(0),
00059     _last_changed(0),
00060     _gl_version(0.0f),
00061     _polygon_mode(GL_FILL),
00062     _backface_culling(false),
00063     _two_sided_lighting(false),
00064     _spec_tex_lighting(false)
00065 {
00066 }

RenderOptions::RenderOptions ( const RenderOptions source  )  [protected]

Parameters:
\return 

Definition at line 73 of file OSGRenderOptions.cpp.

00073                                                         :
00074     Inherited(source),
00075     _changed(source._changed),
00076     _last_changed(source._last_changed),
00077     _gl_version(source._gl_version),
00078     _polygon_mode(source._polygon_mode),
00079     _backface_culling(source._backface_culling),
00080     _two_sided_lighting(source._two_sided_lighting),
00081     _spec_tex_lighting(source._spec_tex_lighting)
00082 {
00083 }

RenderOptions::~RenderOptions ( void   )  [protected, virtual]

Parameters:
\return 

Definition at line 90 of file OSGRenderOptions.cpp.

00091 {
00092 }


Member Function Documentation

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

Parameters:
\return 

Reimplemented from osg::FieldContainer.

Definition at line 108 of file OSGRenderOptions.cpp.

References _changed, and osg::FieldContainer::changed().

00109 {
00110     _changed |= whichField;
00111     Inherited::changed(whichField, origin);
00112 }

void RenderOptions::setWireframe ( bool  value  ) 

Definition at line 114 of file OSGRenderOptions.cpp.

References osg::RenderOptionsBase::setPolygonMode().

00115 {
00116     if(value)
00117         setPolygonMode(GL_LINE);
00118     else
00119         setPolygonMode(GL_FILL);
00120 }

bool RenderOptions::getWireframe ( void   ) 

Definition at line 122 of file OSGRenderOptions.cpp.

References osg::RenderOptionsBase::getPolygonMode().

00123 {
00124     return getPolygonMode() == GL_LINE;
00125 }

BitVector RenderOptions::getChanged ( void   ) 

Definition at line 127 of file OSGRenderOptions.cpp.

References _changed.

00128 {
00129     return _changed;
00130 }

BitVector RenderOptions::getLastChanged ( void   ) 

Definition at line 132 of file OSGRenderOptions.cpp.

References _last_changed.

00133 {
00134     return _last_changed;
00135 }

void RenderOptions::activateOptions ( RenderAction action  ) 

Definition at line 137 of file OSGRenderOptions.cpp.

References _backface_culling, _changed, _gl_version, _last_changed, _polygon_mode, _spec_tex_lighting, _two_sided_lighting, osg::RenderOptionsBase::BackfaceCullingFieldMask, osg::RenderOptionsBase::CorrectTwoSidedLightingFieldMask, osg::RenderOptionsBase::FrustumCullingFieldMask, osg::RenderOptionsBase::getBackfaceCulling(), osg::RenderOptionsBase::getCorrectTwoSidedLighting(), osg::RenderOptionsBase::getFrustumCulling(), osg::RenderOptionsBase::getLocalLights(), osg::RenderOptionsBase::getOcclusionCulling(), osg::RenderOptionsBase::getOcclusionCullingMode(), osg::RenderOptionsBase::getOcclusionCullingPixels(), osg::RenderOptionsBase::getPolygonMode(), osg::RenderOptionsBase::getSmallFeatureCulling(), osg::RenderOptionsBase::getSmallFeaturePixels(), osg::RenderOptionsBase::getSmallFeatureThreshold(), osg::RenderOptionsBase::getSortTrans(), osg::RenderOptionsBase::getSpecTexLighting(), osg::RenderOptionsBase::getTwoSidedLighting(), osg::RenderOptionsBase::getZWriteTrans(), GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR, GL_SINGLE_COLOR, osg::RenderOptionsBase::LocalLightsFieldMask, osg::RenderOptionsBase::OcclusionCullingFieldMask, osg::RenderOptionsBase::OcclusionCullingModeFieldMask, osg::RenderOptionsBase::OcclusionCullingPixelsFieldMask, osg::RenderOptionsBase::PolygonModeFieldMask, osg::RenderAction::setCorrectTwoSidedLighting(), osg::DrawActionBase::setFrustumCulling(), osg::RenderAction::setLocalLights(), osg::RenderAction::setOcclusionCulling(), osg::RenderAction::setOcclusionCullingMode(), osg::RenderAction::setOcclusionCullingPixels(), osg::RenderAction::setSmallFeatureCulling(), osg::RenderAction::setSmallFeaturePixels(), osg::RenderAction::setSmallFeatureThreshold(), osg::RenderAction::setSortTrans(), osg::RenderAction::setZWriteTrans(), osg::RenderOptionsBase::SmallFeatureCullingFieldMask, osg::RenderOptionsBase::SmallFeaturePixelsFieldMask, osg::RenderOptionsBase::SmallFeatureThresholdFieldMask, osg::RenderOptionsBase::SortTransFieldMask, osg::RenderOptionsBase::SpecTexLightingFieldMask, osg::RenderOptionsBase::TwoSidedLightingFieldMask, and osg::RenderOptionsBase::ZWriteTransFieldMask.

00138 {
00139     if(_gl_version == 0.0f)
00140     {
00141         // detect OpenGL version.
00142         std::string vstr = (const char *) glGetString(GL_VERSION);
00143         // remove last .x
00144         vstr = vstr.substr(0, 3);
00145         _gl_version = atof(vstr.c_str());
00146     }
00147 
00148     if(_changed & PolygonModeFieldMask)
00149         _polygon_mode = getPolygonMode();
00150 
00151     if(_changed & BackfaceCullingFieldMask)
00152         _backface_culling = getBackfaceCulling();
00153 
00154     if(_changed & CorrectTwoSidedLightingFieldMask)
00155         action->setCorrectTwoSidedLighting(getCorrectTwoSidedLighting());
00156 
00157     if(_changed & TwoSidedLightingFieldMask)
00158         _two_sided_lighting = getTwoSidedLighting();
00159     
00160     if(_changed & SortTransFieldMask)
00161         action->setSortTrans(getSortTrans());
00162 
00163     if(_changed & ZWriteTransFieldMask)
00164         action->setZWriteTrans(getZWriteTrans());
00165 
00166     if(_changed & LocalLightsFieldMask)
00167         action->setLocalLights(getLocalLights());
00168 
00169     if(_changed & SpecTexLightingFieldMask)
00170         _spec_tex_lighting = getSpecTexLighting();
00171 
00172     if(_changed & OcclusionCullingFieldMask)
00173         action->setOcclusionCulling(getOcclusionCulling());
00174 
00175     if(_changed & OcclusionCullingModeFieldMask)
00176         action->setOcclusionCullingMode(getOcclusionCullingMode());
00177 
00178     if(_changed & OcclusionCullingPixelsFieldMask)
00179         action->setOcclusionCullingPixels(getOcclusionCullingPixels());
00180 
00181     if(_changed & SmallFeatureCullingFieldMask)
00182         action->setSmallFeatureCulling(getSmallFeatureCulling());
00183 
00184     if(_changed & SmallFeaturePixelsFieldMask)
00185         action->setSmallFeaturePixels(getSmallFeaturePixels());
00186 
00187     if(_changed & SmallFeatureThresholdFieldMask)
00188         action->setSmallFeatureThreshold(getSmallFeatureThreshold());
00189         
00190     if(_changed & FrustumCullingFieldMask)
00191         action->setFrustumCulling(getFrustumCulling());
00192 
00193     // we update the gl stuff each frame.
00194     glPolygonMode(GL_FRONT_AND_BACK, _polygon_mode);
00195 
00196     if(_backface_culling)
00197     {
00198         glEnable(GL_CULL_FACE);
00199         glCullFace(GL_BACK);
00200     }
00201     else
00202     {
00203         glDisable(GL_CULL_FACE);
00204         glCullFace(GL_BACK);
00205     } 
00206 
00207     if(_two_sided_lighting)
00208         glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
00209     else
00210         glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_FALSE);
00211 
00212     if(_gl_version >= 1.2f)
00213     {
00214         if(_spec_tex_lighting)
00215             glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);
00216         else
00217             glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
00218     } 
00219 
00220     _last_changed = _changed;
00221     _changed = 0;
00222 }

void RenderOptions::initMethod ( void   )  [static, private]

Parameters:
\return 

Definition at line 99 of file OSGRenderOptions.cpp.

00100 {
00101 }

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

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

Reimplemented from osg::Attachment.

Definition at line 58 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_type.

Referenced by osg::RenderOptionsBase::create().

00059 {
00060     return _type; 
00061 } 

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

Reimplemented from osg::Attachment.

Definition at line 65 of file OSGRenderOptionsBase.inl.

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

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

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

Reimplemented from osg::Attachment.

Definition at line 327 of file OSGRenderOptionsBase.cpp.

References osg::RenderOptionsBase::_type.

00328 {
00329     return _type; 
00330 } 

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

Reimplemented from osg::Attachment.

Definition at line 332 of file OSGRenderOptionsBase.cpp.

References osg::RenderOptionsBase::_type.

00333 {
00334     return _type;
00335 } 

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

Reimplemented from osg::Attachment.

Definition at line 347 of file OSGRenderOptionsBase.cpp.

00348 { 
00349     return sizeof(RenderOptions); 
00350 }

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

Definition at line 101 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfStatistic.

00102 {
00103     return &_sfStatistic;
00104 }

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

Definition at line 108 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfPolygonMode.

00109 {
00110     return &_sfPolygonMode;
00111 }

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

Definition at line 115 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfTwoSidedLighting.

00116 {
00117     return &_sfTwoSidedLighting;
00118 }

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

Definition at line 122 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfSpecTexLighting.

00123 {
00124     return &_sfSpecTexLighting;
00125 }

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

Definition at line 129 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfSortTrans.

00130 {
00131     return &_sfSortTrans;
00132 }

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

Definition at line 136 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfZWriteTrans.

00137 {
00138     return &_sfZWriteTrans;
00139 }

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

Definition at line 143 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfLocalLights.

00144 {
00145     return &_sfLocalLights;
00146 }

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

Definition at line 150 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfCorrectTwoSidedLighting.

00151 {
00152     return &_sfCorrectTwoSidedLighting;
00153 }

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

Definition at line 157 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfOcclusionCulling.

00158 {
00159     return &_sfOcclusionCulling;
00160 }

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

Definition at line 164 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfOcclusionCullingMode.

00165 {
00166     return &_sfOcclusionCullingMode;
00167 }

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

Definition at line 171 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfOcclusionCullingPixels.

00172 {
00173     return &_sfOcclusionCullingPixels;
00174 }

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

Definition at line 178 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfAntialiasing.

00179 {
00180     return &_sfAntialiasing;
00181 }

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

Definition at line 185 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfAntialiasingDistance.

00186 {
00187     return &_sfAntialiasingDistance;
00188 }

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

Definition at line 192 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfAntialiasingScale.

00193 {
00194     return &_sfAntialiasingScale;
00195 }

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

Definition at line 199 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfAntialiasingTrigger.

00200 {
00201     return &_sfAntialiasingTrigger;
00202 }

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

Definition at line 206 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfFrustumCulling.

00207 {
00208     return &_sfFrustumCulling;
00209 }

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

Definition at line 213 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfBackfaceCulling.

00214 {
00215     return &_sfBackfaceCulling;
00216 }

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

Definition at line 220 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfSmallFeatureCulling.

00221 {
00222     return &_sfSmallFeatureCulling;
00223 }

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

Definition at line 227 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfSmallFeaturePixels.

00228 {
00229     return &_sfSmallFeaturePixels;
00230 }

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

Definition at line 234 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfSmallFeatureThreshold.

00235 {
00236     return &_sfSmallFeatureThreshold;
00237 }

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

Definition at line 241 of file OSGRenderOptionsBase.inl.

References osg::RenderOptionsBase::_sfFirstFrame.

00242 {
00243     return &_sfFirstFrame;
00244 }

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

Definition at line 249 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 256 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 270 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions(), and getWireframe().

00271 {
00272     return _sfPolygonMode.getValue();
00273 }

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

Definition at line 277 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 291 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

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

Definition at line 312 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

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

Definition at line 333 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

Definition at line 340 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 354 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

Definition at line 361 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 375 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

Definition at line 382 of file OSGRenderOptionsBase.inl.

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

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

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

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

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

Definition at line 417 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

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

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

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

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

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

Definition at line 480 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 487 of file OSGRenderOptionsBase.inl.

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

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

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

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

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

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

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

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

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

Definition at line 564 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

Definition at line 571 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 585 of file OSGRenderOptionsBase.inl.

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

Referenced by activateOptions().

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

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

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

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

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

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

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

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

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

Definition at line 669 of file OSGRenderOptionsBase.inl.

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

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

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

Definition at line 676 of file OSGRenderOptionsBase.inl.

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

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

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

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

Definition at line 284 of file OSGRenderOptionsBase.inl.

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

Referenced by setWireframe().

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Reimplemented from osg::Attachment.

Definition at line 449 of file OSGRenderOptionsBase.cpp.

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

Reimplemented from osg::Attachment.

Definition at line 562 of file OSGRenderOptionsBase.cpp.

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

Reimplemented from osg::Attachment.

Definition at line 675 of file OSGRenderOptionsBase.cpp.

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

Reimplemented from osg::Attachment.

Definition at line 72 of file OSGRenderOptionsBase.inl.

References osg::AttachmentPtr::dcast(), osg::RenderOptionsBase::getClassType(), osg::NullFC, and osg::RenderOptionsBase::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, inherited]

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, inherited]

Reimplemented from osg::Attachment.

Definition at line 338 of file OSGRenderOptionsBase.cpp.

References osg::FieldContainer::newPtr().

Referenced by osg::RenderOptionsBase::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, inherited]

Definition at line 789 of file OSGRenderOptionsBase.cpp.

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

Referenced by osg::RenderOptionsBase::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 Attachment::executeSyncImpl ( Attachment pOther,
const BitVector whichField 
) [protected, inherited]

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

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

Reimplemented from osg::Attachment.

Definition at line 354 of file OSGRenderOptionsBase.cpp.

References osg::RenderOptionsBase::executeSyncImpl().

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

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]

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 }

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(), osg::RenderOptionsBase::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(), osg::RenderOptionsBase::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::RenderOptionsBase.

Definition at line 83 of file OSGRenderOptions.h.

friend class RenderOptionsBase [friend]

Definition at line 84 of file OSGRenderOptions.h.


Member Data Documentation

Definition at line 73 of file OSGRenderOptions.h.

Referenced by activateOptions(), changed(), and getChanged().

Definition at line 74 of file OSGRenderOptions.h.

Referenced by activateOptions(), and getLastChanged().

Definition at line 75 of file OSGRenderOptions.h.

Referenced by activateOptions().

Definition at line 76 of file OSGRenderOptions.h.

Referenced by activateOptions().

Definition at line 77 of file OSGRenderOptions.h.

Referenced by activateOptions().

Definition at line 78 of file OSGRenderOptions.h.

Referenced by activateOptions().

Definition at line 79 of file OSGRenderOptions.h.

Referenced by activateOptions().

Initial value:

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

Reimplemented from osg::FieldContainer.

Definition at line 161 of file OSGRenderOptionsBase.h.

bool osg::RenderOptionsBase::_sfStatistic [protected, inherited]

GLenum osg::RenderOptionsBase::_sfPolygonMode [protected, inherited]

bool osg::RenderOptionsBase::_sfTwoSidedLighting [protected, inherited]

bool osg::RenderOptionsBase::_sfSpecTexLighting [protected, inherited]

bool osg::RenderOptionsBase::_sfSortTrans [protected, inherited]

bool osg::RenderOptionsBase::_sfZWriteTrans [protected, inherited]

bool osg::RenderOptionsBase::_sfLocalLights [protected, inherited]

bool osg::RenderOptionsBase::_sfOcclusionCulling [protected, inherited]

bool osg::RenderOptionsBase::_sfAntialiasing [protected, inherited]

bool osg::RenderOptionsBase::_sfFrustumCulling [protected, inherited]

bool osg::RenderOptionsBase::_sfBackfaceCulling [protected, inherited]

bool osg::RenderOptionsBase::_sfFirstFrame [protected, inherited]

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 12:04:08 2008 for OpenSG by  doxygen 1.5.5