Skip to content

RCopyOperation

Class in Operations Module
Header: #include <src/operations/RCopyOperation.h>
Inherits: RClipboardOperation

Implementation of an operation that copies the selection of the given document to the clipboard.

Scriptable: This class is available in script environments.

RCopyOperation(const RVector &offset, RDocument &src)
virtual ~RCopyOperation()
virtual RTransaction apply(RDocument &document, bool preview=false)
Applies this operation to selection in the given document.
double getAngle() const
QString getBlockName() const
RVector getCenter() const
bool getFlipHorizontal() const
bool getFlipVertical() const
QString getLayerName() const
bool getOverwriteBlocks() const
bool getOverwriteLayers() const
double getScale() const
bool getSelectionOnly() const
bool getToCurrentBlock() const
bool getToCurrentLayer() const
bool getToModelSpaceBlock() const
void setAngle(double a)
void setBlockName(const QString &n)
void setCenter(const RVector &c)
void setClear(bool on)
void setFlipHorizontal(bool on)
void setFlipVertical(bool on)
void setLayerName(const QString &n)
void setOverwriteBlocks(bool on)
void setOverwriteLayers(bool on)
void setScale(double s)
void setSelectionOnly(bool on)
void setToCurrentBlock(bool on)
void setToCurrentLayer(bool on)
void setToModelSpaceBlock(bool on)
double angle
QString blockName
RVector center
bool clear
bool flipHorizontal
bool flipVertical
QString layerName
RVector offset
bool overwriteBlocks
bool overwriteLayers
double scale
bool selectionOnly
RDocument & src
bool toCurrentBlock
bool toCurrentLayer
bool toModelSpaceBlock

RCopyOperation::RCopyOperation(const RVector &offset, RDocument &src)

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

virtual RCopyOperation::~RCopyOperation()

virtual inline

virtual RTransaction RCopyOperation::apply(RDocument &document, bool preview=false)

virtual

Applies this operation to selection in the given document.

This is used for both previews and the actual apply. In case of a preview, the given document is a temporary document with a storage that is linked to the real document for realistic condiditions for the preview.

Reimplemented from apply.

double RCopyOperation::getAngle() const

inline const

QString RCopyOperation::getBlockName() const

inline const

RVector RCopyOperation::getCenter() const

inline const

bool RCopyOperation::getFlipHorizontal() const

inline const

bool RCopyOperation::getFlipVertical() const

inline const

QString RCopyOperation::getLayerName() const

inline const

bool RCopyOperation::getOverwriteBlocks() const

inline const

bool RCopyOperation::getOverwriteLayers() const

inline const

double RCopyOperation::getScale() const

inline const

bool RCopyOperation::getSelectionOnly() const

inline const

bool RCopyOperation::getToCurrentBlock() const

inline const

bool RCopyOperation::getToCurrentLayer() const

inline const

bool RCopyOperation::getToModelSpaceBlock() const

inline const

void RCopyOperation::setAngle(double a)

inline

void RCopyOperation::setBlockName(const QString &n)

inline

void RCopyOperation::setCenter(const RVector &c)

inline

void RCopyOperation::setClear(bool on)

inline

void RCopyOperation::setFlipHorizontal(bool on)

inline

void RCopyOperation::setFlipVertical(bool on)

inline

void RCopyOperation::setLayerName(const QString &n)

inline

void RCopyOperation::setOverwriteBlocks(bool on)

inline

void RCopyOperation::setOverwriteLayers(bool on)

inline

void RCopyOperation::setScale(double s)

inline

void RCopyOperation::setSelectionOnly(bool on)

inline

void RCopyOperation::setToCurrentBlock(bool on)

inline

void RCopyOperation::setToCurrentLayer(bool on)

inline

void RCopyOperation::setToModelSpaceBlock(bool on)

inline

double RCopyOperation::angle

private

QString RCopyOperation::blockName

private

RVector RCopyOperation::center

private

bool RCopyOperation::clear

private

bool RCopyOperation::flipHorizontal

private

bool RCopyOperation::flipVertical

private

QString RCopyOperation::layerName

private

RVector RCopyOperation::offset

private

bool RCopyOperation::overwriteBlocks

private

bool RCopyOperation::overwriteLayers

private

double RCopyOperation::scale

private

bool RCopyOperation::selectionOnly

private

RDocument& RCopyOperation::src

private

bool RCopyOperation::toCurrentBlock

private

bool RCopyOperation::toCurrentLayer

private

bool RCopyOperation::toModelSpaceBlock

private