|
Archicad 30 C++ API
|
Functions providing a way to access existing user input methods or creating custom user input and feedback. More...
Classes | |
| class | ACAPI::InputHandler |
| A class to handle input related operations, like manipulating the input position and starting an input. More... | |
| struct | API_PolyArc |
| Representation of an arc segment of a two-dimensional polygon. More... | |
| struct | API_Neig |
| Describes a neig point of an element. More... | |
| struct | API_MagicWandInfo |
| Curve tracing parameters. More... | |
| struct | API_CursorSet |
| Cursor set definition for a user input. More... | |
| struct | API_RubberLineType |
| Rubber line definition. More... | |
| struct | API_RubberArcType |
| Rubber line definition. More... | |
| struct | API_RubberLineInfo |
| Parameters of the rubber line callback function. More... | |
| struct | API_GetPointType |
| Parameters of the point input operation. More... | |
| struct | API_Get3DComponentType |
| Parameters of the get component type in 3D operation. More... | |
| struct | API_GetLineType |
| Parameters of the line input operation. More... | |
| struct | API_GetArcType |
| Parameters of the arc input operation. More... | |
| struct | API_RubberPolyCallbacks |
| Parameters of the polygon input operation. More... | |
| struct | API_GetPolyType |
| Parameters of the polygon input operation. More... | |
| struct | API_ConstraintPars |
| Parameters of the drawing constraint. More... | |
Typedefs | |
| typedef void | RubberLineInfoProc(const API_RubberLineInfo *info) |
| Callback function for custom feedback drawing. | |
| typedef void | Get3DComponentProc(const API_Get3DComponentType *info) |
| Callback function for getting elem informations online (realtime). | |
| typedef char | API_NeigFilter[API_NeigFilterSize] |
| Structure for filtering neigs during user input. | |
Functions | |
| Result< InputHandler > | ACAPI::CreateInputHandler () |
| A function to create an InputHandler instance, that lets you handle input related operations. | |
| GSErrCode | ACAPI_UserInput_GetMagicWandSets (API_MagicWandInfo *magicWandInfo) |
| Returns information on curve tracing parameters. | |
| GSErrCode | ACAPI_UserInput_InitNeigFilter (API_NeigFilter *neigFilter, API_InitNeigFilterID initNeigFilterID) |
| Initializes the neig filter for an input. | |
| GSErrCode | ACAPI_UserInput_SetNeigFilter (API_NeigFilter *neigFilter, API_NeigID neigID) |
| Sets one of the neig types in the neig filter to be filtered. | |
| GSErrCode | ACAPI_UserInput_ClearNeigFilter (API_NeigFilter *neigFilter, API_NeigID neigID) |
| Sets one of the neig types in the neig filter not to be filtered. | |
| GSErrCode | ACAPI_UserInput_GetPoint (API_GetPointType *pointInfo, RubberLineInfoProc *rubberLineInfoProc=nullptr, Get3DComponentProc *get3DComponentProc=nullptr) |
| Performs a point input. | |
| GSErrCode | ACAPI_UserInput_GetLine (API_GetLineType *lineInfo, RubberLineInfoProc *rubberLineInfoProc=nullptr) |
| Performs a line input. | |
| GSErrCode | ACAPI_UserInput_GetArc (API_GetArcType *arcInfo, RubberLineInfoProc *rubberLineInfoProc=nullptr) |
| Performs an arc input. | |
| GSErrCode | ACAPI_UserInput_GetPoly (API_GetPolyType *polyInfo, API_RubberPolyCallbacks *rubberPolyCallbacks=nullptr) |
| Performs polygon input. | |
| GSErrCode | ACAPI_UserInput_DrawRubberLine (API_RubberLineType *rubberLine) |
| Draws graphical feedback during an input process. | |
| GSErrCode | ACAPI_UserInput_DrawRubberArc (API_RubberArcType *rubberArc) |
| Draws graphical feedback during an input process. | |
| GSErrCode | ACAPI_UserInput_CompleteUserInput () |
| Finishes the user input. | |
| GSErrCode | ACAPI_UserInput_CancelUserInput () |
| Cancels the user input. | |
| GSErrCode | ACAPI_UserInput_SetConstraint (API_ConstraintPars *constraintPars) |
| Set the drawing constraint for graphical user input. | |
| GSErrCode | ACAPI_UserInput_ResetConstraint () |
| Dissolve the drawing constraint. | |
| void | ACAPI_UserInput_SetElementHighlight (const GS::HashTable< API_Guid, API_RGBAColor > &highlightedElems, const GS::Optional< bool > &wireframe3D=GS::NoValue, const GS::Optional< API_RGBAColor > &nonHighlightedElemsColor=GS::NoValue) |
| Highlight elements in the 2D (floor plan and section) and 3D window. | |
| GSErrCode | ACAPI_Markup_PDFImportOptions (const GS::UniString &parentName) |
| Opens the Issue Import from PDF file Options dialog where you can choose an option for how the imported Issues should appear in Issue Organizer. | |
Functions providing a way to access existing user input methods or creating custom user input and feedback.
| typedef char API_NeigFilter[API_NeigFilterSize] |
Structure for filtering neigs during user input.
| typedef void Get3DComponentProc(const API_Get3DComponentType *info) |
Callback function for getting elem informations online (realtime).
| info | Information on the actual input state. |
| typedef void RubberLineInfoProc(const API_RubberLineInfo *info) |
Callback function for custom feedback drawing.
| info | Information on the actual input state. |
| enum API_ConstraintType |
Type of the drawing constraint.
API_ConstraintType see the ACAPI_UserInput_SetConstraint function. When fixing the input angle (APIConst_A), constValue is defined in radian | Enumerator | |
|---|---|
| APIConst_X | Constraint by X |
| APIConst_Y | Constraint by Y |
| APIConst_Z | Constraint by Z |
| APIConst_A | Constraint by angle |
| APIConst_R | Constraint by radian |
| enum API_CursorFormID |
Predefined cursor forms for customizing the user input.
| enum API_InitNeigFilterID |
Type of the neig filter initialization.
API_InitNeigFilterID see the ACAPI_UserInput_InitNeigFilter function. | Enumerator | |
|---|---|
| APIInitNeigFilter_Full | Filter all neig types |
| APIInitNeigFilter_Empty | Filter nothing |
| APIInitNeigFilter_On | Filter line type neigs only |
| APIInitNeigFilter_Node | Filter node type neigs only |
| enum API_NeigElemPartID |
Type of the element part in case of partial selection (currently available with Morph only)
| enum API_PolyGetMethod |
| enum API_RubberArcTypeID |
| GSErrCode ACAPI_Markup_PDFImportOptions | ( | const GS::UniString & | parentName | ) |
Opens the Issue Import from PDF file Options dialog where you can choose an option for how the imported Issues should appear in Issue Organizer.
| parentName | Archicad Issue's name as a parent of the imported issues. The imported Issues will be inserted as sub-Issues. |
| GSErrCode ACAPI_UserInput_CancelUserInput | ( | ) |
Cancels the user input.
| GSErrCode ACAPI_UserInput_ClearNeigFilter | ( | API_NeigFilter * | neigFilter, |
| API_NeigID | neigID ) |
Sets one of the neig types in the neig filter not to be filtered.
| neigFilter | [in] The neig filter. |
| neigID | [in] Neig type to clear out from filtering. |
| GSErrCode ACAPI_UserInput_CompleteUserInput | ( | ) |
Finishes the user input.
| GSErrCode ACAPI_UserInput_DrawRubberArc | ( | API_RubberArcType * | rubberArc | ) |
Draws graphical feedback during an input process.
| rubberArc | [in] Definition of the arc (circle or elliptic) to be drawn. |
APIRubberArc_OrigoAngles nor APIRubberArc_ThreePoint | GSErrCode ACAPI_UserInput_DrawRubberLine | ( | API_RubberLineType * | rubberLine | ) |
Draws graphical feedback during an input process.
| rubberLine | [in] Definition of the line to be drawn. |
| GSErrCode ACAPI_UserInput_GetArc | ( | API_GetArcType * | arcInfo, |
| RubberLineInfoProc * | rubberLineInfoProc = nullptr ) |
Performs an arc input.
| arcInfo | [in/out] Parameters of the arc input operation. |
| rubberLineInfoProc | [in] Callback function for custom feedback drawing. |
| GSErrCode ACAPI_UserInput_GetLine | ( | API_GetLineType * | lineInfo, |
| RubberLineInfoProc * | rubberLineInfoProc = nullptr ) |
Performs a line input.
| lineInfo | [in/out] Parameters of the line input operation. |
| rubberLineInfoProc | [in] Callback function for custom feedback drawing. |
| GSErrCode ACAPI_UserInput_GetMagicWandSets | ( | API_MagicWandInfo * | magicWandInfo | ) |
Returns information on curve tracing parameters.
| magicWandInfo | [out] Parameters of the 'Magic Wand Settings...' dialog. |
| GSErrCode ACAPI_UserInput_GetPoint | ( | API_GetPointType * | pointInfo, |
| RubberLineInfoProc * | rubberLineInfoProc = nullptr, | ||
| Get3DComponentProc * | get3DComponentProc = nullptr ) |
Performs a point input.
| pointInfo | [in/out] Parameters of the point input operation. |
| rubberLineInfoProc | [in] Callback function for custom feedback drawing. |
| get3DComponentProc | [in] Callback function for getting elem informations online (realtime). |
| GSErrCode ACAPI_UserInput_GetPoly | ( | API_GetPolyType * | polyInfo, |
| API_RubberPolyCallbacks * | rubberPolyCallbacks = nullptr ) |
Performs polygon input.
| polyInfo | [in/out] Parameters of the polygon input operation. |
| rubberPolyCallbacks | [in] Callback functions for custom feedback drawing. Optional, can be nullptr. |
| GSErrCode ACAPI_UserInput_InitNeigFilter | ( | API_NeigFilter * | neigFilter, |
| API_InitNeigFilterID | initNeigFilterID ) |
Initializes the neig filter for an input.
| neigFilter | [in] The neig filter. | ||||||||||
| initNeigFilterID | [in] Type of the filter initialization. The possible values:
|
initNeigFilterID is not a valid API_InitNeigFilterID value | GSErrCode ACAPI_UserInput_ResetConstraint | ( | ) |
Dissolve the drawing constraint.
| GSErrCode ACAPI_UserInput_SetConstraint | ( | API_ConstraintPars * | constraintPars | ) |
Set the drawing constraint for graphical user input.
| constraintPars | [in] Parameters of the drawing constraint. |
| void ACAPI_UserInput_SetElementHighlight | ( | const GS::HashTable< API_Guid, API_RGBAColor > & | highlightedElems, |
| const GS::Optional< bool > & | wireframe3D = GS::NoValue, | ||
| const GS::Optional< API_RGBAColor > & | nonHighlightedElemsColor = GS::NoValue ) |
Highlight elements in the 2D (floor plan and section) and 3D window.
| highlightedElems | Hash table containing the elements (identified by their GUIDs) and the colors to highlight the element with. |
| wireframe3D | Switch other elements in the 3D window to wireframe (does not have effect in case of using Vectorial Engine). Optional, it can be GS::NoValue. |
| nonHighlightedElemsColor | It contains the color and the transparency of the non highlighted elements. Optional, it can be GS::NoValue. |
ACAPI_Automate (ACAPI_View_Redraw). | GSErrCode ACAPI_UserInput_SetNeigFilter | ( | API_NeigFilter * | neigFilter, |
| API_NeigID | neigID ) |
Sets one of the neig types in the neig filter to be filtered.
| neigFilter | [in] The neig filter. |
| neigID | [in] Neig type to set for filtering. |
|
inline |
A function to create an InputHandler instance, that lets you handle input related operations.