#include <OSGDVRGeometryBase.h>
Inheritance diagram for osg::DVRGeometryBase:

Definition at line 80 of file OSGDVRGeometryBase.h.
|
|
Reimplemented from osg::Geometry. Reimplemented in osg::DVRGeometry. Definition at line 84 of file OSGDVRGeometryBase.h. |
|
|
Reimplemented from osg::GeometryBase. Definition at line 89 of file OSGDVRGeometryBase.h. |
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 105 of file OSGGeometryBase.h. 00106 { 00107 TypesFieldId = Inherited::NextFieldId, 00108 LengthsFieldId = TypesFieldId + 1, 00109 PositionsFieldId = LengthsFieldId + 1, 00110 NormalsFieldId = PositionsFieldId + 1, 00111 ColorsFieldId = NormalsFieldId + 1, 00112 SecondaryColorsFieldId = ColorsFieldId + 1, 00113 TexCoordsFieldId = SecondaryColorsFieldId + 1, 00114 TexCoords1FieldId = TexCoordsFieldId + 1, 00115 TexCoords2FieldId = TexCoords1FieldId + 1, 00116 TexCoords3FieldId = TexCoords2FieldId + 1, 00117 IndicesFieldId = TexCoords3FieldId + 1, 00118 IndexMappingFieldId = IndicesFieldId + 1, 00119 DlistCacheFieldId = IndexMappingFieldId + 1, 00120 GLIdFieldId = DlistCacheFieldId + 1, 00121 NextFieldId = GLIdFieldId + 1 00122 };
|
|
|
Definition at line 144 of file OSGDVRGeometryBase.cpp. 00144 : 00145 Inherited() 00146 { 00147 }
|
|
|
Definition at line 153 of file OSGDVRGeometryBase.cpp. 00153 : 00154 Inherited (source) 00155 { 00156 }
|
|
|
Definition at line 160 of file OSGDVRGeometryBase.cpp.
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 58 of file OSGDVRGeometryBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 65 of file OSGDVRGeometryBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 86 of file OSGDVRGeometryBase.cpp. References _type. 00087 { 00088 return _type; 00089 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 91 of file OSGDVRGeometryBase.cpp. References _type. 00092 { 00093 return _type; 00094 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 106 of file OSGDVRGeometryBase.cpp. 00107 { 00108 return sizeof(DVRGeometry); 00109 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 166 of file OSGDVRGeometryBase.cpp. References osg::GeometryBase::getBinSize(). 00167 { 00168 UInt32 returnValue = Inherited::getBinSize(whichField); 00169 00170 00171 return returnValue; 00172 }
|
|
||||||||||||
|
Reimplemented from osg::GeometryBase. Definition at line 174 of file OSGDVRGeometryBase.cpp. References osg::GeometryBase::copyToBin(). 00176 { 00177 Inherited::copyToBin(pMem, whichField); 00178 00179 00180 }
|
|
||||||||||||
|
Reimplemented from osg::GeometryBase. Definition at line 182 of file OSGDVRGeometryBase.cpp. References osg::GeometryBase::copyFromBin(). 00184 { 00185 Inherited::copyFromBin(pMem, whichField); 00186 00187 00188 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 72 of file OSGDVRGeometryBase.inl. References osg::AttachmentContainerPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 DVRGeometryPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = DVRGeometryPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 87 of file OSGDVRGeometryBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 DVRGeometryPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Reimplemented from osg::GeometryBase. Definition at line 97 of file OSGDVRGeometryBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00098 { 00099 DVRGeometryPtr returnValue; 00100 00101 newPtr(returnValue, dynamic_cast<const DVRGeometry *>(this)); 00102 00103 return returnValue; 00104 }
|
|
||||||||||||
|
Definition at line 191 of file OSGDVRGeometryBase.cpp. References osg::GeometryBase::executeSyncImpl(). Referenced by executeSync(). 00193 { 00194 00195 Inherited::executeSyncImpl(pOther, whichField); 00196 00197 00198 }
|
|
||||||||||||
|
Reimplemented from osg::GeometryBase. Definition at line 113 of file OSGDVRGeometryBase.cpp. References executeSyncImpl(). 00115 { 00116 this->executeSyncImpl((DVRGeometryBase *) &other, whichField); 00117 }
|
|
|
|
|
|
Definition at line 93 of file OSGGeometry.h.
|
|
|
A little helper function to map the OpenGL primitive type to a name. Definition at line 112 of file OSGGeometry.cpp. 00113 { 00114 switch(type) 00115 { 00116 case GL_POINTS: return "Points"; 00117 case GL_LINES: return "Lines"; 00118 case GL_LINE_LOOP: return "LineLoop"; 00119 case GL_LINE_STRIP: return "LineStrip"; 00120 case GL_TRIANGLES: return "Triangles"; 00121 case GL_TRIANGLE_STRIP: return "TriangleStrip"; 00122 case GL_TRIANGLE_FAN: return "TriangleFan"; 00123 case GL_QUADS: return "Quads"; 00124 case GL_QUAD_STRIP: return "QuadStrip"; 00125 case GL_POLYGON: return "Polygon"; 00126 } 00127 00128 return "Unknown Primitive"; 00129 }
|
|
|
Calc the indices into the index field for the given attributes. This is the index of the given attribute's index in a multi-index block. Returns -1 for non- or single-indexed geometries, or if the given attribute is not used. Definition at line 578 of file OSGGeometry.cpp. References osg::GeometryBase::getIndexMapping(), and osg::MField< FieldTypeT, fieldNameSpace >::size(). Referenced by osg::GeoPumpFactory::masterGeoPump(), osg::Geometry::merge0(), osg::Geometry::merge3(), osg::Geometry::merge4(), osg::Geometry::merge5(), and osg::Geometry::merge6(). 00579 { 00580 UInt16 nmappings = getIndexMapping().size(); 00581 Int16 i; 00582 00583 for(i = nmappings - 1; i >= 0; i--) 00584 { 00585 if(getIndexMapping()[i] & attrib ) 00586 break; 00587 } 00588 00589 return i; 00590 }
|
|
||||||||||||
|
React to field changes, take care of incrementing/decrementing the reference count of the changed properties. Reimplemented from osg::MaterialDrawable. Reimplemented in osg::DVRGeometry, and osg::Surface. Definition at line 809 of file OSGGeometry.cpp. References osg::NodeCore::_parents, osg::GeometryBase::_sfColors, osg::GeometryBase::_sfIndices, osg::GeometryBase::_sfLengths, osg::Mat |