From: Braden M. <br...@us...> - 2005-11-22 02:39:34
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv590/src/libopenvrml/openvrml Modified Files: browser.cpp Log Message: Implemented "modified" virtual function. Delegates to the first implementation node. Index: browser.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/browser.cpp,v retrieving revision 1.92 retrieving revision 1.93 diff -C2 -d -r1.92 -r1.93 *** browser.cpp 7 Nov 2005 06:55:21 -0000 1.92 --- browser.cpp 22 Nov 2005 02:39:25 -0000 1.93 *************** *** 373,376 **** --- 373,378 ---- virtual ~proto_node() throw (); + virtual bool modified() const; + private: virtual void do_initialize(double timestamp) *************** *** 2243,2246 **** --- 2245,2261 ---- /** + * @brief Indicate whether the node needs to be rerendered. + * + * @return @c true if the node has changed and needs to be rerendered; + * @c false otherwise. + */ + bool proto_node::modified() const + { + return !this->impl_nodes.empty() + ? this->impl_nodes.front()->modified() + : false; + } + + /** * @brief Initialize. * |