The SuggestResult struct is a container for output information of AttachEngine mode suggesting routine. More...
#include <Attacher.h>
Public Types | |
enum | eSuggestResult { srOK , srLinkBroken , srUnexpectedError , srNoModesFit , srIncompatibleGeometry } |
message contains overall verdict of suggestor on current reference set More... | |
Public Attributes | |
std::vector< eMapMode > | allApplicableModes |
allApplicableModes. More... | |
eMapMode | bestFitMode |
bestFitMode is the mode that is the most specific to current references. More... | |
Base::RuntimeError | error |
eSuggestResult | message |
std::set< eRefType > | nextRefTypeHint |
nextRefTypeHint: a hint of what can be added to references to achieve other modes. More... | |
std::map< eMapMode, refTypeStringList > | reachableModes |
reachableModes. More... | |
refTypeString | references_Types |
references_Types: list of types of references, as queried when running suggesting routine. More... | |
The SuggestResult struct is a container for output information of AttachEngine mode suggesting routine.
std::vector<eMapMode> Attacher::SuggestResult::allApplicableModes |
allApplicableModes.
Vector array that will receive the list of all modes that are applicable to current set of references. It doesn't guarantee that all modes will work, it only checks that subelemnts are of right type.
Referenced by SketcherGui::SuggestAutoMapMode().
eMapMode Attacher::SuggestResult::bestFitMode |
bestFitMode is the mode that is the most specific to current references.
Note that the mode may not be valid for current references; check if it's listed in allApplicableModes, or test if message == srOK.
Referenced by PartGui::TaskAttacher::getActiveMapMode(), and SketcherGui::SuggestAutoMapMode().
Base::RuntimeError Attacher::SuggestResult::error |
eSuggestResult Attacher::SuggestResult::message |
std::set<eRefType> Attacher::SuggestResult::nextRefTypeHint |
nextRefTypeHint: a hint of what can be added to references to achieve other modes.
std::map<eMapMode, refTypeStringList> Attacher::SuggestResult::reachableModes |
reachableModes.
List of modes that can be reached by selecting more references. Is a map, where key is the mode that can be reached, and value is a list of reference sequences that can be added to reach the mode (stuff already linked is omitted from these lists; only extra links needed are listed)
refTypeString Attacher::SuggestResult::references_Types |
references_Types: list of types of references, as queried when running suggesting routine.