14 #ifndef OSGVOLUME_LOCATOR
15 #define OSGVOLUME_LOCATOR 1
17 #include <osgVolume/Export>
20 #include <osg/observer_ptr>
21 #include <osg/Matrixd>
23 #include <osg/MatrixTransform>
39 osg::Object(locator, copyop),
40 _transform(locator._transform) {}
51 void setTransformAsExtents(
double minX,
double minY,
double maxX,
double maxY,
double minZ,
double maxZ);
85 void addCallback(LocatorCallback* callback);
86 void removeCallback(LocatorCallback* callback);
94 void locatorModified();
107 void locatorModified(
Locator* locator);
121 void locatorModified(
Locator*);
osg::observer_ptr< osg::TexGen > _texgen
virtual void locatorModified(Locator *)
static bool convertLocalCoordBetween(const Locator &source, const osg::Vec3d &sourceNDC, const Locator &destination, osg::Vec3d &destinationNDC)
const osg::Matrixd & getTransform() const
osg::observer_ptr< osgVolume::Locator > _imageLocator
LocatorCallback(const LocatorCallback &rhs, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
#define META_Object(library, name)
Locator(const osg::Matrixd &transform)
const LocatorCallbacks & getLocatorCallbacks() const
osg::observer_ptr< osgVolume::Locator > _geometryLocator
virtual bool convertModelToLocal(const osg::Vec3d &, osg::Vec3d &) const
LocatorCallbacks _locatorCallbacks
virtual bool convertLocalToModel(const osg::Vec3d &, osg::Vec3d &) const
bool invert(const Matrixd &rhs)
std::vector< osg::ref_ptr< LocatorCallback > > LocatorCallbacks
virtual ~LocatorCallback()
Locator(const Locator &locator, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void setTransform(const osg::Matrixd &transform)
LocatorCallbacks & getLocatorCallbacks()