SketcherGui::EditModeConstraintCoinManager Class Reference

Class for managing the Edit mode coin nodes of ViewProviderSketch relating to constraints. More...

#include <EditModeConstraintCoinManager.h>

Public Member Functions

 EditModeConstraintCoinManager (ViewProviderSketch &vp, DrawingParameters &drawingParams, GeometryLayerParameters &geometryLayerParams, ConstraintParameters &constraintParams, EditModeScenegraphNodes &editModeScenegraph, CoinMapping &coinMap)
 
 ~EditModeConstraintCoinManager ()
 
update coin nodes
void processConstraints (const GeoListFacade &geolistfacade)
 
void updateVirtualSpace ()
 
void drawConstraintIcons ()
 Draw all constraint icons. More...
 
void drawConstraintIcons (const GeoListFacade &geolistfacade)
 
update coin colors
void updateConstraintColor (const std::vector< Sketcher::Constraint * > &constraints)
 
coin nodes creation
void rebuildConstraintNodes (void)
 

change constraints selectability

void setConstraintSelectability (bool enabled=true)
 
std::set< intdetectPreselectionConstr (const SoPickedPoint *Point, const SbVec2s &cursorPos)
 
SoSeparatorgetConstraintIdSeparator (int i)
 
void createEditModeInventorNodes ()
 

Detailed Description

Class for managing the Edit mode coin nodes of ViewProviderSketch relating to constraints.

To be documented.

Constructor & Destructor Documentation

◆ EditModeConstraintCoinManager()

EditModeConstraintCoinManager::EditModeConstraintCoinManager ( ViewProviderSketch vp,
DrawingParameters drawingParams,
GeometryLayerParameters geometryLayerParams,
ConstraintParameters constraintParams,
EditModeScenegraphNodes editModeScenegraph,
CoinMapping coinMap 
)
explicit

◆ ~EditModeConstraintCoinManager()

EditModeConstraintCoinManager::~EditModeConstraintCoinManager ( )

Member Function Documentation

◆ createEditModeInventorNodes()

◆ detectPreselectionConstr()

std::set< int > EditModeConstraintCoinManager::detectPreselectionConstr ( const SoPickedPoint *  Point,
const SbVec2s &  cursorPos 
)

◆ drawConstraintIcons() [1/2]

void EditModeConstraintCoinManager::drawConstraintIcons ( )

Draw all constraint icons.

Except maybe the radius and lock ones?

References drawConstraintIcons().

Referenced by drawConstraintIcons().

◆ drawConstraintIcons() [2/2]

◆ getConstraintIdSeparator()

SoSeparator * EditModeConstraintCoinManager::getConstraintIdSeparator ( int  i)

◆ processConstraints()

void EditModeConstraintCoinManager::processConstraints ( const GeoListFacade geolistfacade)

References SketcherGui::SoZoomTranslation::abPos, DraftVecUtils::angle(), SketcherGui::SoDatumLabel::ANGLE, Sketcher::Block, Sketcher::Coincident, Base::Console(), SketcherGui::EditModeScenegraphNodes::constrGroup, SketcherGui::SoDatumLabel::datumtype, Sketcher::Diameter, SketcherGui::SoDatumLabel::DIAMETER, Sketcher::Distance, SketcherGui::SoDatumLabel::DISTANCE, Sketcher::DistanceX, SketcherGui::SoDatumLabel::DISTANCEX, Sketcher::DistanceY, SketcherGui::SoDatumLabel::DISTANCEY, Sketcher::Equal, Base::ConsoleSingleton::Error(), Sketcher::Constraint::First, Sketcher::Constraint::FirstPos, Sketcher::GeoListModel< T >::geomlist, Part::GeomConic::getCenter(), Part::GeomArcOfConic::getCenter(), Base::Persistence::getClassTypeId(), Part::GeomBoundedCurve::getEndPoint(), Part::GeomLineSegment::getEndPoint(), Sketcher::GeoListModel< T >::getExternalCount(), Part::GeomArcOfParabola::getFocal(), Part::GeomArcOfParabola::getFocus(), Sketcher::GeoListModel< T >::getGeometryFromGeoId(), Sketcher::GeoListModel< T >::getInternalCount(), Part::GeomArcOfEllipse::getMajorAxisDir(), Part::GeomArcOfHyperbola::getMajorAxisDir(), Part::GeomArcOfEllipse::getMajorRadius(), Part::GeomArcOfHyperbola::getMajorRadius(), Part::GeomArcOfEllipse::getMinorRadius(), Part::GeomArcOfHyperbola::getMinorRadius(), draftgeoutils.geometry::getNormal, Sketcher::GeoListModel< T >::getPoint(), Part::GeomBSplineCurve::getPoles(), Part::GeomCircle::getRadius(), Part::GeomArcOfCircle::getRadius(), Part::GeomArcOfEllipse::getRange(), Part::GeomArcOfHyperbola::getRange(), Part::GeomArcOfParabola::getRange(), Part::GeomBoundedCurve::getStartPoint(), Part::GeomLineSegment::getStartPoint(), Base::Persistence::getTypeId(), Sketcher::Constraint::getValue(), Part::GeomArcOfConic::getXAxisDir(), Sketcher::Horizontal, Sketcher::InternalAlignment, Sketcher::Constraint::LabelDistance, Sketcher::Constraint::LabelPosition, Sketcher::none, Base::Vector3< _Precision >::Normalize(), Sketcher::NumConstraintTypes, Sketcher::Parallel, SketcherGui::SoDatumLabel::param1, SketcherGui::SoDatumLabel::param2, SketcherGui::SoDatumLabel::param3, Sketcher::Perpendicular, SketcherGui::SoDatumLabel::pnts, Sketcher::PointOnObject, Base::Vector3< _Precision >::ProjectToLine(), Sketcher::Radius, SketcherGui::SoDatumLabel::RADIUS, rebuildConstraintNodes(), Base::Vector3< _Precision >::RotateZ(), Sketcher::Constraint::Second, Sketcher::Constraint::SecondPos, Sketcher::SnellsLaw, SketcherGui::SoDatumLabel::string, Sketcher::Symmetric, SketcherGui::SoDatumLabel::SYMMETRIC, Sketcher::Tangent, Sketcher::Constraint::Third, Sketcher::Constraint::ThirdPos, Sketcher::Constraint::Type, updateVirtualSpace(), Sketcher::Vertical, Sketcher::Weight, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and SketcherGui::DrawingParameters::zConstr.

◆ rebuildConstraintNodes()

void EditModeConstraintCoinManager::rebuildConstraintNodes ( void  )

◆ setConstraintSelectability()

void EditModeConstraintCoinManager::setConstraintSelectability ( bool  enabled = true)

◆ updateConstraintColor()

void EditModeConstraintCoinManager::updateConstraintColor ( const std::vector< Sketcher::Constraint * > &  constraints)

◆ updateVirtualSpace()

void EditModeConstraintCoinManager::updateVirtualSpace ( )

The documentation for this class was generated from the following files: