ConstraintItem Class Reference

Public Member Functions

 ConstraintItem (const Sketcher::SketchObject *s, ViewProviderSketch *sketchview, int ConstNbr)
 
Sketcher::ConstraintType constraintType () const
 
QVariant data (int role) const
 
bool isActive () const
 
bool isDimensional () const
 
bool isDriving () const
 
bool isEnforceable () const
 
bool isInVirtualSpace () const
 
void setData (int role, const QVariant &value)
 
void updateVirtualSpaceStatus ()
 
 ~ConstraintItem ()
 

Public Attributes

int ConstraintNbr
 
const Sketcher::SketchObjectsketch
 
const ViewProviderSketchsketchView
 
QVariant value
 

Constructor & Destructor Documentation

◆ ConstraintItem()

ConstraintItem::ConstraintItem ( const Sketcher::SketchObject s,
ViewProviderSketch sketchview,
int  ConstNbr 
)

◆ ~ConstraintItem()

ConstraintItem::~ConstraintItem ( )

Member Function Documentation

◆ constraintType()

Sketcher::ConstraintType ConstraintItem::constraintType ( ) const

◆ data()

QVariant ConstraintItem::data ( int  role) const

References Sketcher::Constraint::AlignmentType, Sketcher::Angle, Gui::BitmapFactory(), Sketcher::Block, Sketcher::Coincident, ConstraintNbr, Sketcher::SketchObject::Constraints, Sketcher::PropertyConstraintList::createPath(), Sketcher::Diameter, DraftVecUtils::dist(), Sketcher::Distance, Sketcher::DistanceX, Sketcher::DistanceY, Sketcher::EllipseFocus1, Sketcher::EllipseFocus2, Sketcher::EllipseMajorDiameter, Sketcher::EllipseMinorDiameter, Sketcher::Equal, App::PropertyExpressionEngine::ExpressionInfo::expression, Sketcher::Constraint::First, Sketcher::Constraint::FirstPos, Base::Tools::fromStdString(), App::GetApplication(), ParameterGrp::GetBool(), Sketcher::PropertyConstraintList::getConstraintName(), App::DocumentObject::getExpression(), App::Application::GetParameterGroupByPath(), Sketcher::Constraint::getPresentationValue(), Sketcher::PropertyConstraintList::getSize(), Base::Quantity::getUserString(), Base::Quantity::getValue(), Sketcher::Horizontal, Sketcher::InternalAlignment, Sketcher::Constraint::isActive, Sketcher::Constraint::isDriving, Sketcher::Constraint::Name, Sketcher::Parallel, Sketcher::Perpendicular, Sketcher::PointOnObject, Sketcher::Radius, Sketcher::Constraint::Second, Sketcher::Constraint::SecondPos, sketch, Sketcher::SnellsLaw, Sketcher::Symmetric, Sketcher::Tangent, Sketcher::Constraint::Third, Sketcher::Constraint::ThirdPos, Sketcher::Constraint::Type, Sketcher::Undef, value, Sketcher::Vertical, and Sketcher::Weight.

Referenced by Mod.Show.mTempoVis.TempoVis::activateWorkbench(), Mod.Show.SceneDetail.SceneDetail::apply_data(), importIFClegacy.IfcSchema::capitalize(), Mod.Show.mTempoVis.TempoVis::forget(), Mod.Show.mTempoVis.TempoVis::forgetDetail(), Mod.Show.mTempoVis.TempoVis::has(), ArchSchedule.CommandArchSchedule::IsActive(), SketcherGui::TaskSketcherConstraints::on_listWidgetConstraints_itemChanged(), importIFClegacy.IfcSchema::readEntities(), importIFClegacy.IfcSchema::readTypes(), Mod.Show.mTempoVis.TempoVis::restore(), Mod.Show.mTempoVis.TempoVis::save(), Mod.Show.mTempoVis.TempoVis::stored_val(), FeaturePython.ViewProviderOctahedron::updateData(), and Dice3DS.dom3ds.UndefinedChunk::write().

◆ isActive()

◆ isDimensional()

◆ isDriving()

bool ConstraintItem::isDriving ( ) const

◆ isEnforceable()

◆ isInVirtualSpace()

bool ConstraintItem::isInVirtualSpace ( ) const

◆ setData()

void ConstraintItem::setData ( int  role,
const QVariant &  value 
)

◆ updateVirtualSpaceStatus()

void ConstraintItem::updateVirtualSpaceStatus ( )

Member Data Documentation

◆ ConstraintNbr

◆ sketch

◆ sketchView

const ViewProviderSketch* ConstraintItem::sketchView

◆ value


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