RGraphicsSceneDrawable
Class in GUI Module
Header: #include <src/gui/RGraphicsSceneDrawable.h>
Description
Section titled “Description”Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Types
Section titled “Public Types”| enum | Mode { NoMode, NoPlot, PixelUnit, WorkingSet } |
| enum | Type { Invalid, PainterPath, PainterPathRay, PainterPathXLine, Image, Text, Transform, EndTransform } |
Public Functions
Section titled “Public Functions”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 Public Functions
Section titled “Static Public Functions”| 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) |
Protected Attributes
Section titled “Protected Attributes”| RImageData * | image |
| Modes | modes |
| RVector | offset |
| RPainterPath * | painterPath |
| RTextBasedData * | text |
| RTransform * | transform |
| Type | type |
Member Documentation
Section titled “Member Documentation”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
Section titled “RGraphicsSceneDrawable”RGraphicsSceneDrawable::RGraphicsSceneDrawable()inline
RGraphicsSceneDrawable
Section titled “RGraphicsSceneDrawable”RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RGraphicsSceneDrawable &other)RGraphicsSceneDrawable
Section titled “RGraphicsSceneDrawable”RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RImageData &img, const RVector &os=RVector::nullVector)Non-Scriptable: This function is not available in script environments.
RGraphicsSceneDrawable
Section titled “RGraphicsSceneDrawable”RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RPainterPath &pp, const RVector &os=RVector::nullVector)Non-Scriptable: This function is not available in script environments.
RGraphicsSceneDrawable
Section titled “RGraphicsSceneDrawable”RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RTextBasedData &txt, const RVector &os=RVector::nullVector)Non-Scriptable: This function is not available in script environments.
RGraphicsSceneDrawable
Section titled “RGraphicsSceneDrawable”RGraphicsSceneDrawable::RGraphicsSceneDrawable(const RTransform &tf, const RVector &os=RVector::nullVector)Non-Scriptable: This function is not available in script environments.
RGraphicsSceneDrawable
Section titled “RGraphicsSceneDrawable”RGraphicsSceneDrawable::RGraphicsSceneDrawable(const Type &t, const RVector &os=RVector::nullVector)Non-Scriptable: This function is not available in script environments.
~RGraphicsSceneDrawable
Section titled “~RGraphicsSceneDrawable”RGraphicsSceneDrawable::~RGraphicsSceneDrawable()getDocument
Section titled “getDocument”RDocument * RGraphicsSceneDrawable::getDocument() constconst
getImage
Section titled “getImage”RImageData & RGraphicsSceneDrawable::getImage() constinline const
getMode
Section titled “getMode”bool RGraphicsSceneDrawable::getMode(RGraphicsSceneDrawable::Mode mode) constinline const
getNoPlot
Section titled “getNoPlot”bool RGraphicsSceneDrawable::getNoPlot() constinline const
getOffset
Section titled “getOffset”RVector RGraphicsSceneDrawable::getOffset() constinline const
getPainterPath
Section titled “getPainterPath”RPainterPath & RGraphicsSceneDrawable::getPainterPath() constinline const
getPixelUnit
Section titled “getPixelUnit”bool RGraphicsSceneDrawable::getPixelUnit() constinline const
getText
Section titled “getText”RTextBasedData & RGraphicsSceneDrawable::getText() constinline const
getTransform
Section titled “getTransform”RTransform & RGraphicsSceneDrawable::getTransform() constinline const
getType
Section titled “getType”RGraphicsSceneDrawable::Type RGraphicsSceneDrawable::getType() constinline const
isImage
Section titled “isImage”bool RGraphicsSceneDrawable::isImage() constinline const
isPainterPath
Section titled “isPainterPath”bool RGraphicsSceneDrawable::isPainterPath() constinline const
isText
Section titled “isText”bool RGraphicsSceneDrawable::isText() constinline const
isWorkingSet
Section titled “isWorkingSet”bool RGraphicsSceneDrawable::isWorkingSet() constinline const
operator=
Section titled “operator=”RGraphicsSceneDrawable & RGraphicsSceneDrawable::operator=(const RGraphicsSceneDrawable &other)setHighlighted
Section titled “setHighlighted”void RGraphicsSceneDrawable::setHighlighted(bool on)setMode
Section titled “setMode”void RGraphicsSceneDrawable::setMode(RGraphicsSceneDrawable::Mode mode, bool on=true)inline
setNoPlot
Section titled “setNoPlot”void RGraphicsSceneDrawable::setNoPlot(bool on)inline
setOffset
Section titled “setOffset”void RGraphicsSceneDrawable::setOffset(const RVector &o)inline
setPixelUnit
Section titled “setPixelUnit”void RGraphicsSceneDrawable::setPixelUnit(bool on)inline
setSelected
Section titled “setSelected”void RGraphicsSceneDrawable::setSelected(bool on)setWorkingSet
Section titled “setWorkingSet”void RGraphicsSceneDrawable::setWorkingSet(bool on)inline
uninit
Section titled “uninit”void RGraphicsSceneDrawable::uninit()createEndTransform
Section titled “createEndTransform”static RGraphicsSceneDrawable RGraphicsSceneDrawable::createEndTransform(const RVector &offset)static
createFromImage
Section titled “createFromImage”static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromImage(const RImageData &img, const RVector &offset=RVector::nullVector)static
createFromPainterPath
Section titled “createFromPainterPath”static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromPainterPath(const RPainterPath &pp, const RVector &offset=RVector::nullVector)static
createFromText
Section titled “createFromText”static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromText(const RTextBasedData &txt, const RVector &offset=RVector::nullVector)static
createFromTransform
Section titled “createFromTransform”static RGraphicsSceneDrawable RGraphicsSceneDrawable::createFromTransform(const RTransform &transform, const RVector &offset=RVector::nullVector)static
RImageData* RGraphicsSceneDrawable::imageprotected
Modes RGraphicsSceneDrawable::modesprotected
offset
Section titled “offset”RVector RGraphicsSceneDrawable::offsetprotected
painterPath
Section titled “painterPath”RPainterPath* RGraphicsSceneDrawable::painterPathprotected
RTextBasedData* RGraphicsSceneDrawable::textprotected
transform
Section titled “transform”RTransform* RGraphicsSceneDrawable::transformprotected
Type RGraphicsSceneDrawable::typeprotected