Added ClipNode::set/getReferenceFrame();

This commit is contained in:
Robert Osfield
2008-12-19 15:29:59 +00:00
parent f4fe462b28
commit 0ea6cdeb96
7 changed files with 100 additions and 6 deletions

View File

@@ -17,7 +17,8 @@
using namespace osg;
ClipNode::ClipNode():
_value(StateAttribute::ON)
_value(StateAttribute::ON),
_referenceFrame(RELATIVE_RF)
{
setStateSet(new StateSet);
}
@@ -43,6 +44,12 @@ ClipNode::~ClipNode()
{
}
void ClipNode::setReferenceFrame(ReferenceFrame rf)
{
_referenceFrame = rf;
}
// Create a 6 clip planes to create a clip box.
void ClipNode::createClipBox(const BoundingBox& bb,unsigned int clipPlaneNumberBase)
{