if (!sketch())
return thePrevious;
- AISObjectPtr anAIS = SketcherPrs_Factory::coincidentConstraint(this, sketch()->coordinatePlane(),
- thePrevious);
+ AISObjectPtr anAIS = SketcherPrs_Factory::coincidentConstraint(this, sketch(), thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::collinearConstraint(
- this, sketch(), sketch()->coordinatePlane(), thePrevious);
+ this, sketch(), thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::equalConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::middleConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::mirrorConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::parallelConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::perpendicularConstraint(this, sketch(),
- sketch()->coordinatePlane(), thePrevious);
+ thePrevious);
return anAIS;
}
{
if (!sketch())
return thePrevious;
- return SketcherPrs_Factory::rigidConstraint(this, sketch(),
- sketch()->coordinatePlane(), thePrevious);
+ return SketcherPrs_Factory::rigidConstraint(this, sketch(), thePrevious);
}
\ No newline at end of file
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::tangentConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::verticalConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::rotateConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
return thePrevious;
AISObjectPtr anAIS = SketcherPrs_Factory::translateConstraint(this, sketch(),
- sketch()->coordinatePlane(),
thePrevious);
return anAIS;
}
IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_Coincident, AIS_InteractiveObject);
SketcherPrs_Coincident::SketcherPrs_Coincident(ModelAPI_Feature* theConstraint,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
-: AIS_InteractiveObject(), myConstraint(theConstraint), mySketcherPlane(thePlane),
+ SketchPlugin_Sketch* theSketch)
+: AIS_InteractiveObject(), myConstraint(theConstraint), mySketch(theSketch),
myPoint(gp_Pnt(0.0, 0.0, 0.0)), myIsCustomColor(false)
{
}
const Standard_Integer theMode)
{
gp_Pnt aPoint;
- bool aReadyToDisplay = readyToDisplay(myConstraint, mySketcherPlane, aPoint);
+ bool aReadyToDisplay = readyToDisplay(myConstraint, mySketch->coordinatePlane(), aPoint);
if (aReadyToDisplay)
myPoint = aPoint;
#define SketcherPrs_Coincident_H
#include <GeomAPI_Ax3.h>
+#include <SketchPlugin_Sketch.h>
#include <ModelAPI_Feature.h>
#include <AIS_InteractiveObject.hxx>
/// \param theConstraint a constraint object
/// \param thePlane plane of a sketch
Standard_EXPORT SketcherPrs_Coincident(ModelAPI_Feature* theConstraint,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketch);
/// Defines color for the presentation
/// \param aColor a color object
private:
ModelAPI_Feature* myConstraint;
- std::shared_ptr<GeomAPI_Ax3> mySketcherPlane;
+ SketchPlugin_Sketch* mySketch;
gp_Pnt myPoint;
bool myIsCustomColor; /// state if the presentation is visualized in custom color
Quantity_Color myCustomColor; /// the color of mid ring if there is a conflict
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Collinear::SketcherPrs_Collinear(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Collinear(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
+
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Collinear, SketcherPrs_SymbolPrs)
/// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Equal::SketcherPrs_Equal(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Equal(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Equal, SketcherPrs_SymbolPrs)
/// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
// Macros for constraint presentation definition
#define CONSTRAINT_PRS_IMPL(NAME, CLASS) \
AISObjectPtr SketcherPrs_Factory::NAME(ModelAPI_Feature* theConstraint, \
- ModelAPI_CompositeFeature* theSketcher, \
- const std::shared_ptr<GeomAPI_Ax3>& thePlane, \
+ SketchPlugin_Sketch* theSketcher, \
AISObjectPtr thePrevious) \
{ \
std::shared_ptr<GeomAPI_AISObject> anAISObj; \
- if (CLASS::IsReadyToDisplay(theConstraint, thePlane)) { \
+ if (CLASS::IsReadyToDisplay(theConstraint, theSketcher->coordinatePlane())) { \
if (thePrevious.get()) \
anAISObj = thePrevious; \
else { \
anAISObj = AISObjectPtr(new GeomAPI_AISObject()); \
- Handle(CLASS) aPrs = new CLASS(theConstraint, theSketcher, thePlane); \
+ Handle(CLASS) aPrs = new CLASS(theConstraint, theSketcher); \
anAISObj->setImpl(new Handle(AIS_InteractiveObject)(aPrs)); \
} \
} \
CONSTRAINT_PRS_IMPL(tangentConstraint, SketcherPrs_Tangent);
CONSTRAINT_PRS_IMPL(middleConstraint, SketcherPrs_Middle);
CONSTRAINT_PRS_IMPL(mirrorConstraint, SketcherPrs_Mirror);
+CONSTRAINT_PRS_IMPL(coincidentConstraint, SketcherPrs_Coincident);
}
-CONSTRAINT2_PRS_IMPL(coincidentConstraint, SketcherPrs_Coincident);
CONSTRAINT2_PRS_IMPL(angleConstraint, SketcherPrs_Angle);
CONSTRAINT2_PRS_IMPL(radiusConstraint, SketcherPrs_Radius);
CONSTRAINT2_PRS_IMPL(lengthDimensionConstraint, SketcherPrs_LengthDimension);
// Non-standard constraints definition
AISObjectPtr SketcherPrs_Factory::horisontalConstraint(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
- AISObjectPtr thePrevious)
+ SketchPlugin_Sketch* theSketcher, AISObjectPtr thePrevious)
{
std::shared_ptr<GeomAPI_AISObject> anAISObj;
- if (SketcherPrs_HVDirection::IsReadyToDisplay(theConstraint, thePlane)) {
+ if (SketcherPrs_HVDirection::IsReadyToDisplay(theConstraint, theSketcher->coordinatePlane())) {
if (thePrevious.get())
anAISObj = thePrevious;
else {
anAISObj = AISObjectPtr(new GeomAPI_AISObject());
Handle(SketcherPrs_HVDirection) aPrs =
- new SketcherPrs_HVDirection(theConstraint, theSketcher, thePlane, true);
+ new SketcherPrs_HVDirection(theConstraint, theSketcher, true);
anAISObj->setImpl(new Handle(AIS_InteractiveObject)(aPrs));
}
}
}
AISObjectPtr SketcherPrs_Factory::verticalConstraint(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
- AISObjectPtr thePrevious)
+ SketchPlugin_Sketch* theSketcher, AISObjectPtr thePrevious)
{
std::shared_ptr<GeomAPI_AISObject> anAISObj;
- if (SketcherPrs_HVDirection::IsReadyToDisplay(theConstraint, thePlane)) {
+ if (SketcherPrs_HVDirection::IsReadyToDisplay(theConstraint, theSketcher->coordinatePlane())) {
if (thePrevious.get())
anAISObj = thePrevious;
else {
anAISObj = AISObjectPtr(new GeomAPI_AISObject());
Handle(SketcherPrs_HVDirection) aPrs =
- new SketcherPrs_HVDirection(theConstraint, theSketcher, thePlane, false);
+ new SketcherPrs_HVDirection(theConstraint, theSketcher, false);
anAISObj->setImpl(new Handle(AIS_InteractiveObject)(aPrs));
}
}
}
AISObjectPtr SketcherPrs_Factory::translateConstraint(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
- AISObjectPtr thePrevious)
+ SketchPlugin_Sketch* theSketcher, AISObjectPtr thePrevious)
{
std::shared_ptr<GeomAPI_AISObject> anAISObj;
- if (SketcherPrs_Transformation::IsReadyToDisplay(theConstraint, thePlane)) {
+ if (SketcherPrs_Transformation::IsReadyToDisplay(theConstraint,
+ theSketcher->coordinatePlane())) {
if (thePrevious.get())
anAISObj = thePrevious;
else {
anAISObj = AISObjectPtr(new GeomAPI_AISObject());
Handle(SketcherPrs_Transformation) aPrs =
- new SketcherPrs_Transformation(theConstraint, theSketcher, thePlane, true);
+ new SketcherPrs_Transformation(theConstraint, theSketcher, true);
anAISObj->setImpl(new Handle(AIS_InteractiveObject)(aPrs));
}
}
}
AISObjectPtr SketcherPrs_Factory::rotateConstraint(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
- AISObjectPtr thePrevious)
+ SketchPlugin_Sketch* theSketcher, AISObjectPtr thePrevious)
{
std::shared_ptr<GeomAPI_AISObject> anAISObj;
- if (SketcherPrs_Transformation::IsReadyToDisplay(theConstraint, thePlane)) {
+ if (SketcherPrs_Transformation::IsReadyToDisplay(theConstraint,
+ theSketcher->coordinatePlane())) {
if (thePrevious.get())
anAISObj = thePrevious;
else {
anAISObj = AISObjectPtr(new GeomAPI_AISObject());
Handle(SketcherPrs_Transformation) aPrs =
- new SketcherPrs_Transformation(theConstraint, theSketcher, thePlane, false);
+ new SketcherPrs_Transformation(theConstraint, theSketcher, false);
anAISObj->setImpl(new Handle(AIS_InteractiveObject)(aPrs));
}
}
#define SketcherPrs_Factory_H_
#include "SketcherPrs.h"
+#include <SketchPlugin_Sketch.h>
#include <ModelAPI_Feature.h>
#include <ModelAPI_CompositeFeature.h>
#define GET_CONSTRAINT_PRS(NAME) \
static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \
- ModelAPI_CompositeFeature* theSketcher, \
- const std::shared_ptr<GeomAPI_Ax3>& thePlane, \
+ SketchPlugin_Sketch* theSketcher, \
AISObjectPtr thePrevious);
/**
/// \param thePrevious the previous presentation
GET_CONSTRAINT_PRS(rotateConstraint)
-#define GET_CONSTRAINT2_PRS(NAME) \
- static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \
- const std::shared_ptr<GeomAPI_Ax3>& thePlane, \
- AISObjectPtr thePrevious);
-
/// Creates coincedent constraint presentation
/// \param theConstraint the constraint
/// \param thePlane the current sketch plane
/// \param thePrevious the previous presentation
- GET_CONSTRAINT2_PRS(coincidentConstraint)
+ GET_CONSTRAINT_PRS(coincidentConstraint)
+
+#define GET_CONSTRAINT2_PRS(NAME) \
+ static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \
+ const std::shared_ptr<GeomAPI_Ax3>& thePlane, \
+ AISObjectPtr thePrevious);
/// Creates angle constraint presentation
/// \param theConstraint the constraint
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_HVDirection::SketcherPrs_HVDirection(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
- bool isHorisontal)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane),
+ SketchPlugin_Sketch* theSketcher, bool isHorisontal)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher),
myIsHorisontal(isHorisontal)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
/// \param isHorisontal a flag horizontal or vertical presentation
Standard_EXPORT SketcherPrs_HVDirection(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
- bool isHorisontal);
+ SketchPlugin_Sketch* theSketcher, bool isHorisontal);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_HVDirection, SketcherPrs_SymbolPrs)
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Middle::SketcherPrs_Middle(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Middle(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Middle, SketcherPrs_SymbolPrs)
/// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Mirror::SketcherPrs_Mirror(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Mirror(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Mirror, SketcherPrs_SymbolPrs)
/// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Parallel::SketcherPrs_Parallel(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Parallel(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Parallel, SketcherPrs_SymbolPrs)
/// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Perpendicular::SketcherPrs_Perpendicular(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Perpendicular(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Perpendicular, SketcherPrs_SymbolPrs)
SketcherPrs_Rigid::SketcherPrs_Rigid(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Rigid(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Rigid, SketcherPrs_SymbolPrs)
SketcherPrs_SymbolPrs::SketcherPrs_SymbolPrs(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
+ SketchPlugin_Sketch* theSketcher)
: AIS_InteractiveObject(), myConstraint(theConstraint),
- myPlane(thePlane), myIsCustomColor(false),
+ myPlane(theSketcher->coordinatePlane()), myIsCustomColor(false),
mySketcher(theSketcher)
{
SetAutoHilight(Standard_False);
#define SketcherPrs_SymbolPrs_H
#include "SketcherPrs_SensitivePoint.h"
+#include <SketchPlugin_Sketch.h>
#include <ModelAPI_Feature.h>
#include <ModelAPI_AttributeRefList.h>
-#include <ModelAPI_CompositeFeature.h>
#include <AIS_InteractiveObject.hxx>
#include <GeomAPI_Ax3.h>
/// \param theConstraint a constraint feature
/// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_SymbolPrs(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
virtual ~SketcherPrs_SymbolPrs();
const SelectMgr_SequenceOfOwner& theOwners);
//! Method which hilight an owner belonging to
- //! this selectable object ( for fast presentation draw )
Standard_EXPORT virtual void HilightOwnerWithColor(
const Handle(PrsMgr_PresentationManager3d)& thePM,
const Handle(Prs3d_Drawer)& theStyle,
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Tangent::SketcherPrs_Tangent(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane)
+ SketchPlugin_Sketch* theSketcher)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
Standard_EXPORT SketcherPrs_Tangent(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ SketchPlugin_Sketch* theSketcher);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Tangent, SketcherPrs_SymbolPrs)
static Handle(Image_AlienPixMap) MyPixMap;
SketcherPrs_Transformation::SketcherPrs_Transformation(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
+ SketchPlugin_Sketch* theSketcher,
bool isTranslation)
- : SketcherPrs_SymbolPrs(theConstraint, theSketcher, thePlane), myIsTranslation(isTranslation)
+ : SketcherPrs_SymbolPrs(theConstraint, theSketcher), myIsTranslation(isTranslation)
{
}
/// Constructor
/// \param theConstraint a constraint feature
/// \param theSketcher a sketcher object
- /// \param thePlane a coordinate plane of current sketch
/// \param isTranslation a flag is it translation or rotation
Standard_EXPORT SketcherPrs_Transformation(ModelAPI_Feature* theConstraint,
- ModelAPI_CompositeFeature* theSketcher,
- const std::shared_ptr<GeomAPI_Ax3>& thePlane,
- bool isTranslation);
+ SketchPlugin_Sketch* theSketcher, bool isTranslation);
DEFINE_STANDARD_RTTIEXT(SketcherPrs_Transformation, SketcherPrs_SymbolPrs)