20#ifndef RGRAPHICSSCENEDRAWABLE_H
21#define RGRAPHICSSCENEDRAWABLE_H
56 Q_DECLARE_FLAGS(Modes, Mode)
102 return type==PainterPath || type==PainterPathRay || type==PainterPathXLine;
121 return (modes & mode) == mode;
146 Q_ASSERT(painterPath!=
NULL);
151 Q_ASSERT(image!=
NULL);
156 Q_ASSERT(text!=
NULL);
161 Q_ASSERT(transform!=
NULL);
175 void setSelected(
bool on);
176 void setHighlighted(
bool on);
QCADGUI_EXPORT QDebug operator<<(QDebug dbg, const RGraphicsSceneDrawable &d)
Definition RGraphicsSceneDrawable.cpp:174
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Definition RGraphicsSceneDrawable.h:37
bool isPainterPath()
Definition RGraphicsSceneDrawable.h:101
RVector offset
Definition RGraphicsSceneDrawable.h:182
bool isText()
Definition RGraphicsSceneDrawable.h:105
RImageData * image
Definition RGraphicsSceneDrawable.h:187
RImageData & getImage() const
Definition RGraphicsSceneDrawable.h:150
void setPixelUnit(bool on)
Definition RGraphicsSceneDrawable.h:131
RTextBasedData & getText() const
Definition RGraphicsSceneDrawable.h:155
RTextBasedData * text
Definition RGraphicsSceneDrawable.h:188
RPainterPath * painterPath
Definition RGraphicsSceneDrawable.h:186
RTransform & getTransform() const
Definition RGraphicsSceneDrawable.h:160
Type
Definition RGraphicsSceneDrawable.h:39
@ Text
Definition RGraphicsSceneDrawable.h:45
@ PainterPathRay
Definition RGraphicsSceneDrawable.h:42
@ PainterPathXLine
Definition RGraphicsSceneDrawable.h:43
@ Invalid
Definition RGraphicsSceneDrawable.h:40
@ Transform
Definition RGraphicsSceneDrawable.h:46
@ PainterPath
Definition RGraphicsSceneDrawable.h:41
@ Image
Definition RGraphicsSceneDrawable.h:44
RTransform * transform
Definition RGraphicsSceneDrawable.h:189
RPainterPath & getPainterPath() const
Definition RGraphicsSceneDrawable.h:145
bool isWorkingSet() const
Definition RGraphicsSceneDrawable.h:141
bool getMode(RGraphicsSceneDrawable::Mode mode) const
Definition RGraphicsSceneDrawable.h:120
void setOffset(const RVector &o)
Definition RGraphicsSceneDrawable.h:169
RVector getOffset() const
Definition RGraphicsSceneDrawable.h:165
void setNoPlot(bool on)
Definition RGraphicsSceneDrawable.h:124
bool getNoPlot() const
Definition RGraphicsSceneDrawable.h:127
void setMode(RGraphicsSceneDrawable::Mode mode, bool on=true)
Definition RGraphicsSceneDrawable.h:113
Type type
Definition RGraphicsSceneDrawable.h:181
RGraphicsSceneDrawable()
Definition RGraphicsSceneDrawable.h:59
bool isImage()
Definition RGraphicsSceneDrawable.h:109
bool getPixelUnit() const
Definition RGraphicsSceneDrawable.h:134
void setWorkingSet(bool on)
Definition RGraphicsSceneDrawable.h:138
Modes modes
Definition RGraphicsSceneDrawable.h:183
RGraphicsSceneDrawable::Type getType() const
Definition RGraphicsSceneDrawable.h:97
Mode
Definition RGraphicsSceneDrawable.h:50
@ NoPlot
not plotted (from not plottable layers)
Definition RGraphicsSceneDrawable.h:52
@ WorkingSet
in current working set
Definition RGraphicsSceneDrawable.h:54
@ PixelUnit
unit interpreted as pixels
Definition RGraphicsSceneDrawable.h:53
Stores and manages all data that defines the geometry and appearance of a raster image entity.
Definition RImageData.h:41
Extended painter path with a z-level and a pen.
Definition RPainterPath.h:48
Stores and manages all data that defines the geometry and appearance of a text based entity (text,...
Definition RTextBasedData.h:68
Represents a 3d vector (x/y/z).
Definition RVector.h:47
static const RVector nullVector
null vector
Definition RVector.h:340
Insert text.
Definition Text.js:19
void getDocument()
Returns the current RDocument or undefined.
Definition simple.js:63
#define QCADGUI_EXPORT
Definition gui_global.h:10
#define NULL
Definition opennurbs_system.h:256