Rhino C++ API
8.14
|
#include <IRhRdkContentUI.h>
Public Member Functions | |
CRhRdkCustomContentUI (const UUID &uuidEditor, const UUID &uuidUI) | |
virtual | ~CRhRdkCustomContentUI () |
virtual void | AddClient (const CRhRdkContent &c) override |
virtual int | ClientCount (void) const override |
virtual IRhinoUiHolder * | ContentUIHolder (void) const override |
virtual RDK_INTERNAL CRhRdkControllerPtr | Controller (void) const override |
virtual ON_wString | DebugString (void) const override |
virtual UUID | EditorUuid (void) const override |
virtual void * | EVF (const wchar_t *, void *) override |
const CRhRdkContent * | GetClient (int index) const |
void | GetSelection (CRhRdkContentArray &aOut) const |
virtual void | ReleaseAllClients (void) override |
virtual void | RemClient (const CRhRdkContent &c) override |
virtual RDK_INTERNAL void | SetController (CRhRdkControllerPtr con) override |
virtual void | SetSelection (const CRhRdkContentArray &aContent) override |
virtual void | Show (bool bShow) override |
virtual UUID | Uuid (void) const override |
Public Member Functions inherited from IRhRdkContentUI | |
RDK_DEPRECATED void | AddClient (CRhRdkCoreContent &c) |
virtual RDK_DEPRECATED void | AddSection (class CRhRdkExpandingSection *pSection, int dummy=0) |
virtual void | DeleteThis (void)=0 |
virtual void | Destroy (void)=0 |
virtual void | DisplayData (void)=0 |
virtual void | Enable (bool bEnable)=0 |
virtual void | EnableDisableControls (void)=0 |
virtual RhRdkUiFrameworks | Framework (void) const =0 |
virtual RDK_DEPRECATED class IRhinoUiHolder & | Holder (void) const |
virtual bool | IsCreated (void) const =0 |
virtual bool | IsShown (void) const =0 |
RDK_DEPRECATED void | RemClient (CRhRdkCoreContent &c) |
virtual void | SetPositionAndSize (const ON_4iRect &rect)=0 |
Additional Inherited Members | |
Static Public Member Functions inherited from IRhRdkContentUI | |
static RDK_DEPRECATED IRhRdkContentUI * | Get (const UUID &) |
Protected Member Functions inherited from IRhRdkContentUI | |
virtual | ~IRhRdkContentUI () |
This is the base class for custom content user interfaces. If you want to override CRhRdkCoreContent::CreateUI() to create your own custom UI, you must derive your UI from this class. This ensures that your custom UI is properly registered with the RDK, and it also implements some of the IRhRdkContentUI methods for you. Please do not try to directly implement IRhRdkContentUI. This approach will not work.
Also, please note that as of Rhino 8, your CRhRdkCustomContentUI derived class must also be inherited from CWnd. If this is not the case, you will need to update your plug-in.
CRhRdkCustomContentUI::CRhRdkCustomContentUI | ( | const UUID & | uuidEditor, |
const UUID & | uuidUI | ||
) |
|
virtual |
|
overridevirtual |
Called when a client is added to the UI. Your implementation should remember this client, perhaps in a CRhRdkContentArray. Implemented by CRhRdkCustomContentUI.
Implements IRhRdkContentUI.
|
overridevirtual |
Implements IRhRdkContentUI.
|
overridevirtual |
Implements IRhRdkContentUI.
|
overridevirtual |
Implements IRhRdkContentUI.
|
overridevirtual |
Implements IRhRdkContentUI.
|
overridevirtual |
Get the unique identifier of the editor that the UI is being displayed in. Implemented by CRhRdkCustomContentUI.
Implements IRhRdkContentUI.
|
overridevirtual |
Emergency virtual function for future expansion.
Implements IRhRdkContentUI.
const CRhRdkContent* CRhRdkCustomContentUI::GetClient | ( | int | index | ) | const |
Get the client at an index.
void CRhRdkCustomContentUI::GetSelection | ( | CRhRdkContentArray & | aOut | ) | const |
Helper function to get the selected content.
|
overridevirtual |
Implements IRhRdkContentUI.
|
overridevirtual |
Called when a client is removed from the UI. Your implementation should remove the client from its client list or array. When the last client is removed, you must hide the entire UI. Implemented by CRhRdkCustomContentUI.
Implements IRhRdkContentUI.
|
overridevirtual |
Implements IRhRdkContentUI.
|
overridevirtual |
Called when the user selects content in the editor.
aContent | is the content being selected. Your UI should 'remember' the instance ids of the contents so that it can look them up again and transfer their state to the controls in DisplayData(). |
Implements IRhRdkContentUI.
|
overridevirtual |
Show/Hide the UI. Your implementation must respond to this by showing or hiding the entire UI. Please call the base class.
Implements IRhRdkContentUI.
|
overridevirtual |
Get the unique identifier of the UI. Implemented by CRhRdkCustomContentUI.
Implements IRhRdkContentUI.