Skip to content

RSolidEntity

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

Solid entity.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RSolidEntity(RDocument *document, const RSolidData &data)
virtual ~RSolidEntity()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RSolidEntity > cloneToSolidEntity() const
int countVertices() const
virtual void exportEntity(RExporter &e, bool preview=false, bool forceSelected=false) const
Exports the entity to the given exporter.
virtual RSolidData & getData()
virtual const RSolidData & getData() const
double getDirection1() const
double getDirection2() const
RVector getEndPoint() const
QList< QSharedPointer< RShape > > getExploded() const
double getLength() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
RVector getStartPoint() const
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
RVector getVertexAt(int i) const
bool reverse()
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
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 PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLength
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyPoint1X
static RPropertyTypeId PropertyPoint1Y
static RPropertyTypeId PropertyPoint1Z
static RPropertyTypeId PropertyPoint2X
static RPropertyTypeId PropertyPoint2Y
static RPropertyTypeId PropertyPoint2Z
static RPropertyTypeId PropertyPoint3X
static RPropertyTypeId PropertyPoint3Y
static RPropertyTypeId PropertyPoint3Z
static RPropertyTypeId PropertyPoint4X
static RPropertyTypeId PropertyPoint4Y
static RPropertyTypeId PropertyPoint4Z
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyTotalLength
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.
RSolidData data

RSolidEntity::RSolidEntity(RDocument *document, const RSolidData &data)

virtual RSolidEntity::~RSolidEntity()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RSolidEntity > RSolidEntity::cloneToSolidEntity() const

inline const

int RSolidEntity::countVertices() const

inline const

virtual void RSolidEntity::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.

virtual RSolidData & RSolidEntity::getData()

virtual inline

Returns: Reference to the data object of the entity.

Reimplemented from getData.

virtual const RSolidData & RSolidEntity::getData() const

virtual inline const

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

Reimplemented from getData.

double RSolidEntity::getDirection1() const

inline const

double RSolidEntity::getDirection2() const

inline const

RVector RSolidEntity::getEndPoint() const

inline const

QList< QSharedPointer< RShape > > RSolidEntity::getExploded() const

inline const

double RSolidEntity::getLength() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RSolidEntity::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 RSolidEntity::getStartPoint() const

inline const

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

inline

RVector RSolidEntity::getVertexAt(int i) const

inline const

bool RSolidEntity::reverse()

inline

virtual bool RSolidEntity::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.

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

inline

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

inline

static RS::EntityType RSolidEntity::getRtti()

static inline

static QSet< RPropertyTypeId > RSolidEntity::getStaticPropertyTypeIds()

static inline

static void RSolidEntity::init()

static

static RPropertyTypeId RSolidEntity::PropertyBlock

static

static RPropertyTypeId RSolidEntity::PropertyColor

static

static RPropertyTypeId RSolidEntity::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 RSolidEntity::PropertyDisplayedColor

static

static RPropertyTypeId RSolidEntity::PropertyDrawOrder

static

static RPropertyTypeId RSolidEntity::PropertyHandle

static

static RPropertyTypeId RSolidEntity::PropertyLayer

static

static RPropertyTypeId RSolidEntity::PropertyLength

static

static RPropertyTypeId RSolidEntity::PropertyLinetype

static

static RPropertyTypeId RSolidEntity::PropertyLinetypeScale

static

static RPropertyTypeId RSolidEntity::PropertyLineweight

static

static RPropertyTypeId RSolidEntity::PropertyPoint1X

static

static RPropertyTypeId RSolidEntity::PropertyPoint1Y

static

static RPropertyTypeId RSolidEntity::PropertyPoint1Z

static

static RPropertyTypeId RSolidEntity::PropertyPoint2X

static

static RPropertyTypeId RSolidEntity::PropertyPoint2Y

static

static RPropertyTypeId RSolidEntity::PropertyPoint2Z

static

static RPropertyTypeId RSolidEntity::PropertyPoint3X

static

static RPropertyTypeId RSolidEntity::PropertyPoint3Y

static

static RPropertyTypeId RSolidEntity::PropertyPoint3Z

static

static RPropertyTypeId RSolidEntity::PropertyPoint4X

static

static RPropertyTypeId RSolidEntity::PropertyPoint4Y

static

static RPropertyTypeId RSolidEntity::PropertyPoint4Z

static

static RPropertyTypeId RSolidEntity::PropertyProtected

static

static RPropertyTypeId RSolidEntity::PropertyTotalLength

static

static RPropertyTypeId RSolidEntity::PropertyType

static

static RPropertyTypeId RSolidEntity::PropertyWorkingSet

static

virtual void RSolidEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

RSolidData RSolidEntity::data

protected