#include <OSGBillboardBase.h>
Inheritance diagram for osg::BillboardBase:

Action Callbacks | |
| *Action::ResultE | drawEnter (Action *action) |
| Action::ResultE | drawLeave (Action *action) |
| Action::ResultE | renderEnter (Action *action) |
| Action::ResultE | renderLeave (Action *action) |
| Action::ResultE | intersect (Action *action) |
Public Types | |
| typedef BillboardPtr | Ptr |
| enum | { AxisOfRotationFieldId = Inherited::NextFieldId, FocusOnCameraFieldId = AxisOfRotationFieldId + 1, AlignToScreenFieldId = FocusOnCameraFieldId + 1, MinAngleFieldId = AlignToScreenFieldId + 1, MaxAngleFieldId = MinAngleFieldId + 1, NextFieldId = MaxAngleFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFVec3f * | getSFAxisOfRotation (void) |
| Get the Billboard::_sfAxisOfRotation field. | |
| SFBool * | getSFFocusOnCamera (void) |
| Get the Billboard::_sfFocusOnCamera field. | |
| SFBool * | getSFAlignToScreen (void) |
| Get the Billboard::_sfAlignToScreen field. | |
| SFReal32 * | getSFMinAngle (void) |
| Get the Billboard::_sfMinAngle field. | |
| SFReal32 * | getSFMaxAngle (void) |
| Get the Billboard::_sfMaxAngle field. | |
| Vec3f & | getAxisOfRotation (void) |
| Get the value of the Billboard::_sfAxisOfRotation field. | |
| const Vec3f & | getAxisOfRotation (void) const |
| Get the value of the Billboard::_sfAxisOfRotation field. | |
| bool & | getFocusOnCamera (void) |
| Get the value of the Billboard::_sfFocusOnCamera field. | |
| const bool & | getFocusOnCamera (void) const |
| Get the value of the Billboard::_sfFocusOnCamera field. | |
| bool & | getAlignToScreen (void) |
| Get the value of the Billboard::_sfAlignToScreen field. | |
| const bool & | getAlignToScreen (void) const |
| Get the value of the Billboard::_sfAlignToScreen field. | |
| Real32 & | getMinAngle (void) |
| Get the value of the Billboard::_sfMinAngle field. | |
| const Real32 & | getMinAngle (void) const |
| Get the value of the Billboard::_sfMinAngle field. | |
| Real32 & | getMaxAngle (void) |
| Get the value of the Billboard::_sfMaxAngle field. | |
| const Real32 & | getMaxAngle (void) const |
| Get the value of the Billboard::_sfMaxAngle field. | |
Field Set | |
| *void | setAxisOfRotation (const Vec3f &value) |
| Set the value of the Billboard::_sfAxisOfRotation field. | |
| void | setFocusOnCamera (const bool &value) |
| Set the value of the Billboard::_sfFocusOnCamera field. | |
| void | setAlignToScreen (const bool &value) |
| Set the value of the Billboard::_sfAlignToScreen field. | |
| void | setMinAngle (const Real32 &value) |
| Set the value of the Billboard::_sfMinAngle field. | |
| void | setMaxAngle (const Real32 &value) |
| Set the value of the Billboard::_sfMaxAngle 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 |
Sync | |
| *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 BillboardPtr | create (void) |
| create a new instance of the class | |
| static BillboardPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| static const osg::BitVector | AxisOfRotationFieldMask |
| static const osg::BitVector | FocusOnCameraFieldMask |
| static const osg::BitVector | AlignToScreenFieldMask |
| static const osg::BitVector | MinAngleFieldMask |
| static const osg::BitVector | MaxAngleFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const BitVector | ParentsFieldMask = (1 << NodeCore::ParentsFieldId ) |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | BillboardBase (void) |
| BillboardBase (const BillboardBase &source) | |
Destructors | |
| *virtual | ~BillboardBase (void) |
Sync | |
| *void | executeSyncImpl (BillboardBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Transformation | |
| *virtual void | accumulateMatrix (Matrix &result) |
Volume | |
| *virtual void | adjustVolume (Volume &volume) |
Protected Attributes | |
Fields | |
| *SFVec3f | _sfAxisOfRotation |
| SFBool | _sfFocusOnCamera |
| SFBool | _sfAlignToScreen |
| SFReal32 | _sfMinAngle |
| SFReal32 | _sfMaxAngle |
Private Types | |
| typedef Group | Inherited |
Private Member Functions | |
| void | operator= (const BillboardBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| Billboard description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 85 of file OSGBillboardBase.h.
|
|
Reimplemented from osg::Group. Reimplemented in osg::Billboard. Definition at line 89 of file OSGBillboardBase.h. |
|
|
Reimplemented from osg::GroupBase. Definition at line 94 of file OSGBillboardBase.h. |
|
|
Reimplemented from osg::NodeCore. Definition at line 96 of file OSGBillboardBase.h. 00097 { 00098 AxisOfRotationFieldId = Inherited::NextFieldId, 00099 FocusOnCameraFieldId = AxisOfRotationFieldId + 1, 00100 AlignToScreenFieldId = FocusOnCameraFieldId + 1, 00101 MinAngleFieldId = AlignToScreenFieldId + 1, 00102 MaxAngleFieldId = MinAngleFieldId + 1, 00103 NextFieldId = MaxAngleFieldId + 1 00104 };
|
|
|
Definition at line 208 of file OSGBillboardBase.cpp. 00208 : 00209 _sfAxisOfRotation (Vec3f(0.f, 1.f, 0.f)), 00210 _sfFocusOnCamera (bool(true)), 00211 _sfAlignToScreen (bool(false)), 00212 _sfMinAngle (Real32(0.0f)), 00213 _sfMaxAngle (Real32(-1.0f)), 00214 Inherited() 00215 { 00216 }
|
|
|
Definition at line 222 of file OSGBillboardBase.cpp. 00222 : 00223 _sfAxisOfRotation (source._sfAxisOfRotation ), 00224 _sfFocusOnCamera (source._sfFocusOnCamera ), 00225 _sfAlignToScreen (source._sfAlignToScreen ), 00226 _sfMinAngle (source._sfMinAngle ), 00227 _sfMaxAngle (source._sfMaxAngle ), 00228 Inherited (source) 00229 { 00230 }
|
|
|
Definition at line 234 of file OSGBillboardBase.cpp.
|
|
|
Reimplemented from osg::GroupBase. Definition at line 58 of file OSGBillboardBase.inl. References _type. Referenced by create(), osg::Billboard::initMethod(), osg::SplitGraphOp::isGroup(), and osg::MergeGraphOp::isGroup(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::GroupBase. Definition at line 65 of file OSGBillboardBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::GroupBase. Definition at line 150 of file OSGBillboardBase.cpp. References _type. 00151 { 00152 return _type; 00153 }
|
|
|
Reimplemented from osg::GroupBase. Definition at line 155 of file OSGBillboardBase.cpp. References _type. 00156 { 00157 return _type; 00158 }
|
|
|
Reimplemented from osg::GroupBase. Definition at line 170 of file OSGBillboardBase.cpp. 00171 { 00172 return sizeof(Billboard); 00173 }
|
|
|
Definition at line 101 of file OSGBillboardBase.inl. References _sfAxisOfRotation. 00102 { 00103 return &_sfAxisOfRotation; 00104 }
|
|
|
Definition at line 108 of file OSGBillboardBase.inl. References _sfFocusOnCamera. 00109 { 00110 return &_sfFocusOnCamera; 00111 }
|
|
|
Definition at line 115 of file OSGBillboardBase.inl. References _sfAlignToScreen. 00116 { 00117 return &_sfAlignToScreen; 00118 }
|
|
|
Definition at line 122 of file OSGBillboardBase.inl. References _sfMinAngle. 00123 { 00124 return &_sfMinAngle; 00125 }
|
|
|
Definition at line 129 of file OSGBillboardBase.inl. References _sfMaxAngle. 00130 { 00131 return &_sfMaxAngle; 00132 }
|
|
|
Definition at line 137 of file OSGBillboardBase.inl. References _sfAxisOfRotation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Billboard::calcMatrix(). 00138 { 00139 return _sfAxisOfRotation.getValue(); 00140 }
|
|
|
Definition at line 144 of file OSGBillboardBase.inl. References _sfAxisOfRotation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfAxisOfRotation.getValue(); 00147 }
|
|
|
Definition at line 158 of file OSGBillboardBase.inl. References _sfFocusOnCamera, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00159 { 00160 return _sfFocusOnCamera.getValue(); 00161 }
|
|
|
Definition at line 165 of file OSGBillboardBase.inl. References _sfFocusOnCamera, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00166 { 00167 return _sfFocusOnCamera.getValue(); 00168 }
|
|
|
Definition at line 179 of file OSGBillboardBase.inl. References _sfAlignToScreen, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00180 { 00181 return _sfAlignToScreen.getValue(); 00182 }
|
|
|
Definition at line 186 of file OSGBillboardBase.inl. References _sfAlignToScreen, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00187 { 00188 return _sfAlignToScreen.getValue(); 00189 }
|
|
|
Definition at line 200 of file OSGBillboardBase.inl. References _sfMinAngle, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Billboard::calcMatrix(). 00201 { 00202 return _sfMinAngle.getValue(); 00203 }
|
|
|
Definition at line 207 of file OSGBillboardBase.inl. References _sfMinAngle, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00208 { 00209 return _sfMinAngle.getValue(); 00210 }
|
|
|
Definition at line 221 of file OSGBillboardBase.inl. References _sfMaxAngle, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Billboard::calcMatrix(). 00222 { 00223 return _sfMaxAngle.getValue(); 00224 }
|
|
|
Definition at line 228 of file OSGBillboardBase.inl. References _sfMaxAngle, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00229 { 00230 return _sfMaxAngle.getValue(); 00231 }
|
|
|
Definition at line 151 of file OSGBillboardBase.inl. References _sfAxisOfRotation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00152 { 00153 _sfAxisOfRotation.setValue(value); 00154 }
|
|
|
Definition at line 172 of file OSGBillboardBase.inl. References _sfFocusOnCamera, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00173 { 00174 _sfFocusOnCamera.setValue(value); 00175 }
|
|
|
Definition at line 193 of file OSGBillboardBase.inl. References _sfAlignToScreen, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00194 { 00195 _sfAlignToScreen.setValue(value); 00196 }
|
|
|
Definition at line 214 of file OSGBillboardBase.inl. References _sfMinAngle, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00215 { 00216 _sfMinAngle.setValue(value); 00217 }
|
|
|
Definition at line 235 of file OSGBillboardBase.inl. References _sfMaxAngle, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00236 { 00237 _sfMaxAngle.setValue(value); 00238 }
|
|
|
||||||||||||
|
||||||||||||
|
|
Reimplemented from osg::GroupBase. Definition at line 72 of file OSGBillboardBase.inl. References osg::AttachmentContainerPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 BillboardPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = BillboardPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Reimplemented from osg::GroupBase. Definition at line 87 of file OSGBillboardBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 BillboardPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Reimplemented from osg::GroupBase. Definition at line 161 of file OSGBillboardBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00162 { 00163 BillboardPtr returnValue; 00164 00165 newPtr(returnValue, dynamic_cast<const Billboard *>(this)); 00166 00167 return returnValue; 00168 }
|
|
||||||||||||
|
||||||||||||
|
Reimplemented from osg::GroupBase. Definition at line 177 of file OSGBillboardBase.cpp. References executeSyncImpl(). 00179 { 00180 this->executeSyncImpl((BillboardBase *) &other, whichField); 00181 }
|
|
|
|
|
||||||||||||
|
Reimplemented from osg::AttachmentContainer. Reimplemented in osg::Billboard, osg::ComponentTransform, osg::DistanceLOD, osg::InverseTransform, osg::MaterialGroup, osg::MaterialPool, osg::ProxyGroup, osg::Switch, and osg::Transform. Definition at line 63 of file OSGGroup.cpp. References osg::AttachmentContainer::changed(). Referenced by osg::Transform::changed(), osg::Switch::changed(), osg::ProxyGroup::changed(), osg::MaterialPool::changed(), osg::MaterialGroup::changed(), osg::InverseTransform::changed(), osg::DistanceLOD::changed(), and osg::Billboard::changed(). 00064 { 00065 Inherited::changed(whichField, origin); 00066 }
|
|
||||||||||||
|
Reimplemented from osg::NodeCore. Reimplemented in osg::Billboard, osg::ComponentTransform, osg::DistanceLOD, osg::InverseTransform, osg::MaterialGroup, osg::MaterialPool, osg::ProxyGroup, osg::Switch, and osg::Transform. Definition at line 71 of file OSGGroup.cpp. References osg::NodeCore::dump(). Referenced by osg::Transform::dump(), osg::MaterialPool::dump(), osg::MaterialGroup::dump(), osg::InverseTransform::dump(), and osg::Billboard::dump(). 00073 { 00074 Inherited::dump(uiIndent, bvFlags); 00075 }
|
|
|
Reimplemented in osg::Billboard, osg::InverseTransform, osg::MaterialGroup, and osg::Transform. Definition at line 100 of f |