#include <Geometry.h>
Public Member Functions | |
AOC (Base::Vector3d c, double r, double s, double e) | |
AOC (const TopoDS_Edge &e) | |
AOC (void) | |
double | distToArc (Base::Vector3d p) |
bool | intersectsArc (Base::Vector3d p1, Base::Vector3d p2) |
bool | isOnArc (Base::Vector3d v) |
virtual void | Restore (Base::XMLReader &r) override |
virtual void | Save (Base::Writer &w) const override |
virtual std::string | toString (void) const override |
~AOC ()=default | |
Public Member Functions inherited from TechDraw::Circle | |
Circle (Base::Vector3d center, double radius) | |
Circle (const TopoDS_Edge &e) | |
Circle (void) | |
virtual void | Restore (Base::XMLReader &r) override |
virtual void | Save (Base::Writer &w) const override |
virtual std::string | toString (void) const override |
virtual | ~Circle ()=default |
Public Member Functions inherited from TechDraw::BaseGeom | |
BaseGeom () | |
bool | closed (void) |
BaseGeomPtr | copy () |
std::string | dump () |
std::vector< Base::Vector3d > | findEndPoints () |
std::string | getCosmeticTag (void) |
Base::Vector3d | getEndPoint () |
Base::Vector3d | getMidPoint () |
std::vector< Base::Vector3d > | getQuads () |
Base::Vector3d | getStartPoint () |
boost::uuids::uuid | getTag () const |
virtual std::string | getTagAsString (void) const |
std::vector< Base::Vector3d > | intersection (TechDraw::BaseGeomPtr geom2) |
double | minDist (Base::Vector3d p) |
Base::Vector3d | nearPoint (Base::Vector3d p) |
Base::Vector3d | nearPoint (const BaseGeomPtr p) |
find point on me nearest to p More... | |
virtual void | Restore (Base::XMLReader &r) |
virtual void | Save (Base::Writer &w) const |
void | setCosmeticTag (std::string t) |
void | source (int s) |
int | source (void) |
void | sourceIndex (int si) |
int | sourceIndex (void) |
virtual std::string | toString (void) const |
virtual | ~BaseGeom ()=default |
Public Attributes | |
bool | cw |
Arc is drawn clockwise from startAngle to endAngle if true, counterclockwise if false. More... | |
double | endAngle |
Angle in radian. More... | |
Base::Vector3d | endPnt |
bool | largeArc |
Base::Vector3d | midPnt |
double | startAngle |
Angle in radian ??angle with horizontal? More... | |
Base::Vector3d | startPnt |
Public Attributes inherited from TechDraw::Circle | |
Base::Vector3d | center |
double | radius |
Public Attributes inherited from TechDraw::BaseGeom | |
edgeClass | classOfEdge |
bool | cosmetic |
ExtractionType | extractType |
GeomType | geomType |
bool | hlrVisible |
TopoDS_Edge | occEdge |
int | ref3D |
bool | reversed |
Additional Inherited Members | |
Static Public Member Functions inherited from TechDraw::BaseGeom | |
static BaseGeomPtr | baseFactory (TopoDS_Edge edge) |
Convert 1 OCC edge into 1 BaseGeom (static factory method) More... | |
static bool | validateEdge (TopoDS_Edge edge) |
Protected Member Functions inherited from TechDraw::BaseGeom | |
void | createNewTag () |
Protected Attributes inherited from TechDraw::BaseGeom | |
std::string | cosmeticTag |
int | m_source |
int | m_sourceIndex |
boost::uuids::uuid | tag |
AOC::AOC | ( | const TopoDS_Edge & | e | ) |
AOC::AOC | ( | Base::Vector3d | c, |
double | r, | ||
double | s, | ||
double | e | ||
) |
AOC::AOC | ( | void | ) |
References TechDraw::ARCOFCIRCLE, cw, endAngle, endPnt, TechDraw::BaseGeom::geomType, largeArc, midPnt, startAngle, and startPnt.
|
default |
double AOC::distToArc | ( | Base::Vector3d | p | ) |
References TechDraw::BaseGeom::minDist().
bool AOC::intersectsArc | ( | Base::Vector3d | p1, |
Base::Vector3d | p2 | ||
) |
bool AOC::isOnArc | ( | Base::Vector3d | v | ) |
References TechDraw::BaseGeom::minDist(), and TechDraw::BaseGeom::occEdge.
|
overridevirtual |
Reimplemented from TechDraw::Circle.
References cw, endAngle, endPnt, Base::XMLReader::getAttributeAsFloat(), Base::XMLReader::getAttributeAsInteger(), largeArc, midPnt, Base::XMLReader::readElement(), TechDraw::Circle::Restore(), startAngle, startPnt, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
|
overridevirtual |
Reimplemented from TechDraw::Circle.
References cw, endAngle, endPnt, Base::Writer::ind(), largeArc, midPnt, TechDraw::Circle::Save(), startAngle, startPnt, Base::Writer::Stream(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
|
overridevirtual |
Reimplemented from TechDraw::Circle.
References cw, endAngle, endPnt, largeArc, midPnt, startAngle, startPnt, TechDraw::Circle::toString(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
bool TechDraw::AOC::cw |
Arc is drawn clockwise from startAngle to endAngle if true, counterclockwise if false.
Referenced by AOC(), Restore(), Save(), and toString().
double TechDraw::AOC::endAngle |
Angle in radian.
Referenced by AOC(), Restore(), Save(), and toString().
Base::Vector3d TechDraw::AOC::endPnt |
Referenced by AOC(), Restore(), Save(), and toString().
bool TechDraw::AOC::largeArc |
Referenced by AOC(), Restore(), Save(), and toString().
Base::Vector3d TechDraw::AOC::midPnt |
Referenced by AOC(), Restore(), Save(), and toString().
double TechDraw::AOC::startAngle |
Angle in radian ??angle with horizontal?
Referenced by AOC(), Restore(), Save(), and toString().
Base::Vector3d TechDraw::AOC::startPnt |
Referenced by AOC(), Restore(), Save(), and toString().