#include <Geometry.h>
Public Member Functions | |
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 | |
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 |
Circle::Circle | ( | void | ) |
References center, TechDraw::CIRCLE, TechDraw::BaseGeom::geomType, and radius.
Circle::Circle | ( | const TopoDS_Edge & | e | ) |
References center, TechDraw::CIRCLE, TechDraw::BaseGeom::geomType, TechDraw::BaseGeom::occEdge, and radius.
Circle::Circle | ( | Base::Vector3d | center, |
double | radius | ||
) |
References center, TechDraw::CIRCLE, TechDraw::BaseGeom::geomType, TechDraw::BaseGeom::occEdge, and radius.
|
virtualdefault |
|
overridevirtual |
Reimplemented from TechDraw::BaseGeom.
Reimplemented in TechDraw::AOC.
References center, Base::XMLReader::getAttributeAsFloat(), radius, Base::XMLReader::readElement(), TechDraw::BaseGeom::Restore(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by TechDraw::AOC::Restore().
|
overridevirtual |
Reimplemented from TechDraw::BaseGeom.
Reimplemented in TechDraw::AOC.
References center, Base::Writer::ind(), radius, TechDraw::BaseGeom::Save(), Base::Writer::Stream(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by TechDraw::AOC::Save().
|
overridevirtual |
Reimplemented from TechDraw::BaseGeom.
Reimplemented in TechDraw::AOC.
References center, radius, TechDraw::BaseGeom::toString(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by TechDraw::AOC::toString().
Base::Vector3d TechDraw::Circle::center |
Referenced by drafttaskpanels.task_circulararray.TaskPanelCircularArray::accept(), drafttaskpanels.task_polararray.TaskPanelPolarArray::accept(), draftguitools.gui_arcs.Arc::action(), draftguitools.gui_dimensions.Dimension::action(), draftguitools.gui_offset.Offset::action(), draftguitools.gui_polygons.Polygon::action(), TechDraw::AOC::AOC(), draftguitools.gui_rotate.Rotate::build_copy_subelements_command(), draftguitools.gui_scale.Scale::build_copy_subelements_command(), draftguitools.gui_rotate.Rotate::build_rotate_subelements_command(), draftguitools.gui_scale.Scale::build_scale_subelements_command(), Circle(), draftguitools.gui_dimensions.Dimension::create_angle_dimension(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::create_object(), drafttaskpanels.task_polararray.TaskPanelPolarArray::create_object(), draftguitools.gui_arcs.Arc::drawArc(), draftguitools.gui_polygons.Polygon::drawPolygon(), PathScripts.PathDressupAxisMap.ObjectDressup::execute(), draftguitools.gui_rotate.Rotate::handle_mouse_move_event(), draftguitools.gui_arcs.Arc::numericInput(), draftguitools.gui_polygons.Polygon::numericInput(), draftguitools.gui_rotate.Rotate::numericInput(), draftguitools.gui_arcs.Arc::numericRadius(), draftguitools.gui_polygons.Polygon::numericRadius(), PathScripts.PathDressupAxisMap.ObjectDressup::onChanged(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::print_messages(), drafttaskpanels.task_polararray.TaskPanelPolarArray::print_messages(), drafttaskpanels.task_circulararray.TaskPanelCircularArray::reset_point(), drafttaskpanels.task_polararray.TaskPanelPolarArray::reset_point(), Restore(), draftguitools.gui_rotate.Rotate::rotate_object(), Save(), draftguitools.gui_scale.Scale::scale_object(), draftguitools.gui_rotate.Rotate::set_center(), draftguitools.gui_rotate.Rotate::set_ghosts(), draftguitools.gui_rotate.Rotate::set_rotation_angle(), and toString().
double TechDraw::Circle::radius |
Referenced by TechDraw::AOC::AOC(), PathScripts.PathPocketBase.ObjectPocket::areaOpAreaParams(), PathScripts.PathProfile.ObjectProfile::areaOpAreaParams(), PathScripts.PathPocketBase.ObjectPocket::areaOpPathParams(), PathScripts.PathAreaOp.ObjectOp::areaOpSetDefaultValues(), DraftGui.DraftToolBar::changeRadiusValue(), Circle(), PathScripts.PathDressupHoldingTags.Tag::createSolidsAt(), PathScripts.PathSurface.ObjectSurface::deleteOpVariables(), PathScripts.PathWaterline.ObjectWaterline::deleteOpVariables(), PathScripts.PathOp.ObjectOp::execute(), PathScripts.PathDressupAxisMap.TaskPanel::getFields(), ifc4.ifcsweptdisksolid::innerradiussize(), draftguitools.gui_snapper.Snapper::off(), PathScripts.PathSurfaceSupport.ProcessSelectedFaces::preProcessModel(), DraftGui.DraftToolBar::reset_ui_values(), Restore(), Save(), draftguitools.gui_snapper.Snapper::showradius(), draftguitools.gui_snapper.Snapper::snapToCrossExtensions(), draftguitools.gui_snapper.Snapper::snapToExtensions(), draftguitools.gui_snapper.Snapper::snapToGrid(), draftguitools.gui_snapper.Snapper::snapToHold(), draftguitools.gui_snapper.Snapper::snapToPolar(), toString(), PathScripts.PathDressupAxisMap.TaskPanel::updateUI(), DraftGui.DraftToolBar::validatePoint(), automotive_design.right_circular_cone::wr1(), automotive_design.conical_surface::wr1(), config_control_design.conical_surface::wr1(), automotive_design.swept_disk_solid::wr2(), and ifc2x3.ifcsweptdisksolid::wr2().