#include <gr_VectorImage.h>
Public Member Functions | |
GR_VectorImage (const char *szName) | |
GR_VectorImage () | |
virtual | ~GR_VectorImage () |
virtual bool | convertToBuffer (UT_ConstByteBufPtr &ppBB) const |
virtual bool | convertFromBuffer (const UT_ConstByteBufPtr &pBB, const std::string &mimetype, UT_sint32 iDisplayWidth, UT_sint32 iDisplayHeight) |
virtual GR_Image * | createImageSegment (GR_Graphics *, const UT_Rect &) |
virtual GRType | getType () const |
virtual bool | render (GR_Graphics *pGR, UT_sint32 iDisplayWidth, UT_sint32 iDisplayHeight) |
virtual bool | hasAlpha (void) const |
virtual bool | isTransparentAt (UT_sint32 x, UT_sint32 y) |
Private Attributes | |
UT_ConstByteBufPtr | m_pBB_Image |
GR_VectorImage::GR_VectorImage | ( | const char * | szName | ) |
References GR_Image::setName().
GR_VectorImage::GR_VectorImage | ( | ) |
GR_VectorImage::~GR_VectorImage | ( | ) | [virtual] |
bool GR_VectorImage::convertFromBuffer | ( | const UT_ConstByteBufPtr & | pBB, | |
const std::string & | mimetype, | |||
UT_sint32 | iDisplayWidth, | |||
UT_sint32 | iDisplayHeight | |||
) | [virtual] |
Implements GR_Image.
Reimplemented in GR_RSVGVectorImage.
References m_pBB_Image, and GR_Image::setDisplaySize().
Referenced by GR_Graphics::createNewImage().
bool GR_VectorImage::convertToBuffer | ( | UT_ConstByteBufPtr & | ppBB | ) | const [virtual] |
virtual GR_Image* GR_VectorImage::createImageSegment | ( | GR_Graphics * | , | |
const UT_Rect & | ||||
) | [inline, virtual] |
Implements GR_Image.
Reimplemented in GR_RSVGVectorImage.
References UT_ASSERT_HARMLESS, and UT_NOT_IMPLEMENTED.
virtual GRType GR_VectorImage::getType | ( | void | ) | const [inline, virtual] |
Reimplemented from GR_Image.
bool GR_VectorImage::hasAlpha | ( | void | ) | const [virtual] |
bool GR_VectorImage::render | ( | GR_Graphics * | pGR, | |
UT_sint32 | iDisplayWidth, | |||
UT_sint32 | iDisplayHeight | |||
) | [virtual] |
Reimplemented from GR_Image.
References UT_ASSERT_NOT_REACHED, and UT_UNUSED.
Referenced by convertFromBuffer(), and convertToBuffer().