#include <OSGPolygonBackgroundBase.h>
Inheritance diagram for osg::PolygonBackgroundBase:

Public Types | |
| typedef PolygonBackgroundPtr | Ptr |
| enum | { MaterialFieldId = Inherited::NextFieldId, TexCoordsFieldId = MaterialFieldId + 1, PositionsFieldId = TexCoordsFieldId + 1, NormalizedXFieldId = PositionsFieldId + 1, NormalizedYFieldId = NormalizedXFieldId + 1, NextFieldId = NormalizedYFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFMaterialPtr * | getSFMaterial (void) |
| Get the PolygonBackground::_sfMaterial field. | |
| MFVec3f * | getMFTexCoords (void) |
| Get the PolygonBackground::_mfTexCoords field. | |
| MFPnt2f * | getMFPositions (void) |
| Get the PolygonBackground::_mfPositions field. | |
| SFBool * | getSFNormalizedX (void) |
| Get the PolygonBackground::_sfNormalizedX field. | |
| SFBool * | getSFNormalizedY (void) |
| Get the PolygonBackground::_sfNormalizedY field. | |
| MaterialPtr & | getMaterial (void) |
| Get the value of the PolygonBackground::_sfMaterial field. | |
| const MaterialPtr & | getMaterial (void) const |
| Get the value of the PolygonBackground::_sfMaterial field. | |
| bool & | getNormalizedX (void) |
| Get the value of the PolygonBackground::_sfNormalizedX field. | |
| const bool & | getNormalizedX (void) const |
| Get the value of the PolygonBackground::_sfNormalizedX field. | |
| bool & | getNormalizedY (void) |
| Get the value of the PolygonBackground::_sfNormalizedY field. | |
| const bool & | getNormalizedY (void) const |
| Get the value of the PolygonBackground::_sfNormalizedY field. | |
| Vec3f & | getTexCoords (const UInt32 index) |
| Get the value of the index element the PolygonBackground::_mfTexCoords field. | |
| MFVec3f & | getTexCoords (void) |
| Get the PolygonBackground::_mfTexCoords field. | |
| const MFVec3f & | getTexCoords (void) const |
| Get the PolygonBackground::_mfTexCoords field. | |
| Pnt2f & | getPositions (const UInt32 index) |
| Get the value of the index element the PolygonBackground::_mfPositions field. | |
| MFPnt2f & | getPositions (void) |
| Get the PolygonBackground::_mfPositions field. | |
| const MFPnt2f & | getPositions (void) const |
| Get the PolygonBackground::_mfPositions field. | |
Field Set | |
| *void | setMaterial (const MaterialPtr &value) |
| Set the value of the PolygonBackground::_sfMaterial field. | |
| void | setNormalizedX (const bool &value) |
| Set the value of the PolygonBackground::_sfNormalizedX field. | |
| void | setNormalizedY (const bool &value) |
| Set the value of the PolygonBackground::_sfNormalizedY 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 |
access fields | |
| *virtual void | clear (DrawActionBase *action, Viewport *port)=0 |
transformation | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
dump | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Static Public Member Functions | |
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 PolygonBackgroundPtr | create (void) |
| create a new instance of the class | |
| static PolygonBackgroundPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Class Get | |
| *static const Char8 * | getClassname (void) |
Static Public Attributes | |
| static const osg::BitVector | MaterialFieldMask |
| static const osg::BitVector | TexCoordsFieldMask |
| static const osg::BitVector | PositionsFieldMask |
| static const osg::BitVector | NormalizedXFieldMask |
| static const osg::BitVector | NormalizedYFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | PolygonBackgroundBase (void) |
| PolygonBackgroundBase (const PolygonBackgroundBase &source) | |
Destructors | |
| *virtual | ~PolygonBackgroundBase (void) |
Sync | |
| *void | executeSyncImpl (PolygonBackgroundBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (BackgroundBase *pOther, const BitVector &whichField) |
Protected Attributes | |
Fields | |
| *SFMaterialPtr | _sfMaterial |
| MFVec3f | _mfTexCoords |
| MFPnt2f | _mfPositions |
| SFBool | _sfNormalizedX |
| SFBool | _sfNormalizedY |
Private Types | |
| typedef Background | Inherited |
Private Member Functions | |
| void | operator= (const PolygonBackgroundBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| PolygonBackground description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 85 of file OSGPolygonBackgroundBase.h.
|
|
Reimplemented from osg::Background. Reimplemented in osg::PolygonBackground. Definition at line 89 of file OSGPolygonBackgroundBase.h. |
|
|
Reimplemented from osg::BackgroundBase. Definition at line 94 of file OSGPolygonBackgroundBase.h. |
|
|
Reimplemented from osg::AttachmentContainer. Definition at line 96 of file OSGPolygonBackgroundBase.h. 00097 { 00098 MaterialFieldId = Inherited::NextFieldId, 00099 TexCoordsFieldId = MaterialFieldId + 1, 00100 PositionsFieldId = TexCoordsFieldId + 1, 00101 NormalizedXFieldId = PositionsFieldId + 1, 00102 NormalizedYFieldId = NormalizedXFieldId + 1, 00103 NextFieldId = NormalizedYFieldId + 1 00104 };
|
|
|
Definition at line 210 of file OSGPolygonBackgroundBase.cpp. 00210 : 00211 _sfMaterial (), 00212 _mfTexCoords (), 00213 _mfPositions (), 00214 _sfNormalizedX (bool(true)), 00215 _sfNormalizedY (bool(true)), 00216 Inherited() 00217 { 00218 }
|
|
|
Definition at line 224 of file OSGPolygonBackgroundBase.cpp. 00224 : 00225 _sfMaterial (source._sfMaterial ), 00226 _mfTexCoords (source._mfTexCoords ), 00227 _mfPositions (source._mfPositions ), 00228 _sfNormalizedX (source._sfNormalizedX ), 00229 _sfNormalizedY (source._sfNormalizedY ), 00230 Inherited (source) 00231 { 00232 }
|
|
|
Definition at line 236 of file OSGPolygonBackgroundBase.cpp.
|
|
|
Reimplemented from osg::BackgroundBase. Definition at line 58 of file OSGPolygonBackgroundBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::BackgroundBase. Definition at line 65 of file OSGPolygonBackgroundBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::BackgroundBase. Definition at line 150 of file OSGPolygonBackgroundBase.cpp. References _type. 00151 { 00152 return _type; 00153 }
|
|
|
Reimplemented from osg::BackgroundBase. Definition at line 155 of file OSGPolygonBackgroundBase.cpp. References _type. 00156 { 00157 return _type; 00158 }
|
|
|
Reimplemented from osg::BackgroundBase. Definition at line 170 of file OSGPolygonBackgroundBase.cpp. 00171 { 00172 return sizeof(PolygonBackground); 00173 }
|
|
|
Definition at line 101 of file OSGPolygonBackgroundBase.inl. References _sfMaterial. 00102 { 00103 return &_sfMaterial; 00104 }
|
|
|
Definition at line 108 of file OSGPolygonBackgroundBase.inl. References _mfTexCoords. 00109 { 00110 return &_mfTexCoords; 00111 }
|
|
|
Definition at line 115 of file OSGPolygonBackgroundBase.inl. References _mfPositions. 00116 { 00117 return &_mfPositions; 00118 }
|
|
|
Definition at line 122 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedX. 00123 { 00124 return &_sfNormalizedX; 00125 }
|
|
|
Definition at line 129 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedY. 00130 { 00131 return &_sfNormalizedY; 00132 }
|
|
|
Definition at line 137 of file OSGPolygonBackgroundBase.inl. References _sfMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PolygonBackground::clear(). 00138 { 00139 return _sfMaterial.getValue(); 00140 }
|
|
|
Definition at line 144 of file OSGPolygonBackgroundBase.inl. References _sfMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfMaterial.getValue(); 00147 }
|
|
|
Definition at line 158 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedX, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PolygonBackground::clear(). 00159 { 00160 return _sfNormalizedX.getValue(); 00161 }
|
|
|
Definition at line 165 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedX, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00166 { 00167 return _sfNormalizedX.getValue(); 00168 }
|
|
|
Definition at line 179 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedY, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PolygonBackground::clear(). 00180 { 00181 return _sfNormalizedY.getValue(); 00182 }
|
|
|
Definition at line 186 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedY, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00187 { 00188 return _sfNormalizedY.getValue(); 00189 }
|
|
|
Definition at line 201 of file OSGPolygonBackgroundBase.inl. References _mfTexCoords. 00202 { 00203 return _mfTexCoords[index]; 00204 }
|
|
|
Definition at line 208 of file OSGPolygonBackgroundBase.inl. References _mfTexCoords. Referenced by osg::PolygonBackground::clear(). 00209 { 00210 return _mfTexCoords; 00211 }
|
|
|
Definition at line 215 of file OSGPolygonBackgroundBase.inl. References _mfTexCoords. 00216 { 00217 return _mfTexCoords; 00218 }
|
|
|
Definition at line 222 of file OSGPolygonBackgroundBase.inl. References _mfPositions. 00223 { 00224 return _mfPositions[index]; 00225 }
|
|
|
Definition at line 229 of file OSGPolygonBackgroundBase.inl. References _mfPositions. Referenced by osg::PolygonBackground::clear(). 00230 { 00231 return _mfPositions; 00232 }
|
|
|
Definition at line 236 of file OSGPolygonBackgroundBase.inl. References _mfPositions. 00237 { 00238 return _mfPositions; 00239 }
|
|
|
Definition at line 151 of file OSGPolygonBackgroundBase.inl. References _sfMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00152 { 00153 _sfMaterial.setValue(value); 00154 }
|
|
|
Definition at line 172 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedX, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00173 { 00174 _sfNormalizedX.setValue(value); 00175 }
|
|
|
Definition at line 193 of file OSGPolygonBackgroundBase.inl. References _sfNormalizedY, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00194 { 00195 _sfNormalizedY.setValue(value); 00196 }
|
|
|
||||||||||||
|
||||||||||||
|
|
Definition at line 72 of file OSGPolygonBackgroundBase.inl. References osg::AttachmentContainerPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 PolygonBackgroundPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = PolygonBackgroundPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Definition at line 87 of file OSGPolygonBackgroundBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 PolygonBackgroundPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Implements osg::FieldContainer. Definition at line 161 of file OSGPolygonBackgroundBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00162 { 00163 PolygonBackgroundPtr returnValue; 00164 00165 newPtr(returnValue, dynamic_cast<const PolygonBackground *>(this)); 00166 00167 return returnValue; 00168 }
|
|
||||||||||||
|
||||||||||||
|
Reimplemented from osg::BackgroundBase. Definition at line 177 of file OSGPolygonBackgroundBase.cpp. References executeSyncImpl(). 00179 { 00180 this->executeSyncImpl((PolygonBackgroundBase *) &other, whichField); 00181 }
|
|
|
|
|
|
Reimplemented in osg::GradientBackground, and osg::SolidBackground. Definition at line 70 of file OSGBackground.h.
|
|
||||||||||||