QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RGraphicsSceneDrawable Class Reference

#include <RGraphicsSceneDrawable.h>

Public Types

enum  Mode { NoMode = 0x0000 , NoPlot = 0x0001 , PixelUnit = 0x0002 , WorkingSet = 0x0004 }
 
enum  Type {
  Invalid , PainterPath , PainterPathRay , PainterPathXLine ,
  Image , Text , Transform , EndTransform
}
 

Public Member Functions

RDocumentgetDocument () const
 
RImageDatagetImage () const
 
bool getMode (RGraphicsSceneDrawable::Mode mode) const
 
bool getNoPlot () const
 
RVector getOffset () const
 
RPainterPathgetPainterPath () const
 
bool getPixelUnit () const
 
RTextBasedDatagetText () const
 
RTransformgetTransform () const
 
RGraphicsSceneDrawable::Type getType () const
 
bool isImage ()
 
bool isPainterPath ()
 
bool isText ()
 
bool isWorkingSet () const
 
RGraphicsSceneDrawableoperator= (const RGraphicsSceneDrawable &other)
 
 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)
 
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 ()
 
 ~RGraphicsSceneDrawable ()
 

Static Public Member 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

RImageDataimage
 
Modes modes
 
RVector offset
 
RPainterPathpainterPath
 
RTextBasedDatatext
 
RTransformtransform
 
Type type
 

Detailed Description

Scriptable:\nThis class is available in script environments.\n
Copyable:\nObjects are cleaned up automatically by the garbage collector of the script engine.\n

Member Enumeration Documentation

◆ Mode

Enumerator
NoMode 
NoPlot 

not plotted (from not plottable layers)

PixelUnit 

unit interpreted as pixels

WorkingSet 

in current working set

◆ Type

Enumerator
Invalid 
PainterPath 
PainterPathRay 
PainterPathXLine 
Image 
Text 
Transform 
EndTransform 

Constructor & Destructor Documentation

◆ RGraphicsSceneDrawable() [1/7]

RGraphicsSceneDrawable::RGraphicsSceneDrawable ( )
inline

◆ RGraphicsSceneDrawable() [2/7]

RGraphicsSceneDrawable::RGraphicsSceneDrawable ( const RGraphicsSceneDrawable & other)

◆ RGraphicsSceneDrawable() [3/7]

RGraphicsSceneDrawable::RGraphicsSceneDrawable ( const RPainterPath & pp,
const RVector & os = RVector::nullVector )
Non-Scriptable:\nThis function is not available in script environments.\n

◆ RGraphicsSceneDrawable() [4/7]

RGraphicsSceneDrawable::RGraphicsSceneDrawable ( const RImageData & img,
const RVector & os = RVector::nullVector )
Non-Scriptable:\nThis function is not available in script environments.\n

◆ RGraphicsSceneDrawable() [5/7]

RGraphicsSceneDrawable::RGraphicsSceneDrawable ( const RTextBasedData & txt,
const RVector & os = RVector::nullVector )
Non-Scriptable:\nThis function is not available in script environments.\n

◆ RGraphicsSceneDrawable() [6/7]

RGraphicsSceneDrawable::RGraphicsSceneDrawable ( const RTransform & tf,
const RVector & os = RVector::nullVector )
Non-Scriptable:\nThis function is not available in script environments.\n

◆ RGraphicsSceneDrawable() [7/7]

RGraphicsSceneDrawable::RGraphicsSceneDrawable ( const Type & t,
const RVector & os = RVector::nullVector )
Non-Scriptable:\nThis function is not available in script environments.\n

◆ ~RGraphicsSceneDrawable()

RGraphicsSceneDrawable::~RGraphicsSceneDrawable ( )

Member Function Documentation

◆ createEndTransform()

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

◆ createFromImage()

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

◆ createFromPainterPath()

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

◆ createFromText()

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

◆ createFromTransform()

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

◆ getDocument()

RDocument * RGraphicsSceneDrawable::getDocument ( ) const

◆ getImage()

RImageData & RGraphicsSceneDrawable::getImage ( ) const
inline

◆ getMode()

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

◆ getNoPlot()

bool RGraphicsSceneDrawable::getNoPlot ( ) const
inline

◆ getOffset()

RVector RGraphicsSceneDrawable::getOffset ( ) const
inline

◆ getPainterPath()

RPainterPath & RGraphicsSceneDrawable::getPainterPath ( ) const
inline

◆ getPixelUnit()

bool RGraphicsSceneDrawable::getPixelUnit ( ) const
inline

◆ getText()

RTextBasedData & RGraphicsSceneDrawable::getText ( ) const
inline

◆ getTransform()

RTransform & RGraphicsSceneDrawable::getTransform ( ) const
inline

◆ getType()

RGraphicsSceneDrawable::Type RGraphicsSceneDrawable::getType ( ) const
inline

◆ isImage()

bool RGraphicsSceneDrawable::isImage ( )
inline

◆ isPainterPath()

bool RGraphicsSceneDrawable::isPainterPath ( )
inline

◆ isText()

bool RGraphicsSceneDrawable::isText ( )
inline

◆ isWorkingSet()

bool RGraphicsSceneDrawable::isWorkingSet ( ) const
inline

◆ operator=()

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

◆ setHighlighted()

void RGraphicsSceneDrawable::setHighlighted ( bool on)

◆ setMode()

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

◆ setNoPlot()

void RGraphicsSceneDrawable::setNoPlot ( bool on)
inline

◆ setOffset()

void RGraphicsSceneDrawable::setOffset ( const RVector & o)
inline

◆ setPixelUnit()

void RGraphicsSceneDrawable::setPixelUnit ( bool on)
inline

◆ setSelected()

void RGraphicsSceneDrawable::setSelected ( bool on)

◆ setWorkingSet()

void RGraphicsSceneDrawable::setWorkingSet ( bool on)
inline

◆ uninit()

void RGraphicsSceneDrawable::uninit ( )

Member Data Documentation

◆ image

RImageData* RGraphicsSceneDrawable::image
protected

◆ modes

Modes RGraphicsSceneDrawable::modes
protected

◆ offset

RVector RGraphicsSceneDrawable::offset
protected

◆ painterPath

RPainterPath* RGraphicsSceneDrawable::painterPath
protected

◆ text

RTextBasedData* RGraphicsSceneDrawable::text
protected

◆ transform

RTransform* RGraphicsSceneDrawable::transform
protected

◆ type

Type RGraphicsSceneDrawable::type
protected

The documentation for this class was generated from the following files: