Changeset 459 for trunk/Source/System/NodeCores/Drawables/Geometry/Util/OSGGeoStatsAttachmentBase.cpp
- Timestamp:
- 12/29/06 10:28:00 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/NodeCores/Drawables/Geometry/Util/OSGGeoStatsAttachmentBase.cpp
r436 r459 75 75 The base class for geometry statistics. 76 76 77 The GeoStatsAttachment keeps track of some core Geometry 78 Characteristics like the number of vertices used, the number of points, 79 lines or triangles created and some information about memory 80 consumption. 81 82 It is designed as an attachment so that it can be kept inside the 83 graph. It can also be used to keep aggregated information about 84 subtrees, by adding up the contributions of the underlying nodes. It 85 can invalidate itself by using changed callbacks, so that no manual 86 bookkeeping is necessary. 77 The GeoStatsAttachment keeps track of some core Geometry Characteristics like 78 the number of vertices used, the number of points, lines or triangles created 79 and some information about memory consumption. 80 81 It is designed as an attachment so that it can be kept inside the graph. It 82 can also be used to keep aggregated information about subtrees, by adding up 83 the contributions of the underlying nodes. It can invalidate itself by using 84 changed callbacks, so that no manual bookkeeping is necessary. 87 85 88 86 \warning To use the automatic update you have to use the … … 90 88 methods! Otherwise the necessary callbacks are not set! 91 89 92 \warning Before accessing the data osg::GeoStatsAttachment::validate() 93 needsto be called to calculate and aggregate the results.90 \warning Before accessing the data osg::GeoStatsAttachment::validate() needs 91 to be called to calculate and aggregate the results. 94 92 */ 95 93 … … 101 99 The number of vertices in the subtree. 102 100 */ 101 103 102 /*! \var UInt32 GeoStatsAttachmentBase::_sfPoints 104 103 The number of points in the subtree. 105 104 */ 105 106 106 /*! \var UInt32 GeoStatsAttachmentBase::_sfLines 107 107 The number of lines in the subtree. 108 108 */ 109 109 110 /*! \var UInt32 GeoStatsAttachmentBase::_sfTriangles 110 111 The number of triangles in the subtree. 111 112 */ 113 112 114 /*! \var UInt32 GeoStatsAttachmentBase::_sfProcessedAttributeBytes 113 The number of bytes in vertex attribute data that are processed while 114 rendering. 115 The number of bytes in vertex attribute data that are processed while rendering. 115 116 */ 117 116 118 /*! \var UInt32 GeoStatsAttachmentBase::_sfStoredAttributeBytes 117 119 The number of bytes in vertex attribute data that are stored. 118 120 */ 121 119 122 /*! \var bool GeoStatsAttachmentBase::_sfValid 120 123 Flags whether the data is valid or needs to be updated. 121 124 */ 125 122 126 123 127 void GeoStatsAttachmentBase::classDescInserter(TypeObject &oType) … … 386 390 "</FieldContainer>\n", 387 391 "The base class for geometry statistics.\n" 392 "\n" 388 393 "The GeoStatsAttachment keeps track of some core Geometry Characteristics like\n" 389 394 "the number of vertices used, the number of points, lines or triangles created\n" 390 395 "and some information about memory consumption.\n" 396 "\n" 391 397 "It is designed as an attachment so that it can be kept inside the graph. It\n" 392 398 "can also be used to keep aggregated information about subtrees, by adding up\n" 393 399 "the contributions of the underlying nodes. It can invalidate itself by using\n" 394 400 "changed callbacks, so that no manual bookkeeping is necessary.\n" 401 "\n" 395 402 "\\warning To use the automatic update you have to use the\n" 396 403 "osg::GeoStatsAttachment::addTo() or osg::GeoStatsAttachment::attachTo()\n" 397 404 "methods! Otherwise the necessary callbacks are not set!\n" 405 "\n" 398 406 "\\warning Before accessing the data osg::GeoStatsAttachment::validate() needs\n" 399 407 "to be called to calculate and aggregate the results.\n" … … 552 560 } 553 561 #endif 562 563 554 564 555 565
