Added ClipNode::set/getReferenceFrame();
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user