|
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 the type of an object, with Object* return type.
|
virtual Object * | clone (const CopyOp ©op) const |
| Clone an object, with Object* return type.
|
virtual bool | isSameKindAs (const Object *obj) const |
virtual const char * | libraryName () const |
| return the name of the object's library.
|
virtual const char * | className () const |
| return the name of the object'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 (State &state) const |
| drawImplementation(State&) is a pure virtaul 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 | computeBound () 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 |