Skip to content

RRayEntity

Class in Entity Module
Header: #include <src/entity/RRayEntity.h>
Inherits: REntity

Infinite ray entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RRayEntity(RDocument *document, const RRayData &data)
virtual ~RRayEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RRayEntity > cloneToRayEntity() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
double getAngle() const
RVector getBasePoint() const
virtual RRayData & getData()
virtual const RRayData & getData() const
double getDirection1() const
double getDirection2() const
RVector getDirectionVector() const
double getLength() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
RVector getSecondPoint() const
RS::Side getSideOfPoint(const RVector &point) const
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
bool hasFixedAngle() const
bool reverse()
void setBasePoint(const RVector &p)
void setDirectionVectorPoint(const RVector &v)
void setFixedAngle(bool on)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
void setSecondPoint(const RVector &p)
void setShape(const RRay &r)
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
static RS::EntityType getRtti()
static QSet< RPropertyTypeId > getStaticPropertyTypeIds()
static void init()
static RPropertyTypeId PropertyAngle
static RPropertyTypeId PropertyBasePointX
static RPropertyTypeId PropertyBasePointY
static RPropertyTypeId PropertyBasePointZ
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDirectionX
static RPropertyTypeId PropertyDirectionY
static RPropertyTypeId PropertyDirectionZ
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyFixedAngle
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertySecondPointX
static RPropertyTypeId PropertySecondPointY
static RPropertyTypeId PropertySecondPointZ
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RRayData data

RRayEntity::RRayEntity(RDocument *document, const RRayData &data)

virtual RRayEntity::~RRayEntity()

virtual

virtual QSharedPointer< RObject > RRayEntity::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RRayEntity > RRayEntity::cloneToRayEntity() const

inline const

virtual void RRayEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const

virtual const

Exports the entity to the given exporter.

The exporter might be a file exporter, a graphics scene or any other platform one can export entities to.

Reimplemented from exportEntity.

double RRayEntity::getAngle() const

inline const

RVector RRayEntity::getBasePoint() const

inline const

virtual RRayData & RRayEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RRayData & RRayEntity::getData() const

virtual inline const

Returns: Const reference to the data object of the entity.

Reimplemented from getData.

double RRayEntity::getDirection1() const

inline const

double RRayEntity::getDirection2() const

inline const

RVector RRayEntity::getDirectionVector() const

inline const

double RRayEntity::getLength() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RRayEntity::getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)

virtual

Returns: The value and attributes of the given property or an invalid property if this property owner has no property with the given ID.

Reimplemented from getProperty.

RVector RRayEntity::getSecondPoint() const

inline const

RS::Side RRayEntity::getSideOfPoint(const RVector &point) const

inline const

RS::Ending RRayEntity::getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)

inline

bool RRayEntity::hasFixedAngle() const

inline const

bool RRayEntity::reverse()

inline

void RRayEntity::setBasePoint(const RVector &p)

inline

void RRayEntity::setDirectionVectorPoint(const RVector &v)

inline

void RRayEntity::setFixedAngle(bool on)

inline

virtual bool RRayEntity::setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)

virtual

Sets the given property to the given value.

If this property owner does not know a property with that ID, it is up to the property owner what happens. The property might be added into a list of dynamic properties or dropped.

Returns: True if the property owner was modified in any way, false otherwise.

Reimplemented from setProperty.

void RRayEntity::setSecondPoint(const RVector &p)

inline

void RRayEntity::setShape(const RRay &r)

bool RRayEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)

inline

bool RRayEntity::trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)

inline

static RS::EntityType RRayEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RRayEntity::getStaticPropertyTypeIds()

static inline

static void RRayEntity::init()

static

static RPropertyTypeId RRayEntity::PropertyAngle

static

static RPropertyTypeId RRayEntity::PropertyBasePointX

static

static RPropertyTypeId RRayEntity::PropertyBasePointY

static

static RPropertyTypeId RRayEntity::PropertyBasePointZ

static

static RPropertyTypeId RRayEntity::PropertyBlock

static

static RPropertyTypeId RRayEntity::PropertyColor

static

static RPropertyTypeId RRayEntity::PropertyCustom

static

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.

static RPropertyTypeId RRayEntity::PropertyDirectionX

static

static RPropertyTypeId RRayEntity::PropertyDirectionY

static

static RPropertyTypeId RRayEntity::PropertyDirectionZ

static

static RPropertyTypeId RRayEntity::PropertyDisplayedColor

static

static RPropertyTypeId RRayEntity::PropertyDrawOrder

static

static RPropertyTypeId RRayEntity::PropertyFixedAngle

static

static RPropertyTypeId RRayEntity::PropertyHandle

static

static RPropertyTypeId RRayEntity::PropertyLayer

static

static RPropertyTypeId RRayEntity::PropertyLinetype

static

static RPropertyTypeId RRayEntity::PropertyLinetypeScale

static

static RPropertyTypeId RRayEntity::PropertyLineweight

static

static RPropertyTypeId RRayEntity::PropertyProtected

static

static RPropertyTypeId RRayEntity::PropertySecondPointX

static

static RPropertyTypeId RRayEntity::PropertySecondPointY

static

static RPropertyTypeId RRayEntity::PropertySecondPointZ

static

static RPropertyTypeId RRayEntity::PropertyType

static

static RPropertyTypeId RRayEntity::PropertyWorkingSet

static

virtual void RRayEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RRayData RRayEntity::data

protected