Skip to content

RGraphicsSceneDrawable

Class in GUI Module
Header: #include <src/gui/RGraphicsSceneDrawable.h>

Scriptable: This class is available in script environments.

Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.

enum Mode { NoMode, NoPlot, PixelUnit, WorkingSet }
enum Type { Invalid, PainterPath, PainterPathRay, PainterPathXLine, Image, Text, Transform, EndTransform }
RGraphicsSceneDrawable()
RGraphicsSceneDrawable(const RGraphicsSceneDrawable &other)
RGraphicsSceneDrawable(const RImageData &img, const RVector &os=RVector::nullVector)
RGraphicsSceneDrawable(const RPainterPath &pp, const RVector &os=RVector::nullVector)
RGraphicsSceneDrawable(const RTextBasedData &txt, const RVector &os=RVector::nullVector)
RGraphicsSceneDrawable(const RTransform &tf, const RVector &os=RVector::nullVector)
RGraphicsSceneDrawable(const Type &t, const RVector &os=RVector::nullVector)
~RGraphicsSceneDrawable()
RDocument * getDocument() const
RImageData & getImage() const
bool getMode(RGraphicsSceneDrawable::Mode mode) const
bool getNoPlot() const
RVector getOffset() const
RPainterPath & getPainterPath() const
bool getPixelUnit() const
RTextBasedData & getText() const
RTransform & getTransform() const
RGraphicsSceneDrawable::Type getType() const
bool isImage() const
bool isPainterPath() const
bool isText() const
bool isWorkingSet() const
RGraphicsSceneDrawable & operator=(const RGraphicsSceneDrawable &other)
void setHighlighted(bool on)
void setMode(RGraphicsSceneDrawable::Mode mode, bool on=true)
void setNoPlot(bool on)
void setOffset(const RVector &o)
void setPixelUnit(bool on)
void setSelected(bool on)
void setWorkingSet(bool on)
void uninit()
static RGraphicsSceneDrawable createEndTransform(const RVector &offset)
static RGraphicsSceneDrawable createFromImage(const RImageData &img, const RVector &offset=RVector::nullVector)
static RGraphicsSceneDrawable createFromPainterPath(const RPainterPath &pp, const RVector &offset=RVector::nullVector)
static RGraphicsSceneDrawable createFromText(const RTextBasedData &txt, const RVector &offset=RVector::nullVector)
static RGraphicsSceneDrawable createFromTransform(const RTransform &transform, const RVector &offset=RVector::nullVector)
RImageData * image
Modes modes
RVector offset
RPainterPath * painterPath
RTextBasedData * text
RTransform * transform
Type type

enum Mode
Value Description
NoMode = 0x0000
NoPlot = 0x0001 not plotted (from not plottable layers)
PixelUnit = 0x0002 unit interpreted as pixels
WorkingSet = 0x0004 in current working set

enum Type
Value Description
Invalid
PainterPath
PainterPathRay
PainterPathXLine
Image
Text
Transform
EndTransform

RGraphicsSceneDrawable::RGraphicsSceneDrawable()

inline

RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RGraphicsSceneDrawable &other)

RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RImageData &img, const RVector &os=RVector::nullVector)

Non-Scriptable: This function is not available in script environments.

RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RPainterPath &pp, const RVector &os=RVector::nullVector)

Non-Scriptable: This function is not available in script environments.

RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RTextBasedData &txt, const RVector &os=RVector::nullVector)

Non-Scriptable: This function is not available in script environments.

RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RTransform &tf, const RVector &os=RVector::nullVector)

Non-Scriptable: This function is not available in script environments.

RGraphicsSceneDrawable::RGraphicsSceneDrawable(const Type &t, const RVector &os=RVector::nullVector)

Non-Scriptable: This function is not available in script environments.

RGraphicsSceneDrawable::~RGraphicsSceneDrawable()

RDocument * RGraphicsSceneDrawable::getDocument() const

const

RImageData & RGraphicsSceneDrawable::getImage() const

inline const

bool RGraphicsSceneDrawable::getMode(RGraphicsSceneDrawable::Mode mode) const

inline const

bool RGraphicsSceneDrawable::getNoPlot() const

inline const

RVector RGraphicsSceneDrawable::getOffset() const

inline const

RPainterPath & RGraphicsSceneDrawable::getPainterPath() const

inline const

bool RGraphicsSceneDrawable::getPixelUnit() const

inline const

RTextBasedData & RGraphicsSceneDrawable::getText() const

inline const

RTransform & RGraphicsSceneDrawable::getTransform() const

inline const

RGraphicsSceneDrawable::Type RGraphicsSceneDrawable::getType() const

inline const

bool RGraphicsSceneDrawable::isImage() const

inline const

bool RGraphicsSceneDrawable::isPainterPath() const

inline const

bool RGraphicsSceneDrawable::isText() const

inline const

bool RGraphicsSceneDrawable::isWorkingSet() const

inline const

RGraphicsSceneDrawable & RGraphicsSceneDrawable::operator=(const RGraphicsSceneDrawable &other)

void RGraphicsSceneDrawable::setHighlighted(bool on)

void RGraphicsSceneDrawable::setMode(RGraphicsSceneDrawable::Mode mode, bool on=true)

inline

void RGraphicsSceneDrawable::setNoPlot(bool on)

inline

void RGraphicsSceneDrawable::setOffset(const RVector &o)

inline

void RGraphicsSceneDrawable::setPixelUnit(bool on)

inline

void RGraphicsSceneDrawable::setSelected(bool on)

void RGraphicsSceneDrawable::setWorkingSet(bool on)

inline

void RGraphicsSceneDrawable::uninit()

static RGraphicsSceneDrawable RGraphicsSceneDrawable::createEndTransform(const RVector &offset)

static

static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromImage(const RImageData &img, const RVector &offset=RVector::nullVector)

static

static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromPainterPath(const RPainterPath &pp, const RVector &offset=RVector::nullVector)

static

static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromText(const RTextBasedData &txt, const RVector &offset=RVector::nullVector)

static

static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromTransform(const RTransform &transform, const RVector &offset=RVector::nullVector)

static

RImageData* RGraphicsSceneDrawable::image

protected

Modes RGraphicsSceneDrawable::modes

protected

RVector RGraphicsSceneDrawable::offset

protected

RPainterPath* RGraphicsSceneDrawable::painterPath

protected

RTextBasedData* RGraphicsSceneDrawable::text

protected

RTransform* RGraphicsSceneDrawable::transform

protected

Type RGraphicsSceneDrawable::type

protected