#include <OSGPointChunkBase.h>
Inheritance diagram for osg::PointChunkBase:

Public Types | |
| typedef PointChunkPtr | Ptr |
| enum | { SizeFieldId = Inherited::NextFieldId, SmoothFieldId = SizeFieldId + 1, MinSizeFieldId = SmoothFieldId + 1, MaxSizeFieldId = MinSizeFieldId + 1, ConstantAttenuationFieldId = MaxSizeFieldId + 1, LinearAttenuationFieldId = ConstantAttenuationFieldId + 1, QuadraticAttenuationFieldId = LinearAttenuationFieldId + 1, FadeThresholdFieldId = QuadraticAttenuationFieldId + 1, SpriteFieldId = FadeThresholdFieldId + 1, RModeFieldId = SpriteFieldId + 1, NextFieldId = RModeFieldId + 1 } |
Public Member Functions | |
Chunk Class Access | |
| *UInt32 | getClassId (void) const |
| virtual const StateChunkClass * | getClass (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
State | |
| *virtual void | activate (DrawActionBase *action, UInt32 index=0) |
| virtual void | changeFrom (DrawActionBase *action, StateChunk *old, UInt32 index=0) |
| virtual void | deactivate (DrawActionBase *action, UInt32 index=0) |
| virtual bool | isTransparent (void) const |
Comparison | |
| *virtual Real32 | switchCost (StateChunk *chunk) |
| virtual bool | operator< (const StateChunk &other) const |
| virtual bool | operator== (const StateChunk &other) const |
| virtual bool | operator!= (const StateChunk &other) const |
Parents | |
| *MFFieldContainerPtr & | getParents (void) |
| const MFFieldContainerPtr & | getParents (void) const |
| MFFieldContainerPtr * | getMFParents (void) |
| void | addParent (FieldContainerPtr parent) |
| void | subParent (FieldContainerPtr parent) |
| Int32 | findParent (FieldContainerPtr parent) |
Parents | |
| *SFBool & | getInternal (void) |
| const SFBool & | getInternal (void) const |
| SFBool * | getSFInternal (void) |
| void | setInternal (bool bVal) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFReal32 * | getSFSize (void) |
| Get the PointChunk::_sfSize field. | |
| SFBool * | getSFSmooth (void) |
| Get the PointChunk::_sfSmooth field. | |
| SFReal32 * | getSFMinSize (void) |
| Get the PointChunk::_sfMinSize field. | |
| SFReal32 * | getSFMaxSize (void) |
| Get the PointChunk::_sfMaxSize field. | |
| SFReal32 * | getSFConstantAttenuation (void) |
| Get the PointChunk::_sfConstantAttenuation field. | |
| SFReal32 * | getSFLinearAttenuation (void) |
| Get the PointChunk::_sfLinearAttenuation field. | |
| SFReal32 * | getSFQuadraticAttenuation (void) |
| Get the PointChunk::_sfQuadraticAttenuation field. | |
| SFReal32 * | getSFFadeThreshold (void) |
| Get the PointChunk::_sfFadeThreshold field. | |
| SFBool * | getSFSprite (void) |
| Get the PointChunk::_sfSprite field. | |
| SFGLenum * | getSFRMode (void) |
| Get the PointChunk::_sfRMode field. | |
| Real32 & | getSize (void) |
| Get the value of the PointChunk::_sfSize field. | |
| const Real32 & | getSize (void) const |
| Get the value of the PointChunk::_sfSize field. | |
| bool & | getSmooth (void) |
| Get the value of the PointChunk::_sfSmooth field. | |
| const bool & | getSmooth (void) const |
| Get the value of the PointChunk::_sfSmooth field. | |
| Real32 & | getMinSize (void) |
| Get the value of the PointChunk::_sfMinSize field. | |
| const Real32 & | getMinSize (void) const |
| Get the value of the PointChunk::_sfMinSize field. | |
| Real32 & | getMaxSize (void) |
| Get the value of the PointChunk::_sfMaxSize field. | |
| const Real32 & | getMaxSize (void) const |
| Get the value of the PointChunk::_sfMaxSize field. | |
| Real32 & | getConstantAttenuation (void) |
| Get the value of the PointChunk::_sfConstantAttenuation field. | |
| const Real32 & | getConstantAttenuation (void) const |
| Get the value of the PointChunk::_sfConstantAttenuation field. | |
| Real32 & | getLinearAttenuation (void) |
| Get the value of the PointChunk::_sfLinearAttenuation field. | |
| const Real32 & | getLinearAttenuation (void) const |
| Get the value of the PointChunk::_sfLinearAttenuation field. | |
| Real32 & | getQuadraticAttenuation (void) |
| Get the value of the PointChunk::_sfQuadraticAttenuation field. | |
| const Real32 & | getQuadraticAttenuation (void) const |
| Get the value of the PointChunk::_sfQuadraticAttenuation field. | |
| Real32 & | getFadeThreshold (void) |
| Get the value of the PointChunk::_sfFadeThreshold field. | |
| const Real32 & | getFadeThreshold (void) const |
| Get the value of the PointChunk::_sfFadeThreshold field. | |
| bool & | getSprite (void) |
| Get the value of the PointChunk::_sfSprite field. | |
| const bool & | getSprite (void) const |
| Get the value of the PointChunk::_sfSprite field. | |
| GLenum & | getRMode (void) |
| Get the value of the PointChunk::_sfRMode field. | |
| const GLenum & | getRMode (void) const |
| Get the value of the PointChunk::_sfRMode field. | |
Field Set | |
| *void | setSize (const Real32 &value) |
| Set the value of the PointChunk::_sfSize field. | |
| void | setSmooth (const bool &value) |
| Set the value of the PointChunk::_sfSmooth field. | |
| void | setMinSize (const Real32 &value) |
| Set the value of the PointChunk::_sfMinSize field. | |
| void | setMaxSize (const Real32 &value) |
| Set the value of the PointChunk::_sfMaxSize field. | |
| void | setConstantAttenuation (const Real32 &value) |
| Set the value of the PointChunk::_sfConstantAttenuation field. | |
| void | setLinearAttenuation (const Real32 &value) |
| Set the value of the PointChunk::_sfLinearAttenuation field. | |
| void | setQuadraticAttenuation (const Real32 &value) |
| Set the value of the PointChunk::_sfQuadraticAttenuation field. | |
| void | setFadeThreshold (const Real32 &value) |
| Set the value of the PointChunk::_sfFadeThreshold field. | |
| void | setSprite (const bool &value) |
| Set the value of the PointChunk::_sfSprite field. | |
| void | setRMode (const GLenum &value) |
| Set the value of the PointChunk::_sfRMode 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 |
Chunk Class Access | |
| *UInt32 | getClassId (void) const |
| virtual const StateChunkClass * | getClass (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
State | |
| *virtual void | activate (DrawActionBase *action, UInt32 index=0) |
| virtual void | changeFrom (DrawActionBase *action, StateChunk *old, UInt32 index=0) |
| virtual void | deactivate (DrawActionBase *action, UInt32 index=0) |
| virtual bool | isTransparent (void) const |
Comparison | |
| *virtual Real32 | switchCost (StateChunk *chunk) |
| virtual bool | operator< (const StateChunk &other) const |
| virtual bool | operator== (const StateChunk &other) const |
| virtual bool | operator!= (const StateChunk &other) const |
Parents | |
| *MFFieldContainerPtr & | getParents (void) |
| const MFFieldContainerPtr & | getParents (void) const |
| MFFieldContainerPtr * | getMFParents (void) |
| void | addParent (FieldContainerPtr parent) |
| void | subParent (FieldContainerPtr parent) |
| Int32 | findParent (FieldContainerPtr parent) |
Parents | |
| *SFBool & | getInternal (void) |
| const SFBool & | getInternal (void) const |
| SFBool * | getSFInternal (void) |
| void | setInternal (bool bVal) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Static Public Member Functions | |
Static Chunk Class Access | |
| *static UInt32 | getStaticClassId (void) |
| static const StateChunkClass * | getStaticClass (void) |
Get Class Type Information | |
| static UInt16 | getClassGroupId (void) |
Class Get | |
| *static FieldContainerType & | getClassType (void) |
| access the type of the class | |
| static UInt32 | getClassTypeId (void) |
| access the numerical type of the class | |
Construction | |
| *static PointChunkPtr | create (void) |
| create a new instance of the class | |
| static PointChunkPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Chunk Class Access | |
| *static UInt32 | getStaticClassId (void) |
| static const StateChunkClass * | getStaticClass (void) |
Get Class Type Information | |
| static UInt16 | getClassGroupId (void) |
Static Public Attributes | |
| static const osg::BitVector | SizeFieldMask |
| static const osg::BitVector | SmoothFieldMask |
| static const osg::BitVector | MinSizeFieldMask |
| static const osg::BitVector | MaxSizeFieldMask |
| static const osg::BitVector | ConstantAttenuationFieldMask |
| static const osg::BitVector | LinearAttenuationFieldMask |
| static const osg::BitVector | QuadraticAttenuationFieldMask |
| static const osg::BitVector | FadeThresholdFieldMask |
| static const osg::BitVector | SpriteFieldMask |
| static const osg::BitVector | RModeFieldMask |
| 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 |
CoredNodePtr helper | |
| static const bool | isNodeCore = false |
Protected Member Functions | |
Sync | |
| *void | executeSyncImpl (StateChunkBase *pOther, 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) |
Constructors | |
| * | PointChunkBase (void) |
| PointChunkBase (const PointChunkBase &source) | |
Destructors | |
| *virtual | ~PointChunkBase (void) |
Sync | |
| *void | executeSyncImpl (PointChunkBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (StateChunkBase *pOther, 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 | |
| static void | initMethod (void) |
Create Fieldcontainer | |
| template<class ObjectPtrT> | |
| *static void | newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP) |
| template<class ObjectPtrT> | |
| static void | newPtr (ObjectPtrT &result) |
Create Fieldcontainer | |
| template<class ObjectPtrT> | |
| *static void | newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP) |
| template<class ObjectPtrT> | |
| static void | newPtr (ObjectPtrT &result) |
Protected Attributes | |
Fields | |
| *SFBool | _sfInternal |
| MFFieldContainerPtr | _parents |
Member | |
| *UInt32 | _shares |
Fields | |
| *SFReal32 | _sfSize |
| SFBool | _sfSmooth |
| SFReal32 | _sfMinSize |
| SFReal32 | _sfMaxSize |
| SFReal32 | _sfConstantAttenuation |
| SFReal32 | _sfLinearAttenuation |
| SFReal32 | _sfQuadraticAttenuation |
| SFReal32 | _sfFadeThreshold |
| SFBool | _sfSprite |
| SFGLenum | _sfRMode |
Fields | |
| *SFBool | _sfInternal |
| MFFieldContainerPtr | _parents |
Member | |
| *UInt32 | _shares |
Private Types | |
| typedef StateChunk | Inherited |
Private Member Functions | |
| void | operator= (const PointChunkBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| PointChunk description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 90 of file OSGPointChunkBase.h.
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::PointChunk. Definition at line 94 of file OSGPointChunkBase.h. |
|
|
Reimplemented from osg::StateChunkBase. Definition at line 99 of file OSGPointChunkBase.h. |
|
|
Reimplemented from osg::Attachment. Definition at line 101 of file OSGPointChunkBase.h. 00102 { 00103 SizeFieldId = Inherited::NextFieldId, 00104 SmoothFieldId = SizeFieldId + 1, 00105 MinSizeFieldId = SmoothFieldId + 1, 00106 MaxSizeFieldId = MinSizeFieldId + 1, 00107 ConstantAttenuationFieldId = MaxSizeFieldId + 1, 00108 LinearAttenuationFieldId = ConstantAttenuationFieldId + 1, 00109 QuadraticAttenuationFieldId = LinearAttenuationFieldId + 1, 00110 FadeThresholdFieldId = QuadraticAttenuationFieldId + 1, 00111 SpriteFieldId = FadeThresholdFieldId + 1, 00112 RModeFieldId = SpriteFieldId + 1, 00113 NextFieldId = RModeFieldId + 1 00114 };
|
|
|
Definition at line 266 of file OSGPointChunkBase.cpp. 00266 : 00267 _sfSize (Real32(1)), 00268 _sfSmooth (bool(GL_FALSE)), 00269 _sfMinSize (Real32(-1.f)), 00270 _sfMaxSize (Real32(-1.f)), 00271 _sfConstantAttenuation (Real32(1)), 00272 _sfLinearAttenuation (Real32(0)), 00273 _sfQuadraticAttenuation (Real32(0)), 00274 _sfFadeThreshold (Real32(0.f)), 00275 _sfSprite (bool(GL_FALSE)), 00276 _sfRMode (GLenum(GL_ZERO)), 00277 Inherited() 00278 { 00279 }
|
|
|
Definition at line 285 of file OSGPointChunkBase.cpp. 00285 : 00286 _sfSize (source._sfSize ), 00287 _sfSmooth (source._sfSmooth ), 00288 _sfMinSize (source._sfMinSize ), 00289 _sfMaxSize (source._sfMaxSize ), 00290 _sfConstantAttenuation (source._sfConstantAttenuation ), 00291 _sfLinearAttenuation (source._sfLinearAttenuation ), 00292 _sfQuadraticAttenuation (source._sfQuadraticAttenuation ), 00293 _sfFadeThreshold (source._sfFadeThreshold ), 00294 _sfSprite (source._sfSprite ), 00295 _sfRMode (source._sfRMode ), 00296 Inherited (source) 00297 { 00298 }
|
|
|
Definition at line 302 of file OSGPointChunkBase.cpp.
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 58 of file OSGPointChunkBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 65 of file OSGPointChunkBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 208 of file OSGPointChunkBase.cpp. References _type. 00209 { 00210 return _type; 00211 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 213 of file OSGPointChunkBase.cpp. References _type. 00214 { 00215 return _type; 00216 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 228 of file OSGPointChunkBase.cpp. 00229 { 00230 return sizeof(PointChunk); 00231 }
|
|
|
Definition at line 101 of file OSGPointChunkBase.inl. References _sfSize. 00102 { 00103 return &_sfSize; 00104 }
|
|
|
Definition at line 108 of file OSGPointChunkBase.inl. References _sfSmooth. 00109 { 00110 return &_sfSmooth; 00111 }
|
|
|
Definition at line 115 of file OSGPointChunkBase.inl. References _sfMinSize. 00116 { 00117 return &_sfMinSize; 00118 }
|
|
|
Definition at line 122 of file OSGPointChunkBase.inl. References _sfMaxSize. 00123 { 00124 return &_sfMaxSize; 00125 }
|
|
|
Definition at line 129 of file OSGPointChunkBase.inl. References _sfConstantAttenuation. 00130 { 00131 return &_sfConstantAttenuation; 00132 }
|
|
|
Definition at line 136 of file OSGPointChunkBase.inl. References _sfLinearAttenuation. 00137 { 00138 return &_sfLinearAttenuation; 00139 }
|
|
|
Definition at line 143 of file OSGPointChunkBase.inl. References _sfQuadraticAttenuation. 00144 { 00145 return &_sfQuadraticAttenuation; 00146 }
|
|
|
Definition at line 150 of file OSGPointChunkBase.inl. References _sfFadeThreshold. 00151 { 00152 return &_sfFadeThreshold; 00153 }
|
|
|
Definition at line 157 of file OSGPointChunkBase.inl. References _sfSprite. 00158 { 00159 return &_sfSprite; 00160 }
|
|
|
Definition at line 164 of file OSGPointChunkBase.inl. References _sfRMode. 00165 { 00166 return &_sfRMode; 00167 }
|
|
|
Definition at line 172 of file OSGPointChunkBase.inl. References _sfSize, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PointChunk::activate(), osg::PointChunk::changeFrom(), osg::PointChunk::deactivate(), and osg::PointChunk::operator==(). 00173 { 00174 return _sfSize.getValue(); 00175 }
|
|
|
Definition at line 179 of file OSGPointChunkBase.inl. References _sfSize, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00180 { 00181 return _sfSize.getValue(); 00182 }
|
|
|
Definition at line 193 of file OSGPointChunkBase.inl. References _sfSmooth, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PointChunk::activate(), osg::PointChunk::changeFrom(), osg::PointChunk::deactivate(), and osg::PointChunk::operator==(). 00194 { 00195 return _sfSmooth.getValue(); 00196 }
|
|
|
Definition at line 200 of file OSGPointChunkBase.inl. References _sfSmooth, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00201 { 00202 return _sfSmooth.getValue(); 00203 }
|
|
|
Definition at line 214 of file OSGPointChunkBase.inl. References _sfMinSize, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PointChunk::activate(), osg::PointChunk::changeFrom(), osg::PointChunk::deactivate(), osg::PointChunk::isTransparent(), and osg::PointChunk::operator==(). 00215 { 00216 return _sfMinSize.getValue(); 00217 }
|
|
|
Definition at line 221 of file OSGPointChunkBase.inl. References _sfMinSize, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00222 { 00223 return _ |