OpenSceneGraph  3.5.1
Public Types | Public Member Functions | Protected Attributes | List of all members
osg::CopyOp Class Reference

Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clone operation. More...

Public Types

enum  Options {
  SHALLOW_COPY = 0, DEEP_COPY_OBJECTS = 1<<0, DEEP_COPY_NODES = 1<<1, DEEP_COPY_DRAWABLES = 1<<2,
  DEEP_COPY_STATESETS = 1<<3, DEEP_COPY_STATEATTRIBUTES = 1<<4, DEEP_COPY_TEXTURES = 1<<5, DEEP_COPY_IMAGES = 1<<6,
  DEEP_COPY_ARRAYS = 1<<7, DEEP_COPY_PRIMITIVES = 1<<8, DEEP_COPY_SHAPES = 1<<9, DEEP_COPY_UNIFORMS = 1<<10,
  DEEP_COPY_CALLBACKS = 1<<11, DEEP_COPY_USERDATA = 1<<12, DEEP_COPY_ALL = 0x7FFFFFFF
}
 
typedef unsigned int CopyFlags
 

Public Member Functions

 CopyOp (CopyFlags flags=SHALLOW_COPY)
 
virtual ~CopyOp ()
 
void setCopyFlags (CopyFlags flags)
 
CopyFlags getCopyFlags () const
 
virtual Referencedoperator() (const Referenced *ref) const
 
virtual Objectoperator() (const Object *obj) const
 
virtual Nodeoperator() (const Node *node) const
 
virtual Drawableoperator() (const Drawable *drawable) const
 
virtual StateSetoperator() (const StateSet *stateset) const
 
virtual StateAttributeoperator() (const StateAttribute *attr) const
 
virtual Textureoperator() (const Texture *text) const
 
virtual Imageoperator() (const Image *image) const
 
virtual Arrayoperator() (const Array *array) const
 
virtual PrimitiveSetoperator() (const PrimitiveSet *primitives) const
 
virtual Shapeoperator() (const Shape *shape) const
 
virtual Uniformoperator() (const Uniform *shape) const
 
virtual Callbackoperator() (const Callback *nodecallback) const
 
virtual StateAttributeCallbackoperator() (const StateAttributeCallback *stateattributecallback) const
 
virtual UniformCallbackoperator() (const UniformCallback *uniformcallback) const
 

Protected Attributes

CopyFlags _flags
 

Detailed Description

Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clone operation.

Member Typedef Documentation

typedef unsigned int osg::CopyOp::CopyFlags

Member Enumeration Documentation

Enumerator
SHALLOW_COPY 
DEEP_COPY_OBJECTS 
DEEP_COPY_NODES 
DEEP_COPY_DRAWABLES 
DEEP_COPY_STATESETS 
DEEP_COPY_STATEATTRIBUTES 
DEEP_COPY_TEXTURES 
DEEP_COPY_IMAGES 
DEEP_COPY_ARRAYS 
DEEP_COPY_PRIMITIVES 
DEEP_COPY_SHAPES 
DEEP_COPY_UNIFORMS 
DEEP_COPY_CALLBACKS 
DEEP_COPY_USERDATA 
DEEP_COPY_ALL 

Constructor & Destructor Documentation

osg::CopyOp::CopyOp ( CopyFlags  flags = SHALLOW_COPY)
inline
virtual osg::CopyOp::~CopyOp ( )
inlinevirtual

Member Function Documentation

CopyFlags osg::CopyOp::getCopyFlags ( ) const
inline
virtual Referenced* osg::CopyOp::operator() ( const Referenced ref) const
virtual
virtual Object* osg::CopyOp::operator() ( const Object obj) const
virtual
virtual Node* osg::CopyOp::operator() ( const Node node) const
virtual
virtual Drawable* osg::CopyOp::operator() ( const Drawable drawable) const
virtual
virtual StateSet* osg::CopyOp::operator() ( const StateSet stateset) const
virtual
virtual StateAttribute* osg::CopyOp::operator() ( const StateAttribute attr) const
virtual
virtual Texture* osg::CopyOp::operator() ( const Texture text) const
virtual
virtual Image* osg::CopyOp::operator() ( const Image image) const
virtual
virtual Array* osg::CopyOp::operator() ( const Array array) const
virtual
virtual PrimitiveSet* osg::CopyOp::operator() ( const PrimitiveSet primitives) const
virtual
virtual Shape* osg::CopyOp::operator() ( const Shape shape) const
virtual
virtual Uniform* osg::CopyOp::operator() ( const Uniform shape) const
virtual
virtual Callback* osg::CopyOp::operator() ( const Callback nodecallback) const
virtual
virtual StateAttributeCallback* osg::CopyOp::operator() ( const StateAttributeCallback stateattributecallback) const
virtual
virtual UniformCallback* osg::CopyOp::operator() ( const UniformCallback uniformcallback) const
virtual
void osg::CopyOp::setCopyFlags ( CopyFlags  flags)
inline

Member Data Documentation

CopyFlags osg::CopyOp::_flags
protected

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

osg logo
Generated at Wed Nov 11 2015 22:14:31 for the OpenSceneGraph by doxygen 1.8.10.