class SG_EXPORT osg::DrawPixels

DrawPixels is an osg::Drawable subclass which encapsulates the drawing of images using glDrawPixels

Inheritance:


Public Methods

[more] DrawPixels()
[more] DrawPixels(const DrawPixels& drawimage, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more]virtual Object* cloneType() const
[more]virtual Object* clone(const CopyOp& copyop) const
[more]virtual bool isSameKindAs(const Object* obj) const
[more]virtual const char* libraryName() const
[more]virtual const char* className() const
[more]void setPosition(const osg::Vec3& position)
[more]osg::Vec3& getPosition()
[more]const osg::Vec3& getPosition() const
[more]void setImage(osg::Image* image)
[more]osg::Image* getImage()
[more]const osg::Image* getImage() const
[more]void setUseCompleteImage()
[more]void setSubImageDimensions(unsigned int offsetX, unsigned int offsetY, unsigned int width, unsigned int height)
[more]void getSubImageDimensions(unsigned int& offsetX, unsigned int& offsetY, unsigned int& width, unsigned int& height) const
[more]const bool getUseSubImage() const
[more]virtual void drawImmediateMode(State& state)

Protected Fields

[more]Vec3 _position
[more]ref_ptr<Image> _image
[more]bool _useSubImage
[more]unsigned int _offsetX
[more]unsigned int _offsetY
[more]unsigned int _width
[more]unsigned int _height

Protected Methods

[more]DrawPixels& operator = (const DrawPixels&)
[more]virtual ~DrawPixels()
[more]virtual const bool computeBound() const


Inherited from Drawable:

Public Methods

oinline const ParentList& getParents() const
oinline ParentList getParents()
oinline Node* getParent(const unsigned int i)
oinline const Node* getParent(const unsigned int i) const
oinline const unsigned int getNumParents() const
oinline void setStateSet(StateSet* state)
oinline StateSet* getStateSet()
oinline const StateSet* getStateSet() const
ovoid setSupportsDisplayList(const bool flag)
oinline const bool getSupportsDisplayList() const
ovoid setUseDisplayList(const bool flag)
oinline const bool getUseDisplayList() const
ovoid dirtyDisplayList()
ovoid dirtyBound()
oinline const BoundingBox& getBound() const
ovoid compile(State& state)
ovoid setAppCallback(AppCallback* ac)
oAppCallback* getAppCallback()
oconst AppCallback* getAppCallback() const
ovoid setCullCallback(CullCallback* cc)
oCullCallback* getCullCallback()
oconst CullCallback* getCullCallback() const
ovoid setDrawCallback(DrawCallback* dc)
oDrawCallback* getDrawCallback()
oconst DrawCallback* getDrawCallback() const
ostatic void deleteDisplayList(uint contextID, uint globj)
ostatic void flushDeletedDisplayLists(uint contextID)
ovirtual bool getStats(Statistics&)
ovirtual AttributeBitMask suppportsAttributeOperation() const
ovirtual AttributeBitMask applyAttributeOperation(AttributeFunctor&)
ovirtual void applyPrimitiveOperation(PrimitiveFunctor&)
oinline void draw(State& state)

Public Members

otypedef std::vector<Node*> ParentList
ostruct AppCallback: public osg::Referenced
ostruct CullCallback: public osg::Referenced
ostruct DrawCallback: public osg::Referenced
otypedef uint AttributeBitMaskenum AttributeBitMaskValues
class AttributeFunctor
class PrimitiveFunctor

Protected Fields

oParentList _parents
oref_ptr<StateSet> _dstate
obool _supportsDisplayList
obool _useDisplayList
omutable BoundingBox _bbox
omutable bool _bbox_computed
oref_ptr<AppCallback> _appCallback
oref_ptr<DrawCallback> _drawCallback
oref_ptr<CullCallback> _cullCallback

Protected Methods

ovoid addParent(osg::Node* node)
ovoid removeParent(osg::Node* node)

Protected Members

otypedef std::vector<uint> GLObjectList mutable GLObjectList _globjList
otypedef std::map<uint,std::set<uint> >static DeletedDisplayListCache DeletedDisplayListCache s_deletedDisplayListCache


Inherited from Object:

Public Methods

oinline void setDataVariance(const DataVariance dv)
oinline const DataVariance getDataVariance() const

Public Members

oenum DataVariance

Protected Fields

oDataVariance _dataVariance


Inherited from Referenced:

Public Methods

oinline void ref() const
oinline void unref() const
oinline void unref_nodelete() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Documentation

DrawPixels is an osg::Drawable subclass which encapsulates the drawing of images using glDrawPixels
o DrawPixels()

o DrawPixels(const DrawPixels& drawimage, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

ovirtual Object* cloneType() const

ovirtual Object* clone(const CopyOp& copyop) const

ovirtual bool isSameKindAs(const Object* obj) const

ovirtual const char* libraryName() const

ovirtual const char* className() const

ovoid setPosition(const osg::Vec3& position)

oosg::Vec3& getPosition()

oconst osg::Vec3& getPosition() const

ovoid setImage(osg::Image* image)

oosg::Image* getImage()

oconst osg::Image* getImage() const

ovoid setUseCompleteImage()

ovoid setSubImageDimensions(unsigned int offsetX, unsigned int offsetY, unsigned int width, unsigned int height)

ovoid getSubImageDimensions(unsigned int& offsetX, unsigned int& offsetY, unsigned int& width, unsigned int& height) const

oconst bool getUseSubImage() const

ovirtual void drawImmediateMode(State& state)

oDrawPixels& operator = (const DrawPixels&)

ovirtual ~DrawPixels()

ovirtual const bool computeBound() const

oVec3 _position

oref_ptr<Image> _image

obool _useSubImage

ounsigned int _offsetX

ounsigned int _offsetY

ounsigned int _width

ounsigned int _height


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.