/////////////////////////////////////////////////////////////////////////////// // 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 _DbBlock1PtParameter_h_Included_ #define _DbBlock1PtParameter_h_Included_ #include "DbBlockParameter.h" /** \details Base class for the block parameters with one base point, like visibility, lookup, etc. */ class DYNBLOCKS_EXPORT OdDbBlock1PtParameter : public OdDbBlockParameter { public: ODDB_EVAL_DECLARE_MEMBERS(OdDbBlock1PtParameter); /** \details Returns the grip point associated with a given parameter or a nullptr if there is none */ OdDbBlockGripPtr getAssociatedGrip(OdDb::OpenMode m = OdDb::kForRead); /** \details Notification function called after the graph evaluation. \param nodeIsActive [in] True if and only if this Node object has been activated. \remarks Called by OdDbEvalGraph::evaluate(). In this function current point is set to updated point at the end of graph evaluation. */ virtual void graphEvalEnd(bool nodeIsActive) override; /** \details Returns the definition point for this parameter (initial position in the original block) */ OdGePoint3d definitionPoint() const; /** \details Sets the definition point for this parameter (initial position in the original block) */ void setDefinitionPoint(const OdGePoint3d&); /** \details Returns the current point for this parameter (actual position in the representation block) */ OdGePoint3d point() const; /** \details Sets the current point for this parameter (actual position in the representation block) */ void setPoint(const OdGePoint3d&); /** \details Returns the updated point for this parameter (runtime position in the NDBRO block while editing) */ OdGePoint3d updatedPoint() const; /** \details Sets the updated point for this parameter (runtime position in the NDBRO block while editing) */ void setUpdatedPoint(const OdGePoint3d&); }; typedef OdSmartPtr OdDbBlock1PtParameterPtr; #endif // _DbBlock1PtParameter_h_Included_