/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef DWGCommands_INCLUDED_ #define DWGCommands_INCLUDED_ #include "Ed/EdCommandStack.h" #include "../Include/DWGConstraintsExport.h" #define DECLARE_CONSTRAINT_COMMAND(Name) \ class DWGCONSTRAINTS_EXPORT Name##Command : public OdEdCommand { \ public: \ const OdString globalName() const { return OD_T(#Name); } \ const OdString groupName() const { return OD_T("DWG_CONSTRAINTS_COMMANDS"); } \ void execute(OdEdCommandContext* pCmdCtx); }; // geom DECLARE_CONSTRAINT_COMMAND(ConstraintPerpendicular); DECLARE_CONSTRAINT_COMMAND(ConstraintParallel); DECLARE_CONSTRAINT_COMMAND(ConstraintTangent); DECLARE_CONSTRAINT_COMMAND(ConstraintSmooth); DECLARE_CONSTRAINT_COMMAND(ConstraintSymmetric); DECLARE_CONSTRAINT_COMMAND(ConstraintEqual); DECLARE_CONSTRAINT_COMMAND(ConstraintCoincident); DECLARE_CONSTRAINT_COMMAND(ConstraintCollinear); DECLARE_CONSTRAINT_COMMAND(ConstraintConcentric); DECLARE_CONSTRAINT_COMMAND(ConstraintFix); DECLARE_CONSTRAINT_COMMAND(ConstraintHorizontal); DECLARE_CONSTRAINT_COMMAND(ConstraintVertical); // dim DECLARE_CONSTRAINT_COMMAND(ConstraintAlignedDim); DECLARE_CONSTRAINT_COMMAND(Constraint2LineAngularDim); DECLARE_CONSTRAINT_COMMAND(Constraint3PointAngularDim); DECLARE_CONSTRAINT_COMMAND(ConstraintRadialDim); DECLARE_CONSTRAINT_COMMAND(ConstraintDiamDim); DECLARE_CONSTRAINT_COMMAND(ConstraintHorizontalDim); DECLARE_CONSTRAINT_COMMAND(ConstraintVerticalDim); // convert DECLARE_CONSTRAINT_COMMAND(DCConvert); // delete DECLARE_CONSTRAINT_COMMAND(DelConstraint); // autoconstrain DECLARE_CONSTRAINT_COMMAND(AutoConstrain); #endif // DWGCommands_INCLUDED_