Fixed handling of Locator's with negative extents

This commit is contained in:
Robert Osfield
2016-11-11 13:54:15 +00:00
parent b5c071eed9
commit d16ca33f38
4 changed files with 37 additions and 1 deletions

View File

@@ -67,6 +67,12 @@ class OSGVOLUME_EXPORT Locator : public osg::Object
bool computeLocalBounds(osg::Vec3d& bottomLeft, osg::Vec3d& topRight) const;
bool computeLocalBounds(Locator& source, osg::Vec3d& bottomLeft, osg::Vec3d& topRight) const;
/** Return true if the axis of the Locator are inverted requiring the faces of any cubes used from rendering to be flipped to ensure the correct front/back face is used.*/
bool inverted() const;
/** apply the appropriate FrontFace setting to provided StateSet to ensure that the rendering of hull of the volume is the correct orientation.*/
void applyAppropriateFrontFace(osg::StateSet* ss) const;
/** Callback interface for enabling the monitoring of changes to the Locator.*/
class LocatorCallback : virtual public osg::Object