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