#pragma once #include "DbEvalGraph.h" #include "DbBlockElement.h" /** \details Helper class representing one of the coordinates of the grip point Serves as a connection between the grip point and the actions/parameters affecting it Every grip point creates 2 OdDbBlockGripExpr when added to the graph */ class DYNBLOCKS_EXPORT OdDbBlockGripExpr : public OdDbEvalExpr { ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockGripExpr); OdDbBlockGripExpr(); /** \details Returns connection point name (e.g. L"UpdatedBaseX") */ OdString propertyName(); /** \details Sets connection point name (called by the grip point after it is created by the corresponding parameter in addGrip()) */ void setPropertyName(const OdString&); /** \details Returns the id of the parameter that owns the grip point */ OdDbEvalNodeId paramId() const; /** \details Sets the id of the parameter that owns the grip point */ void setParamId(OdDbEvalNodeId id); /** \details Callback called while evaluating the graph */ bool evaluate(const OdDbEvalContext* evalContext) override; /** \details (Reserved for thefuture use) */ void setValue(short); /** \details Sets the value of the connected parameter point coordinate to the OdDbEvalExpr::m_lastValue */ void setValue(double); }; typedef OdSmartPtr OdDbBlockGripExprPtr;