-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
break(objects): adds new convert to native displayable bindings #2846
break(objects): adds new convert to native displayable bindings #2846
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks right on my end, pending the resolution of the Archicad CI problem (which seems unrelated to this)
Core/Core/Kits/ISpeckleConverter.cs
Outdated
/// <summary> | ||
/// Converts a Speckle object to a native displayable one | ||
/// </summary> | ||
/// <param name="object">Speckle object to convert</param> | ||
/// <returns></returns> | ||
public object ConvertToNativeDisplayable(Base @object); | ||
|
||
/// <summary> | ||
/// Checks if it can convert a Speckle object to a native one | ||
/// </summary> | ||
/// <param name="object">Speckle object to convert</param> | ||
/// <returns></returns> | ||
public bool CanConvertToNative(Base @object); | ||
|
||
/// <summary> | ||
/// Checks if it can convert a Speckle object to a native displayable one | ||
/// </summary> | ||
/// <param name="object">Speckle object to convert</param> | ||
/// <returns></returns> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding the xml docs: Maybe we should be more thorough on the explanation of what this is intended for, to prevent misusage in the near future by us or others.
Current one seems rather vague. It also seems it's not correctly defined for me:
What this does is convert a "displayable Speckle Object" into native; rather than convert a "generic speckle object" into "native displayable".
Updated branch from |
Description & motivation
Adds new
ConvertToNativeDisplayable()
andCanConvertToNativeDisplayable()
bindings to ourISpeckleConverter
interface.These bindings are a prerequisite to pr #2841 and part of #2777
Changes:
Converters
Checklist: