OpenSceneGraph
3.4.0
|
DrawPixels is an osg::Drawable subclass which encapsulates the drawing of images using glDrawPixels. More...
Public Member Functions | |
DrawPixels () | |
DrawPixels (const DrawPixels &drawimage, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
virtual Object * | cloneType () const |
clone an object of the same type as the node. | |
virtual Object * | clone (const CopyOp ©op) const |
return a clone of a node, with Object* return type. | |
virtual bool | isSameKindAs (const Object *obj) const |
return true if this and obj are of the same kind of object. | |
virtual const char * | libraryName () const |
return the name of the node's library. | |
virtual const char * | className () const |
return the name of the node's class type. | |
void | setPosition (const osg::Vec3 &position) |
osg::Vec3 & | getPosition () |
const osg::Vec3 & | getPosition () const |
void | setImage (osg::Image *image) |
osg::Image * | getImage () |
const osg::Image * | getImage () const |
void | setUseSubImage (bool useSubImage) |
bool | getUseSubImage () const |
void | setSubImageDimensions (unsigned int offsetX, unsigned int offsetY, unsigned int width, unsigned int height) |
void | getSubImageDimensions (unsigned int &offsetX, unsigned int &offsetY, unsigned int &width, unsigned int &height) const |
virtual void | drawImplementation (RenderInfo &renderInfo) const |
drawImplementation(RenderInfo&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. | |
virtual BoundingBox | computeBoundingBox () const |
Compute the bounding box around Drawables's geometry. | |
Protected Member Functions | |
DrawPixels & | operator= (const DrawPixels &) |
virtual | ~DrawPixels () |
Protected Attributes | |
Vec3 | _position |
ref_ptr< Image > | _image |
bool | _useSubImage |
unsigned int | _offsetX |
unsigned int | _offsetY |
unsigned int | _width |
unsigned int | _height |
DrawPixels is an osg::Drawable subclass which encapsulates the drawing of images using glDrawPixels.
osg::DrawPixels::DrawPixels | ( | const DrawPixels & | drawimage, |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) |
Copy constructor using CopyOp to manage deep vs shallow copy.
virtual osg::DrawPixels::~DrawPixels | ( | ) | [protected, virtual] |
virtual const char* osg::DrawPixels::className | ( | ) | const [inline, virtual] |
return the name of the node's class type.
Reimplemented from osg::Node.
virtual Object* osg::DrawPixels::clone | ( | const CopyOp & | copyop | ) | const [inline, virtual] |
return a clone of a node, with Object* return type.
Reimplemented from osg::Node.
virtual Object* osg::DrawPixels::cloneType | ( | ) | const [inline, virtual] |
clone an object of the same type as the node.
Reimplemented from osg::Node.
virtual BoundingBox osg::DrawPixels::computeBoundingBox | ( | ) | const [virtual] |
Compute the bounding box around Drawables's geometry.
Reimplemented from osg::Drawable.
virtual void osg::DrawPixels::drawImplementation | ( | RenderInfo & | ) | const [virtual] |
drawImplementation(RenderInfo&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable.
drawImplementation(RenderInfo&) is called from the draw(RenderInfo&) method, with the draw method handling management of OpenGL display lists, and drawImplementation(RenderInfo&) handling the actual drawing itself.
renderInfo | The osg::RenderInfo object that encapsulates the current rendering information including the osg::State OpenGL state for the current graphics context. |
Reimplemented from osg::Drawable.
osg::Image* osg::DrawPixels::getImage | ( | ) | [inline] |
const osg::Image* osg::DrawPixels::getImage | ( | ) | const [inline] |
osg::Vec3& osg::DrawPixels::getPosition | ( | ) | [inline] |
const osg::Vec3& osg::DrawPixels::getPosition | ( | ) | const [inline] |
void osg::DrawPixels::getSubImageDimensions | ( | unsigned int & | offsetX, |
unsigned int & | offsetY, | ||
unsigned int & | width, | ||
unsigned int & | height | ||
) | const |
bool osg::DrawPixels::getUseSubImage | ( | ) | const [inline] |
virtual bool osg::DrawPixels::isSameKindAs | ( | const Object * | obj | ) | const [inline, virtual] |
virtual const char* osg::DrawPixels::libraryName | ( | ) | const [inline, virtual] |
return the name of the node's library.
Reimplemented from osg::Node.
DrawPixels& osg::DrawPixels::operator= | ( | const DrawPixels & | ) | [inline, protected] |
void osg::DrawPixels::setImage | ( | osg::Image * | image | ) | [inline] |
void osg::DrawPixels::setPosition | ( | const osg::Vec3 & | position | ) |
void osg::DrawPixels::setSubImageDimensions | ( | unsigned int | offsetX, |
unsigned int | offsetY, | ||
unsigned int | width, | ||
unsigned int | height | ||
) |
void osg::DrawPixels::setUseSubImage | ( | bool | useSubImage | ) | [inline] |
unsigned int osg::DrawPixels::_height [protected] |
ref_ptr<Image> osg::DrawPixels::_image [protected] |
unsigned int osg::DrawPixels::_offsetX [protected] |
unsigned int osg::DrawPixels::_offsetY [protected] |
Vec3 osg::DrawPixels::_position [protected] |
bool osg::DrawPixels::_useSubImage [protected] |
unsigned int osg::DrawPixels::_width [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:41 for the OpenSceneGraph by doxygen 1.7.6.1. |