From 196a550cdab5d726ce441102638c59f79ba0c0f2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 18 Apr 2008 13:57:08 +0000 Subject: [PATCH] Added write(ostream&) method to allow one to print out the current state --- include/osg/CullSettings | 3 ++- src/osg/CullSettings.cpp | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/include/osg/CullSettings b/include/osg/CullSettings index 0ed1c407d..f1e370abc 100644 --- a/include/osg/CullSettings +++ b/include/osg/CullSettings @@ -235,7 +235,8 @@ class OSG_EXPORT CullSettings const ClampProjectionMatrixCallback* getClampProjectionMatrixCallback() const { return _clampProjectionMatrixCallback.get(); } - + /** Write out internal settings of CullSettings. */ + void write(std::ostream& out); protected: diff --git a/src/osg/CullSettings.cpp b/src/osg/CullSettings.cpp index 2e6169ac7..b9adeed58 100644 --- a/src/osg/CullSettings.cpp +++ b/src/osg/CullSettings.cpp @@ -146,3 +146,27 @@ void CullSettings::readCommandLine(ArgumentParser& arguments) } } + +void CullSettings::write(std::ostream& out) +{ + out<<"CullSettings: "<