RRayEntity
Class in Entity Module
Header: #include <src/entity/RRayEntity.h>
Inherits: REntity
Description
Section titled “Description”Infinite ray entity.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”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) constExports 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 Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static QSet< RPropertyTypeId > | getStaticPropertyTypeIds() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”| 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 |
Protected Functions
Section titled “Protected Functions”| virtual void | print(QDebug dbg) constStream operator for QDebug. |
Protected Attributes
Section titled “Protected Attributes”| RRayData | data |
Member Documentation
Section titled “Member Documentation”RRayEntity
Section titled “RRayEntity”RRayEntity::RRayEntity(RDocument *document, const RRayData &data)~RRayEntity
Section titled “~RRayEntity”virtual RRayEntity::~RRayEntity()virtual
virtual QSharedPointer< RObject > RRayEntity::clone() constvirtual inline const
Reimplemented from clone.
cloneToRayEntity
Section titled “cloneToRayEntity”QSharedPointer< RRayEntity > RRayEntity::cloneToRayEntity() constinline const
exportEntity
Section titled “exportEntity”virtual void RRayEntity::exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) constvirtual 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.
getAngle
Section titled “getAngle”double RRayEntity::getAngle() constinline const
getBasePoint
Section titled “getBasePoint”RVector RRayEntity::getBasePoint() constinline const
getData
Section titled “getData”virtual RRayData & RRayEntity::getData()virtual inline
Returns: Reference to the data object of the entity.
Reimplemented from getData.
getData
Section titled “getData”virtual const RRayData & RRayEntity::getData() constvirtual inline const
Returns: Const reference to the data object of the entity.
Reimplemented from getData.
getDirection1
Section titled “getDirection1”double RRayEntity::getDirection1() constinline const
getDirection2
Section titled “getDirection2”double RRayEntity::getDirection2() constinline const
getDirectionVector
Section titled “getDirectionVector”RVector RRayEntity::getDirectionVector() constinline const
getLength
Section titled “getLength”double RRayEntity::getLength() constinline const
getProperty
Section titled “getProperty”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.
getSecondPoint
Section titled “getSecondPoint”RVector RRayEntity::getSecondPoint() constinline const
getSideOfPoint
Section titled “getSideOfPoint”RS::Side RRayEntity::getSideOfPoint(const RVector &point) constinline const
getTrimEnd
Section titled “getTrimEnd”RS::Ending RRayEntity::getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)inline
hasFixedAngle
Section titled “hasFixedAngle”bool RRayEntity::hasFixedAngle() constinline const
reverse
Section titled “reverse”bool RRayEntity::reverse()inline
setBasePoint
Section titled “setBasePoint”void RRayEntity::setBasePoint(const RVector &p)inline
setDirectionVectorPoint
Section titled “setDirectionVectorPoint”void RRayEntity::setDirectionVectorPoint(const RVector &v)inline
setFixedAngle
Section titled “setFixedAngle”void RRayEntity::setFixedAngle(bool on)inline
setProperty
Section titled “setProperty”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.
setSecondPoint
Section titled “setSecondPoint”void RRayEntity::setSecondPoint(const RVector &p)inline
setShape
Section titled “setShape”void RRayEntity::setShape(const RRay &r)trimEndPoint
Section titled “trimEndPoint”bool RRayEntity::trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
trimStartPoint
Section titled “trimStartPoint”bool RRayEntity::trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)inline
getRtti
Section titled “getRtti”static RS::EntityType RRayEntity::getRtti()static inline
getStaticPropertyTypeIds
Section titled “getStaticPropertyTypeIds”static QSet< RPropertyTypeId > RRayEntity::getStaticPropertyTypeIds()static inline
static void RRayEntity::init()static
PropertyAngle
Section titled “PropertyAngle”static RPropertyTypeId RRayEntity::PropertyAnglestatic
PropertyBasePointX
Section titled “PropertyBasePointX”static RPropertyTypeId RRayEntity::PropertyBasePointXstatic
PropertyBasePointY
Section titled “PropertyBasePointY”static RPropertyTypeId RRayEntity::PropertyBasePointYstatic
PropertyBasePointZ
Section titled “PropertyBasePointZ”static RPropertyTypeId RRayEntity::PropertyBasePointZstatic
PropertyBlock
Section titled “PropertyBlock”static RPropertyTypeId RRayEntity::PropertyBlockstatic
PropertyColor
Section titled “PropertyColor”static RPropertyTypeId RRayEntity::PropertyColorstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RRayEntity::PropertyCustomstatic
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.
PropertyDirectionX
Section titled “PropertyDirectionX”static RPropertyTypeId RRayEntity::PropertyDirectionXstatic
PropertyDirectionY
Section titled “PropertyDirectionY”static RPropertyTypeId RRayEntity::PropertyDirectionYstatic
PropertyDirectionZ
Section titled “PropertyDirectionZ”static RPropertyTypeId RRayEntity::PropertyDirectionZstatic
PropertyDisplayedColor
Section titled “PropertyDisplayedColor”static RPropertyTypeId RRayEntity::PropertyDisplayedColorstatic
PropertyDrawOrder
Section titled “PropertyDrawOrder”static RPropertyTypeId RRayEntity::PropertyDrawOrderstatic
PropertyFixedAngle
Section titled “PropertyFixedAngle”static RPropertyTypeId RRayEntity::PropertyFixedAnglestatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RRayEntity::PropertyHandlestatic
PropertyLayer
Section titled “PropertyLayer”static RPropertyTypeId RRayEntity::PropertyLayerstatic
PropertyLinetype
Section titled “PropertyLinetype”static RPropertyTypeId RRayEntity::PropertyLinetypestatic
PropertyLinetypeScale
Section titled “PropertyLinetypeScale”static RPropertyTypeId RRayEntity::PropertyLinetypeScalestatic
PropertyLineweight
Section titled “PropertyLineweight”static RPropertyTypeId RRayEntity::PropertyLineweightstatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RRayEntity::PropertyProtectedstatic
PropertySecondPointX
Section titled “PropertySecondPointX”static RPropertyTypeId RRayEntity::PropertySecondPointXstatic
PropertySecondPointY
Section titled “PropertySecondPointY”static RPropertyTypeId RRayEntity::PropertySecondPointYstatic
PropertySecondPointZ
Section titled “PropertySecondPointZ”static RPropertyTypeId RRayEntity::PropertySecondPointZstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RRayEntity::PropertyTypestatic
PropertyWorkingSet
Section titled “PropertyWorkingSet”static RPropertyTypeId RRayEntity::PropertyWorkingSetstatic
virtual void RRayEntity::print(QDebug dbg) constvirtual const protected
Stream operator for QDebug.
Reimplemented from print.
RRayData RRayEntity::dataprotected