|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
95 virtual QList<QSharedPointer<RShape> >
getShapes(
const RBox& queryBox =
RDEFAULT_RBOX,
bool ignoreComplex =
false,
bool segment =
false)
const {
97 Q_UNUSED(ignoreComplex)
100 return QList<QSharedPointer<RShape> >() <<
101 QSharedPointer<RShape>(
new RPolyline(*
this));
RPolyline()
Creates a polyline object without points.
Definition: RPolyline.cpp:36
RSolidData data
Definition: RSolidEntity.h:152
int countVertices() const
Definition: RPolyline.cpp:563
bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RSolidData.h:83
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
RVector getEndPoint() const
Definition: RSolidData.h:58
Ending
Entity ending.
Definition: RS.h:215
double getDirection2() const
Definition: RSolidData.h:64
@ EntitySolid
Solid.
Definition: RS.h:152
RVector getVertexAt(int i) const
Definition: RSolidData.h:70
int i
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: autostart.js:49
bool reverse()
Definition: RSolidData.h:67
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:125
virtual double getDirection2() const
Definition: RPolyline.cpp:1398
RPolyline getGeometry()
Definition: RSolidData.h:104
double getDirection1() const
Definition: RSolidData.h:61
RDocument * document
Definition: RObject.h:341
virtual RVector getStartPoint() const
Definition: RPolyline.cpp:1335
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
virtual bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RPolyline.cpp:1930
Interface for geometrical shape classes.
Definition: RShape.h:72
Q_DECLARE_METATYPE(RMath *)
virtual QList< RRefPoint > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const =0
Base class for all entity data classes.
Definition: REntityData.h:67
virtual bool reverse()
Definition: RPolyline.cpp:1877
virtual double getDirection1() const
Definition: RPolyline.cpp:1389
int countVertices() const
Definition: RSolidData.h:73
RVector getVertexAt(int i) const
Definition: RPolyline.cpp:514
virtual bool trimEndPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RPolyline.cpp:1937
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
Low-level mathematical representation of a triangle.
Definition: RTriangle.h:46
virtual RShape * castToShape()
Definition: RSolidData.h:91
virtual RVector getEndPoint() const
Definition: RPolyline.cpp:1343
virtual QList< QSharedPointer< RShape > > getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false) const
Definition: RSolidData.h:95
virtual RS::EntityType getType() const
Definition: RSolidData.h:52
ProjectionRenderingHint
Sets the current rendering hint for exports.
Definition: RS.h:185
#define RDEFAULT_RBOX
Definition: RBox.h:32
bool trimStartPoint(const RVector &trimPoint, const RVector &clickPoint=RVector::invalid, bool extend=false)
Definition: RSolidData.h:80
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RSolidData.h:39
RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
Definition: RSolidData.h:77
@ RenderTop
Definition: RS.h:186
Represents a box e.g.
Definition: RBox.h:43
static const RVector invalid
invalid vector
Definition: RVector.h:322
RVector getStartPoint() const
Definition: RSolidData.h:55
Low-level mathematical representation of an open polyline or closed polyline (= polygon).
Definition: RPolyline.h:49
virtual RS::Ending getTrimEnd(const RVector &trimPoint, const RVector &clickPoint)
Definition: RPolyline.cpp:1923
virtual bool moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)=0
Moves the given reference point to the given target point or does nothing if this entity has no refer...
Solid entity.
Definition: RSolidEntity.h:38