OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgVolume::Locator Class Reference

#include <Locator.h>

Inheritance diagram for osgVolume::Locator:
Inheritance graph
[legend]
Collaboration diagram for osgVolume::Locator:
Collaboration graph
[legend]

Classes

class  LocatorCallback
 

Public Types

typedef std::vector
< osg::ref_ptr
< LocatorCallback > > 
LocatorCallbacks
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 

Public Member Functions

 Locator ()
 
 Locator (const osg::Matrixd &transform)
 
 Locator (const Locator &locator, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgVolume, Locator)
 
void setTransform (const osg::Matrixd &transform)
 
const osg::MatrixdgetTransform () const
 
void setTransformAsExtents (double minX, double minY, double maxX, double maxY, double minZ, double maxZ)
 
virtual bool convertLocalToModel (const osg::Vec3d &, osg::Vec3d &) const
 
virtual bool convertModelToLocal (const osg::Vec3d &, osg::Vec3d &) const
 
bool computeLocalBounds (osg::Vec3d &bottomLeft, osg::Vec3d &topRight) const
 
bool computeLocalBounds (Locator &source, osg::Vec3d &bottomLeft, osg::Vec3d &topRight) const
 
void addCallback (LocatorCallback *callback)
 
void removeCallback (LocatorCallback *callback)
 
LocatorCallbacksgetLocatorCallbacks ()
 
const LocatorCallbacksgetLocatorCallbacks () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (const CopyOp &) const =0
 
virtual bool isSameKindAs (const Object *) const
 
virtual const char * libraryName () const =0
 
virtual const char * className () const =0
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Static Public Member Functions

static bool convertLocalCoordBetween (const Locator &source, const osg::Vec3d &sourceNDC, const Locator &destination, osg::Vec3d &destinationNDC)
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Protected Member Functions

void locatorModified ()
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

osg::Matrixd _transform
 
osg::Matrixd _inverse
 
LocatorCallbacks _locatorCallbacks
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

Definition at line 29 of file Locator.h.

Member Typedef Documentation

Definition at line 88 of file Locator.h.

Constructor & Destructor Documentation

osgVolume::Locator::Locator ( )
inline

Definition at line 33 of file Locator.h.

osgVolume::Locator::Locator ( const osg::Matrixd transform)
inline

Definition at line 35 of file Locator.h.

osgVolume::Locator::Locator ( const Locator locator,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
inline

Copy constructor using CopyOp to manage deep vs shallow copy.

Definition at line 38 of file Locator.h.

Member Function Documentation

void osgVolume::Locator::addCallback ( LocatorCallback callback)
bool osgVolume::Locator::computeLocalBounds ( osg::Vec3d bottomLeft,
osg::Vec3d topRight 
) const
bool osgVolume::Locator::computeLocalBounds ( Locator source,
osg::Vec3d bottomLeft,
osg::Vec3d topRight 
) const
static bool osgVolume::Locator::convertLocalCoordBetween ( const Locator source,
const osg::Vec3d sourceNDC,
const Locator destination,
osg::Vec3d destinationNDC 
)
inlinestatic

Definition at line 58 of file Locator.h.

Here is the call graph for this function:

virtual bool osgVolume::Locator::convertLocalToModel ( const osg::Vec3d ,
osg::Vec3d  
) const
virtual

Here is the caller graph for this function:

virtual bool osgVolume::Locator::convertModelToLocal ( const osg::Vec3d ,
osg::Vec3d  
) const
virtual

Here is the caller graph for this function:

LocatorCallbacks& osgVolume::Locator::getLocatorCallbacks ( )
inline

Definition at line 89 of file Locator.h.

const LocatorCallbacks& osgVolume::Locator::getLocatorCallbacks ( ) const
inline

Definition at line 90 of file Locator.h.

const osg::Matrixd& osgVolume::Locator::getTransform ( ) const
inline

Set the transformation from local coordinates to model coordinates.

Definition at line 48 of file Locator.h.

void osgVolume::Locator::locatorModified ( )
protected
osgVolume::Locator::META_Object ( osgVolume  ,
Locator   
)
void osgVolume::Locator::removeCallback ( LocatorCallback callback)
void osgVolume::Locator::setTransform ( const osg::Matrixd transform)
inline

Set the transformation from local coordinates to model coordinates.

Definition at line 45 of file Locator.h.

Here is the call graph for this function:

void osgVolume::Locator::setTransformAsExtents ( double  minX,
double  minY,
double  maxX,
double  maxY,
double  minZ,
double  maxZ 
)

Set the extents of the local coords.

Member Data Documentation

osg::Matrixd osgVolume::Locator::_inverse
protected

Definition at line 96 of file Locator.h.

LocatorCallbacks osgVolume::Locator::_locatorCallbacks
protected

Definition at line 98 of file Locator.h.

osg::Matrixd osgVolume::Locator::_transform
protected

Definition at line 95 of file Locator.h.


The documentation for this class was generated from the following file: