QCAD
Open Source 2D CAD
RDimAlignedData.h
Go to the documentation of this file.
1 
20 #ifndef RDIMALIGNEDDATA_H
21 #define RDIMALIGNEDDATA_H
22 
23 #include "entity_global.h"
24 
25 #include "RDocument.h"
26 #include "RDimLinearData.h"
27 #include "RVector.h"
28 
37  friend class RDimAlignedEntity;
38 
39 protected:
41 
42 public:
44  RDimAlignedData(const RDimensionData& dimData,
45  const RVector& extensionPoint1,
46  const RVector& extensionPoint2);
47 
48  virtual QList<RVector> getReferencePoints(
50 
51  virtual bool moveReferencePoint(const RVector& referencePoint,
52  const RVector& targetPoint);
53 
54  virtual void recomputeDefinitionPoint(
55  const RVector& oldExtPoint1, const RVector& oldExtPoint2,
56  const RVector& newExtPoint1, const RVector& newExtPoint2);
57 
58  virtual QList<QSharedPointer<RShape> > getShapes(const RBox& queryBox = RDEFAULT_RBOX, bool ignoreComplex = false) const;
59  virtual double getMeasuredValue() const;
60  virtual QString getAutoLabel() const;
61 
62 private:
63  // for caching only:
66 };
67 
71 Q_DECLARE_METATYPE(QSharedPointer<RDimAlignedData>)
72 
73 #endif
Represents a box e.g.
Definition: RBox.h:43
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
#define RDEFAULT_RBOX
Definition: RBox.h:32
virtual QString getAutoLabel() const
Definition: RDimensionData.h:170
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
virtual bool moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint)
Moves the given reference point to the given target point or does nothing if this entity has no refer...
Definition: RDimLinearData.cpp:56
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RDimAlignedData.h:36
RVector refDefinitionPoint1
Definition: RDimAlignedData.h:64
ProjectionRenderingHint
Sets the current rendering hint for exports.
Definition: RS.h:118
RDimAlignedData data
Definition: RDimAlignedEntity.h:135
virtual double getMeasuredValue() const
Definition: RDimensionData.h:169
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:63
Q_DECLARE_METATYPE(RMath *)
virtual QList< RVector > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const
Definition: RDimensionData.cpp:128
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RDimensionData.h:38
virtual void recomputeDefinitionPoint(const RVector &oldExtPoint1, const RVector &oldExtPoint2, const RVector &newExtPoint1, const RVector &newExtPoint2)
Definition: RDimLinearData.h:72
virtual QList< QSharedPointer< RShape > > getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false) const
Definition: REntityData.h:88
Definition: RS.h:119
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RDimLinearData.h:36
Aligned dimension entity class.
Definition: RDimAlignedEntity.h:38
RVector refDefinitionPoint2
Definition: RDimAlignedData.h:65
RDocument * document
Definition: RObject.h:251