Skip to content

RRefPoint

Class in Math Module
Header: #include <src/core/math/RRefPoint.h>
Inherits: RVector

Represents a reference point of an entity.

Scriptable: This class is available in script environments.

Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.

enum Flag { NoFlags, Secondary, Tertiary, Center, Ignore, Start, End, Arrow, Selected, Top, VMiddle, Bottom, Left, HMiddle, Right, FromSnap }
RRefPoint()
RRefPoint(const RVector &v)
RRefPoint(const RVector &v, RRefPoint::Flags f)
RRefPoint(double vx, double vy, double vz=0.0, bool valid_in=true)
bool getFlag(RRefPoint::Flag flag) const
RRefPoint::Flags getFlags() const
bool isArrow() const
bool isCenter() const
bool isEnd() const
bool isFromSnap() const
bool isIgnore() const
bool isSecondary() const
bool isSelected() const
bool isStart() const
bool isTertiary() const
void setArrow(bool on)
void setCenter(bool on)
void setEnd(bool on)
void setFlag(RRefPoint::Flag flag, bool on)
void setFlags(RRefPoint::Flags f)
void setFromSnap(bool on)
void setIgnore(bool on)
void setSecondary(bool on)
void setSelected(bool on)
void setStart(bool on)
void setTertiary(bool on)
static QList< RRefPoint > toRefPointList(const QList< RVector > &list, RRefPoint::Flags flags=RRefPoint::NoFlags)
static QList< RVector > toVectorList(const QList< RRefPoint > &list)
Flags flags

enum Flag
Value Description
NoFlags = 0x000
Secondary = 0x001 Secondary reference point (typically shown with different color).
Tertiary = 0x002 Tertiary reference point (typically shown with different color).
Center = 0x004 Reference point is a center point.
Ignore = 0x008 Ignore reference point for drag and drop.
Start = 0x010 Reference point is a start point.
End = 0x020 Reference point is a start point.
Arrow = 0x040 Reference point is a dimension arrow.
Selected = 0x080 Reference point is selected.
Top = 0x100 Reference point is at the top of the bounding box.
VMiddle = 0x200 Reference point is at the vertical middle of the bounding box.
Bottom = 0x400 Reference point is at the bottom of the bounding box.
Left = 0x800 Reference point is at the left of the bounding box.
HMiddle = 0x1000 Reference point is at the horizontal middle of the bounding box.
Right = 0x2000 Reference point is at the right of the bounding box.
FromSnap = 0x4000 Reference point originates from snap tool, not from entity.

RRefPoint::RRefPoint()

inline

RRefPoint::RRefPoint(const RVector &v)

inline

RRefPoint::RRefPoint(const RVector &v, RRefPoint::Flags f)

inline

RRefPoint::RRefPoint(double vx, double vy, double vz=0.0, bool valid_in=true)

inline

bool RRefPoint::getFlag(RRefPoint::Flag flag) const

inline const

RRefPoint::Flags RRefPoint::getFlags() const

inline const

bool RRefPoint::isArrow() const

inline const

bool RRefPoint::isCenter() const

inline const

bool RRefPoint::isEnd() const

inline const

bool RRefPoint::isFromSnap() const

inline const

bool RRefPoint::isIgnore() const

inline const

bool RRefPoint::isSecondary() const

inline const

bool RRefPoint::isSelected() const

inline const

bool RRefPoint::isStart() const

inline const

bool RRefPoint::isTertiary() const

inline const

void RRefPoint::setArrow(bool on)

inline

void RRefPoint::setCenter(bool on)

inline

void RRefPoint::setEnd(bool on)

inline

void RRefPoint::setFlag(RRefPoint::Flag flag, bool on)

inline

void RRefPoint::setFlags(RRefPoint::Flags f)

inline

void RRefPoint::setFromSnap(bool on)

inline

void RRefPoint::setIgnore(bool on)

inline

void RRefPoint::setSecondary(bool on)

inline

void RRefPoint::setSelected(bool on)

inline

void RRefPoint::setStart(bool on)

inline

void RRefPoint::setTertiary(bool on)

inline

static QList< RRefPoint > RRefPoint::toRefPointList(const QList< RVector > &list, RRefPoint::Flags flags=RRefPoint::NoFlags)

static inline

static QList< RVector > RRefPoint::toVectorList(const QList< RRefPoint > &list)

static inline

Flags RRefPoint::flags

private